Skip to content
DataTested, with caveats

DuckDB Query

Ask in SQL or in your own words about CSV, Parquet, JSON or Excel files, with DuckDB.

By DuckDB (opens in a new tab) · from the vendor

Install See the repository Our test

When to use it

  • To explore large local files, fast.
  • When you want SQL without setting up a database.

When to avoid it

  • For remote databases that require credentials.

Recommendations

  • Install the DuckDB CLI first; the skill needs it.
  • Ask it to show you the SQL it ran.

Risks and permissions

  • Uses Bash and keeps state in ~/.duckdb-skills/, outside the project.
  • The plugin includes read-memories, which reads the logs of your previous Claude Code sessions: install only query if you don’t want that.
  • To install DuckDB it suggests curl | sh.

Install it

With BibliotecaPrompts Recommended

  1. Connect bp, just once. In Claude Code:

    Terminal
    claude mcp add --transport http --scope user bp https://bibliotecaprompts.com/mcp

    Another harness? How to connect it in yours.

  2. Ask your agent for it:

    Ask like this
    Instala con bp la skill duckdb-query
  • Downloads the version we tested (44dfbbb), 2 files.
  • Checks each one against its SHA-256 fingerprint: if anything changed, it installs nothing.
  • Only the skill and its license: no hooks or extra servers.
  • Puts it in your harness’s folder, the project’s or your own.
Other ways, from the source

Claude Code

Also brings read-file and read-memories.

Inside Claude Code
/plugin marketplace add duckdb/duckdb-skills
/plugin install duckdb-skills@duckdb-skills

Codex CLI Cursor Gemini CLI OpenCode

With the npx skills installer, which asks you which agent to install it in.

Terminal
npx skills add duckdb/duckdb-skills --skill query

Before installing, read its SKILL.md. Another harness? Where skills go in each one.

Our test

The task: In ventas.csv, which product brought in the most revenue in total, and how much? Show me the SQL you used.

Passes if: It describes the schema, runs the query with DuckDB and the answer matches the separately computed total: Lámpara Nórdica, $65,016,000.

  • Claude Opus 5.5Passes

    Checked the data before querying and ran the per-product sum with DuckDB: Lámpara Nórdica, 65,016,000, with the SQL and the full table.

    • 21 s
    • 146.2K tokens
    • $0.19
    • Nov 24, 2026
    What the agent answered
    **La Lámpara Nórdica fue el producto que más ingresó: $65.016.000 en total**, sumando 142 ventas. Tomé el ingreso de cada venta como `unidades × precio_unitario`.
    
    SQL que usé (DuckDB, leyendo el CSV directamente):
    
    ```sql
    SELECT producto,
           ventas:  count(),
           ingreso: sum(unidades * precio_unitario)
    FROM 'ventas.csv'
    GROUP BY ALL
    ORDER BY ingreso DESC;
    ```
    
    | producto | ventas | ingreso |
    |---|---|---|
    | Lámpara Nórdica | 142 | 65.016.000 |
    | Silla Tejida | 73 | 39.690.000 |
    | Mesa Auxiliar | 25 | 21.440.000 |
    | Jarrón de Barro | 78 | 15.912.000 |
    | Cojín de Lino | 82 | 11.859.000 |
    
    Antes revisé los datos: son 400 filas con 5 productos, sin valores vacíos ni cantidades negativas. Cada producto tiene un solo precio, así que el total no depende de cambios de precio. El archivo no indica la moneda; por los montos parecen pesos colombianos.
    
    **Resumen:** consulté `ventas.csv` con DuckDB en modo solo lectura, con acceso limitado a ese archivo. No modifiqué ni dejé archivos nuevos en la carpeta.
  • Claude Sonnet 5.5Passes with caveats

    Got it right with DuckDB (Lámpara Nórdica, 65,016,000) and showed the SQL and the table, but didn’t describe the file’s schema before querying.

    • 8 s
    • 113.4K tokens
    • $0.09
    • Nov 24, 2026
    What the agent answered
    **Producto que más ingresó: Lámpara Nórdica, con 65.016.000** (según los valores de `ventas.csv`, que no indican moneda).
    
    SQL que usé:
    
    ```sql
    SELECT producto, sum(unidades * precio_unitario) AS ingresos_totales
    FROM 'ventas.csv'
    GROUP BY producto
    ORDER BY ingresos_totales DESC;
    ```
    
    Resultado completo:
    
    | producto | ingresos_totales |
    |---|---|
    | Lámpara Nórdica | 65.016.000 |
    | Silla Tejida | 39.690.000 |
    | Mesa Auxiliar | 21.440.000 |
    | Jarrón de Barro | 15.912.000 |
    | Cojín de Lino | 11.859.000 |
    
    **Resumen:** Consulté `ventas.csv` con DuckDB en modo aislado, solo con acceso a ese archivo. Calculé el ingreso de cada producto como unidades × precio_unitario. No creé ningún archivo nuevo, y la carpeta sigue con `ventas.csv` como único archivo mío.

Each run: Claude Code with the skill installed, no network and in a sandbox, at version 44dfbbb of the repository. The verdict comes from a review that opens the files it left, not just its answer.

Other skills

DataTested, with caveats

Postgres Best Practices by Supabase

Supabase

Postgres rules with bad and good SQL examples: indexes, RLS, connections, locks and pagination.

  • 3.1K
  • 496.9K
  • MIT
DataTested, with caveats

Data Visualization by Anthropic

Anthropic

Picks the right chart and builds it in Python, with clear axes and colorblind-safe colors.

  • 36.8K
  • 15.4K
  • Apache-2.0

See all 24 skills