brain:export

Generate a compact CLAUDE.local.md context section from the brain SQLite database.

264|11|Updated Apr 25, 2026
One-click install
npx skills add https://github.com/coco-research/coco --skill brain-export-coco-research
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: brain:export
Source: https://github.com/coco-research/coco/tree/main/systems/brain/skills/brain-export
Command: npx skills add https://github.com/coco-research/coco --skill brain-export-coco-research

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill turns the brain database into a safe, compact CLAUDE.local.md context file, so you can keep project memory current without overwriting hand-written guidance.

Core Features & Use Cases

  • Preserves manual content above and below the auto-generated block while refreshing only the managed context section.
  • Summarizes key people, systems, decisions, and project status into a token-budgeted export for fast reuse in new sessions.
  • Supports first-run workflows by detecting missing brain databases and offering feedback-memory migration into behavior rules.

Quick Start

Ask the assistant to export the current project slug into CLAUDE.local.md using brain-export.

Frequently Asked Questions about brain:export

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I export SQLite project context to a CLAUDE.local.md file safely?

To export SQLite project context safely, brain:export generates a compact CLAUDE.local.md section from the brain database using sentinel-aware file rewriting and atomic output updates. It preserves manual content above and below the auto-generated block while refreshing only the managed context section.

Does exporting project memory to CLAUDE.local.md overwrite my hand-written guidance rules?

Exporting project memory does not overwrite hand-written guidance. The export applies sentinel-aware file rewriting to preserve manual content above and below the auto-generated block, refreshing only the managed context section within CLAUDE.local.md.

What happens when the brain SQLite database is missing during a context refresh?

When the brain SQLite database is missing, the context refresh detects the absent database and supports first-run workflows by offering feedback-memory migration into behavior rules within your project guidance.

How is token budgeting applied when summarizing project status for a new session?

Token-budgeted summarization compiles key people, systems, decisions, and project status from the brain database into a compact context export. This ensures the generated CLAUDE.local.md output remains within token limits for fast reuse in new sessions.

Can I migrate feedback notes into project behavior rules on the first run?

You can migrate feedback notes into project behavior rules on the first run. The skill detects a missing brain database and offers a first-run workflow to convert stored feedback-memory notes into actionable behavior rules for project guidance.