duckdb

duckdb is a skill for Claude Code, Codex from eSlider/2dph. It costs 76 tokens per session (435 once invoked), scanned A, original, MIT.

A coding guide for using DuckDB inside Go programs to analyze column-based data such as CSV, JSON, JSONL, and Parquet files. DuckDB is an embedded database suited to scans, counts, grouping, and quantiles.

In plain words
What is it for?
Use it for SQL-based analytics over tabular data, including counts, grouped summaries, quantiles, and JSONL or Parquet scans in Go.
Why use it?
It avoids slower hand-written loops when aggregating many rows or files and keeps DuckDB separate from the project's other storage systems.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is CC=gcc CXX=g++ CGO_CFLAGS= CGO_LDFLAGS= ./bin/jsonl/stats.go <<< '[1,2,3,4,5]'.

Good fit Use it for SQL-based analytics over tabular data, including counts, grouped summaries, quantiles, and JSONL or Parquet scans in Go.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/eSlider/2dph
agentmods
npx agentmods add skills/eslider/2dph/duckdb

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for duckdb

README.md
[![agentmods](https://agentmods.dev/badge/skills/eslider/2dph/duckdb/github.svg)](https://agentmods.dev/skills/eslider/2dph/duckdb)
Your own site
<a href="https://agentmods.dev/skills/eslider/2dph/duckdb"><img src="https://agentmods.dev/badge/skills/eslider/2dph/duckdb/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for duckdb

Your own site · 80×15
<a href="https://agentmods.dev/skills/eslider/2dph/duckdb"><img src="https://agentmods.dev/badge/skills/eslider/2dph/duckdb.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 435 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00076 $0.00435
Opus 5.5 $0.00030 $0.00174
Sonnet 5.5 $0.00015 $0.00087
Haiku 4.5 $0.00008 $0.00044

Measured 23d ago against content hash 9997970c2872, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

duckdb scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 23d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/duckdb/SKILL.md · 39 lines

What it actually says

duckdb-go

Use https://github.com/duckdb/duckdb-go where it makes sense to get better performance in code.

In-process DuckDB (pkg/duckdb, database/sql driver duckdb). Vectorized SQL over tables, JSONL, CSV, Parquet. CGO with bundled libs (linux/darwin amd64/arm64). Links with gcc/g++ (libstdc++), not Zig. D21 Zig (bin/cgo/zcc) is Ladybug/tokenizers only. After eval "$(bin/cgo/zig env)":

CC=gcc CXX=g++ CGO_CFLAGS= CGO_LDFLAGS= ./bin/jsonl/stats.go <<< '[1,2,3,4,5]'
CC=gcc CXX=g++ CGO_CFLAGS= CGO_LDFLAGS= go test ./pkg/duckdb
Store Job
Ladybug graph + FTS + IVF ANN (facts/info)
modernc sqlite web-search KV cache + throttle
duckdb-go OLAP: quantiles, counts, scans of many rows/files
mikefarah/yq small YAML/JSON/XML/CSV/TOML/HCL slice, not bulk
./bin/jsonl/stats.go <<< '[1,2,3,4,5]'
./bin/jsonl/stats.go --jsonl path/to/rows.jsonl

Do not open Ladybug through DuckDB. Do not put secrets or client PII into DuckDB files under the repo.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 23d ago Changed 9997970c2872
  2. 3mo ago First seen · 39 lines · 76 tokens per session scan A 3fd378e2c567

Subscribe to this mod's changes

duckdb is a skill published in the GitHub repository eSlider/2dph (3 stars, last pushed 23d ago), licensed MIT. It adds 76 tokens to every session and 435 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

duckdb compared with skills from other repositories

duckdb next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
duckdbeSlider/2dphSkill323d agoMITA76Claude Code, Codex
omnigraphModernRelay/omnigraphSkill3.4ktodayMITA107Claude Code, Codex
sql-root-cause-analysiszj-unicom-ai/UniEmployeeSkill920yesterdayMITA47Claude Code, Codex
fetch-dataagentscope-ai/QwenPaw-DataSkill212yesterdayApache-2.0A286Claude Code, Codex
dkg-importerOriginTrail/dkgSkill135yesterdayApache-2.0A87Claude Code, Codex
hugegraph-regression-testerapache/hugegraph-aiSkill1504d agoApache-2.0A54Codex
hugegraph-data-importerapache/hugegraph-aiSkill1504d agoApache-2.0A62Codex