q404365631/coco/brain-export
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install q404365631/coco/brain-exportSKILL.md
/brain-export — CLAUDE.local.md Auto-Generator
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.
Quick Reference
Procedure
Step 1 — Verify brain DB exists
If the DB is missing, tell the user to run /brain-init first.
Step 2 — Run the export
The exporter will:
- Read any existing
CLAUDE.local.mdat the output path - Preserve everything above
<!-- AUTO-GENERATED: brain-export --> - Preserve everything below
<!-- END AUTO-GENERATED --> - If no sentinels found, append the auto section at the bottom (safe first run)
- Regenerate the auto section from brain DB
- Write atomically (tmp file + rename)
Step 3 — Show the user what was generated
Parse the JSON output and display:
Step 4 — First-run: offer to migrate feedback memories
If this is the first export AND the project memory directory contains files with type: feedback frontmatter, offer to migrate them into behavior rules:
To migrate programmatically:
Then append the rules as a ## Behavior Rules section below <!-- END AUTO-GENERATED --> in CLAUDE.local.md.
Auto-Section Format
Sentinel Contract
| 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.
Token Budget
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.
When to Run
- After every
/brain-updatesession flush (brain DB has new data) - After
/brain-init(first time setup) - After
/brain-rescan(bulk entity import) - When starting work on a project for the first time in a new session (ensure context is fresh)
Trigger Phrases
- "export brain to CLAUDE.local.md"
- "refresh project context file"
- "generate CLAUDE.local"
- "update auto-generated section"
- "brain export <slug>"
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsystems/brain/skills/brain-export/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/q404365631/coco/brain-export)