/governed-second-brain:brain [question]from governed-second-brain
Search and analyze governed notes, decisions, runbooks, and conventions, returning a qmd:// citation for every supported claim. Use when checking what the brain has captured about architecture, infrastructure, decisions, or operating practices. Trigger with "/brain", "ask the brain", or "check my knowledge base".
Ships in governed-second-brain. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Ask your knowledge brain a question and get an answer grounded in your governed corpus, where every claim carries a qmd:// citation. The brain does not paraphrase from memory — it retrieves governed memories and cites them, so any answer is verifiable after the fact.
This is the read surface of Bob's Big Brain: your files are compiled into
governed memories, governed by deterministic code, and retrieved with citations
through qmd BM25, native FTS5 and configured dense retrieval. The brain_search MCP tool fronts that retrieval. Your product
surround is INTKB govern + ICO compile + this plugin — not a fork of qmd.
The job here is to turn a natural-language question into a cited answer — and to refuse to answer beyond what the citations support.
governed-brain).~/.teamkb index — no remote brain service or API key; a compatible qmd
binary must be available (prefer monorepo pin @tobilu/qmd via the Registrar / installer).
Operators can use scripts/bbb-qmd from bobs-big-brain-registrar so XDG points at the team
index, not personal ~/.cache/qmd. In team mode (TEAMKB_API_URL set) search
proxies to the team brain. Every hit is a qmd:// citation.The source entrypoints at the Registrar revision in gsb.lock.json configure
Tobi's qmd BM25, native FTS5 and a
sqlite-vec dense arm, joined with reciprocal-rank fusion and a freshness/category rerank.
Dense is enabled by default in those entrypoints, but requires a built index and
the configured loopback query embedder; disabling it or an unavailable arm leaves
the lexical results. Team mode uses the deployed server's configuration.
Retrieval makes no query-time generative LLM call.
Short keyword queries are useful for the lexical arms and empty-result retry; the configured dense arm also accepts natural-language phrasing. A zero-hit query is not proof that the brain lacks the fact.
brain_search with those keywords and scope: "curated" (default promoted knowledge).brain_search({ query: "SOPS age secrets", scope: "curated" })
The tool returns { source, results: [{ citation, snippet, score, collection }] }.
Each citation is a qmd://COLLECTION/FILENAME URI — the receipt for that hit.
Empty-result ladder (do not stop after one miss):
all): if curated is still empty, re-run the same keywords with
scope: "all". Do not use inbox/archived unless the user asks.brain_search({ query: "shipped week", scope: "curated" })
// if empty (keywords already used):
brain_search({ query: "shipped week", scope: "all" })
The proxy reverse-proxies the API (qmd://kb-curated/system-map.md).If results is still empty after the empty-result ladder in Step 1, say so plainly: the brain
has nothing governed on that topic. Do not fall back to general knowledge and present it as the
brain's answer. Optionally note that the topic may need to be captured (run /brain-save).
Cited answer:
/brain what does my system map say about the proxy?
→ The proxy is the single ingress; it reverse-proxies each domain to its service
and must be reloaded, not restarted, after edits (qmd://kb-curated/system-map.md).
Sources:
- qmd://kb-curated/system-map.md
Empty result (honest refusal):
/brain what is my refund policy?
→ The brain has nothing governed on a refund policy. I won't guess from general
knowledge. If this should be in your brain, capture it with /brain-save.
| Situation | Response |
|---|---|
brain_search returns empty results | Run the empty-result ladder (keywords → scope all); only then refuse. Do not fabricate. |
qmd missing / index empty | Retrieval degrades to empty. Tell operator: install @tobilu/qmd, run INTKB pnpm search-canary -- --heal or bbb-qmd status. |
| MCP tool unavailable | Plugin not enabled; install/enable governed-second-brain (governed-brain MCP server). |
| User asks to write/capture | Out of scope here — direct them to /brain-save. |
/brain-save.brain_search.unattested)
and an origin-token hash — that proves WHERE a capture came from, not that its content is true. An
authenticated insider can still have saved poisoned content with a valid origin; weigh cited answers
accordingly and rely on govern policy, human review, and supersession as the content-quality gates.bbb-qmd.@tobilu/qmd) — retrieve engine (OSS; the stack pins it rather than forking it)./brain-save skill (governed capture).What SKILL.md sets; muted values are Claude Code's defaults
inheritlow2 skills in this plugin
Other plugins' skills for the same job
npx claudepluginhub jeremylongshore/bobs-big-brain-plugin --plugin governed-second-brain