From brain-sync
Protocol for working in a repo that contains a `.brain/` folder — the bridge to a central Obsidian "second brain" vault. Triggers automatically whenever the working directory or any ancestor contains a `.brain/` directory. Tells you what to read (CONTEXT/TASKS/ASKS), what to update (STATUS/LOG/ANSWERS), and what to NEVER touch. Also applies when the user says "/brain-sync", "sync with the brain", "sincroniza con el cerebro", or "qué dice el cerebro de este repo".
How this skill is triggered — by the user, by Claude, or both
Slash command
/brain-sync:brain-syncThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
The `.brain/` folder in (or near) your working directory bridges this repo to a central Obsidian vault. Read this skill once per session when a `.brain/` exists.
The .brain/ folder in (or near) your working directory bridges this repo to a central Obsidian vault. Read this skill once per session when a .brain/ exists.
Reply in the user's language (EN/ES). LOG.md / STATUS.md / ANSWERS.md content may be written in whichever language the user works in; keep the field names (phase:, progress:, Q:, A:, etc.) exactly as below so the sync script parses them.
It's usually at the repo root but may be up to ~3 levels up. Walk upward:
for i in . .. ../.. ../../..; do
[ -d "$i/.brain" ] && { echo "found: $i/.brain"; break; }
done
If no .brain/ exists, this skill doesn't apply — proceed normally.
| File | Direction | Read | Write |
|---|---|---|---|
CONTEXT.md | brain → here | YES | NO (overwritten on sync) |
TASKS.md | brain → here | YES | Tick [x] only |
ASKS.md | brain → here | YES | NO |
INSTRUCTIONS.md | brain → here | YES | NO |
STATUS.md | here → brain | YES | YES |
LOG.md | here → brain | YES | YES (append) |
ANSWERS.md | here → brain | YES | YES (append) |
.brain/CONTEXT.md — scope, phase, milestones, team.brain/TASKS.md — tasks the brain delegated to this repo.brain/ASKS.md — questions the brain wants answered[x] in TASKS.md when done.ANSWERS.md:
Q: <verbatim question text>
A: <your answer>
LOG.md:
- YYYY-MM-DD HH:MM — [TYPE] short description
TYPES: WORK · DECISION · MILESTONE · BLOCKER · LESSON · HANDOFF · CROSS-REF (link to another project — see Project isolation)STATUS.md frontmatterlast-activity: (today)progress: (0–100, best estimate)phase: (if changed: kickoff | discovery | design | build | uat | delivered | maintenance | closed)blockers: (array)next-action: (one-liner)You are the agent for this one project. Stay in your lane:
CONTEXT.md/TASKS.md only.LOG.md:
- YYYY-MM-DD HH:MM — [CROSS-REF] <what + which other project it relates to>
The root brain harvests [CROSS-REF] entries (via the brain-connect skill) and decides whether to propagate. Your job is to flag, not to cross-pollinate.This keeps each project's reasoning clean while still feeding the brain the links it needs to connect things globally.
CONTEXT.md, TASKS.md (beyond ticking), ASKS.md, INSTRUCTIONS.md — the brain owns them..brain/ files..brain/ beyond the 7 standard ones.TASKS.md item is impossible without info you lack → [BLOCKER] in LOG.md and add to blockers: in STATUS.md.CONTEXT.md assumption is materially wrong → log [BLOCKER] and explain.CONTEXT.md → log + tell the human.A scheduled/manual run of Sync-Project-Brains.ps1 from the vault:
CONTEXT.md/TASKS.md/ASKS.md from the vault project note.STATUS.md fields into the note frontmatter.LOG.md entries to the note's ## Log.[x]-ed TASKS.md boxes back in the note.ANSWERS.md Q:/A: block to the matching question.Your job: keep STATUS.md honest, LOG.md truthful, ANSWERS.md responsive, TASKS.md ticked.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub jachana/claude-marketplace --plugin brain-sync