agentsclimarketplace

Brain

Skill jeremylongshore/claude-code-plugins-plus-skills/plugins/mcp/governed-second-brain/skills/brain

Answers questions about your own systems, notes, decisions, runbooks, and conventions from your governed knowledge brain, returning a qmd:// citation for every claim — receipts, not recall. Use when you want to know what your brain has captured about your own architecture, infrastructure, decisions, or conventions (e.g. "what does my system map say about the proxy", "why did I pick Apache-2.0", "what's my deploy runbook"). Trigger with "/brain", "ask the brain", "what do I know about", or "check my knowledge base".From its SKILL.md

Install
npx -y skills add jeremylongshore/claude-code-plugins-plus-skills --skill brain

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its file declares

Copied from the file, not written here

The file declares its own license as Apache-2.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

7.2 KB, ~1.5k tokens by cl100k_base, as published. Nobody here has run it

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 ~/.teamkb index — no network, no API key; a compatible qmd binary must be available (prefer monorepo pin @tobilu/qmd via INTKB / installer). Operators can use scripts/bbb-qmd from qmd-team-intent-kb 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.

Instructions

Step 1: Search the governed corpus

Retrieval is Tobi's qmd (BM25 keyword via the MCP). Prefer short keyword queries over full sentences.

  1. Derive 1–4 distinctive nouns/verbs from the user question (drop what/why/how, articles, auxiliaries, prepositions).
  2. Call 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):

  1. 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.
  2. Scope retry (all): if curated is still empty, re-run the same keywords with scope: "all". Do not use inbox/archived unless the user asks.
  3. 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

  1. A short, direct answer.
  2. Each load-bearing claim followed by its qmd:// citation.
  3. 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

SituationResponse
brain_search returns empty resultsRun the empty-result ladder (keywords → scope all); only then refuse. Do not fabricate.
qmd missing / index emptyRetrieval degrades to empty. Tell operator: install @tobilu/qmd, run INTKB pnpm search-canary -- --heal or bbb-qmd status.
MCP tool unavailablePlugin not enabled; install/enable bobs-big-brain / governed-brain.
User asks to write/captureOut of scope here — direct them to /brain-save.

Guardrails

  • Read-only. This skill never writes to the corpus — capture and governance live in /brain-save.
  • Never invent a qmd:// URI. Cite only URIs returned by brain_search.
  • Prefer fewer, well-cited claims over a broad answer that cannot be anchored.
  • Do not conflate this product with IRSB / Moat / Scout (separate stack).

Resources

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,144. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.