Your objective is to conclude an active CocoSpark brainstorm session.
Before proceeding, verify that .cocoplus/ exists.
If not: output "CocoPlus not initialized in this directory. Run $pod init to begin." Then stop.
If .cocoplus/modes/coco-spark.on does not exist:
- Output: "No active CocoSpark session found. Run
$sparkto start a brainstorm." Then stop.
Exit Brainstorm Mode
- Remove
.cocoplus/modes/coco-spark.on - Offer: "Capture insights as notes? (yes/no)"
- If yes:
- Prompt: "What insights should be carried forward?"
- If
.cocoplus/lifecycle/spec.mdexists, append a short## Brainstorm Insightssection and create commitdocs(spec): added brainstorm insights - If
spec.mddoes not exist, append the notes to the active.cocoplus/spark-[timestamp].mdfile and do not create a lifecycle commit
- If no: make no additional file changes
Output
Output:
Brainstorm concluded.
[Insights captured | No changes made]
Ready for `$spec` when you are.
Anti-Rationalization
| Shortcut / Temptation | Why It Fails |
|---|---|
| End spark mode without removing flag | Leaves session state inconsistent and confuses later commands |
| Auto-inject brainstorm notes into lifecycle artifacts | Conflates exploration with approved plan/spec decisions |
| Skip explicit yes/no capture prompt | Insight persistence becomes accidental and non-deterministic |
Exit Criteria
-
.cocoplus/modes/coco-spark.onflag is removed when a session is active - If insights are captured and
spec.mdexists, a## Brainstorm Insightssection is appended and commitdocs(spec): added brainstorm insightsis created - If insights are captured and
spec.mdis absent, notes are appended to the active.cocoplus/spark-[timestamp].mdfile without lifecycle commit - Output confirms brainstorm closure and next-step guidance toward
$spec