brain
Skill2 starsChanged 2 months agoMITView on GitHub
Read, write, and search the project brain (notes, decisions, questions, insights, tasks, milestones). The single interface for all project knowledge and task management.
10 other projects use a version of this.
Adopted by
Most recently taken up by
- firatcand/rostertheir own version, first seen Aug 23, 2026
- zitdevs/vault-skillstheir own version, first seen Aug 19, 2026
- Anantys-oss/koantheir own version, first seen Jul 18, 2026
- IvandoNascimento/skillstheir own version, first seen Jun 7, 2026
- tiagovficagna/Hbraintheir own version, first seen May 13, 2026
- riggyz/skillstheir own version, first seen May 6, 2026
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- H-mmer/pentest-agents★ 984same name
- Anantys-oss/koan★ 47same name
- firatcand/roster★ 19same name
- sarthakgoel31/claude-skills★ 3same name
- riggyz/skills★ 2same name
- tiagovficagna/Hbrain★ 2same name
- IvandoNascimento/skills★ 1same name
- jonesrussell/skills★ 1same name
- salparadi-labs/brain★ 0same name
- zitdevs/vault-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository21 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- 1passwordSkill
- brainstormSkill
- bridgeSkill
- claude-switcherSkill
- clear-cacheSkill
- commitSkill
- ctoSkill
- killSkill
- lookSkill
- parseSkill
- pbarSkill
- planSkill
- pruneSkill
- pushSkill
- researchSkill
- swarmSkill
- vibe-auditSkill
- video-editorSkill
- webSkill
- wikiSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
46 rules. 0 are common, 30 are distinctive, and 16 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
30
Distinctive
This author's own choices. Worth a look.
16
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 57
Start from the auto-loaded state above.
- Distinctive: line 68
If a pillar was specified, filter tasks to that pillar only.
- Distinctive: line 75
Run Digest at the end.
- Distinctive: line 89
What shipped this session: Check recent commits since the current session started (or last few hours if no session):
- Very specific: line 109
Find decisions that were made but not logged: Check conversation context for architectural choices, technical decisions, or direction …
- Distinctive: line 122
Fix stale state: Look for obvious inconsistencies:
- Distinctive: line 147
If no prior audit, use 7 days ago as the baseline.
- Distinctive: line 151
Check git history since the last audit:
- Distinctive: line 186
Should it be dropped, deferred, or kept and reprioritized?
- Very specific: line 238
Check if documents in cowork/ reference superseded or dropped decisions:
- Distinctive: line 249
If staleness is found, list affected docs and propose updates.
- Distinctive: line 253
Run the Focus procedure (see below).
- Distinctive: line 270
Read the current mantra and recent high-signal entries:
- Distinctive: line 280
Update via the Mantra subcommand procedure (DB update + MANTRA.md export + CLAUDE.md mantra block).
- Distinctive: line 284
Run Digest (which includes tier recalculation).
- Very specific: line 316
Create a new entry. Usage: add <type> where type is one of: note, decision, question, insight, task, milestone.
- Distinctive: line 321
Ask the user for:
- Distinctive: line 365
Journal entry: Write a short journal entry — what happened, what was learned, what surprised you.
- Distinctive: line 371
Mantra check: Read the current mantra:
- Distinctive: line 387
Search using FTS5 (ranked by relevance via BM25):
- Distinctive: line 396
If FTS5 returns no results, fall back to LIKE:
- Distinctive: line 404
If no results from either method, suggest related queries based on existing tags.
- Distinctive: line 418
If not a question, error.
- Distinctive: line 419
Ask the user: "What's the answer/decision?" (or infer from conversation context).
- Very specific: line 420
Create the decision with parent_id linking back to the question:
- Distinctive: line 441
Verify both entries exist.
- Distinctive: line 442
Update the dependent entry's meta:
- Very specific: line 448
If depends_on already exists in meta, append to the array rather than replacing.
- Very specific: line 455
Update tags on an entry. Usage: tag <id> <tags>
- Distinctive: line 459
Read the current entry:
- Distinctive: line 479
Write a short journal entry — what happened, what was learned, what surprised you.
- Distinctive: line 494
Read the current mantra:
- Distinctive: line 499
If nothing meaningful to add, say so and skip.
- Distinctive: line 500
If updating, show the proposed new mantra to the user first.
- Very specific: line 505
If no row exists: INSERT INTO mantra (content, updated_at) VALUES ('<narrative>', strftime('%Y-%m-%dT%H:%M:%S', 'now', 'localtime')).
- Very specific: line 513
Update the mantra block in CLAUDE.md with the same content: replace the lines between the line that is exactly <!-- BEGIN:mantra --> and …
- Very specific: line 601
DB is truth, markdown is view: Never read from cowork/brain/BRAIN.md to determine state — always query the DB.
- Distinctive: line 602
Auto-digest: Run Digest at the end of any subcommand that modifies data.
- Very specific: line 604
Set completed_at when marking tasks done: Always set completed_at = datetime('now', 'localtime') — this drives plan momentum detection.
- Very specific: line 606
Decisions are permanent: Don't update a decision — create a new one that supersedes it (supersedes column) and mark the old one superseded …
- Very specific: line 607
Questions resolve into decisions: Use resolve <id> to create the linked decision.
- Very specific: line 608
Decision dependencies: Use depends to track what builds on what.
- Distinctive: line 610
Pillar consistency: Check existing pillars before creating new ones.
- Very specific: line 612
Meta is structured: Use json_set / json_extract.
- Very specific: line 613
plan_idis a zero-padded string: Always '003', never bare 3. - Very specific: line 627
If .claude/kit.json has a rules."brain" entry, read it and apply it as an additional instruction for this skill.
“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Focus Items
!sqlite3 -separator ' | ' cowork/brain/BRAIN.db "SELECT '#' || id, title, pillar FROM logs WHERE focus = 1 AND status = 'active';" 2>/dev/null || echo "No focus items set"
Active Tasks by Pillar
!sqlite3 -separator ' | ' cowork/brain/BRAIN.db "SELECT '#' || id, title, pillar, CASE WHEN focus=1 THEN '*' ELSE '' END FROM logs WHERE type = 'task' AND status IN ('active','blocked') ORDER BY pillar, priority ASC, created_at ASC;" 2>/dev/null || echo "No active tasks"
Open Questions
!sqlite3 -separator ' | ' cowork/brain/BRAIN.db "SELECT '#' || id, title FROM logs WHERE type = 'question' AND status = 'active';" 2>/dev/null || echo "None"
Recent Entries
!sqlite3 -separator ' | ' cowork/brain/BRAIN.db "SELECT '#' || id, type, title FROM logs WHERE tier IN ('hot','warm') AND status = 'active' ORDER BY created_at DESC LIMIT 12;" 2>/dev/null || echo "No entries yet"
Existing Tags
!sqlite3 cowork/brain/BRAIN.db "SELECT DISTINCT tags FROM logs WHERE tags IS NOT NULL AND tags != '';" 2>/dev/null || echo "None yet"
Brain
Manage all project knowledge in cowork/brain/BRAIN.db — decisions, questions, insights, tasks, notes, and milestones. One skill, one database, one source of truth.
Input
Optional argument: $ARGUMENTS
Dispatch on the first word:
- (empty) — Review: daily "what's going on" view
update— Update: sync brain to reflect what just happened — mark completed tasks, log decisions, fix stale stateaudit— Audit: deep health check since last auditfocus— Focus: set 2-3 focus itemsadd <type>— Add: create a new entry (note, decision, question, insight, task, milestone)done— Done: close the session — summarize, journal, update mantrajournal— Journal: consider writing a journal entry based on recent workmantra— Mantra: consider updating the mantra based on recent worksearch <query>— Search: full-text search across title, body, and tagsresolve <question_id>— Resolve: answer a question by creating a linked decisiondepends <id> <depends_on_id>— Depends: mark that an entry depends on a decisiontag <id> <tags>— Tag: update tags on an existing entrydigest— Digest: regeneratecowork/brain/BRAIN.md- A bare pillar name (e.g.
platform,backend) — Review filtered to that pillar's tasks
Review (default)
The daily "what's going on" view. Shows focus, tasks, questions, and recent decisions in one pass. The dynamic context above already loaded the current state — use it as your starting point.
Procedure
- Start from the auto-loaded state above. Query deeper if needed:
-- Tasks with bodies for context SELECT id, title, body, tags, pillar, priority, status, meta FROM logs WHERE type = 'task' AND status IN ('active', 'blocked') ORDER BY pillar, priority ASC, created_at ASC; -- Recent decisions SELECT id, created_at, title, substr(body, 1, 120) FROM logs WHERE type = 'decision' AND status = 'active' ORDER BY created_at DESC LIMIT 10; - If a pillar was specified, filter tasks to that pillar only.
- Present findings conversationally:
- Focus items first, with brief status check
- Active tasks grouped by pillar
- Blocked items highlighted with why
- Open questions that need resolution
- Recent decisions that set direction
- Run Digest at the end.
Update subcommand
Sync the brain to reflect what actually happened this session. Run after a block of work to make sure the DB matches reality — tasks that got done are marked done, decisions that were made are logged, stale state is cleaned up.
Usage: update
This is lighter than an audit. An audit looks back over days/weeks and asks strategic questions. Update looks at the current session and asks "does the brain match what just happened?"
Procedure
- What shipped this session. Check recent commits since the current session started (or last few hours if no session):
Also check conversation context for work that was done.git log --oneline --since='3 hours ago' - Find tasks that should be done. Cross-reference what shipped against active tasks:
For each active task, check: was this completed by the work that just happened? If yes, mark it done:SELECT id, title, pillar, status, meta FROM logs WHERE type = 'task' AND status = 'active' ORDER BY pillar, created_at DESC;UPDATE logs SET status = 'done', completed_at = datetime('now', 'localtime'), body = body || char(10) || '--- Done: <what was accomplished>' WHERE id = <id>; - Find decisions that were made but not logged. Check conversation context for architectural choices, technical decisions, or direction changes that happened during the session but weren't captured via
/brainstormor/brain add. Log any missing ones:INSERT INTO logs (type, title, body, tags, importance) VALUES ('decision', '<title>', '<rationale>', '<tags>', <importance>); - Check plan progress. If a plan was actively worked on, verify the plan file reflects current state — items checked off, status lines updated, RESUME banner in the right place. Report each gap or fix with the plan's path and line (
/plan, Pointing at a line):SELECT id, title, meta FROM logs WHERE type = 'task' AND json_extract(meta, '$.plan_id') IS NOT NULL AND status = 'active'; - Fix stale state. Look for obvious inconsistencies:
- Tasks marked active that the codebase shows are done
- Decisions that were superseded by newer decisions during this session
- Focus items that were completed and should be cleared
- Present changes. Summarize what was updated: tasks marked done, decisions logged, state fixed. Don't silently modify — show the user what changed.
- Recalculate tiers (without regenerating
BRAIN.md). Run the full two-phase tier recalculation from USAGE.md (SQL phase + plan momentum shell phase).
Audit subcommand
Deep health check — surfaces stale work, unresolved questions, unacted decisions, and what shipped since the last audit. Ends by recalibrating focus. Not on a fixed schedule — run whenever the brain needs a checkup.
Usage: audit
Step 1 — Find the last audit
SELECT id, created_at, body FROM logs
WHERE type = 'milestone' AND tags LIKE '%audit%'
ORDER BY created_at DESC LIMIT 1;If no prior audit, use 7 days ago as the baseline.
Step 2 — What shipped
Check git history since the last audit:
git log --oneline --since='<last_audit_date>'Query completed entries since the last audit:
SELECT id, type, title, body FROM logs
WHERE status = 'done' AND created_at > '<last_audit_date>'
ORDER BY created_at DESC;Summarize what was accomplished. Group by pillar or theme. Start here — celebrate progress before digging into problems.
Step 3 — Stale work
Find active tasks and questions that haven't been accessed since the last audit:
SELECT id, type, title, pillar, created_at, importance
FROM logs
WHERE status = 'active' AND type IN ('task', 'question')
AND created_at < '<last_audit_date>'
AND focus = 0
AND (json_extract(meta, '$.plan_id') IS NULL
OR json_extract(meta, '$.plan_id') NOT IN (
SELECT DISTINCT json_extract(meta, '$.plan_id') FROM logs
WHERE completed_at >= datetime('now', '-14 days', 'localtime')
))
ORDER BY created_at ASC;For each stale item (old, not focused, no plan momentum):
- Is it still relevant? Check codebase and recent decisions for context changes.
- Should it be dropped, deferred, or kept and reprioritized?
Present findings. Don't auto-drop — propose and wait for direction.
Step 4 — Open questions
SELECT id, title, body, created_at, tags FROM logs
WHERE type = 'question' AND status = 'active'
ORDER BY importance DESC, created_at ASC;For each:
- Has the answer emerged from recent work or decisions? If so, propose resolving it.
- Is it blocking anything?
SELECT id, title FROM logs WHERE json_extract(meta, '$.depends_on') LIKE '%<question_id>%'; - How long has it been open?
Step 5 — Unacted decisions
Decisions are only valuable if they lead to action:
SELECT d.id, d.title, d.created_at, substr(d.body, 1, 150),
(SELECT count(*) FROM logs t WHERE json_extract(t.meta, '$.depends_on') LIKE '%' || d.id || '%') as dependents
FROM logs d
WHERE d.type = 'decision' AND d.status = 'active'
AND d.created_at > '<last_audit_date>'
ORDER BY d.created_at DESC;Flag decisions with no downstream tasks or dependents.
Step 6 — Brain health
-- Entry counts by type and status
SELECT type, status, count(*) FROM logs GROUP BY type, status ORDER BY type, status;
-- Tier distribution
SELECT tier, count(*) FROM logs WHERE status = 'active' GROUP BY tier;
-- Tag frequency (top 15)
SELECT tags, count(*) FROM logs WHERE tags IS NOT NULL AND tags != '' GROUP BY tags ORDER BY count(*) DESC LIMIT 15;
-- Pillar distribution of active tasks
SELECT pillar, count(*) FROM logs WHERE type = 'task' AND status = 'active' GROUP BY pillar;Note anything out of balance: too many hot items, pillars with no active tasks, tag sprawl.
Step 7 — Docs staleness
Check if documents in cowork/ reference superseded or dropped decisions:
grep -oP '#\d+' cowork/platform/*.md cowork/notes/*.md 2>/dev/null | grep -oP '\d+' | sort -uSELECT id, title, status, superseded_by FROM logs
WHERE id IN (<extracted_ids>) AND status IN ('superseded', 'dropped');If staleness is found, list affected docs and propose updates.
Step 8 — Set focus
Run the Focus procedure (see below).
Step 9 — Log the audit
INSERT INTO logs (type, title, body, tags, importance)
VALUES ('milestone',
'Audit — <date>',
'<summary: what shipped, what was dropped/deferred, new focus items, brain health notes>',
'audit',
7);Step 10 — Update mantra
The mantra is Claude's self-authored context — what matters that CLAUDE.md doesn't say. Not a changelog or status summary. Think: what would a fresh Claude session need to know that isn't in CLAUDE.md? Patterns, non-obvious knowledge, tricky areas, current momentum, working assumptions.
- Read the current mantra and recent high-signal entries:
SELECT content FROM mantra LIMIT 1; SELECT id, type, title, substr(body, 1, 300), created_at FROM logs WHERE created_at > '<last_audit_date>' AND type IN ('decision', 'milestone', 'insight') AND importance >= 5 ORDER BY created_at DESC; - Rewrite the mantra. Ask: what did I learn this period that a fresh session would benefit from? What's non-obvious about where the project is right now? What keeps tripping me up or coming up repeatedly? What assumptions am I working under?
- Update via the Mantra subcommand procedure (DB update + MANTRA.md export + CLAUDE.md mantra block).
Step 11 — Recalculate tiers and regenerate digest
Run Digest (which includes tier recalculation).
Focus subcommand
Set 2-3 focus items. These appear at the top of every session start and in the brain digest.
Usage: focus
Procedure
- Show current focus items and their status.
- Clear existing focus:
UPDATE logs SET focus = 0 WHERE focus = 1; - Propose 2-3 focus items based on:
- What has momentum and should be finished?
- What's been stuck and needs dedicated attention?
- What's most important strategically right now?
- Present the proposed focus set and wait for user approval.
- On approval:
UPDATE logs SET focus = 1 WHERE id IN (<id1>, <id2>, <id3>); - Run Digest.
Add subcommand
Create a new entry. Usage: add <type> where type is one of: note, decision, question, insight, task, milestone.
Procedure
- Parse the type from the argument. If missing or invalid, ask the user.
- Ask the user for:
- Title (required) — concise summary
- Body (optional) — detail, rationale, context
- Tags (optional) — comma-separated, reuse existing tags shown above
- Importance (optional) — 0-10, defaults to 5
- For task type, also ask:
- Pillar (required) — check existing pillars and suggest best fit
- Priority (optional) — integer, lower = higher priority
- Normalize tags: split by comma, trim, lowercase, sort alphabetically, deduplicate, rejoin.
- Insert:
-- For non-task types: INSERT INTO logs (type, title, body, tags, importance) VALUES ('<type>', '<title>', '<body>', '<normalized_tags>', <importance>); -- For tasks: INSERT INTO logs (type, title, body, tags, pillar, priority, importance) VALUES ('task', '<title>', '<body>', '<normalized_tags>', '<pillar>', <priority>, <importance>); - Confirm the entry was created (show id and created_at).
- Run Digest.
Done subcommand
Close the session — summarize what happened, write a journal entry, and consider updating the mantra. Usage: done
Procedure
- Gather session context. Find the current session and recent work:
SELECT id, started_at, goals FROM sessions WHERE ended_at IS NULL ORDER BY started_at DESC LIMIT 1;
Also review conversation context for what was accomplished.git log --oneline --since='<started_at>' - Write session summary. Summarize what was attempted, accomplished, and what's left:
UPDATE sessions SET summary = '<summary>', key_files = '<files>' WHERE id = <session_id>; - Journal entry. Write a short journal entry — what happened, what was learned, what surprised you. This is Claude's perspective, not a changelog. Write it conversationally, like a brief note to the next session. Insert it directly, then share it inline with the user.
INSERT INTO journal (session_id, content) VALUES ('<session_id>', '<journal_entry>'); - Mantra check. Read the current mantra:
Did this session surface anything a fresh Claude session would need to know that isn't in CLAUDE.md? New patterns, non-obvious gotchas, shifted assumptions, tricky areas discovered? If yes, update via the Mantra subcommand procedure. If it was routine work, skip. Either way, share the current mantra inline with the user so they can see what future sessions will start with.SELECT content FROM mantra LIMIT 1; - Run Digest.
Search subcommand
Full-text search across the brain using FTS5. Usage: search <query>
Procedure
- Search using FTS5 (ranked by relevance via BM25):
FTS5 query syntax:SELECT e.id, e.created_at, e.type, e.title, substr(e.body, 1, 200), e.tags, e.tier, rank FROM logs_fts f JOIN logs e ON e.id = f.rowid WHERE logs_fts MATCH '<query>' ORDER BY rank;word1 word2(implicit AND),word1 OR word2,"exact phrase",prefix*,NOT word. - If FTS5 returns no results, fall back to LIKE:
SELECT id, created_at, type, title, substr(body, 1, 200), tags, tier FROM logs WHERE title LIKE '%<query>%' OR body LIKE '%<query>%' OR tags LIKE '%<query>%' ORDER BY created_at DESC; - Present results grouped by type with enough context to be useful.
- If no results from either method, suggest related queries based on existing tags.
Resolve subcommand
Answer an open question by creating a linked decision. Usage: resolve <question_id>
Procedure
- Read the question:
If not a question, error.SELECT id, title, body, tags FROM logs WHERE id = <question_id> AND type = 'question'; - Ask the user: "What's the answer/decision?" (or infer from conversation context).
- Create the decision with
parent_idlinking back to the question:INSERT INTO logs (type, title, body, tags, parent_id) VALUES ('decision', '<decision_title>', '<rationale>', '<tags>', <question_id>); - Mark the question as resolved:
UPDATE logs SET status = 'done', body = body || char(10) || '--- Resolved by decision #' || <new_decision_id> WHERE id = <question_id>; - Confirm both entries. Run Digest.
Depends subcommand
Mark that an entry depends on a decision. Usage: depends <id> <depends_on_id>
Procedure
- Verify both entries exist. The dependency target should be a decision.
- Update the dependent entry's meta:
IfUPDATE logs SET meta = json_set(COALESCE(meta, '{}'), '$.depends_on', json_array(<depends_on_id>)) WHERE id = <id>;depends_onalready exists in meta, append to the array rather than replacing. - Confirm. Show: "Entry #X now depends on decision #Y: <decision_title>"
Tag subcommand
Update tags on an entry. Usage: tag <id> <tags>
Procedure
- Read the current entry:
SELECT id, title, tags FROM logs WHERE id = <id>; - Normalize tags: split by comma, trim, lowercase, sort alphabetically, deduplicate, rejoin.
- Update:
UPDATE logs SET tags = '<normalized_tags>' WHERE id = <id>; - Confirm the change.
Journal subcommand
Reflect on recent work and consider writing a journal entry. Same as the journal step in /brain done, just standalone.
Procedure
- Review conversation context and recent commits for what just happened.
- Write a short journal entry — what happened, what was learned, what surprised you. This is Claude's perspective, not a changelog. Write it conversationally, like a brief note to the next session.
- Find the current session, insert directly, then share the entry inline with the user:
SELECT id FROM sessions WHERE ended_at IS NULL ORDER BY started_at DESC LIMIT 1; INSERT INTO journal (session_id, content) VALUES ('<session_id>', '<content>');
Mantra subcommand
Reflect on recent work and consider updating the mantra. Same as the mantra check in /brain done, just standalone. The mantra is Claude's self-authored context — what matters that CLAUDE.md doesn't say. Patterns, non-obvious knowledge, tricky areas, current momentum, working assumptions.
Procedure
- Read the current mantra:
SELECT content, updated_at FROM mantra LIMIT 1; - Review conversation context and recent work. Ask: did this session surface anything a fresh Claude session would need to know that isn't in CLAUDE.md? New patterns, non-obvious gotchas, shifted assumptions, tricky areas discovered?
- If nothing meaningful to add, say so and skip. Don't update for routine work.
- If updating, show the proposed new mantra to the user first.
- Update:
If no row exists:UPDATE mantra SET content = '<narrative>', updated_at = strftime('%Y-%m-%dT%H:%M:%S', 'now', 'localtime');INSERT INTO mantra (content, updated_at) VALUES ('<narrative>', strftime('%Y-%m-%dT%H:%M:%S', 'now', 'localtime')); - Export to
cowork/brain/MANTRA.md:<!-- Auto-generated from BRAIN.db mantra table. Do not edit directly — use /brain mantra to update. --> # Mantra {narrative} - Update the mantra block in CLAUDE.md with the same content: replace the lines between the line that is exactly
<!-- BEGIN:mantra -->and the next line that is exactly<!-- END:mantra -->. Match WHOLE LINES — never the first occurrence of the marker text, which prose elsewhere in the file may quote; a first-match edit once swallowed the file's own explanation of the mantra. If the block doesn't exist yet, append it after the Brain section. - Confirm.
Digest subcommand
Regenerate cowork/brain/BRAIN.md — a single read-only markdown snapshot combining knowledge and tasks for browsing.
Procedure
- Recalculate tiers — run the full two-phase tier recalculation from USAGE.md (SQL phase for archived/cold/warm/focus-hot, then shell phase for plan momentum).
- Query all data for the digest:
- Mantra (
SELECT content FROM mantra LIMIT 1) - Focus items
- Active/blocked tasks by pillar
- Open questions
- Recent decisions (hot/warm, last 15)
- Insights (hot/warm)
- Recent notes (hot/warm, last 10)
- Milestones (all, chronological)
- Tier stats
- Mantra (
- Write
cowork/brain/BRAIN.md:
# Brain
> Auto-generated from `cowork/brain/BRAIN.db`. Do not edit — use `/brain` commands.
> Last updated: {YYYY-MM-DD HH:MM}
## Mantra
{content from mantra table, or "No mantra set — run /brain audit to generate."}
## Focus
{focus items with pillar — or "No focus items set"}
## Active Tasks
### {Pillar Name}
- #{id} **{title}** — {body truncated to ~120 chars} `#{tag1}` `#{tag2}`
{if blocked: Blocked: {reason}}
{if plan-linked: -> plan NNN}
### {Next Pillar}
...
## Open Questions
{active questions, newest first}
## Recent Decisions
{last 15 decisions with rationale}
## Insights
{hot/warm insights}
## Recent Notes
{last 10 hot/warm notes, truncated}
## Milestones
{all milestones, chronological}
---
{hot} hot / {warm} warm / {cold} cold / {archived} archived- Each entry renders as:
- **{title}** ({date}) — {body truncated to ~150 chars} `#{tag1}` `#{tag2}`
Shared conventions
- DB is truth, markdown is view. Never read from
cowork/brain/BRAIN.mdto determine state — always query the DB. - Auto-digest. Run Digest at the end of any subcommand that modifies data.
- Normalize tags on every write. Split by comma, trim, lowercase, sort alphabetically, deduplicate, rejoin. Check existing tags (shown in dynamic context above) before inventing new ones.
- Set completed_at when marking tasks done. Always set
completed_at = datetime('now', 'localtime')— this drives plan momentum detection. - Recalculate tiers during Digest. See the Digest procedure and USAGE.md for the two-phase recalculation (SQL + plan momentum shell).
- Decisions are permanent. Don't update a decision — create a new one that supersedes it (
supersedescolumn) and mark the old onesuperseded(superseded_bycolumn). - Questions resolve into decisions. Use
resolve <id>to create the linked decision. - Decision dependencies. Use
dependsto track what builds on what. - Sessions are auto-logged. Hooks create/close session rows. Use
/brain doneto close with journal + summary. - Pillar consistency. Check existing pillars before creating new ones. Pillars are broad areas, not fine-grained categories.
- Priority is relative per pillar. Priority 1 in one pillar has no relation to priority 1 in another.
- Meta is structured. Use
json_set/json_extract. Common keys:plan_id,from_plan,blocked_by,depends_on. plan_idis a zero-padded string. Always'003', never bare3.
Global rules
- No permission needed — Execute immediately without asking.
- Brainstorm before writing — For Add, present what you'll insert and wait for confirmation.
- Keep it conversational — Review, Audit, and Search results should be narrated, not raw SQL output.
- Opinionated but collaborative — During Audit, propose what to drop, defer, and focus on. Hold it loosely — the user makes the final call.
- Don't auto-drop — Propose changes. Wait for confirmation before executing status/tier/focus updates.
Project overrides
If .claude/kit.json has a rules."brain" entry, read it and apply it as an additional
instruction for this skill. Absent file or key means no overrides — that is the normal case.
jq -r '.rules."brain" // empty' .claude/kit.json 2>/dev/nullDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

