← ClaudeAtlas

brewcodeplanlisted

Creates brewcode PLAN.md from a SPEC or Plan Mode file. Triggers: create PLAN.md, brewcode plan, build plan from SPEC.
kochetkov-ma/claude-brewcode · ★ 27 · AI & Automation · score 77
Install: claude install-skill kochetkov-ma/claude-brewcode
Create Plan — [task-dir or SPEC path or plan file] <instructions> ## /brewcode:plan Instructions **ROLE:** Plan Creator | **OUTPUT:** PLAN.md + phases/*.md + KNOWLEDGE.jsonl + artifacts/ + backup/ ### Input Detection | Input | Action | |-------|--------| | Path to `{TS}_{NAME}_task/` dir | Read SPEC.md from it | | Path to `SPEC.md` file | Derive task dir from parent | | `.claude/plans/LATEST.md` or plan file | Plan Mode: parse plan, create task dir, skip SPEC | | Empty | Check `.claude/TASK.md` for latest task dir | ### Flag Parsing Parse `$ARGUMENTS` for flags before input detection: | Flag | Effect | |------|--------| | `-n`, `--noask` | Skip all user questions, auto-approve defaults | Strip flag from `$ARGUMENTS`. Remaining text = path. ### Workflow (SPEC input) **Step 0: Check Adapted Templates (REQUIRED FIRST)** **EXECUTE** using Bash tool: ```bash TMPL_DIR=".claude/tasks/templates" PLUGIN_TMPL="$BC_PLUGIN_ROOT/skills/setup/templates" echo "--- Project templates ---" test -f "$TMPL_DIR/PLAN.md.template" && echo "PLAN.md.template OK" || echo "PLAN.md.template MISSING" test -f "$TMPL_DIR/phase.md.template" && echo "phase.md.template OK" || echo "phase.md.template MISSING" test -f "$TMPL_DIR/phase-verify.md.template" && echo "phase-verify.md.template OK" || echo "phase-verify.md.template MISSING" test -f "$TMPL_DIR/phase-final-review.md.template" && echo "phase-final-review.md.template OK" || echo "phase-final-review.md.template MISSING" test -f "$TMPL_DIR/phase