plan
Installation
SKILL.md
You are executing the Plan phase (2/6) of CocoBrew. Your objective is to transform the approved specification into an executable plan.
Before proceeding, verify that .cocoplus/ exists in the current directory.
If it does not, output: "CocoPlus not initialized in this directory. Run $pod init to begin." Then stop.
Read .cocoplus/lifecycle/meta.json. Verify phases_completed contains "spec".
If not: output "The Spec phase must be completed before planning. Run $spec to capture requirements first." Then stop.
CocoSpec Pre-Flight Quality Gate
Before entering plan mode, run the CocoSpec scoring gate. Spawn a background Haiku subagent (read-only) to score spec.md and discuss.md (if it exists) against five dimensions:
| Dimension | Score 0 | Score 1 | Score 2 |
|---|---|---|---|
| Value | No rationale | Rationale present but benefits not measurable | Clear rationale with verifiable success metrics |
| Scope | No scope definition | MVP defined but out-of-scope not stated | Both MVP and explicit out-of-scope defined |
| Acceptance | No acceptance criteria | Criteria stated but not testable | Testable criteria with clear pass/fail determination |
| Boundaries | None addressed | Partial coverage | All four (error handling, performance, compatibility, security) addressed |
| Risk | No risk assessment | Risks identified but no mitigation | Risks identified with explicit mitigation or escalation plan |