brain-save
БесплатноБез исполняемых скриптовНе проверенCreate and manage governed memories by capturing one fact, decision, pattern, or convention, or by retiring an outdated memory. This is side-effecting and…
от jeremylongshore★ 2 961 звезда на GitHubОб этом скилле
Brain Save — write a fact into your brain (governed)
/brain reads; /brain-save writes governed memory. Use it to remember one durable fact without
recompiling a corpus or to retire a memory that is no longer true.
Overview
The brain learns in two ways: a bulk compile ingests a whole corpus at once, and /brain-save
adds (or retires) a single item on demand. Either way, governance stays in code: this skill
captures a candidate, then runs the deterministic govern step (dedupe → policy → promotion) that
decides what actually gets stored — and writes a SHA-256 hash-chained audit event for the decision. You
are proposing an item for the brain to keep; the deterministic curator owns whether and how it lands.
Why this never auto-fires
disable-model-invocation: true means Claude will not trigger this from conversation — it runs only
when you explicitly type it. Writing to your durable brain is a deliberate act, not a chat side
effect. In local mode you own the brain outright — no server, token, or role; the only gate is
that you asked. In team mode the same deliberate-act rule holds, and the server additionally
enforces your role (a member proposes; an admin governs and retires).
Prerequisites
- The
governed-second-brainplugin is installed (it auto-wires the localgoverned-brainMCP server with the capture + govern tools). - In local mode,
qmd2.x is onPATHso the govern step can refresh the search index after a promotion. If qmd is absent, capture + govern + the audit receipt still complete; only fresh-search visibility waits. Team clients do not require a local qmd installation. - Works in both modes. In local mode (default, no
TEAMKB_API_URL) all the tools below run in-process. In team mode (TEAMKB_API_URLset) the brain is governed centrally on the server: you propose withbrain_captureand the server disposes (govern runs server-side, so there is no clientbrain_govern);brain_transitionis exposed but admin-only (a member gets a clear 403);brain_statusis a connection-health probe;brain_audit_verifyis not exposed to the team client. - See the runtime contract for exact tool availability, authentication, result semantics, and safe retry behavior.
Instructions
Save a new fact
First, search the brain (search-before-save). Call brain_search with
{ query: "TITLE_AND_KEY_TERMS", scope: "all" } and summarize what the brain already knows
from the qmd:// hits. If the fact is already covered, stop and say so — don't duplicate it (the
inbox does not dedupe at intake; only promotion dedupes, so this pre-save search is what keeps the
inbox from piling up). An empty results list (e.g. qmd isn't on PATH, or the brain is empty)
means no known coverage — proceed to capture; it is not a block. Then capture only the
genuinely-new delta:
- Confirm it's worth keeping — "Would I benefit from finding this in 30 days?" Skip ephemeral debugging steps, throwaway preferences, secrets, or anything already in a CLAUDE.md/README.
- Pick a category:
decision,pattern,convention,architecture,troubleshooting,onboarding, orreference. - Call
brain_capturewith{ title, content, category, filePaths?, subjects? }. Addsubjects(at most 8 lowercase dot/hyphen slugs, e.g.hosting.vps) only for a decision that is the new source of truth for those subjects, so it can supersede older memories about them. In team mode, SessionEnd/autocapture must also passsessionId+learningIndex(0..4) so each learning has its own idempotency slot; manual captures omit both. The team inbox deduplicates at intake, but the pre-save search still reduces noise. - In local mode only, call
brain_governto drain the spool through deterministic dedupe, policy, secret detection, and promotion. Report the returned promoted, quarantined, rejected, duplicate, flagged, and skipped counts. - In team mode, do not call
brain_govern; it is intentionally absent. Report whetherbrain_capturecreated a proposal, found an existing proposal, or queued the proposal in the durable client outbox. Promotion is a separate server-side governance decision.
Retire an outdated memory
- Find the memory with
/brain, then extract its UUID from the returned citation filename (qmd://COLLECTION/UUID.md). Do not invent or infer an ID when the citation is not UUID-shaped. - Call
brain_transitionwith{ memoryId, to, reason, actor, supersededBy? }. Supply the replacement memory UUID assupersededBywhentoissuperseded. Valid moves:active → {deprecated, superseded, archived},deprecated → {active, archived},superseded → archived. Every transition writes a hash-chained audit event.
Team mode:
brain_transitionis admin-only — a member token g
Установить brain-save в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
mcp__governed-brain__brain_searchmcp__governed-brain__brain_capturemcp__governed-brain__brain_governmcp__governed-brain__brain_transitionmcp__governed-brain__brain_statusmcp__governed-brain__brain_audit_verifyВложенные файлы
FAQ
Что делает скилл brain-save?
Create and manage governed memories by capturing one fact, decision, pattern, or convention, or by retiring an outdated memory. This is side-effecting and never auto-fires. Use when preserving a durable fact without a full recompile or changing a memory's lifecycle. Trigger with "/brain-save".
Как установить скилл brain-save?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл brain-save запускает скрипты?
Нет, скилл состоит только из инструкций (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