duckdb-docs
Skill598 starsChanged 8 months agoMITView on GitHub
Search DuckDB and DuckLake documentation and blog posts. Returns relevant doc chunks for a question or keyword using full-text search against a locally cached index.
3 other projects use a version of this; 2 new projects in the last 4 weeks, against 0 the 4 before.
Adopted by
Surging: 2 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Most recently taken up by
- justmytwospence/strava-mcpword for word, first seen Nov 8, 2026
- prdlk/skillsword for word, first seen Nov 1, 2026
- srimon12/duckdb-2-skillstheir own version, first seen Oct 25, 2026
Other versions3 projects use a version of this.
Word for word · 2
- prdlk/skills★ 1100% same
- justmytwospence/strava-mcp★ 0100% same
Edited · 0
None found.
Wrote their own version · 1
- srimon12/duckdb-2-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository8 other files it gives its agents.
- attach-dbSkill
- convert-fileSkill
- install-duckdbSkill
- querySkill
- read-fileSkill
- read-memoriesSkill
- s3-exploreSkill
- spatialSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 4 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Follow these steps in order.
- Very specific: line 23
If not found, delegate to /duckdb-skills:install-duckdb and then continue.
- Distinctive: line 31
If this fails, report the error and stop.
- Distinctive: line 63
When unsure, omit the version filter to search across all versions.
- Distinctive: line 67
If the input is a natural language question (e.g.
- Very specific: line 69
If the input is already a function name or technical term (e.g.
- Very specific: line 71
Use the extracted terms as SEARCH_QUERY in the next step.
- Very specific: line 130
If the user's question could benefit from both DuckDB docs and blog results, run two queries (one with version = 'stable', one with version …
- Very specific: line 151
After presenting all chunks, synthesize a concise answer to the user's original question ($@) based on the retrieved documentation.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
You are helping the user find relevant DuckDB or DuckLake documentation.
Query: $@
Follow these steps in order.
Step 1 — Check DuckDB is installed
command -v duckdbIf not found, delegate to /duckdb-skills:install-duckdb and then continue.
Step 2 — Ensure required extensions are installed
duckdb :memory: -c "INSTALL httpfs; INSTALL fts;"If this fails, report the error and stop.
Step 3 — Choose the data source and extract search terms
The query is: $@
Data source selection
There are two search indexes available:
| Index | Remote URL | Local cache filename | Versions | Use when |
| DuckDB docs + blog | https://duckdb.org/data/docs-search.duckdb | duckdb-docs.duckdb | lts, current, blog | Default — any DuckDB question |
| DuckLake docs | https://ducklake.select/data/docs-search.duckdb | ducklake-docs.duckdb | stable, preview | Query mentions DuckLake, catalogs, or DuckLake-specific features |
Both indexes share the same schema:
| Column | Type | Description |
chunk_id | VARCHAR (PK) | e.g. stable/sql/functions/numeric#absx |
page_title | VARCHAR | Page title from front matter |
section | VARCHAR | Section heading (null for page intros) |
breadcrumb | VARCHAR | e.g. SQL > Functions > Numeric |
url | VARCHAR | URL path with anchor |
version | VARCHAR | See table above |
text | TEXT | Full markdown of the chunk |
By default, search DuckDB docs and filter to version = 'lts'. Use different versions when:
- The user explicitly asks about
current/nightly features →version = 'current' - The user asks about a blog post or wants background/motivation →
version = 'blog' - The user asks about DuckLake → search the DuckLake index with
version = 'stable' - When unsure, omit the version filter to search across all versions.
Search terms
If the input is a natural language question (e.g. "how do I find the most frequent value"), extract the key technical terms (nouns, function names, SQL keywords) to form a compact BM25 query string. Drop stop words like "how", "do", "I", "the".
If the input is already a function name or technical term (e.g. arg_max, GROUP BY ALL), use it as-is.
Use the extracted terms as SEARCH_QUERY in the next step.
Step 4 — Ensure local cache is fresh
The cache lives at $HOME/.duckdb/docs/CACHE_FILENAME (where CACHE_FILENAME is duckdb-docs.duckdb or ducklake-docs.duckdb per Step 3).
First, ensure the directory exists:
mkdir -p "$HOME/.duckdb/docs"Then check whether the cache file exists and is fresh (≤2 days old):
CACHE_FILE="$HOME/.duckdb/docs/CACHE_FILENAME"
if [ -f "$CACHE_FILE" ]; then
MTIME=$(stat -f %m "$CACHE_FILE" 2>/dev/null || stat -c %Y "$CACHE_FILE")
CACHE_AGE_DAYS=$(( ( $(date +%s) - MTIME ) / 86400 ))
else
CACHE_AGE_DAYS=999
fi
echo "Cache age: $CACHE_AGE_DAYS days"If CACHE_AGE_DAYS ≤ 2 → skip to Step 5.
Otherwise (stale or missing) → fetch the index:
duckdb -c "
LOAD httpfs;
LOAD fts;
ATTACH 'REMOTE_URL' AS remote (READ_ONLY);
ATTACH '$HOME/.duckdb/docs/CACHE_FILENAME.tmp' AS tmp;
COPY FROM DATABASE remote TO tmp;
" && mv "$HOME/.duckdb/docs/CACHE_FILENAME.tmp" "$HOME/.duckdb/docs/CACHE_FILENAME"Replace REMOTE_URL and CACHE_FILENAME per Step 3. If the fetch fails (network error), report the error and stop.
Step 5 — Search the docs
duckdb "$HOME/.duckdb/docs/CACHE_FILENAME" -readonly -json -c "
LOAD fts;
SELECT
chunk_id, page_title, section, breadcrumb, url, version, text,
fts_main_docs_chunks.match_bm25(chunk_id, 'SEARCH_QUERY') AS score
FROM docs_chunks
WHERE score IS NOT NULL
AND version = 'VERSION'
ORDER BY score DESC
LIMIT 8;
"Replace CACHE_FILENAME, SEARCH_QUERY, and VERSION per Step 3. Remove the AND version = 'VERSION' line if searching across all versions.
If the user's question could benefit from both DuckDB docs and blog results, run two queries (one with version = 'stable', one with version = 'blog') or omit the version filter entirely.
Step 6 — Handle errors
- Extension not installed (
httpfsorftsnot found): runduckdb :memory: -c "INSTALL httpfs; INSTALL fts;"and retry. - ATTACH fails / network unreachable: inform the user that the docs index is unavailable and suggest checking their internet connection. The DuckDB index is hosted at
https://duckdb.org/data/docs-search.duckdband the DuckLake index athttps://ducklake.select/data/docs-search.duckdb. - No results (all scores NULL or empty result set): try broadening the query — drop the least specific term, or try a single-word version of the query — then retry Step 5. If still no results, tell the user no matching documentation was found and suggest visiting https://duckdb.org/docs or https://ducklake.select/docs directly.
Step 7 — Present results
For each result chunk returned (ordered by score descending), format as:
### {section} — {page_title}
{url}
{text}
---After presenting all chunks, synthesize a concise answer to the user's original question ($@) based on the retrieved documentation. If the chunks directly answer the question, lead with the answer before showing the sources.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

