name: obsidian-brain description: > Use when the user explicitly requests their personal vault notes as conversational context. Activates on "이전에 정리한 거 있어?", "내 노트 참고해서 답해줘", "check my notes about", "I wrote something about this before", "what do my notes say about". Do NOT trigger for vault management (creating, moving, editing, searching notes) — those belong to the obsidian skill. Do NOT trigger for generic Obsidian or Zettelkasten questions.
Obsidian Brain — Vault Knowledge as Context
Use vault notes as conversational context and archive session learnings as Zettelkasten notes.
Skill Boundary
| Intent | Skill |
|---|---|
| Create, edit, move, search notes | obsidian |
| Use vault knowledge as context | obsidian-brain ✅ |
| Archive session learnings | /obsidian-archive command |
| Explicitly load vault context | /brain command |
Vault Path Resolution
Resolve once per session, cache for reuse:
- User override:
~/.claude/obsidian-brain/config.json→vaultPath - obsidian-cli:
obsidian-cli print-default --path-only - Obsidian app config:
~/Library/Application Support/obsidian/obsidian.json - Ask user: "Obsidian vault 경로를 알려주세요"
If vault path is invalid, clear config and re-resolve. See references/vault-setup.md for details.
Context Loading Workflow
When the user asks to reference their notes:
- Parse query — extract topic keywords from the user's request
- MOC scan — Grep
2-maps/*.mdfor keywords, read top 3 matching MOCs - Note retrieval — extract
[[wikilinks]]from MOCs, read up to 5 linked notes - Fallback search — if MOC scan finds nothing, Grep
1-zettelkasten/and0-inbox/directly for keywords (catches orphan notes not linked to any MOC) - Context budget — stay within 15,000 characters total:
- 3 MOCs × ~1,000 chars = ~3,000
- 5 notes × ~2,000 chars = ~10,000
- Remaining ~2,000 for relationship context
- Present — summarize what was found, answer the user's question using note content
If No Notes Found
이 주제에 대한 노트를 찾지 못했습니다.
관련 키워드: [searched terms]
Cold Start (Empty Vault)
If 2-maps/ is empty or missing, inform the user:
vault에 아직 노트가 없습니다. /obsidian-archive 로 학습 내용을 저장해보세요.
Archive Workflow
The /obsidian-archive command handles learning extraction. It follows:
- Session analysis — Progressive Summarization으로 학습 추출
- MOC scan — 기존 노트와 관련성 검색
- Duplicate detection — 중복 노트 확인
- Draft generation — 사용자 승인/수정 루프
- Save —
0-inbox/에 저장, MOC 업데이트
Full workflow details in references/archive-workflow.md.
Note and MOC templates in references/templates.md.
Iron Rules
- Never auto-save — always present drafts for user approval
- Respect context budget — never exceed 15,000 chars in MOC scan
- Atomic notes only — one idea per note, declarative English title
- Korean content — note body is always in Korean
- No forced archival — if no learnings found, say so honestly
- Vault path first — resolve vault path before any file operation
- Grep over glob — use Grep to search inside MOCs, not read-all
References Loading Guide
| Situation | Load |
|---|---|
| First run, vault setup needed | references/vault-setup.md |
| Creating notes or MOCs | references/templates.md |
| Running /obsidian-archive | references/archive-workflow.md |