/neo:init — bootstrap the second brain
Current state: !ls -d .neo 2>/dev/null || echo "no .neo directory" · CLAUDE.md: !ls CLAUDE.md 2>/dev/null || echo "absent"
Steps
Guard: if
.neo/brain/already exists, say so and stop — never overwrite a living brain. Suggest/neo:statusinstead.Scaffold:
mkdir -p .neo/brain .neo/plans cp "${CLAUDE_PLUGIN_ROOT}/templates/brain/"*.md .neo/brain/Interview — ask ONE question at a time, offer your best-guess answer first (infer from the codebase before asking; if the repo answers a question, don't ask it):
- What is this project? (one paragraph)
- Who/what is it for, and why does it exist?
- Scope of the current version? Explicit non-goals?
- Hard constraints? (platform, language, performance, compliance)
- Build / test / lint commands? (read package.json, Makefile, etc. first — confirm, don't ask blind)
Write:
- Fill
.neo/brain/BRIEF.mdfrom the interview (replace all placeholder comments). - If the codebase is non-empty, do a quick pass (or spawn keymaker) to fill
.neo/brain/ARCHITECTURE.mdstack + layout sections. Leave patterns/gotchas to accumulate naturally. - If
CLAUDE.mdis absent, copy${CLAUDE_PLUGIN_ROOT}/templates/CLAUDE.mdand fill the command placeholders. If present, leave it alone.
- Fill
Report: list created files, then: "Brain initialized. It loads automatically next session; save anytime with /neo:save."