/major-ai-skills:duckdbfrom major-ai-skills
Run embedded OLAP SQL on Parquet/CSV locally; configure memory and thread limits; attach remote files safely; export with COPY; avoid multi-writer locks and treating DuckDB as a production server database.
Ships in major-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
DuckDB is an embedded columnar OLAP engine: runs in-process (Python/R/JDBC/CLI), vectorized execution, reads Parquet/CSV/JSON directly without a server. Ideal for notebooks, CI data checks, and local lake queries—not a substitute for fleet-scale warehouse serving.
Parquet/CSV/S3 (httpfs)
-> DuckDB in-process
-> SQL (join/window/aggregate)
-> Arrow/DataFrame / COPY export
Optional .duckdb file for persistent views
Use when
@dbt on Snowflake/BigQueryDo not use when
@postgresql, @snowflake)@spark or warehousehttpfs credential scope.duckdb file; use read_only connections for parallel readers; avoid NFS locking surprises.INSTALL httpfs; LOAD httpfs; only when needed; secrets via env vars (AWS_*), never committed keys.read_parquet; use EXPLAIN ANALYZE on slow queries.PRAGMA threads=N; PRAGMA memory_limit='4GB'; on shared CI runners to prevent OOM kills.union_by_name=true on multi-file Parquet; explicit casts in views for stable contracts..duckdb is a file—copy while no writer or use export; Parquet lake remains source of truth for immutable pipelines.INSTALL httpfs; LOAD httpfs;
SELECT
customer_id,
date_trunc('month', created_at) AS month,
sum(amount) AS revenue,
count(*) AS orders
FROM read_parquet('data/orders/*.parquet', union_by_name=true)
WHERE created_at >= DATE '2025-01-01'
GROUP BY 1, 2
ORDER BY revenue DESC;
ATTACH 'analytics.duckdb' AS meta;
CREATE OR REPLACE VIEW meta.orders AS
SELECT * FROM read_parquet('data/orders/*.parquet');
COPY (
SELECT customer_id, sum(amount) AS revenue
FROM read_parquet('data/orders/*.parquet')
GROUP BY 1
) TO 'out/revenue.parquet' (FORMAT PARQUET);
import duckdb
con = duckdb.connect("analytics.duckdb", read_only=False)
con.execute("PRAGMA memory_limit='4GB'")
df = con.execute("SELECT count(*) FROM read_parquet('data/orders/*.parquet')").fetchdf()
| Failure signature | Root cause | Diagnostic & fix |
|---|---|---|
Binder Error on UNION files | Schema drift | union_by_name; cast in view |
| OOM on join | Large hash join | Filter first; raise memory_limit; sample |
| Database locked | Second writer | Single writer; read_only readers |
| Slow full scan | Reading all columns | Select subset; partition filters on paths |
| S3 403 | Missing creds/role | Fix env; scope IAM read-only |
| Wrong row counts vs prod | Stale local files | Pin snapshot paths; checksum inputs |
.duckdb views in git as SQL scripts, not binary blobs when possible.@polars / @pandas for visualization only.@polars — DataFrame engine on same files@snowflake — promote vetted SQL to warehouse@dbt — versioned transform layerMANDATORY: Set memory/thread pragmas in CI scripts. Never embed cloud secrets in SQL files. Do not propose DuckDB as the production OLTP or multi-tenant serving database without explicit requirements.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alivirgo/major-ai-skills --plugin major-ai-skills412 skills in this plugin
/3d-slicerAutomate 3D Slicer research workflows with MRML, VTK/ITK, DICOM data, and Segment Editor. Use for software workflows, not clinical interpretation./abbreviated-git-statusInspect Git branch, staging, and working-tree changes with short or porcelain status output when a compact repository check is needed./ableton-liveAutomate Ableton Live sessions with Python MIDI Remote Scripts, Max for Live, AbletonOSC, and Link synchronization./act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.Other plugins' skills for the same job