duckdb
БесплатноБез исполняемых скриптовНе проверенUse when analytical SQL must run in-process with no server: Parquet/CSV/JSON/Arrow queried in place, OLAP embedded in an app or notebook, a slow pandas…
от lza6★ 19 звёзд на GitHubОб этом скилле
DuckDB — embedded columnar OLAP, no server
DuckDB is an in-process analytical (OLAP) database: it links into your process like SQLite, but stores
data column-by-column and vectorizes execution for aggregates, joins, and window functions. There is no
server, no port, no daemon — you pip install duckdb (or drop one CLI binary) and query. Its killer move
is reading Parquet/CSV/JSON/Arrow in place, without a load step, so a folder of files becomes a table.
The fact that drives every routing decision below: DuckDB is one writer, many readers, single process. It is brilliant for analysis on one machine and wrong for multi-user serving or transactional app writes.
Latest stable is v1.5.3 (released 2026-05-20). Pin the LTS line (v1.4.x; v1.4.4 LTS shipped 2026-01-26) for anything long-lived — LTS gets ~1 year of patches and a stable storage format. Use 1.5.x for greenfield exploration.
Is DuckDB the tool? (decide first)
| Your workload | Reach for |
|---|---|
| Analytics over local/remote files, one process, one writer | duckdb (this skill) |
| Many concurrent users, production query API, dashboards-as-a-service, petabyte scale | clickhouse-analytics |
| App transactional CRUD: users, orders, many small writes, FKs, connection pool | postgresdb |
| Embedded single-file transactional store / edge / sync | sqlite-turso |
| Pure SQL syntax question, engine-agnostic (window fns, CTEs) | sql |
| Similarity / embedding search as the core workflow | vector-db |
The two you will confuse most: DuckDB vs ClickHouse is embedded-single-node vs server-distributed — under ~10GB on one box DuckDB usually wins; pick ClickHouse when many people query concurrently. DuckDB vs SQLite is same niche, opposite workload — both embedded single-file, but SQLite is row-store OLTP and DuckDB is column-store OLAP. Don't run your app's writes through DuckDB.
Install & version
# Python (replacement-scan + relational API)
pip install 'duckdb==1.4.4' # LTS, for long-lived projects — stable storage format + patches
pip install duckdb # current stable, for greenfield exploration
# CLI (single static binary)
curl https://install.duckdb.org | sh # or: brew install duckdb
duckdb -version
Why pin LTS for production: the on-disk .duckdb format and extension ABI are stable within an LTS line,
so a routine upgrade won't strand a persisted database or break an installed extension mid-project.
Query files directly — the killer feature
Do not load a file into pandas just to query it. Point DuckDB at the path and let it scan only the
columns and row groups it needs (Parquet metadata pushdown). A bare string path is a replacement scan, so
FROM 'data/*.parquet' works without naming a reader.
import duckdb
# BAD: read the whole file into RAM, then aggregate in pandas
import pandas as pd
df = pd.read_parquet("sales/") # pulls every column of every file into memory
out = df.groupby("region")["amount"].sum()
# GOOD: scan in place, only the two needed columns ever touch memory
out = duckdb.sql("""
FROM 'sales/*.parquet'
SELECT region, sum(amount) AS revenue
GROUP BY ALL
ORDER BY revenue DESC
""").df()
Readers and globs you will actually use:
SELECT * FROM read_parquet('s3://bkt/y=*/m=*/*.parquet', filename = true); -- glob + source col
SELECT * FROM read_csv_auto('events.csv'); -- sniff delimiter/types/header
SELECT * FROM read_csv('raw.csv', header = false, types = {'id': 'BIGINT'}); -- when sniffing is wrong
SELECT * FROM read_json_auto('logs/*.ndjson'); -- newline-delimited or array JSON
filename = true adds a filename column — essential when a glob mixes partitions and you need to know
which file a row came from.
In-memory vs persistent
con = duckdb.connect() # in-memory: default, gone when the process exits
con = duckdb.connect("analytics.duckdb") # single file, created if absent; extension is not significant
Persist when: the dataset is reused across runs, an intermediate result is larger than RAM (DuckDB spills to the file), or you are curating a dataset to share. Otherwise stay in-memory — it is the fast path and needs no cleanup. The whole database is one file; copy it to move the database.
Python / dataframe interop
In-scope pandas/Polars/Arrow frames are queryable by variable name — that is a replacement scan, no registration needed. The relational API is lazy; nothing executes until you materialize.
import duckdb, pandas as pd
orders = pd.read_parquet("orders.parquet") # ordinary frame in local scope
rel = duckdb.sql("FROM orders SELECT region, sum(amount) AS rev GROUP BY ALL") # lazy, by name
rel.df() # -> pandas rel.pl() # -> Polars
rel.arrow(
Установить duckdb в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл duckdb?
Use when analytical SQL must run in-process with no server: Parquet/CSV/JSON/Arrow queried in place, OLAP embedded in an app or notebook, a slow pandas groupby on multi-GB data, or S3/lakehouse data read without downloading. NOT a multi-user analytics server (that is clickhouse-analytics), NOT an app's transactional CRUD store (that is postgresdb).
Как установить скилл duckdb?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл duckdb запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic