Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

query

Skill by avega17

Runs SQL queries against an attached DuckDB database or ad-hoc against data files. It accepts raw SQL or natural language questions and uses DuckDB Friendly SQL idioms.

  • Score 58
  • 0 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install query

Built from the published package, never by AI.

git clone --depth 1 https://github.com/avega17/E-CORE_EO_Weather_Forecasting /tmp/E-CORE_EO_Weather_Forecasting && mkdir -p ~/.claude/skills && cp -r /tmp/E-CORE_EO_Weather_Forecasting/.agents/skills/duckdb/query ~/.claude/skills/query

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install query in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The query skill runs SQL against a DuckDB database that has been set up for the project, or ad-hoc against data files. It accepts raw SQL or natural language questions. For natural language input, it generates SQL using a DuckDB Friendly SQL reference, which favors constructs such as FROM-first queries, GROUP BY ALL and COLUMNS(*).

In session mode, it reads table names and column types from a saved state file before writing a query. In ad-hoc mode, DuckDB runs in memory with external access disabled and only the referenced file paths allowed. The skill also estimates result size, warns before very large outputs, and points to install and documentation skills when errors occur. It is useful when a user wants quick answers from DuckDB data.

Written from the project's SKILL.md and checked against it.

What it can do

  • Session modeQueries a user-trusted DuckDB database attached through a saved state file.
  • Ad-hoc modeQueries CSV, Parquet or other referenced files in a sandboxed in-memory DuckDB.
  • Natural language to SQLTurns plain language questions into SQL using the Friendly SQL reference.
  • Schema lookupLists tables and describes columns before generating a query in session mode.
  • Result size checkEstimates whether a query could return a very large result and suggests a LIMIT.
  • Error recoverySuggests fixes for syntax, missing table and missing file errors, then retries.

What you need

  • DuckDB CLI (the skill can install it through /duckdb-skills:install-duckdb)
  • Bash tool access

Try asking

  • Show total sales by region from the orders table
  • Count rows per category in data/products.csv
  • Summarize the columns in the customers table

Good to know

  • Ad-hoc mode can only read the file paths referenced in the query.
  • Queries over 1M rows without LIMIT or aggregation need user confirmation.
  • Results over 100 rows are truncated in the display.

Security check

B
  • Allowed to use Bash without limitsIn SKILL.md

Checked automatically: .agents/skills/duckdb/query/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: Bash

Alternatives to query

All alternatives →
hugging-face-datasetssickn33
94

Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.

AAA Skill 50k
db-repairgarrytan
94

Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.

AAA Skill 34k
alloydb-basicsgoogle
94

Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.

AAA Skill 26k
clickhouse-logs-queriessupabase
94

Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.

AAA Skill 116k
fix-slow-queriespaperclipai
94

Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.

AAA Skill 119k
prisma-8prisma
94

Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.

AAA Skill 48k

Compare with hugging-face-datasets, db-repair or alloydb-basics

query: common questions

Can it query a file without a database?

Yes. Ad-hoc mode reads files referenced in the SQL or passed with --file, using an in-memory DuckDB session.

What happens with very large query results?

If a query could return over 1M rows without a LIMIT or aggregation, the skill asks the user to add a LIMIT or confirm before running it.

What if a DuckDB query fails?

The skill shows the error, suggests a corrected query and can search DuckDB documentation through the duckdb-docs skill before retrying.

How do I install query?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is query free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is query safe to use?

It scores 58 of 100. Grades: maintenance A, licence A, quality C. Security check: grade B (allowed to use bash without limits). Review the code before you install. How grades work.

What are alternatives to query?

Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.

Add to stack

Loading.