brain
БесплатноБез исполняемых скриптовНе проверенSearch and analyze governed notes, decisions, runbooks, and conventions, returning a qmd:// citation for every supported claim. Use when checking what the…
от jeremylongshore★ 2 961 звезда на GitHubОб этом скилле
Brain — cited answers from your governed knowledge base
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.
Overview
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
by Tobi's qmd (OSS). 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.
Prerequisites
- The bobs-big-brain / governed-brain plugin is installed (MCP
governed-brain). - Mode is automatic. In local mode (default) search runs in-process
against your local
~/.teamkbindex — no network, no API key; a compatible qmd binary must be available (prefer monorepo pin@tobilu/qmdvia the Registrar / installer). Operators can usescripts/bbb-qmdfrom bobs-big-brain-registrar so XDG points at the team index, not personal~/.cache/qmd. In team mode (TEAMKB_API_URLset) search proxies to the team brain. Every hit is aqmd://citation. - See the runtime contract for exact inputs, result shapes, authentication, and mode-specific failures.
Instructions
Step 1: Search the governed corpus
Retrieval is Tobi's qmd (BM25 keyword via the MCP). Prefer short keyword queries over full sentences.
- Derive 1–4 distinctive nouns/verbs from the user question (drop what/why/how, articles, auxiliaries, prepositions).
- Call
brain_searchwith those keywords andscope: "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):
- Keyword retry (curated): only if the first call was still a long natural-language sentence (you skipped deriving 1–4 keywords). Re-run with 1–4 keywords only. Skip this step when the first query was already keyword-style — do not re-call with the same tokens.
- Scope retry (
all): if curated is still empty, re-run the same keywords withscope: "all". Do not useinbox/archivedunless the user asks. - Only after curated+keywords and all+keywords are empty → Step 3 (honest refuse).
brain_search({ query: "shipped week", scope: "curated" })
// if empty (keywords already used):
brain_search({ query: "shipped week", scope: "all" })
Step 2: Answer ONLY from the cited results
- Synthesize a direct answer from the returned snippets.
- Attach the qmd:// citation to every claim, inline — for example:
The proxy reverse-proxies the API (qmd://kb-curated/system-map.md). - If two hits conflict, surface both with their citations rather than silently picking one — the governance layer tracks contradictions; do not paper over them.
- Do not add knowledge the citations do not support. Any reasoning beyond the corpus must be labeled clearly as inference, not the brain's answer.
Step 3: Handle an empty result honestly
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).
Output
- A short, direct answer.
- Each load-bearing claim followed by its qmd:// citation.
- A closing Sources list of the distinct qmd:// URIs used.
Examples
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.
Error Handling
| Situation | Response |
|---|---|
brain_search returns empty results |
Run the empty-result ladder (keywords → scope all); only |
Установить brain в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
mcp__governed-brain__brain_searchВложенные файлы
FAQ
Что делает скилл 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".
Как установить скилл brain?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл brain запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic