duckdb
Query and export CSV, Parquet, JSON, or SQLite data with DuckDB.
Skill by Médéric HURIER (Fmind)
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/fmind-duckdb
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: spreadsheets, data
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/duckdb
What's inside
- Skill name
duckdb- Description
- Query and export CSV, Parquet, JSON, or SQLite data with DuckDB.
- License
- MIT
- Metadata
- kind: connector · author: Médéric HURIER (Fmind) · source: github.com/fmind/dot/tree/main/skills/duckdb · created: 2026-09-02 · updated: 2026-10-24
- Instructions
- 55 lines in SKILL.md · view on GitHub
Files (2)
- SKILL.md
- remote-storage.md · references/
SKILL.md (first lines)
# DuckDB and SQLite
DuckDB is the default engine for local analysis: it reads CSV, Parquet, and JSON directly, attaches SQLite files, and writes any of them back. SQLite stays the embedded store for applications; DuckDB is the tool you point at data.
## Commands
```bash
duckdb -no-init -batch -bail -c "SELECT name, score FROM 'people.csv' WHERE score > 80 ORDER BY score DESC, name LIMIT 20"
duckdb -no-init -batch -bail -json -c "SELECT count(*) AS event_count FROM 'events/*.json'" # aggregate before displaying
duckdb -no-init -batch -bail lab.duckdb -c "CREATE OR REPLACE TABLE people AS FROM 'people.csv'"
duckdb -no-init -batch -bail -c "COPY (FROM 'people.csv') TO 'people.parquet'" # durable derived data
duckdb -no-init -batch -bail -c "ATTACH 'app.sqlite' AS s (TYPE sqlite, READ_ONLY); SELECT count(*) FROM s.users"
duckdb -no-init -batch -bail -c "SUMMARIZE FROM 'people.parquet'" # column statistics
sqlite3 -init /dev/null -batch -bail -readonly app.sqlite '.schema'
sqlite3 -init /dev/null -batch -bail -noheader -list -readonly app.sqlite 'PRAGMA integrity_check'
```
Both interactive and batch invocations can load `~/.duckdbrc` or `~/.sqliterc`, including executable SQL and dot commands; this workstation ships neither, but other machines may. For reproducible scripts, skip those files (`duckdb -no-init`, `sqlite3 -init /dev/null`), stop on errors with `-batch -bail`, and select output explicitly with `-json`, `-csv`, or `-markdown`; an output-mode flag alone does not suppress initialization. Without an output mode, DuckDB 2.0 detects an agent's environment and renders compact Markdown with a row cap, row count, and result hash, plus JSON errors; keep that for previews and pass an explicit mode (or `-no-agent`) for machine output. SQLite integrity checks return rows: require `ok`, because a successful process exit alone does not establish integrity.
## Workflow
1. **Look before querying**: `DESCRIBE FROM '<file>'` and `SUMMARIZE` reveal types, nulls, and ranges; fix a wrong inference with `read_csv('<file>', types={'id': 'BIGINT'})`.
1. **Bound displayed results**: project needed columns, filter rows, and aggregate before returning data. Use an ordered `LIMIT` for a preview and label it as partial; calculate totals over the full filtered set. Export complete results with `COPY` when needed instead of printing every row.
1. **Keep queries in files**: `duckdb -no-init -batch -bail -f analysis.sql` for anything longer than one line, committed next to the data description.
1. **Persist derived data as Parquet**: keep rebuildable `.duckdb` files out of Git and commit the SQL that produces them; use `-readonly` for inspection of an existing database.
1. **Export for the reader**: `-markdown` for a report, `-json` for another tool, `COPY ... TO 'out.csv' (HEADER)` for a spreadsheet.
Analysis and export alone do not establish migration or recovery safety for an application schema or persisted format.
## Gotchas
- **Keep DuckDB off live SQLite databases**: do not open one while the app writes to it; use a consistent SQLite backup or `sqlite3 -readonly` directly. A plain copy of the main file can omit committed WAL data; use SQLite's backup API or `.backup` for a snapshot. `ATTACH ... (TYPE sqlite)` autoinstalls the `sqlite` extension, which needs network the first time.
- **Pin storage for 1.x readers**: DuckDB 2.0 writes the v2.0.0 storage format by default (`duckdb_databases()` tags it `storage_version=v2.0.0+`), which 1.x cannot open; create the file with `-storage-version v1.5.6` (or `ATTACH ... (STORAGE_VERSION 'v1.5.6')`) when a 1.x process such as an older Python `duckdb` must read it.
- **Glob paths quote as strings**: `'events/*.parquet'` works, unquoted paths do not.
- **Size memory and spill conservatively**: size the budget from available RAM and disk; start conservatively on a shared machine, for example `SET memory_limit='256MB'` and `SET threads=1`, then measure. Many operators spill to disk, but `memory_limit` is not a process-wide hard limit and some allocations or operators can still exhaust memory. Set a task-owned temporary directory and `max_temp_directory_size` when spill volume matters; preserve the workstation's required disk headroom.
## Task guides
<!-- guides:start -->
- [remote-storage](references/remote-storage.md): Remote object storage (S3, GCS, HTTP) and extensions: install, load, and credential providers.
<!-- guides:end -->
## Official Skills
Upstream: `duckdb/duckdb-skills`, with separate selections for querying, file formats, attached databases, spatial, S3, and documentation lookup. Follow the shared [vendor-skill policy](../agent-project/references/vendor-skills.md).
## Documentation
- [DuckDB CLI](https://duckdb.org/docs/stable/clients/cli/overview) · [SQLite CLI](https://sqlite.org/cli.html)
- Releases: [DuckDB](https://github.com/duckdb/duckdb/releases) · [SQLite changes](https://sqlite.org/changes.html)
- Companion skills: [python-script](../python-stack/references/python-script/GUIDE.md) (a one-file pipeline when SQL is not enough), [python-stack](../python-stack/references/foundation/GUIDE.md) (typed application data access and embedded SQLite).From fmind/dot, MIT.
More from fmind/dot
- 0.636score
code-security
Médéric HURIER (Fmind)
Review code security, threat-model designs, and vet third-party skills; scan secrets and vulnerabilities with Gitleaks and Trivy.
SkillAFreshness: A★ 12Claude Code +9 - 0.636score
dot-cli
Médéric HURIER (Fmind)
Run dot: doctor, login/setup, repo status/pull, trust, secret run, cache/prune, disk space, orphans, context budgets, archives.
SkillAFreshness: A★ 12Claude Code +9 - 0.636score
full-review
Médéric HURIER (Fmind)
Full review or routine upkeep: read every repo area, fix tools, dead code, stale config, and ignore files, and prove all checks pass.
SkillAFreshness: A★ 12Claude Code +9 - 0.633score
course-development
Médéric HURIER (Fmind)
Design technical courses, lessons, exercises, and executable labs.
SkillAFreshness: A★ 12Claude Code +9 - 0.633score
chezmoi
Médéric HURIER (Fmind)
Manage chezmoi source names, templates, secrets, diffs, and deployment in fmind/dot.
SkillAFreshness: A★ 12Claude Code +9 - 0.633score
dot-skills
Médéric HURIER (Fmind)
Maintain fmind/dot skill packages, catalog budgets, package contracts, and installed links.
SkillAFreshness: A★ 12Claude Code +9 - 0.633score
agent-frameworks
Médéric HURIER (Fmind)
Build Python agents with Google ADK, LangChain, LangGraph, and agents-cli.
SkillAFreshness: A★ 12Claude Code +9 - 0.633score
agent-evaluation
Médéric HURIER (Fmind)
Evaluate prompt, model, retrieval, and agent changes with repeated graded trials.
SkillAFreshness: A★ 12Claude Code +9 - 0.633score
agent-harnesses
Médéric HURIER (Fmind)
Operate and configure Claude Code, Codex, Copilot, Grok, and OpenCode.
SkillAFreshness: A★ 12Claude Code +9 - 0.633score
agent-protocols
Médéric HURIER (Fmind)
Implement A2A agents, MCP servers, and ACP editor integrations in Python.
SkillAFreshness: A★ 12Claude Code +9 - 0.633score
agent-usage
Médéric HURIER (Fmind)
Analyze agent token usage and costs with dot and DuckDB queries.
SkillAFreshness: A★ 12Claude Code +9 - 0.633score
dot-development
Médéric HURIER (Fmind)
Develop fmind/dot CLI commands, session parsers, storage, configuration, and installation.
SkillAFreshness: A★ 12Claude Code +9
Compare and alternatives
Featured in
Signals
- Stars
- 12
- Forks
- 1
- Open issues
- 0
- Last commit (this folder)
- Oct 24, 2026 (3 days ago)
- Last release
- Oct 24, 2026 (3 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/fmind/dot
- Website
- fmind.dev
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Médéric HURIER (Fmind)
- 0.636score
full-review
Médéric HURIER (Fmind)
Full review or routine upkeep: read every repo area, fix tools, dead code, stale config, and ignore files, and prove all checks pass.
SkillAFreshness: A★ 12Claude Code +9 - 0.636score
dot-cli
Médéric HURIER (Fmind)
Run dot: doctor, login/setup, repo status/pull, trust, secret run, cache/prune, disk space, orphans, context budgets, archives.
SkillAFreshness: A★ 12Claude Code +9 - 0.636score
code-security
Médéric HURIER (Fmind)
Review code security, threat-model designs, and vet third-party skills; scan secrets and vulnerabilities with Gitleaks and Trivy.
SkillAFreshness: A★ 12Claude Code +9 - 0.633score
agent-frameworks
Médéric HURIER (Fmind)
Build Python agents with Google ADK, LangChain, LangGraph, and agents-cli.
SkillAFreshness: A★ 12Claude Code +9 - 0.633score
chezmoi
Médéric HURIER (Fmind)
Manage chezmoi source names, templates, secrets, diffs, and deployment in fmind/dot.
SkillAFreshness: A★ 12Claude Code +9 - 0.633score
dot-skills
Médéric HURIER (Fmind)
Maintain fmind/dot skill packages, catalog budgets, package contracts, and installed links.
SkillAFreshness: A★ 12Claude Code +9
Cite this page
duckdb skill. Agent Mart. https://agentmart.dev/skills/fmind-duckdb (last updated 2026-10-24)