Incremental rescan of project folder. Detects new/changed files since last scan, extracts knowledge from CLAUDE.local.md, memory files, and doc inventory, and updates the brain DB. Requires an existing project_brain.db — run /brain-init first if none exists.
npx skills add https://github.com/coco-research/coco --skill brain:rescan
Detects what changed since the last scan and updates the brain DB with new knowledge.
project_brain.db must exist in the project folder (or parent). If not found, tell the user: "No brain DB found. Run /brain-init first."python3 ~/.claude/skills/brain/scripts/brain/brain_cli.py scan
Check the output:
is_first_scan: true → this folder was never scanned. Tell the user and proceed with full scan.new_files: 0 and changed_files: 0 → "Everything up to date. No changes since last scan ({last_scan})." → done.RESCAN DELTA
============
Last scan: {last_scan}
New files: N
Changed files: N
Removed files: N
Unchanged: N
New/changed files:
+ docs/NewDoc.html (new)
~ CLAUDE.local.md (changed)
+ emails/Latest_Thread.txt (new)
Knowledge sources:
CLAUDE.local.md: found / not found (changed: yes/no)
Memory files: N files (N new/changed)
Documents: N new, N changed
Emails: N new, N changed
Follow the same extraction logic as /brain-init Step 4, but only for files in the delta:
upsert_entity so existing entities get updated rather than duplicateddocument entities via upsert_entityRESCAN RESULTS
==============
Project: {name} ({slug})
New/updated entities: N (list)
New decisions: N (list)
New events: N (list)
New document entities: N (list)
Skipped (unchanged): N files
Total proposed writes: NN
Ask: "Write to brain? [Y/n/adjust]"
Same write order as /brain-init Step 6:
After all writes, sync to MemPalace and brain.json:
from brain.memory_bridge import full_sync
full_sync("project_brain.db", project_slug)
Then update the manifest:
python3 ~/.claude/skills/brain/scripts/brain/brain_cli.py scan-update
BRAIN UPDATED (rescan)
======================
Entities: +N, ~N updated (total: N)
Decisions: +N (total: N)
Events: +N (total: N)
Documents: +N (total: N)
Manifest updated: N files tracked
Next scan will only process changes after {now}.
| Scenario | Use |
|----------|-----|
| End of conversation session | /brain-update (extracts from conversation) |
| New files added to project folder | /brain-rescan (extracts from files) |
| Updated CLAUDE.local.md | /brain-rescan |
| First time in a project with existing brain | /brain-init (handles both init + scan) |
| Periodic refresh | /brain-rescan |
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.
Intelligently organizes your files and folders across your computer by understanding context, finding duplicates, suggesting better structures, and automating cleanup tasks. Reduces cognitive load and keeps your digital workspace tidy without manual effort.
Generates creative domain name ideas for your project and checks availability across multiple TLDs (.com, .io, .dev, .ai, etc.). Saves hours of brainstorming and manual checking.
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
Implements Manus-style file-based planning for complex tasks. Creates task_plan.md, findings.md, and progress.md. Use when starting complex multi-step tasks, research projects, or any task requiring >5 tool calls.
Creative research ideation and exploration. Use for open-ended brainstorming sessions, exploring interdisciplinary connections, challenging assumptions, or identifying research gaps. Best for early-stage research planning when you do not have specific observations yet. For formulating testable hypotheses from data use hypothesis-generation.
Comprehensive GitHub project management with swarm-coordinated issue tracking, project board automation, and sprint planning
Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions "grill me".
Take coco-research/brain:rescan from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.