query
Skill0 starsChanged 7 days agoMITView on GitHub
Answer a question from the second brain wiki with [[wikilink]] citations and a required Gaps section, save substantial answers to 50-outputs/queries/, and offer to file new insight back into the wiki. Use when the owner asks "what do I know about X", "what does my brain say about", "compare X and Y", "summarize my notes on", asks any question that the vault might answer, or says "file that back".
39 other projects use a version of this.
Adopted by
Most recently taken up by
- aibtcdev/skillstheir own version, first seen Nov 10, 2026
- HurricaHjz/second-yourselftheir own version, first seen Nov 9, 2026
- hydra-db/hydradb-claude-codetheir own version, first seen Nov 8, 2026
- justmytwospence/strava-mcptheir own version, first seen Nov 8, 2026
- levi-qiao/obsidian-llm-wikitheir own version, first seen Nov 8, 2026
- prdlk/skillstheir own version, first seen Nov 1, 2026
Used with
Projects with it also use attach-db, install-duckdb and 6 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
duckdbSkillattach-db
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.
Also in 3 projects that use this
carlopiSkillinstall-duckdb
Install or update DuckDB extensions. Each argument is either a plain extension name (installs from core) or name@repo (e.g. magic@community). Pass --update to update extensions instead of installing.
Also in 3 projects that use this
carlopiSkillread-file
Read and explore any data file (CSV, JSON, Parquet, Avro, Excel, spatial, …) by filename only — resolves the path automatically. Uses DuckDB + the magic extension for format auto-detection. Installs magic if needed.
Also in 4 projects that use this
seongjaeryuSkillsave
Complete and save your current thinking to Bindly
Also in 4 projects that use this
AnthropicSkillstart
Set up your bio-research environment and explore available tools. Use when first getting oriented with the plugin, checking which literature, drug-discovery, or visualization MCP servers are connected, or surveying available analysis skills before starting a new project.
Also in 4 projects that use this
MicrosoftSkilldoctor
Diagnose an Amplifier CLI environment through the CLI doctor agent. USE WHEN a user requests CLI runtime, settings or missing-capability inspection. DO NOT USE for project bugs or other hosts.
Also in 3 projects that use this
Other versions39 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 39
- garrytan/gbrain★ 33ksame name
- facebookincubator/velox★ 4.3ksame name
- jason-effi-lab/karpathy-llm-wiki-vault★ 718same name
- duckdb/duckdb-skills★ 598same name
- ArtemXTech/claude-code-obsidian-starter★ 225same name
- HurricaHjz/second-yourself★ 150same name
- HurricaHjz/SecondSelf★ 150same name
- romarayt/raytsystem-public-os★ 140same name
- StarRocks/starrocks-debug-skills★ 77same name
- MetamusicX/zissa-wiki★ 58same name
29 more not listed
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 repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- brain-reviewSkill
- captureSkill
- gap-finderSkill
- ingestSkill
- lintSkill
- projectSkill
- repairSkill
- second-brainSkill
- setupSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 3 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 32 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 11
Read index.md; pick candidate pages by title/summary.
- Distinctive: line 13
qmd installed: write a structured query yourself.
- Very specific: line 19
If qmd query/vsearch fails (models, GPU) or the embed hasn't caught up yet, fall back to qmd search.
- Very specific: line 21
Read the candidates fully, then follow ## Related links one hop if they look relevant.
- Very specific: line 22
Only if the wiki is thin: check 10-raw/ sources directly (qmd search "<terms>" -c raw), and say you did ("the wiki doesn't cover this yet.
- Very specific: line 43
Write 50-outputs/queries/YYYY-MM-DD-short-title.md from 90-system/templates/query.md.
- Very specific: line 45
Run scripts/qmd-sync.sh so past answers are searchable.
- Distinctive: line 57
Never present general knowledge as if it came from the vault.
- Distinctive: line 58
Never edit wiki pages during the answer itself.
“Common” is measured: kept by at least 6 in 10 of the 32 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Query: ask the wiki
The wiki is the first source, not the raw files and not your general knowledge. Rules: AGENTS.md §3, §6.
1. Find
- Read
index.md; pick candidate pages by title/summary. - Widen with search (AGENTS.md §5a):
- qmd installed: write a structured query yourself; don't paste the owner's sentence:
Exact names/titles →qmd query $'intent: <what you need, and what to avoid>\nlex: <exact terms, names, aliases>\nvec: <paraphrase in source-like wording>' -n 10qmd search "<terms>" -n 10. Default collections are wiki, projects, journal and outputs; narrow with-c wiki. Fetch hits withqmd multi-get "#id1,#id2"before relying on them; snippets are leads. Ifqmd query/vsearchfails (models, GPU) or the embed hasn't caught up yet, fall back toqmd search. - No qmd:
grep -ril "<term>\|<synonym>" 20-wiki/ 30-projects/.
- qmd installed: write a structured query yourself; don't paste the owner's sentence:
- Read the candidates fully, then follow
## Relatedlinks one hop if they look relevant. - Only if the wiki is thin: check
10-raw/sources directly (qmd search "<terms>" -c raw), and say you did ("the wiki doesn't cover this yet; from the raw source …"). That gap is itself a finding: suggest ingesting/re-ingesting.
2. Answer
- Lead with the direct answer, then the support.
- Cite inline as
[[page-name]]for every non-obvious claim. Cite source pages for specific numbers/quotes. - Respect
## Contradictionssections: present both sides, don't pick silently. - Mark general knowledge that is not from the vault: "(not in vault)". Mark inferences: "(inference)".
- Choose the format that fits: prose, comparison table, timeline, checklist, Mermaid diagram, Marp slides.
3. Gaps (required for every substantial answer)
## Gaps
- What the wiki could not answer, and what kind of source would fill it.
- Stale or single-source claims the answer relied on.An empty Gaps section is almost always wrong. Look harder.
4. Save (if substantial)
Substantial = new synthesis, comparison, decision support, or anything over a few paragraphs. Skip saving for quick lookups ("when did I ingest X?").
- Write
50-outputs/queries/YYYY-MM-DD-short-title.mdfrom90-system/templates/query.md. - Append to
log.md:## [YYYY-MM-DD] query | <question, shortened>with a- saved: 50-outputs/queries/…line. - Run
scripts/qmd-sync.shso past answers are searchable.
5. Offer to file back
End with one line: "Want me to file this back?", with a concrete proposal:
- A new
20-wiki/syntheses/<name>.mdpage (templatesynthesis.md), or - Specific additions to existing pages (name them).
On "yes": write it like an ingest (citations, sources:, bidirectional links, index.md, log.md entry
## [YYYY-MM-DD] query | filed back: <title>), and set filed_back: true in the saved query file. Then run scripts/qmd-sync.sh.
Synthesis pages cite the wiki source pages behind them, not the query file.
Hard constraints
- Never present general knowledge as if it came from the vault.
- Never edit wiki pages during the answer itself; changes only happen through file-back, with the owner's yes.
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.

