cc-second-brain
БесплатноБез исполняемых скриптовНе проверенManage the three-tier memory system (engram + Obsidian vault + plugin rules) for Claude Code setups. Use this skill whenever saving CC-setup findings…
от TheLobbi★ 22 звезды на GitHubОб этом скилле
CC Second Brain
Three-tier memory: engram (working) + Obsidian vault (durable) + plugin rules (baseline). Full separation-of-concerns in conventions.md and topic-key-taxonomy.md.
Tier routing — decision tree
Did work just conclude?
│
├─ Is it a one-off observation, decision, or discovery?
│ └─ YES → engram (tier 1) — mem_save with CC topic_key (see taxonomy)
│
├─ Is it a reusable pattern (used or useful in ≥ 2 repos)?
│ └─ YES → Obsidian (tier 2) — Research/Claude-Code/Patterns/{slug}.md
│ with frontmatter auto_generated: false if user-curated
│
├─ Is it repo-specific durable knowledge?
│ └─ YES → Obsidian (tier 2) — Repositories/{org}/{repo}.md
│ or Decisions/NNNN-title.md for ADRs
│
└─ Is it a rule every consumer-repo Claude should follow?
└─ YES → plugin rules (tier 3) — memory/rules/cc-always.md
(only the plugin maintainer edits this)
Engram — tier 1 write pattern
Call mem_save with CC topic_key. See topic-key-taxonomy.md for full prefix table.
Required: title, content (What/Why/Where/Learned format).
Recommended: topic_key starting with cc/*, type (decision/bugfix/architecture/discovery/pattern/config/preference), scope (project or personal).
Examples:
mem_save({
title: "Chose protect-sensitive-files hook for all new setups",
type: "decision",
topic_key: "cc/hooks/protect-sensitive-files",
content: "**What**: Default install on every /cc-setup run\n**Why**: Prevents writes to .env / credentials / keys\n**Where**: memory/rules/cc-always.md\n**Learned**: Hook matcher Write|Edit is correct — don't also match MultiEdit, it inherits"
})
Obsidian — tier 2 write pattern
Preferred: use Obsidian MCP tools (mcp__obsidian__*) if loaded — they append/update via the Local REST API.
Fallback: direct Write tool at vault paths.
Auto-generated note frontmatter (consolidator only):
---
auto_generated: true
source: engram
topic_key: cc/patterns/{slug}
reinforcement_count: 7
first_seen: 2026-04-09
last_updated: 2026-04-16
tags: [claude-code, pattern, auto]
---
User-curated note frontmatter:
---
title: {short title}
created: {YYYY-MM-DD}
tags: [claude-code, type/pattern]
---
Durability invariant: notes WITHOUT auto_generated: true are user-curated. Consolidator never overwrites them. If you're writing a note on behalf of the user, use auto_generated: false explicitly.
Plugin rules — tier 3 write pattern
memory/rules/cc-always.md — user-only (edit via /cc-memory edit-always).
memory/rules/cc-patterns.md — consolidator-only.
memory/rules/DRAFT.md — consolidator-only (conflicts).
Do NOT hand-edit cc-patterns.md or DRAFT.md — the consolidator owns them.
Querying the tiers
| Need | Tool |
|---|---|
| "Have we solved this before?" | mem_search with cc/ prefix hint → mem_context for recent history |
| "What's the current rule for X?" | Read memory/rules/cc-always.md and memory/rules/cc-patterns.md |
| "What patterns exist for Y?" | Obsidian MCP search or Grep on Research/Claude-Code/Patterns/ |
| "What does this repo know?" | Read Repositories/{org}/{repo}.md first |
/cc-memory subcommands
| Subcommand | Action |
|---|---|
search <query> |
engram mem_search scoped to cc/* keys |
export [--domain ...] |
write human digest to memory/digests/{date}.md |
consolidate |
run consolidator: engram → Obsidian + cc-patterns.md |
edit-always |
open memory/rules/cc-always.md |
review |
open memory/rules/DRAFT.md (conflicts) |
status |
show: last consolidation, pattern count, draft count, cc/* observation count |
MCP tools the consolidator uses (READ-ONLY on engram)
| Tool | Used for |
|---|---|
mem_search |
Find cc/* observations |
mem_get_observation |
Fetch full content of a match |
mem_context |
Recent session context for timing |
NEVER used by the consolidator: mem_save, mem_update, mem_delete. Those are Claude-in-session or user-manual operations only.
Common anti-patterns
- Saving to engram without a topic_key for CC work → consolidator can't group observations → pattern never promotes.
- Writing to
Repositories/{org}/{repo}.mdwithauto_generated: truewhen it's actually hand-curated → consolidator will overwrite it later. - Editing
memory/rules/cc-patterns.mdby hand → consolidator will clobber your edits on next run. Put hand-curation incc-always.md. - Skipping
mem_session_summaryat end of session → next session starts blind; consolidator has less to work with.
Установить cc-second-brain в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл cc-second-brain?
Manage the three-tier memory system (engram + Obsidian vault + plugin rules) for Claude Code setups. Use this skill whenever saving CC-setup findings, consolidating engram into durable knowledge, writing repo docs to the Obsidian vault, or running /cc-memory subcommands. Triggers on phrases like "save this pattern", "promote to memory", "update the vault", "consolidate memory", "write an ADR", and whenever work on CC plugins, hooks, agents, skills, or autonomy profiles concludes.
Как установить скилл cc-second-brain?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cc-second-brain запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic