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 ipea

Runs SQL queries against an attached DuckDB database or directly against files. Accepts raw SQL or natural language questions. Aimed at users who want to analyze data from an AI assistant using DuckDB.

  • Score 65
  • 142 stars
  • NOASSERTION
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install query

Built from the published package, never by AI.

git clone --depth 1 https://github.com/ipea/geocodebr /tmp/geocodebr && mkdir -p ~/.claude/skills && cp -r /tmp/geocodebr/.claude/skills/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 with DuckDB from an AI assistant. It accepts raw SQL or natural language questions. In session mode it queries a database set up in a state file. In ad-hoc mode it reads files such as CSV or Parquet directly. Natural language questions are turned into SQL using the schema and a DuckDB Friendly SQL reference.

Before running a query, the skill estimates the result size. It warns about very large outputs and about sources over 10 GB. Ad-hoc queries run in a sandbox that allows only the referenced file and disables external access. If DuckDB is missing, the skill delegates to an install step. When an error is unclear, it searches the DuckDB documentation. It is for users who want to analyze local data with DuckDB from their assistant.

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

What it can do

  • Session mode queriesRuns SQL against the attached DuckDB database listed in the state file.
  • Ad-hoc file queriesQueries CSV or Parquet files directly, allowing only the referenced file path.
  • Natural language to SQLGenerates SQL from a question using the table schema and Friendly SQL idioms.
  • Result size checkEstimates row counts and asks before running queries that could return very large results.
  • Error recoverySuggests fixes for syntax errors, missing tables, and missing files, then retries.
  • Result presentationShows query output and adds a brief interpretation for natural language questions.

What you need

  • DuckDB command-line tool (the skill delegates to /install-duckdb if it is missing)
  • Bash tool access

Try asking

  • Show the top 10 customers by revenue from the attached database
  • Summarize sales.csv with a SUMMARIZE query
  • How many rows in data/part-*.parquet have status = 'open'?

Good to know

  • Ad-hoc mode is sandboxed to the referenced files with external access disabled.
  • Results with more than 1M rows and no LIMIT or aggregation need user confirmation.
  • Results over 100 rows are truncated in display with a note suggesting LIMIT.
  • Falls back to ad-hoc mode if an ATTACH in the state file fails.

Security check

B
  • Allowed to use Bash without limitsIn SKILL.md

Checked automatically: .claude/skills/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 →
kaggle-cliKaggle
94

Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.

AAA Skill 7.7k
bigquery-bigframesgoogle
94

Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.

AAA Skill 25k
data-loadingmicrosoft
94

Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.

AAA Skill 18k
data-manager-api-setupgoogle
94

Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.

AAA Skill 25k
managed-airflow-dag-authoringgoogle
94

Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.

AAA Skill 25k
data-feedsdavila7
94

Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.

AAA Skill 34k

Compare with kaggle-cli, bigquery-bigframes or data-loading

query: common questions

Can this skill query CSV and Parquet files without a database?

Yes. Ad-hoc mode reads files such as CSV or Parquet directly when the file is referenced in the SQL or with the --file flag.

Is the query sandboxed?

In ad-hoc mode, the skill sets allowed_paths to the referenced file, turns off external access, and locks the configuration. Session mode uses a database the user has trusted.

Can I ask questions in plain English?

Yes. The skill accepts natural language questions and generates SQL from them, using the table schema in session mode.

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 NOASSERTION licence. The service it connects to may have its own pricing.

Is query safe to use?

It scores 65 of 100. Grades: maintenance A, licence F, quality B. 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: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.

Add to stack

Loading.