Modeler
sidequery/sidemantic
Build, validate, and manage semantic models using Sidemantic.
Attach a DuckDB database file for use with /duckdb-skills:query.
$ npx skills add duckdb/duckdb-skills --skill attach-db -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install duckdb/duckdb-skills attach-db --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/duckdb/duckdb-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/attach-db .claude/skills/attach-db && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "attach-db" agent skill from https://github.com/duckdb/duckdb-skills/tree/main/skills/attach-db into .claude/skills/attach-db/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "attach-db", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/duckdb/duckdb-skills/tree/main/skills/attach-dbType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add duckdb/duckdb-skills --skill attach-db -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install duckdb/duckdb-skills attach-db --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/duckdb/duckdb-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/attach-db .agents/skills/attach-db && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "attach-db" agent skill from https://github.com/duckdb/duckdb-skills/tree/main/skills/attach-db into .agents/skills/attach-db/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "attach-db", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add duckdb/duckdb-skills --skill attach-db -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install duckdb/duckdb-skills attach-db --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/duckdb/duckdb-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/attach-db .cursor/skills/attach-db && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "attach-db" agent skill from https://github.com/duckdb/duckdb-skills/tree/main/skills/attach-db into .cursor/skills/attach-db/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "attach-db", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/duckdb/duckdb-skills.git --path skills/attach-db--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add duckdb/duckdb-skills --skill attach-db -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install duckdb/duckdb-skills attach-db --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/duckdb/duckdb-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/attach-db .gemini/skills/attach-db && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "attach-db" agent skill from https://github.com/duckdb/duckdb-skills/tree/main/skills/attach-db into .gemini/skills/attach-db/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "attach-db", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install duckdb/duckdb-skills attach-dbInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add duckdb/duckdb-skills --skill attach-db -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/duckdb/duckdb-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/attach-db .github/skills/attach-db && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "attach-db" agent skill from https://github.com/duckdb/duckdb-skills/tree/main/skills/attach-db into .github/skills/attach-db/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "attach-db", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add duckdb/duckdb-skills --skill attach-db -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install duckdb/duckdb-skills attach-db --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/duckdb/duckdb-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/attach-db .opencode/skills/attach-db && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "attach-db" agent skill from https://github.com/duckdb/duckdb-skills/tree/main/skills/attach-db into .opencode/skills/attach-db/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "attach-db", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
attach-dbAttach a DuckDB database file for use with /duckdb-skills:query.
Attach DB is an agent skill from duckdb/duckdb-skills, published by the product's own GitHub organization. Attach a DuckDB database file for use with /duckdb-skills:query. Explores the schema (tables, columns, row counts) and writes a SQL state file so subsequent queries can restore this session automatically via duckdb -init.
Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Databases, covering SQL. It works with DuckDB and SQL. The licence is MIT.
8 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 7feda8e. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
BashFrom allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
duckdbgitFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Attach DB loads about 1.2k tokens when it runs. Until then it costs about 58 tokens; SKILL.md has 454 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
allowed-tools: BashAutomated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from duckdb/duckdb-skills at commit 7feda8e, republished under its MIT licence (© duckdb). 454 words, ~1,195 tokens.
.claude/skills/attach-db/SKILL.md (or your agent's skills folder).You are helping the user attach a DuckDB database file for interactive querying.
Database path given: $0
Follow these steps in order, stopping and reporting clearly if any step fails.
State file convention: see the "Resolve state directory" section below. All skills share a single state.sql file per project. Once resolved, any skill can use it with duckdb -init "$STATE_DIR/state.sql" -c "<QUERY>".
If $0 is a relative path, resolve it against $PWD to get an absolute path (RESOLVED_PATH).
RESOLVED_PATH="$(cd "$(dirname "$0")" 2>/dev/null && pwd)/$(basename "$0")"Check the file exists:
test -f "$RESOLVED_PATH"command -v duckdbIf not found, delegate to /duckdb-skills:install-duckdb and then continue.
duckdb "$RESOLVED_PATH" -c "PRAGMA version;"First, list all tables:
duckdb "$RESOLVED_PATH" -csv -c "
SELECT table_name, estimated_size
FROM duckdb_tables()
ORDER BY table_name;
"If the database has no tables, note that it is empty and skip to Step 5.
For each table discovered (up to 20), run:
duckdb "$RESOLVED_PATH" -csv -c "
DESCRIBE <table_name>;
SELECT count() AS row_count FROM <table_name>;
"Collect the column definitions and row counts for the summary.
Check if a state file already exists in either location:
# Option 1: in the project directory
test -f .duckdb-skills/state.sql && STATE_DIR=".duckdb-skills"
# Option 2: in the home directory, scoped by project root path
PROJECT_ROOT="$(git rev-parse --show-toplevel 2>/dev/null || echo "$PWD")"
PROJECT_ID="$(echo "$PROJECT_ROOT" | tr '/' '-')"
test -f "$HOME/.duckdb-skills/$PROJECT_ID/state.sql" && STATE_DIR="$HOME/.duckdb-skills/$PROJECT_ID"If neither exists, ask the user:
Where would you like to store the DuckDB session state for this project?
- In the project directory (
.duckdb-skills/state.sql) — colocated with the project, easy to find. You can choose to gitignore it.- In your home directory (
~/.duckdb-skills/<project-id>/state.sql) — keeps the project directory clean.
Based on their choice:
Option 1:
STATE_DIR=".duckdb-skills"
mkdir -p "$STATE_DIR"Then ask: "Would you like to gitignore .duckdb-skills/?" If yes:
echo '.duckdb-skills/' >> .gitignoreOption 2:
PROJECT_ROOT="$(git rev-parse --show-toplevel 2>/dev/null || echo "$PWD")"
PROJECT_ID="$(echo "$PROJECT_ROOT" | tr '/' '-')"
STATE_DIR="$HOME/.duckdb-skills/$PROJECT_ID"
mkdir -p "$STATE_DIR"state.sql is a shared, accumulative init file used by all duckdb-skills. It may already contain macros, LOAD statements, secrets, or other ATTACH statements written by other skills. Never overwrite it — always check for duplicates and append.
Derive the database alias from the filename without extension (e.g. my_data.duckdb → my_data). Check if this ATTACH already exists:
grep -q "ATTACH.*RESOLVED_PATH" "$STATE_DIR/state.sql" 2>/dev/nullIf not already present, append:
cat >> "$STATE_DIR/state.sql" <<'STATESQL'
ATTACH IF NOT EXISTS 'RESOLVED_PATH' AS my_data;
USE my_data;
STATESQLReplace RESOLVED_PATH and my_data with the actual values. If the alias would conflict with an existing one in the file, ask the user for a name.
duckdb -init "$STATE_DIR/state.sql" -c "SHOW TABLES;"If this fails, fix the state file and retry.
Summarize for the user:
STATE_DIR/state.sql path/duckdb-skills:queryIf the database is empty, suggest creating tables or importing data.
© duckdb, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/attach-db of duckdb/duckdb-skills.
Open the folder on GitHubat commit 7feda8e
We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in duckdb/duckdb-skills, which our catalogue first saw on October 7, 2026.
Attach DB next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Attach DB this skillduckdb/duckdb-skills | 599 | 1 repos | ~1.2k | Automated safety check: Notes | MIT | |
| Modelersidequery/sidemantic | 129 | — | ~4.2k | Automated safety check: Pass | Apache-2.0 | |
| Semantic Analystsidequery/sidemantic | 129 | — | ~982 | Automated safety check: Pass | AGPL-3.0 | |
| Ops Telemetry Queryboundless-xyz/boundless | 193 | — | ~3.8k | Automated safety check: Pass | Apache-2.0 | |
| Matlab Use Databasematlab/matlab-agentic-toolkit | 1.1k | — | ~3.1k | Automated safety check: Pass | Custom licence | |
| Matlab Use Duckdbmatlab/matlab-agentic-toolkit | 1.1k | — | ~3.9k | Automated safety check: Pass | Custom licence |
sidequery/sidemantic
Build, validate, and manage semantic models using Sidemantic.
sidequery/sidemantic
Answer analytical, KPI, metric, trend, cohort, and business-performance questions through a Sidemantic semantic layer.
boundless-xyz/boundless
Internal — for Boundless team members only. An agent skill from boundless-xyz/boundless.
matlab/matlab-agentic-toolkit
Reads from, writes to, and manages relational databases using MATLAB Database Toolbox.
matlab/matlab-agentic-toolkit
Use DuckDB from MATLAB via Database Toolbox (R2026a+) as a non-math operations engine on large tabular files (CSV/Parquet/JSON) and as a zero-config embedded database.
ericrisco/rsc-harness
A skill your agent uses when writing or reviewing advanced SQL query logic independent of any one engine — multi-table joins, window functions, CTEs including recursive ones, GROUP BY and GROUPING…
duckdb/duckdb-skills
Answer questions about spatial data using DuckDB. An agent skill from duckdb/duckdb-skills.
duckdb/duckdb-skills
Convert any data file to another format: CSV, Parquet, JSON, Excel, GeoJSON, and more.
duckdb/duckdb-skills
Explore and query data on S3, Cloudflare R2, GCS, MinIO, or any S3-compatible storage.
duckdb/duckdb-skills
Read any data file (CSV, JSON, Parquet, Avro, Excel, spatial, SQLite) or remote URL (S3, HTTPS).
duckdb/duckdb-skills
Search DuckDB and DuckLake documentation and blog posts. An agent skill from duckdb/duckdb-skills.
duckdb/duckdb-skills
Run SQL queries against the attached DuckDB database or ad-hoc against files.
Categories
Attach a DuckDB database file for use with /duckdb-skills:query. Attach DB is an agent skill from duckdb/duckdb-skills, published by the product's own GitHub organization. Attach a DuckDB database file for use with /duckdb-skills:query.
Attach DB fits situations like: tasks that involve SQL.
Run `npx skills add duckdb/duckdb-skills --skill attach-db -a claude-code`. Or copy the skill folder (skills/attach-db in duckdb/duckdb-skills) into .claude/skills/attach-db in your project. Claude Code loads it when a task matches its description.
Run `npx skills add duckdb/duckdb-skills --skill attach-db -a codex`. Or copy the skill folder (skills/attach-db in duckdb/duckdb-skills) into .agents/skills/attach-db in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add duckdb/duckdb-skills --skill attach-db -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/attach-db, .gemini/skills/attach-db, .github/skills/attach-db and .opencode/skills/attach-db in your project.
Going by SKILL.md and its folder, Attach DB needs the command-line tools its instructions call (duckdb and git). Its frontmatter pre-approves these tools: Bash.
SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
Attach DB is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.2k tokens (SKILL.md is roughly 4.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Attach DB: Modeler (sidequery/sidemantic, 129 stars), Semantic Analyst (sidequery/sidemantic, 129 stars), Ops Telemetry Query (boundless-xyz/boundless, 193 stars) and Matlab Use Database (matlab/matlab-agentic-toolkit, 1.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
duckdb (a GitHub organization, an official publisher) maintains it in duckdb/duckdb-skills, which has 599 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on April 23, 2026.
Source: duckdb/duckdb-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.