Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Auto-generate a slim CLAUDE.local.md from brain DB. Preserves manual behavior rules. Produces ~1,200 token auto-generated context section with key people, systems, decisions, and project status.
.claude/skills/coco-research-brain-export/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-06 | ✗→✓ | ▲ Improved | -4% | 0% |
| case-07 | ✗→✓ | ▲ Improved | -16% | 0% |
| case-08 | ✗→✓ | ▲ Improved | -43% | 0% |
| case-11 | ✗→✓ | ▲ Improved | -53% | 0% |
| case-13 | ✗→✓ | ▲ Improved | -46% | 0% |
Generates or refreshes the <!-- AUTO-GENERATED: brain-export --> section in the project's CLAUDE.local.md file from the brain SQLite DB. Protects all manually written content above and below the sentinels.
bashBRAIN="python3 ~/.claude/skills/brain/scripts/brain/brain_cli.py" # Basic export (writes CLAUDE.local.md next to project_brain.db) $BRAIN export <project-slug> # Export with explicit output path $BRAIN export <project-slug> --output /path/to/CLAUDE.local.md # Export with explicit DB path $BRAIN --db /path/to/project_brain.db export <project-slug>
bashBRAIN="python3 ~/.claude/skills/brain/scripts/brain/brain_cli.py" $BRAIN info
If the DB is missing, tell the user to run /brain-init first.
bash$BRAIN export <project-slug>
The exporter will:
CLAUDE.local.md at the output path<!-- AUTO-GENERATED: brain-export --><!-- END AUTO-GENERATED -->Parse the JSON output and display:
brain:export complete
─────────────────────────────────────────
Output: /path/to/CLAUDE.local.md
Project slug: <slug>
Auto section: ~NNN tokens (within 1,200 token budget: YES/NO)
Total file: ~NNN tokens
─────────────────────────────────────────
Sections generated:
- Project Identity (if ~/.mempalace/identity.txt exists)
- Last Session (most recent event + decision)
- Key People (up to 8 person entities)
- Key Systems (up to 8 system/module entities)
- Recent Decisions (last 4 decisions)
- Project Status (entity/decision/event counts + last sync date)If this is the first export AND the project memory directory contains files with type: feedback frontmatter, offer to migrate them into behavior rules:
Found N feedback memory files that could become behavior rules in CLAUDE.local.md:
- feedback_html_docs_with_tailwind.md → "Documents as Tailwind HTML not Markdown"
Add these as a ## Behavior Rules section below the auto-generated block? [y/N]To migrate programmatically:
pythonfrom brain.exporter import migrate_feedback_memories from pathlib import Path memory_dir = Path("~/.claude/projects/<project-slug-hash>/memory").expanduser() rules = migrate_feedback_memories(memory_dir) for rule in rules: print(rule)
Then append the rules as a ## Behavior Rules section below <!-- END AUTO-GENERATED --> in CLAUDE.local.md.
markdown<!-- AUTO-GENERATED: brain-export --> <!-- Generated: 2026-04-09T12:00:00Z | Brain DB: 42 entities | MemPalace: 7 drawers --> ## Project Identity <contents of ~/.mempalace/identity.txt if it exists> ## Last Session - Most recent event title (YYYY-MM-DD) - Most recent decision text (YYYY-MM-DD) ## Key People | Name | Role | Email | |------|------|-------| | Alice Smith | Product Manager | alice@example.com | ## Key Systems - **SystemA** — Description from metadata - **ModuleB** ## Recent Decisions - [2026-04-08] Decision text (truncated to 120 chars) ## Project Status - Entities: 42 | Decisions: 12 | Events: 8 - Last brain sync: 2026-04-09 - Query: `/coco brain` or `/brain context {slug}` for full context <!-- END AUTO-GENERATED -->
| Sentinel | Position | Meaning | |----------|----------|---------| | <!-- AUTO-GENERATED: brain-export --> | Start of auto block | Everything below is managed by exporter | | <!-- END AUTO-GENERATED --> | End of auto block | Everything below is protected manual content |
Never manually edit between the sentinels — changes will be overwritten on next export. Safe to edit anything above START or below END at any time.
The auto section is capped at 1,200 tokens (~4,800 characters). If the generated content exceeds this, the body is truncated. The header comment and sentinels are always preserved intact.
/brain-update session flush (brain DB has new data)/brain-init (first time setup)/brain-rescan (bulk entity import)| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-18 | fail→fail | 23,381 | 6,592 | -72% | 1 | 1 | 0% | 3,606 | 1,573 | -56% | 0 | 0 | — |
case-19 | pass→pass | 9,839 | 10,126 | +3% | 1 | 1 | 0% | 830 | 2,243 | +170% | 0 | 0 | — |
case-01 | fail→fail | 14,208 | 16,837 | +19% | 1 | 1 | 0% | 1,363 | 1,610 | +18% | 0 | 0 | — |
case-02 | fail→fail | 28,620 | 6,574 | -77% | 1 | 1 | 0% | 603 | 1,780 | +195% | 0 | 0 | — |
case-03 | fail→fail | 15,413 | 17,973 | +17% | 1 | 1 | 0% | 316 | 1,708 | +441% | 0 | 0 | — |
case-20 | pass→pass | 15,099 | 4,011 | -73% | 1 | 1 | 0% | 1,676 | 1,910 | +14% | 0 | 0 | — |
case-04 | fail→fail | 12,525 | 10,228 | -18% | 1 | 1 | 0% | 1,216 | 2,113 | +74% | 0 | 0 | — |
case-05 | pass→pass | 13,225 | 7,389 | -44% | 1 | 1 | 0% | 1,262 | 1,772 | +40% | 0 | 0 | — |
case-06 | fail→pass | 16,242 | 8,523 | -48% | 1 | 1 | 0% | 1,903 | 1,826 | -4% | 0 | 0 | — |
case-07 | fail→pass | 15,833 | 3,407 | -78% | 1 | 1 | 0% | 1,961 | 1,638 | -16% | 0 | 0 | — |
case-08 | fail→pass | 17,250 | 6,672 | -61% | 1 | 1 | 0% | 2,800 | 1,591 | -43% | 0 | 0 | — |
case-09 | pass→pass | 7,915 | 8,360 | +6% | 1 | 1 | 0% | 1,369 | 1,943 | +42% | 0 | 0 | — |
case-10 | pass→pass | 12,998 | 11,964 | -8% | 1 | 1 | 0% | 1,346 | 2,435 | +81% | 0 | 0 | — |
case-11 | fail→pass | 18,759 | 6,786 | -64% | 1 | 1 | 0% | 3,446 | 1,622 | -53% | 0 | 0 | — |
case-12 | pass→pass | 19,863 | 4,188 | -79% | 1 | 1 | 0% | 2,178 | 2,078 | -5% | 0 | 0 | — |
case-13 | fail→pass | 19,769 | 6,613 | -67% | 1 | 1 | 0% | 2,919 | 1,583 | -46% | 0 | 0 | — |
case-14 | pass→pass | 18,878 | 6,616 | -65% | 1 | 1 | 0% | 2,435 | 1,589 | -35% | 0 | 0 | — |
case-15 | pass→pass | 12,613 | 2,049 | -84% | 1 | 1 | 0% | 2,078 | 1,614 | -22% | 0 | 0 | — |
case-16 | fail→fail | 6,226 | 1,657 | -73% | 1 | 1 | 0% | 924 | 1,623 | +76% | 0 | 0 | — |
case-17 | fail→pass | 13,431 | 8,141 | -39% | 1 | 1 | 0% | 1,185 | 1,864 | +57% | 0 | 0 | — |
case-21 | fail→pass | 13,560 | 10,338 | -24% | 1 | 1 | 0% | 1,388 | 2,279 | +64% | 0 | 0 | — |
case-22 | fail→pass | 25,475 | 7,324 | -71% | 1 | 1 | 0% | 3,116 | 2,316 | -26% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 19 counted toward the lift figure. The other 3 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +36 percentage points is the difference between those two pass rates over the 19 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.