create-rule
Create Cursor rules for persistent AI guidance. Use when the user wants to create a rule, add coding standards, set up project…
Use when project files changed since the last brain scan, CLAUDE.local.md was updated, or a periodic refresh is due. Rescans incrementally, writes new entities, decisions, and documents; needs project_brain.db (run /brain-init first).
Claude Code
$ npx -y skills add coco-research/coco --skill brain-rescan --agent claude-code
Codex
$ npx skills add coco-research/coco --skill brain-rescan -a codex -y
Cursor
$ npx skills add coco-research/coco --skill brain-rescan -a cursor -y
Gemini CLI
$ npx skills add coco-research/coco --skill brain-rescan -a gemini-cli -y
GitHub Copilot
$ npx skills add coco-research/coco --skill brain-rescan -a github-copilot -y
OpenCode
$ npx skills add coco-research/coco --skill brain-rescan -a opencode -y
Windsurf
$ npx skills add coco-research/coco --skill brain-rescan -a windsurf -y
name: brain:rescan description: "Use when project files changed since the last brain scan, CLAUDE.local.md was updated, or a periodic refresh is due. Rescans incrementally, writes new entities, decisions, and documents; needs project_brain.db (run /brain-init first)."
Detects what changed since the last scan and updates the brain DB with new knowledge.
python3 ~/.claude/skills/brain/scripts/brain/brain_cli.py scan
Check the output:
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 changedFollow the same extraction logic as `/brain-init` Step 4, but **only for files in the delta**:
RESCAN 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: NNAsk: **"Write to brain? [Y/n/adjust]"**
Same write order as `/brain-init` Step 6: 1. Entities (upsert) 2. Relationships 3. Decisions (dedup check) 4. Events (dedup check) 5. Document entities (upsert)
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` |
495 personas across 13 departments, 229 skills[^installed] and 388 commands in the full catalog (coco 1.9.0, 2026-10-21). Agent skills, slash commands and subagents for Claude Code, Cursor, Codex and other AI coding agents.
Create Cursor rules for persistent AI guidance. Use when the user wants to create a rule, add coding standards, set up project…
Guides users through creating effective Agent Skills for Cursor. Use when the user wants to create, write, or author a new skill,…
Create custom subagents for specialized AI tasks. Use when the user wants to create a new type of subagent, set up task-specific…
Convert 'Applied intelligently' Cursor rules (.cursor/rules/*.mdc) and slash commands (.cursor/commands/*.md) to Agent Skills…
Modify Cursor/VSCode user settings in settings.json. Use when the user wants to change editor settings, preferences,…
Train and optimize AI agents using Microsoft's Agent Lightning framework with reinforcement learning. Use when setting up agent…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.