@tgoodington/intuition 5.0.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: intuition-handoff
3
- description: Universal phase transition orchestrator. Processes phase outputs, updates project memory, generates fresh briefs for next agent.
3
+ description: Universal phase transition orchestrator. Processes phase outputs, updates project memory, generates fresh briefs for next agent. Manages the design loop for multi-item design cycles.
4
4
  model: haiku
5
5
  tools: Read, Write, Glob, Grep, AskUserQuestion
6
6
  allowed-tools: Read, Write, Glob, Grep
@@ -20,9 +20,10 @@ These are non-negotiable. Violating any of these means the protocol has failed.
20
20
  4. You MUST generate a brief for the next agent.
21
21
  5. You MUST update `.project-memory-state.json` — you are the ONLY skill that writes to this file.
22
22
  6. You MUST NOT evaluate or critique phase outputs. Process and document, never judge.
23
- 7. You MUST NOT skip the user profile merge step during discovery→planning transitions.
23
+ 7. You MUST NOT skip the user profile merge step during prompt→planning transitions.
24
24
  8. You MUST suggest the correct next skill after completing the transition.
25
- 9. You MUST NOT modify discovery_brief.md, plan.md, or other phase output files — they are read-only inputs.
25
+ 9. You MUST NOT modify discovery_brief.md, plan.md, design_spec_*.md, or other phase output files — they are read-only inputs.
26
+ 10. You MUST manage the design loop: track which items are designed, route to next item or to execute when all are done.
26
27
 
27
28
  ## PROTOCOL: COMPLETE FLOW
28
29
 
@@ -33,7 +34,7 @@ Step 1: Read .project-memory-state.json and detect transition type
33
34
  Step 2: Read phase output files
34
35
  Step 3: Extract insights and structure findings
35
36
  Step 4: Update memory files (key_facts.md, decisions.md, issues.md)
36
- Step 5: Merge user profile learnings (discovery→planning only)
37
+ Step 5: Merge user profile learnings (prompt→planning only)
37
38
  Step 6: Generate brief for next agent
38
39
  Step 7: Update .project-memory-state.json
39
40
  Step 8: Report what was processed and suggest next skill
@@ -44,13 +45,20 @@ Step 8: Report what was processed and suggest next skill
44
45
  Read `docs/project_notes/.project-memory-state.json` and determine:
45
46
 
46
47
  ```
47
- IF workflow.status == "discovery" AND discovery.completed == true
48
+ IF workflow.status == "prompt" AND prompt.completed == true
48
49
  AND planning.started == false:
49
- → TRANSITION: Discovery → Planning
50
+ → TRANSITION: Prompt → Planning
50
51
 
51
52
  IF workflow.status == "planning" AND planning.completed == true
52
- AND execution.started == false:
53
- → TRANSITION: Planning → Execution
53
+ AND design.started == false:
54
+ → TRANSITION: Planning → Design (initial setup)
55
+
56
+ IF workflow.status == "design":
57
+ → Check design.items array
58
+ → IF current item just completed AND more items remain:
59
+ → TRANSITION: Design → Design (next item)
60
+ → IF all items completed:
61
+ → TRANSITION: Design → Execution
54
62
 
55
63
  IF workflow.status == "executing" AND execution.completed == true:
56
64
  → TRANSITION: Execution → Complete
@@ -65,11 +73,14 @@ This is the authoritative schema for `.project-memory-state.json`:
65
73
 
66
74
  ```json
67
75
  {
76
+ "initialized": true,
77
+ "version": "3.0",
68
78
  "workflow": {
69
- "status": "discovery | planning | executing | complete",
70
- "discovery": {
79
+ "status": "none | prompt | planning | design | executing | complete",
80
+ "prompt": {
71
81
  "started": false,
72
82
  "completed": false,
83
+ "started_at": null,
73
84
  "completed_at": null,
74
85
  "output_files": []
75
86
  },
@@ -79,6 +90,13 @@ This is the authoritative schema for `.project-memory-state.json`:
79
90
  "completed_at": null,
80
91
  "approved": false
81
92
  },
93
+ "design": {
94
+ "started": false,
95
+ "completed": false,
96
+ "completed_at": null,
97
+ "items": [],
98
+ "current_item": null
99
+ },
82
100
  "execution": {
83
101
  "started": false,
84
102
  "completed": false,
@@ -90,9 +108,24 @@ This is the authoritative schema for `.project-memory-state.json`:
90
108
  }
91
109
  ```
92
110
 
93
- When updating state, preserve all existing fields and only modify the relevant ones. Always set `last_handoff` to the current ISO timestamp and `last_handoff_transition` to the transition name (e.g., "discovery→planning").
111
+ ### Design Items Schema
94
112
 
95
- ## TRANSITION 1: DISCOVERY PLANNING
113
+ Each item in `design.items` has this structure:
114
+
115
+ ```json
116
+ {
117
+ "name": "item_name_snake_case",
118
+ "display_name": "Human Readable Item Name",
119
+ "status": "pending | in_progress | completed | skipped",
120
+ "plan_tasks": [3, 4, 5],
121
+ "spec_file": null,
122
+ "flagged_reason": "Why plan flagged this for design"
123
+ }
124
+ ```
125
+
126
+ When updating state, preserve all existing fields and only modify the relevant ones. Always set `last_handoff` to the current ISO timestamp and `last_handoff_transition` to the transition name.
127
+
128
+ ## TRANSITION 1: PROMPT → PLANNING
96
129
 
97
130
  ### Read Outputs
98
131
 
@@ -122,7 +155,7 @@ If `docs/project_notes/discovery_output.json` contains `user_profile_learnings`
122
155
  - Always update `metadata.last_updated`
123
156
  3. Save updated profile
124
157
 
125
- If USER_PROFILE.json does NOT exist, skip this step. Do NOT create it from scratch — that's the user's responsibility.
158
+ If USER_PROFILE.json does NOT exist, skip this step. Do NOT create it from scratch.
126
159
 
127
160
  ### Generate Planning Brief
128
161
 
@@ -162,7 +195,7 @@ Write `docs/project_notes/planning_brief.md`:
162
195
  {
163
196
  "workflow": {
164
197
  "status": "planning",
165
- "discovery": { "completed": true, "completed_at": "[ISO timestamp]" },
198
+ "prompt": { "completed": true, "completed_at": "[ISO timestamp]" },
166
199
  "planning": { "started": true }
167
200
  }
168
201
  }
@@ -172,22 +205,203 @@ Write `docs/project_notes/planning_brief.md`:
172
205
 
173
206
  Tell the user: "Discovery processed. Planning brief saved to `docs/project_notes/planning_brief.md`. Run `/intuition-plan` to create a structured plan."
174
207
 
175
- ## TRANSITION 2: PLANNING → EXECUTION
208
+ ## TRANSITION 2: PLANNING → DESIGN (Initial Setup)
176
209
 
177
210
  ### Read Outputs
178
211
 
179
212
  Read: `docs/project_notes/plan.md`
180
213
 
214
+ ### Extract Design Items
215
+
216
+ From the plan, find the "Design Recommendations" section. Extract all items flagged for design, along with their rationale and associated task numbers.
217
+
218
+ If no "Design Recommendations" section exists in the plan, check each task: if any task lacks sufficient detail for execution (ambiguous implementation path, multiple valid approaches, user-facing decisions needed), flag it yourself. Present your assessment to the user.
219
+
181
220
  ### Extract and Structure
182
221
 
183
- From the plan, identify:
184
- - **Task structure** → reference in execution brief
222
+ From the plan, also identify:
185
223
  - **New architectural decisions** → create ADRs in `decisions.md`
186
- - **Risks and dependencies** → include in execution brief
224
+ - **Risks and dependencies** → include in design brief
187
225
  - **Planning work completed** → log in `issues.md`
188
226
 
189
- Do NOT update `key_facts.md` planning doesn't discover new facts.
190
- Do NOT update `bugs.md` — execution finds bugs, not planning.
227
+ ### Present Design Items to User
228
+
229
+ Use AskUserQuestion to present the flagged items and get user confirmation:
230
+
231
+ ```
232
+ Question: "Plan recommends design exploration for these items:
233
+
234
+ [For each flagged item:]
235
+ - **[Item Name]** (Tasks [N, M]): [Rationale from plan]
236
+
237
+ Which items need design? You can also add items not listed."
238
+
239
+ Header: "Design Items"
240
+ Options:
241
+ - "All recommended items need design"
242
+ - "Some items — let me specify"
243
+ - "None — skip design, go straight to execution"
244
+ ```
245
+
246
+ If user selects "Some items," ask a follow-up to identify which ones.
247
+ If user selects "None," skip to generating an execution brief instead (use Transition 4B below).
248
+
249
+ ### Generate Design Brief
250
+
251
+ Write `docs/project_notes/design_brief.md` for the FIRST item:
252
+
253
+ ```markdown
254
+ # Design Brief: [First Item Name]
255
+
256
+ ## Current Item
257
+ **[Item Name]** — [Brief description from plan]
258
+
259
+ ## Plan Context
260
+ [1-2 paragraph summary of what the plan says about this item]
261
+
262
+ ## Task Details
263
+ - **Plan Tasks**: [Task numbers]
264
+ - **Description**: [From plan.md]
265
+ - **Acceptance Criteria**: [From plan.md]
266
+ - **Dependencies**: [From plan.md]
267
+
268
+ ## Design Rationale
269
+ [Why plan flagged this for design — what needs elaboration before execution]
270
+
271
+ ## Constraints
272
+ - [From plan's architectural decisions]
273
+ - [From discovery constraints]
274
+
275
+ ## Design Queue
276
+ [For each item, show status:]
277
+ - **[Item 1 Name] (current)**
278
+ - [Item 2 Name] (pending)
279
+ - [Item 3 Name] (pending)
280
+
281
+ ## References
282
+ - Plan: docs/project_notes/plan.md
283
+ - Discovery: docs/project_notes/discovery_brief.md
284
+ ```
285
+
286
+ ### Update State
287
+
288
+ ```json
289
+ {
290
+ "workflow": {
291
+ "status": "design",
292
+ "planning": { "completed": true, "completed_at": "[ISO timestamp]", "approved": true },
293
+ "design": {
294
+ "started": true,
295
+ "items": [
296
+ {
297
+ "name": "[snake_case_name]",
298
+ "display_name": "[Human Name]",
299
+ "status": "pending",
300
+ "plan_tasks": [3, 4, 5],
301
+ "spec_file": null,
302
+ "flagged_reason": "[reason]"
303
+ }
304
+ ],
305
+ "current_item": "[first_item_snake_case_name]"
306
+ }
307
+ }
308
+ }
309
+ ```
310
+
311
+ Mark the first item's status as `"in_progress"`.
312
+
313
+ ### Route User
314
+
315
+ Tell the user: "Plan processed. Design brief prepared for **[First Item Name]**. Run `/intuition-design` to begin design exploration."
316
+
317
+ ## TRANSITION 3: DESIGN → DESIGN (Next Item)
318
+
319
+ ### Read Outputs
320
+
321
+ Read:
322
+ - The design spec that was just saved: `docs/project_notes/design_spec_[completed_item].md`
323
+ - Current `.project-memory-state.json`
324
+
325
+ ### Extract and Structure
326
+
327
+ From the completed design spec:
328
+ - **New architectural decisions** → create ADRs in `decisions.md`
329
+ - **Key technical facts** → add to `key_facts.md`
330
+ - **Design work completed** → log in `issues.md`
331
+
332
+ ### Determine Next Item
333
+
334
+ Read `design.items` from state. Find the next item with status `"pending"`. If no pending items remain, this is actually Transition 4 — proceed to Design → Execution.
335
+
336
+ ### Update Design Brief
337
+
338
+ Overwrite `docs/project_notes/design_brief.md` with the next item's context:
339
+
340
+ ```markdown
341
+ # Design Brief: [Next Item Name]
342
+
343
+ ## Current Item
344
+ **[Next Item Name]** — [Brief description from plan]
345
+
346
+ ## Plan Context
347
+ [1-2 paragraph summary for this item]
348
+
349
+ ## Task Details
350
+ [Same structure as Transition 2]
351
+
352
+ ## Design Rationale
353
+ [Why this item needs design]
354
+
355
+ ## Prior Design Context
356
+ [1-2 sentences about what was designed in previous items that may be relevant]
357
+
358
+ ## Constraints
359
+ [Updated constraints including any decisions from prior design items]
360
+
361
+ ## Design Queue
362
+ - [x] [Item 1 Name] (completed) → design_spec_[item1].md
363
+ - **[Item 2 Name] (current)**
364
+ - [ ] [Item 3 Name] (pending)
365
+
366
+ ## References
367
+ - Plan: docs/project_notes/plan.md
368
+ - Prior design specs: [list completed spec files]
369
+ ```
370
+
371
+ ### Update State
372
+
373
+ ```json
374
+ {
375
+ "design": {
376
+ "items": [
377
+ { "name": "item_1", "status": "completed", "spec_file": "design_spec_item_1.md" },
378
+ { "name": "item_2", "status": "in_progress", "spec_file": null },
379
+ { "name": "item_3", "status": "pending", "spec_file": null }
380
+ ],
381
+ "current_item": "item_2"
382
+ }
383
+ }
384
+ ```
385
+
386
+ ### Route User
387
+
388
+ Tell the user: "[Previous Item] design complete. Design brief updated for **[Next Item Name]** ([N] of [total], [remaining] remaining). Run `/intuition-design` to continue."
389
+
390
+ ## TRANSITION 4: DESIGN → EXECUTION
391
+
392
+ Triggers when ALL design items have status `"completed"` (or `"skipped"`).
393
+
394
+ ### Read Outputs
395
+
396
+ Read all design specs: `docs/project_notes/design_spec_*.md`
397
+ Read: `docs/project_notes/plan.md`
398
+
399
+ ### Extract and Structure
400
+
401
+ From the design specs:
402
+ - **All architectural decisions** → ensure they're in `decisions.md`
403
+ - **Key facts discovered during design** → add to `key_facts.md`
404
+ - **All design work** → log in `issues.md`
191
405
 
192
406
  ### Generate Execution Brief
193
407
 
@@ -205,8 +419,16 @@ Write `docs/project_notes/execution_brief.md`:
205
419
  ## Discovery Context
206
420
  [Brief reminder of why this matters]
207
421
 
422
+ ## Design Specifications
423
+ [List all design specs produced, with one-line summary of each:]
424
+ - design_spec_[item1].md — [summary]
425
+ - design_spec_[item2].md — [summary]
426
+
427
+ **IMPORTANT:** Execute agents MUST read these specs before implementing flagged tasks. Implement exactly what's specified. If ambiguity is found, escalate to user — do not make design decisions autonomously.
428
+
208
429
  ## Task Summary
209
430
  [List tasks in execution order with brief descriptions]
431
+ [Mark which tasks have associated design specs]
210
432
 
211
433
  ## Quality Gates
212
434
  - Security review: MANDATORY
@@ -219,15 +441,41 @@ Write `docs/project_notes/execution_brief.md`:
219
441
  ## References
220
442
  - Full Plan: docs/project_notes/plan.md
221
443
  - Discovery Brief: docs/project_notes/discovery_brief.md
444
+ - Design Specs: docs/project_notes/design_spec_*.md
222
445
  ```
223
446
 
224
447
  ### Update State
225
448
 
449
+ ```json
450
+ {
451
+ "workflow": {
452
+ "status": "executing",
453
+ "design": { "completed": true, "completed_at": "[ISO timestamp]" },
454
+ "execution": { "started": true }
455
+ }
456
+ }
457
+ ```
458
+
459
+ ### Route User
460
+
461
+ Tell the user: "All design specs processed. Execution brief saved to `docs/project_notes/execution_brief.md`. Run `/intuition-execute` to begin implementation."
462
+
463
+ ## TRANSITION 4B: PLANNING → EXECUTION (Skip Design)
464
+
465
+ Used when the user confirms NO items need design at the Planning → Design transition.
466
+
467
+ ### Generate Execution Brief
468
+
469
+ Same format as Transition 4 but without the "Design Specifications" section.
470
+
471
+ ### Update State
472
+
226
473
  ```json
227
474
  {
228
475
  "workflow": {
229
476
  "status": "executing",
230
477
  "planning": { "completed": true, "completed_at": "[ISO timestamp]", "approved": true },
478
+ "design": { "started": false, "completed": false, "items": [] },
231
479
  "execution": { "started": true }
232
480
  }
233
481
  }
@@ -235,9 +483,9 @@ Write `docs/project_notes/execution_brief.md`:
235
483
 
236
484
  ### Route User
237
485
 
238
- Tell the user: "Plan processed. Execution brief saved to `docs/project_notes/execution_brief.md`. Run `/intuition-execute` to begin implementation."
486
+ Tell the user: "Plan processed. No design items flagged. Execution brief saved to `docs/project_notes/execution_brief.md`. Run `/intuition-execute` to begin implementation."
239
487
 
240
- ## TRANSITION 3: EXECUTION → COMPLETE
488
+ ## TRANSITION 5: EXECUTION → COMPLETE
241
489
 
242
490
  ### Read Outputs
243
491
 
@@ -262,7 +510,7 @@ Read execution results from any files the execution phase produced. Check `docs/
262
510
 
263
511
  ### Route User
264
512
 
265
- Tell the user: "Workflow cycle complete. Run `/intuition-prompt` or `/intuition-discovery` to start a new cycle, or `/intuition-start` to review project status."
513
+ Tell the user: "Workflow cycle complete. Run `/intuition-prompt` to start a new cycle, or `/intuition-start` to review project status."
266
514
 
267
515
  ## MEMORY FILE FORMATS
268
516
 
@@ -303,13 +551,17 @@ Add new categories as needed. Add facts under existing categories. Do not remove
303
551
 
304
552
  - **Missing discovery_output.json**: Extract insights manually from discovery_brief.md. Less structured but handoff still works.
305
553
  - **Poor output quality**: Process as-is. Note concerns in the brief: "Output quality was limited — next agent may need more exploration." Do NOT try to fix or improve outputs.
306
- - **Planning revealed new constraints**: Update key_facts.md, create ADR if architectural, note in execution brief.
554
+ - **Planning revealed new constraints**: Update key_facts.md, create ADR if architectural, note in design/execution brief.
307
555
  - **Interrupted handoff**: Check what's been updated in memory files. Continue from where you left off. Don't duplicate entries.
308
- - **Corrupted state**: If .project-memory-state.json is malformed, infer phase from which output files exist (discovery_brief.md → discovery complete, plan.md → planning complete). Ask user to confirm.
556
+ - **Corrupted state**: If .project-memory-state.json is malformed, infer phase from which output files exist (discovery_brief.md → prompt complete, plan.md → planning complete, design_spec_*.md → design in progress). Ask user to confirm.
557
+ - **Design item skipped mid-loop**: If user asks to skip a design item during the loop, mark it as `"skipped"` in state. Do not block the loop — proceed to next item. Note the skip in the execution brief.
558
+ - **No Design Recommendations in plan**: If plan.md has no flagged items, present the plan tasks to the user and ask if any need design. If none, proceed with Transition 4B.
559
+ - **Plan revision after design started**: If plan.md has been modified after design began, alert the user. Ask whether to continue with current design items or re-evaluate.
309
560
 
310
561
  ## VOICE
311
562
 
312
- - Administrative and transparent — "I've processed the discovery output"
563
+ - Administrative and transparent — "I've processed the design output"
313
564
  - Structured — specific about what was updated and where
314
565
  - Never evaluative — process and document, don't judge quality
315
566
  - Forward-looking — always suggest the next step
567
+ - Loop-aware — always show design queue progress when in design loop
@@ -32,6 +32,7 @@ Step 1: Detect existing setup
32
32
  Step 2: Create memory directory and files from templates
33
33
  Step 3: Create .project-memory-state.json with v2.0 workflow schema
34
34
  Step 4: Update CLAUDE.md with workflow protocols
35
+ Step 4.5: Create INTUITION.md framework overview
35
36
  Step 5: Offer optional components (AGENTS.md, settings, user profile)
36
37
  Step 6: Report completion and suggest next step
37
38
  ```
@@ -84,13 +85,15 @@ Do NOT create workflow output files (discovery_brief.md, plan.md, execution_brie
84
85
 
85
86
  Read `references/state_template.json` and write to `docs/project_notes/.project-memory-state.json`.
86
87
 
87
- The state file uses the v2.0 WORKFLOW schema:
88
+ The state file uses the v3.0 WORKFLOW schema:
88
89
 
89
90
  ```json
90
91
  {
92
+ "initialized": true,
93
+ "version": "3.0",
91
94
  "workflow": {
92
95
  "status": "none",
93
- "discovery": {
96
+ "prompt": {
94
97
  "started": false,
95
98
  "completed": false,
96
99
  "started_at": null,
@@ -104,19 +107,28 @@ The state file uses the v2.0 WORKFLOW schema:
104
107
  "completed_at": null,
105
108
  "approved": false
106
109
  },
110
+ "design": {
111
+ "started": false,
112
+ "completed": false,
113
+ "completed_at": null,
114
+ "items": [],
115
+ "current_item": null
116
+ },
107
117
  "execution": {
108
118
  "started": false,
109
119
  "completed": false,
110
120
  "started_at": null,
111
121
  "completed_at": null
112
122
  }
113
- }
123
+ },
124
+ "last_handoff": null,
125
+ "last_handoff_transition": null
114
126
  }
115
127
  ```
116
128
 
117
129
  **CRITICAL**: This is the authoritative schema. Handoff is the ONLY skill that updates this file after initialization. All other skills read it but NEVER write to it.
118
130
 
119
- Do NOT use the old v1.0 schema that had `personalization`, `waldo_greeted`, `plan_created`, or `plan_status` fields. That schema is obsolete.
131
+ Do NOT use older schemas (v1.0 with `personalization` fields, or v2.0 with `discovery` instead of `prompt`). Those schemas are obsolete.
120
132
 
121
133
  ## STEP 4: UPDATE CLAUDE.MD
122
134
 
@@ -133,10 +145,25 @@ IF CLAUDE.md does NOT exist:
133
145
  ```
134
146
 
135
147
  The template includes:
136
- - Three-phase workflow description (discoveryhandoffplanhandoff execute)
148
+ - Four-phase workflow description (promptplandesignexecute with handoffs)
137
149
  - Memory file descriptions and locations
138
150
  - Memory-aware protocols (check decisions before changes, search bugs before debugging)
139
- - Smart skill suggestions (when to suggest /intuition-discovery, /intuition-plan, etc.)
151
+ - Smart skill suggestions (when to suggest /intuition-prompt, /intuition-plan, /intuition-design, etc.)
152
+
153
+ ## STEP 4.5: CREATE INTUITION.MD
154
+
155
+ Read `references/intuition_readme_template.md` and write to `INTUITION.md` at the project root (same level as CLAUDE.md).
156
+
157
+ ```
158
+ IF INTUITION.md already exists:
159
+ → Ask user: "INTUITION.md already exists. Overwrite with current version?"
160
+ → If no, skip
161
+
162
+ IF INTUITION.md does NOT exist:
163
+ → Create it from template
164
+ ```
165
+
166
+ This is a brief, human-readable overview of the Intuition workflow. It helps anyone on the project understand what the skills do and how to use them.
140
167
 
141
168
  ## STEP 5: OPTIONAL COMPONENTS
142
169
 
@@ -199,12 +226,13 @@ Created:
199
226
  - docs/project_notes/decisions.md
200
227
  - docs/project_notes/key_facts.md
201
228
  - docs/project_notes/issues.md
202
- - docs/project_notes/.project-memory-state.json (v2.0 workflow schema)
229
+ - docs/project_notes/.project-memory-state.json (v3.0 workflow schema)
203
230
  - CLAUDE.md workflow protocols
231
+ - INTUITION.md framework overview
204
232
 
205
233
  [List any optional components created]
206
234
 
207
- Next step: Run /intuition-discovery to start exploring your problem,
235
+ Next step: Run /intuition-prompt to describe what you want to build,
208
236
  or /intuition-start to check project status.
209
237
  ```
210
238
 
@@ -228,6 +256,9 @@ These template files are in the `references/` directory. Use Read tool to access
228
256
  **State template** (used in Step 3):
229
257
  - `state_template.json` — v2.0 workflow schema
230
258
 
259
+ **Framework overview** (used in Step 4.5):
260
+ - `intuition_readme_template.md` — high-level workflow overview for INTUITION.md
261
+
231
262
  **Configuration templates** (used in Steps 4-5):
232
263
  - `claude_template.md` — workflow protocols for CLAUDE.md
233
264
  - `agents_template.md` — agent registry for AGENTS.md
@@ -237,6 +268,7 @@ These template files are in the `references/` directory. Use Read tool to access
237
268
  **Workflow output templates** (NOT used by initialize — used by handoff):
238
269
  - `discovery_output_template.json`
239
270
  - `planning_brief_template.md`
271
+ - `design_brief_template.md`
240
272
  - `execution_brief_template.md`
241
273
 
242
274
  ## MEMORY FILE FORMATS
@@ -1,36 +1,46 @@
1
1
  ## Project Workflow and Memory System
2
2
 
3
- This project uses a three-phase workflow coordinated by the Intuition system, with institutional knowledge maintained in `docs/project_notes/` for consistency across sessions.
3
+ This project uses a four-phase workflow coordinated by the Intuition system, with institutional knowledge maintained in `docs/project_notes/` for consistency across sessions.
4
4
 
5
5
  ### Workflow Phases
6
6
 
7
7
  The project follows a structured workflow with handoff transitions between phases:
8
8
 
9
- **Discovery (Waldo)** — `/intuition-discovery`
10
- - Deep understanding of the problem through collaborative dialogue
11
- - Framework: GAPP (Problem GoalsUX Context Personalization)
9
+ **Prompt** — `/intuition-prompt`
10
+ - Transforms a rough vision into a precise, planning-ready discovery brief
11
+ - Framework: CaptureRefineReflectConfirm
12
12
  - Output: `discovery_brief.md` and `discovery_output.json`
13
13
 
14
14
  **Handoff** — `/intuition-handoff`
15
15
  - Processes phase outputs, updates memory files, generates brief for next agent
16
- - Runs between every phase transition (discovery→planning and planning→execution)
16
+ - Runs between every phase transition
17
+ - Manages the design loop (item-by-item design cycles)
17
18
  - ONLY component that writes to `.project-memory-state.json`
18
19
 
19
- **Planning (Magellan)** — `/intuition-plan`
20
+ **Planning** — `/intuition-plan`
20
21
  - Strategic synthesis and structured execution planning
21
22
  - Researches codebase, identifies patterns, creates detailed plan
22
- - Output: `plan.md` with tasks, dependencies, risks
23
+ - Flags tasks requiring design exploration with rationale
24
+ - Output: `plan.md` with tasks, dependencies, risks, design recommendations
23
25
 
24
- **Execution (Faraday)** — `/intuition-execute`
26
+ **Design** — `/intuition-design`
27
+ - Detailed design exploration for flagged plan items
28
+ - Framework: ECD (Elements, Connections, Dynamics)
29
+ - Domain-agnostic: works for code, world building, UI, documents, or any creative/structural work
30
+ - Runs once per flagged item in a loop managed by handoff
31
+ - Output: `design_spec_[item].md` per item
32
+
33
+ **Execution** — `/intuition-execute`
25
34
  - Methodical implementation with verification and quality checks
26
35
  - Delegates to specialized sub-agents, coordinates work, verifies outputs
36
+ - Reads both plan.md and design specs for implementation guidance
27
37
  - Output: Implemented features, updated memory, completion report
28
38
 
29
39
  **Session Primer** — `/intuition-start`
30
40
  - Loads project context, detects workflow phase, suggests next step
31
41
  - Run at the start of any session to get oriented
32
42
 
33
- **Recommended Flow**: Discovery → Handoff → Planning → Handoff → Execution → Handoff
43
+ **Recommended Flow**: Prompt → Handoff → Plan → Handoff → [Design Loop] → Handoff → Execute → Handoff
34
44
 
35
45
  ### Memory Files
36
46
 
@@ -42,10 +52,12 @@ The project follows a structured workflow with handoff transitions between phase
42
52
  - **.project-memory-state.json** — Workflow phase tracking and session state
43
53
 
44
54
  **Phase Output Files** (created during workflow):
45
- - **discovery_brief.md** — Discovery phase synthesis (created by Waldo)
46
- - **discovery_output.json** — Structured findings (created by Waldo, processed by Handoff)
55
+ - **discovery_brief.md** — Prompt phase synthesis
56
+ - **discovery_output.json** — Structured findings (processed by Handoff)
47
57
  - **planning_brief.md** — Brief for planning phase (created by Handoff)
48
- - **plan.md** — Structured project plan (created by Magellan)
58
+ - **plan.md** — Structured project plan with design recommendations
59
+ - **design_brief.md** — Brief for current design item (created/updated by Handoff)
60
+ - **design_spec_[item].md** — Design specifications per item
49
61
  - **execution_brief.md** — Brief for execution phase (created by Handoff)
50
62
 
51
63
  ### Memory-Aware Protocols
@@ -77,14 +89,17 @@ The project follows a structured workflow with handoff transitions between phase
77
89
 
78
90
  ### Smart Skill Suggestions
79
91
 
80
- **When discovery is complete:**
81
- - "Discovery looks complete! Use `/intuition-handoff` to process insights and prepare for planning."
92
+ **When prompt refinement is complete:**
93
+ - "Prompt refinement looks complete! Use `/intuition-handoff` to process insights and prepare for planning."
82
94
 
83
95
  **When user suggests planning work:**
84
96
  - "This sounds like a good candidate for planning. Use `/intuition-handoff` to process discovery, then `/intuition-plan` to develop a structured approach."
85
97
 
86
- **When plan is ready for execution:**
87
- - "The plan looks ready! Use `/intuition-handoff` to prepare execution context, then `/intuition-execute` to begin."
98
+ **When plan is ready and has design items:**
99
+ - "The plan looks ready! Use `/intuition-handoff` to review design recommendations and start the design loop."
100
+
101
+ **When design items are complete:**
102
+ - "All design specs are done! Use `/intuition-handoff` to prepare the execution brief."
88
103
 
89
104
  **When user is ready to execute:**
90
105
  - "Execution brief is ready! Use `/intuition-execute` to kick off coordinated implementation."