
Description
query-duckdb is an agent skill for running SQL against DuckDB. It works on an attached DuckDB database or runs ad hoc queries directly against files, and it accepts either raw SQL or a natural language question that the agent turns into SQL. The skill follows a fixed sequence of steps. The first step resolves state: it looks for a saved state file in the project's .duckdb-skills folder or in a per-project folder under the home directory, then checks that the databases it references are still accessible. After that it decides on a mode and writes queries using DuckDB's friendly SQL idioms. The page also lists related skills for Supabase Postgres, Supabase clients and Firebase, which cover schema design, auth and Firestore modeling. Use it when someone wants to explore a local data file, query an attached database, or ask a plain-language question about tabular data. The skill is published in the duckdb-skills repository and installs with the skills CLI.…
Highlights
- Runs SQL on an attached DuckDB database or directly on files
- Accepts raw SQL or plain-language questions
- Checks saved state and database access before querying
- Uses DuckDB friendly SQL idioms
Ratings & Reviews
No ratings yet
Be the first to rate query.
People also visit
query FAQ
What is query-duckdb?
An agent skill that runs SQL against DuckDB, either on an attached database or on files.
Can I ask in plain language?
Yes. The skill accepts natural language questions as well as raw SQL.
Who is it for?
Analysts and developers who query local data with DuckDB through an AI agent.
How do I install it?
Run npx skills add https://github.com/duckdb/duckdb-skills --skill query.
What do the security audits say?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best query alternatives?
Popular alternatives to query include duckdb-skills, duckdb/attach-db and duckdb-docs. See all query alternatives













