@tgoodington/intuition 8.1.3 → 9.2.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.
Files changed (111) hide show
  1. package/docs/v9/decision-framework-direction.md +142 -0
  2. package/docs/v9/decision-framework-implementation.md +114 -0
  3. package/docs/v9/domain-adaptive-team-architecture.md +1016 -0
  4. package/docs/v9/test/SESSION_SUMMARY.md +117 -0
  5. package/docs/v9/test/TEST_PLAN.md +119 -0
  6. package/docs/v9/test/blueprints/legal-analyst.md +166 -0
  7. package/docs/v9/test/output/07_cover_letter.md +41 -0
  8. package/docs/v9/test/phase2/mock_plan.md +89 -0
  9. package/docs/v9/test/phase2/producers.json +32 -0
  10. package/docs/v9/test/phase2/specialists/database-architect.specialist.md +10 -0
  11. package/docs/v9/test/phase2/specialists/financial-analyst.specialist.md +10 -0
  12. package/docs/v9/test/phase2/specialists/legal-analyst.specialist.md +10 -0
  13. package/docs/v9/test/phase2/specialists/technical-writer.specialist.md +10 -0
  14. package/docs/v9/test/phase2/team_assignment.json +61 -0
  15. package/docs/v9/test/phase3/blueprints/legal-analyst.md +840 -0
  16. package/docs/v9/test/phase3/legal-analyst-full.specialist.md +111 -0
  17. package/docs/v9/test/phase3/project_context/nh_landlord_tenant_notes.md +35 -0
  18. package/docs/v9/test/phase3/project_context/property_facts.md +32 -0
  19. package/docs/v9/test/phase3b/blueprints/legal-analyst.md +1715 -0
  20. package/docs/v9/test/phase3b/legal-analyst.specialist.md +153 -0
  21. package/docs/v9/test/phase3b/scratch/legal-analyst-stage1.md +270 -0
  22. package/docs/v9/test/phase4/TEST_PLAN.md +32 -0
  23. package/docs/v9/test/phase4/blueprints/financial-analyst-T2.md +538 -0
  24. package/docs/v9/test/phase4/blueprints/legal-analyst-T4.md +253 -0
  25. package/docs/v9/test/phase4/cross-blueprint-check.md +280 -0
  26. package/docs/v9/test/phase4/scratch/financial-analyst-T2-stage1.md +67 -0
  27. package/docs/v9/test/phase4/scratch/legal-analyst-T4-stage1.md +54 -0
  28. package/docs/v9/test/phase4/specialists/financial-analyst.specialist.md +156 -0
  29. package/docs/v9/test/phase4/specialists/legal-analyst.specialist.md +153 -0
  30. package/docs/v9/test/phase5/TEST_PLAN.md +35 -0
  31. package/docs/v9/test/phase5/blueprints/code-architect-hw-vetter.md +375 -0
  32. package/docs/v9/test/phase5/output/04_compliance_checklist.md +149 -0
  33. package/docs/v9/test/phase5/output/hardware-vetter-SKILL-v2.md +561 -0
  34. package/docs/v9/test/phase5/output/hardware-vetter-SKILL.md +459 -0
  35. package/docs/v9/test/phase5/producers/code-writer.producer.md +49 -0
  36. package/docs/v9/test/phase5/producers/document-writer.producer.md +62 -0
  37. package/docs/v9/test/phase5/regression-comparison-v2.md +60 -0
  38. package/docs/v9/test/phase5/regression-comparison.md +197 -0
  39. package/docs/v9/test/phase5/review-5A-specialist.md +213 -0
  40. package/docs/v9/test/phase5/specialist-test/TEST_PLAN.md +60 -0
  41. package/docs/v9/test/phase5/specialist-test/blueprint-comparison.md +252 -0
  42. package/docs/v9/test/phase5/specialist-test/blueprints/code-architect-hw-vetter.md +916 -0
  43. package/docs/v9/test/phase5/specialist-test/scratch/code-architect-stage1.md +427 -0
  44. package/docs/v9/test/phase5/specialists/code-architect.specialist.md +168 -0
  45. package/docs/v9/test/phase5b/TEST_PLAN.md +219 -0
  46. package/docs/v9/test/phase5b/blueprints/5B-10-stage2-with-decisions.md +286 -0
  47. package/docs/v9/test/phase5b/decisions/5B-2-accept-all-decisions.json +68 -0
  48. package/docs/v9/test/phase5b/decisions/5B-3-promote-decisions.json +70 -0
  49. package/docs/v9/test/phase5b/decisions/5B-4-individual-decisions.json +68 -0
  50. package/docs/v9/test/phase5b/decisions/5B-5-triage-decisions.json +110 -0
  51. package/docs/v9/test/phase5b/decisions/5B-6-fallback-decisions.json +40 -0
  52. package/docs/v9/test/phase5b/decisions/5B-8-partial-decisions.json +46 -0
  53. package/docs/v9/test/phase5b/decisions/5B-9-complete-decisions.json +54 -0
  54. package/docs/v9/test/phase5b/scratch/code-architect-stage1.md +133 -0
  55. package/docs/v9/test/phase5b/specialists/code-architect.specialist.md +202 -0
  56. package/docs/v9/test/phase5b/stage1-many-decisions.md +139 -0
  57. package/docs/v9/test/phase5b/stage1-no-assumptions.md +70 -0
  58. package/docs/v9/test/phase5b/stage1-with-assumptions.md +86 -0
  59. package/docs/v9/test/phase5b/test-5B-1-results.md +157 -0
  60. package/docs/v9/test/phase5b/test-5B-10-results.md +130 -0
  61. package/docs/v9/test/phase5b/test-5B-2-results.md +75 -0
  62. package/docs/v9/test/phase5b/test-5B-3-results.md +104 -0
  63. package/docs/v9/test/phase5b/test-5B-4-results.md +114 -0
  64. package/docs/v9/test/phase5b/test-5B-5-results.md +126 -0
  65. package/docs/v9/test/phase5b/test-5B-6-results.md +60 -0
  66. package/docs/v9/test/phase5b/test-5B-7-results.md +141 -0
  67. package/docs/v9/test/phase5b/test-5B-8-results.md +115 -0
  68. package/docs/v9/test/phase5b/test-5B-9-results.md +76 -0
  69. package/docs/v9/test/producers/document-writer.producer.md +62 -0
  70. package/docs/v9/test/specialists/legal-analyst.specialist.md +58 -0
  71. package/package.json +4 -2
  72. package/producers/code-writer/code-writer.producer.md +86 -0
  73. package/producers/data-file-writer/data-file-writer.producer.md +116 -0
  74. package/producers/document-writer/document-writer.producer.md +117 -0
  75. package/producers/form-filler/form-filler.producer.md +99 -0
  76. package/producers/presentation-creator/presentation-creator.producer.md +109 -0
  77. package/producers/spreadsheet-builder/spreadsheet-builder.producer.md +107 -0
  78. package/scripts/install-skills.js +88 -7
  79. package/scripts/uninstall-skills.js +3 -0
  80. package/skills/intuition-agent-advisor/SKILL.md +107 -0
  81. package/skills/intuition-assemble/SKILL.md +261 -0
  82. package/skills/intuition-build/SKILL.md +211 -151
  83. package/skills/intuition-debugger/SKILL.md +4 -4
  84. package/skills/intuition-design/SKILL.md +7 -3
  85. package/skills/intuition-detail/SKILL.md +377 -0
  86. package/skills/intuition-engineer/SKILL.md +8 -4
  87. package/skills/intuition-handoff/SKILL.md +251 -213
  88. package/skills/intuition-handoff/references/handoff_core.md +16 -16
  89. package/skills/intuition-initialize/SKILL.md +20 -5
  90. package/skills/intuition-initialize/references/state_template.json +16 -1
  91. package/skills/intuition-plan/SKILL.md +139 -59
  92. package/skills/intuition-plan/references/magellan_core.md +8 -8
  93. package/skills/intuition-plan/references/templates/plan_template.md +5 -5
  94. package/skills/intuition-prompt/SKILL.md +89 -27
  95. package/skills/intuition-start/SKILL.md +42 -9
  96. package/skills/intuition-start/references/start_core.md +12 -12
  97. package/skills/intuition-test/SKILL.md +345 -0
  98. package/specialists/api-designer/api-designer.specialist.md +291 -0
  99. package/specialists/business-analyst/business-analyst.specialist.md +270 -0
  100. package/specialists/copywriter/copywriter.specialist.md +268 -0
  101. package/specialists/database-architect/database-architect.specialist.md +275 -0
  102. package/specialists/devops-infrastructure/devops-infrastructure.specialist.md +314 -0
  103. package/specialists/financial-analyst/financial-analyst.specialist.md +269 -0
  104. package/specialists/frontend-component/frontend-component.specialist.md +293 -0
  105. package/specialists/instructional-designer/instructional-designer.specialist.md +285 -0
  106. package/specialists/legal-analyst/legal-analyst.specialist.md +260 -0
  107. package/specialists/marketing-strategist/marketing-strategist.specialist.md +281 -0
  108. package/specialists/project-manager/project-manager.specialist.md +266 -0
  109. package/specialists/research-analyst/research-analyst.specialist.md +273 -0
  110. package/specialists/security-auditor/security-auditor.specialist.md +354 -0
  111. package/specialists/technical-writer/technical-writer.specialist.md +275 -0
@@ -18,7 +18,7 @@ As part of every handoff, extract user profile learnings and update the global u
18
18
 
19
19
  ### Discovery → Planning Handoff (User Profile Focus)
20
20
 
21
- **From discovery_output.json**, extract `user_profile_learnings`:
21
+ **From prompt_output.json**, extract `user_profile_learnings`:
22
22
 
23
23
  ```json
24
24
  {
@@ -37,7 +37,7 @@ As part of every handoff, extract user profile learnings and update the global u
37
37
 
38
38
  **Update `.claude/USER_PROFILE.json`:**
39
39
  1. Read existing `.claude/USER_PROFILE.json` (may be empty initially)
40
- 2. Merge in new learnings from `discovery_output.json`:
40
+ 2. Merge in new learnings from `prompt_output.json`:
41
41
  - If a field is `null` in profile and has value in learnings, add it
42
42
  - If field is populated in profile, only overwrite if discovery_confidence is "high"
43
43
  - Always update `metadata.last_updated` timestamp
@@ -96,7 +96,7 @@ Check `.project-memory-state.json` to determine current state:
96
96
  "started": true,
97
97
  "completed": true,
98
98
  "completed_at": "2025-02-02T...",
99
- "output_files": ["discovery_brief.md", "discovery_output.json"]
99
+ "output_files": ["prompt_brief.md", "prompt_output.json"]
100
100
  },
101
101
  "planning": {
102
102
  "started": false,
@@ -111,10 +111,10 @@ Check `.project-memory-state.json` to determine current state:
111
111
  ### Step 1: Read Outputs
112
112
 
113
113
  ```
114
- discovery_brief.md
114
+ prompt_brief.md
115
115
  └─ Human-readable summary of discovery
116
116
 
117
- discovery_output.json
117
+ prompt_output.json
118
118
  └─ Structured data for handoff:
119
119
  {
120
120
  "key_facts_to_add": [...],
@@ -127,11 +127,11 @@ discovery_output.json
127
127
 
128
128
  ### Step 2: Extract and Structure Findings
129
129
 
130
- From `discovery_output.json`, extract:
130
+ From `prompt_output.json`, extract:
131
131
 
132
132
  **Key Facts** (for key_facts.md):
133
133
  ```
134
- Example from discovery_output.json:
134
+ Example from prompt_output.json:
135
135
  {
136
136
  "category": "User Base",
137
137
  "fact": "Scaling to support 10,000 concurrent users",
@@ -165,7 +165,7 @@ if they represent architectural choices.
165
165
 
166
166
  **Suggested Decisions** (for decisions.md):
167
167
  ```
168
- discovery_output.json might suggest:
168
+ prompt_output.json might suggest:
169
169
  {
170
170
  "suggested_decisions": [
171
171
  {
@@ -223,7 +223,7 @@ operations, with write operations on primary instance.
223
223
  **Update issues.md:**
224
224
  - Log the discovery work completed
225
225
  - Format: Date - Brief description - Status
226
- - Include discovery_brief.md link
226
+ - Include prompt_brief.md link
227
227
 
228
228
  Example:
229
229
  ```markdown
@@ -232,7 +232,7 @@ Example:
232
232
  - **Status**: Completed
233
233
  - **Description**: Explored user base growth, authentication patterns,
234
234
  scalability needs
235
- - **Discovery Brief**: docs/project_notes/discovery_brief.md
235
+ - **Discovery Brief**: docs/project_notes/prompt_brief.md
236
236
  - **Key Findings**:
237
237
  - Must scale to 10k concurrent users
238
238
  - Prefer JWT-based auth
@@ -271,7 +271,7 @@ Create a brief that synthesizes discovery for planning. Structure:
271
271
  - Risk: [Y] - Should be explored during planning
272
272
 
273
273
  ## References
274
- - Discovery Brief: docs/project_notes/discovery_brief.md
274
+ - Discovery Brief: docs/project_notes/prompt_brief.md
275
275
  - Relevant Decisions: ADR-001, ADR-002
276
276
 
277
277
  ## Notes for Planner
@@ -406,7 +406,7 @@ Create a brief for execution. Structure:
406
406
 
407
407
  ## References
408
408
  - Full Plan: docs/project_notes/plan.md
409
- - Discovery Brief: docs/project_notes/discovery_brief.md
409
+ - Discovery Brief: docs/project_notes/prompt_brief.md
410
410
  - Relevant Decisions: ADR-001, ADR-002, ...
411
411
 
412
412
  ## Notes for Executor
@@ -485,7 +485,7 @@ implementation."
485
485
  **Consequences:**
486
486
  [Benefits and trade-offs]
487
487
 
488
- **Discovered During**: Discovery phase (discovery_brief.md)
488
+ **Discovered During**: Discovery phase (prompt_brief.md)
489
489
  **Confidence**: High/Medium/Low
490
490
  ```
491
491
 
@@ -506,12 +506,12 @@ implementation."
506
506
 
507
507
  ## Edge Cases
508
508
 
509
- ### What if discovery_output.json doesn't exist?
509
+ ### What if prompt_output.json doesn't exist?
510
510
 
511
511
  ```
512
- 1. Check if discovery_brief.md exists
512
+ 1. Check if prompt_brief.md exists
513
513
  2. If yes: Read brief manually and extract key insights
514
- 3. Summarize into a simple discovery_output.json structure
514
+ 3. Summarize into a simple prompt_output.json structure
515
515
  4. Proceed with handoff
516
516
  5. Note: Less structured, but handoff still works
517
517
  ```
@@ -15,7 +15,7 @@ You create the `docs/project_notes/` directory structure, initialize memory file
15
15
  1. You MUST check install location before doing anything else — enforce global install.
16
16
  2. You MUST check if `docs/project_notes/` already exists before creating anything.
17
17
  3. You MUST use template files from `references/` directory for all initial content. Read each template with the Read tool, then Write to the target path.
18
- 4. You MUST create `.project-memory-state.json` using the v5.0 schema from `references/state_template.json`. Do NOT use older schemas.
18
+ 4. You MUST create `.project-memory-state.json` using the v7.0 schema from `references/state_template.json`. Do NOT use older schemas.
19
19
  5. You MUST auto-create all configuration files (CLAUDE.md, INTUITION.md, AGENTS.md, settings, profile) if they do not exist. Do NOT ask — just create them.
20
20
  6. You MUST NOT overwrite existing files. If a file already exists, skip it silently.
21
21
  7. You MUST NOT invoke other skills. You only set up infrastructure.
@@ -27,7 +27,7 @@ You create the `docs/project_notes/` directory structure, initialize memory file
27
27
  Step 0: Check install location — enforce global install
28
28
  Step 1: Detect existing setup
29
29
  Step 2: Create memory directory and files from templates
30
- Step 3: Create .project-memory-state.json with v5.0 schema
30
+ Step 3: Create .project-memory-state.json with v7.0 schema
31
31
  Step 4: Update CLAUDE.md with workflow protocols
32
32
  Step 4.5: Create INTUITION.md framework overview
33
33
  Step 5: Create configuration files (AGENTS.md, settings, user profile)
@@ -111,18 +111,18 @@ For each file, use the Read tool to read the template, then use Write to create
111
111
  | `references/key_facts_template.md` | `docs/project_notes/key_facts.md` |
112
112
  | `references/issues_template.md` | `docs/project_notes/issues.md` |
113
113
 
114
- Do NOT create workflow output files (discovery_brief.md, plan.md, etc.). Those are created by their respective skills.
114
+ Do NOT create workflow output files (prompt_brief.md, plan.md, etc.). Those are created by their respective skills.
115
115
 
116
116
  ## STEP 3: CREATE STATE FILE
117
117
 
118
118
  Read `references/state_template.json` and write to `docs/project_notes/.project-memory-state.json`.
119
119
 
120
- The state file uses the v5.0 schema:
120
+ The state file uses the v7.0 schema:
121
121
 
122
122
  ```json
123
123
  {
124
124
  "initialized": true,
125
- "version": "5.0",
125
+ "version": "7.0",
126
126
  "active_context": "trunk",
127
127
  "trunk": {
128
128
  "status": "none",
@@ -156,6 +156,21 @@ The state file uses the v5.0 schema:
156
156
  "started": false,
157
157
  "completed": false,
158
158
  "completed_at": null
159
+ },
160
+ "test": {
161
+ "started": false,
162
+ "completed": false,
163
+ "completed_at": null,
164
+ "skipped": false
165
+ },
166
+ "detail": {
167
+ "started": false,
168
+ "completed": false,
169
+ "completed_at": null,
170
+ "team_assignment": null,
171
+ "specialists": [],
172
+ "current_specialist": null,
173
+ "execution_phase": 1
159
174
  }
160
175
  }
161
176
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "initialized": true,
3
- "version": "5.0",
3
+ "version": "7.0",
4
4
  "active_context": "trunk",
5
5
  "trunk": {
6
6
  "status": "none",
@@ -34,6 +34,21 @@
34
34
  "started": false,
35
35
  "completed": false,
36
36
  "completed_at": null
37
+ },
38
+ "test": {
39
+ "started": false,
40
+ "completed": false,
41
+ "completed_at": null,
42
+ "skipped": false
43
+ },
44
+ "detail": {
45
+ "started": false,
46
+ "completed": false,
47
+ "completed_at": null,
48
+ "team_assignment": null,
49
+ "specialists": [],
50
+ "current_specialist": null,
51
+ "execution_phase": 1
37
52
  }
38
53
  }
39
54
  },
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: intuition-plan
3
- description: Strategic architect. Reads discovery brief, engages in interactive dialogue to map stakeholders, explore components, evaluate options, synthesize an executable blueprint, and flag tasks requiring design exploration.
3
+ description: Strategic architect. Reads prompt brief, engages in interactive dialogue to map stakeholders, explore components, evaluate options, synthesize an executable blueprint, and flag tasks requiring design exploration.
4
4
  model: opus
5
5
  tools: Read, Write, Glob, Grep, Task, AskUserQuestion, Bash, WebFetch
6
6
  allowed-tools: Read, Write, Glob, Grep, Task, Bash, WebFetch
@@ -11,8 +11,8 @@ allowed-tools: Read, Write, Glob, Grep, Task, Bash, WebFetch
11
11
  These are non-negotiable. Violating any of these means the protocol has failed.
12
12
 
13
13
  1. You MUST read `.project-memory-state.json` on startup to determine `active_context` and resolve `context_path`. Use context_path for ALL file reads and writes.
14
- 2. You MUST read `{context_path}/discovery_brief.md` before planning. If missing, stop and tell the user to run `/intuition-prompt`.
15
- 3. You MUST launch orientation research agents during Intake, after reading the discovery brief but BEFORE your first AskUserQuestion.
14
+ 2. You MUST read `{context_path}/prompt_brief.md` before planning. If missing, stop and tell the user to run `/intuition-prompt`.
15
+ 3. You MUST launch orientation research agents during Intake, after reading the prompt brief but BEFORE your first AskUserQuestion.
16
16
  4. You MUST use ARCH coverage tracking. Homestretch only unlocks when Actors, Reach, and Choices are sufficiently explored.
17
17
  5. You MUST ask exactly ONE question per turn via AskUserQuestion. For decisional questions, present 2-3 options with trade-offs. For informational questions (gathering facts, confirming understanding), present relevant options but trade-off analysis is not required.
18
18
  6. You MUST get explicit user approval before saving the plan.
@@ -21,10 +21,10 @@ These are non-negotiable. Violating any of these means the protocol has failed.
21
21
  9. You MUST write interim artifacts to `{context_path}/.planning_research/` for context management.
22
22
  10. You MUST validate against the Executable Plan Checklist before presenting the draft plan.
23
23
  11. You MUST present 2-4 sentences of analysis BEFORE every question. Show your reasoning.
24
- 12. You MUST NOT modify `discovery_brief.md` or `planning_brief.md`.
24
+ 12. You MUST NOT modify `prompt_brief.md` or `planning_brief.md`.
25
25
  13. You MUST NOT manage `.project-memory-state.json` — handoff owns state transitions.
26
26
  14. You MUST treat user input as suggestions unless explicitly stated as requirements. Evaluate critically and propose alternatives when warranted.
27
- 15. You MUST assess every task for design readiness and include a "Design Recommendations" section in the plan. Flag any task where execution cannot proceed without further design exploration (see DESIGN READINESS ASSESSMENT below).
27
+ 15. You MUST assess every task for readiness and include a Detail Assessment (Section 6.5) classifying every task by domain and depth.
28
28
  16. When planning on a branch, you MUST read the parent context's plan.md and include a Parent Context section (Section 2.5). Inherited architectural decisions from the parent are binding unless the user explicitly overrides them.
29
29
  17. You MUST NEVER proceed past a research agent launch until its results have returned and been incorporated into your analysis. Do NOT draft options, present findings, or write any output document while a research agent is still running.
30
30
 
@@ -66,7 +66,7 @@ Phase 1: INTAKE (1 turn) Read context, launch research, greet, b
66
66
  Phase 2: ACTORS & SCOPE (1-2 turns) Map stakeholders, identify tensions [ARCH: A]
67
67
  Phase 2.5: DEPTH SELECTION (1 turn) User chooses planning depth tier
68
68
  Phase 3: REACH & CHOICES (variable) Scope components, resolve decisions [ARCH: R + C]
69
- Phase 4: HOMESTRETCH (1-2 turns) Draft blueprint, validate, present [ARCH: H]
69
+ Phase 4: HOMESTRETCH (1-3 turns) Draft blueprint, validate, present, decision review [ARCH: H]
70
70
  Phase 5: FORMALIZATION (1 turn) Save plan.md, route to handoff
71
71
  ```
72
72
 
@@ -87,11 +87,11 @@ This phase is exactly 1 turn. Execute all of the following before your first use
87
87
  ## Step 1: Read inputs
88
88
 
89
89
  Read these files:
90
- - `{context_path}/discovery_brief.md` — REQUIRED. If missing, stop immediately: "No discovery brief found. Run `/intuition-prompt` first."
90
+ - `{context_path}/prompt_brief.md` — REQUIRED. If missing, stop immediately: "No prompt brief found. Run `/intuition-prompt` first."
91
91
  - `{context_path}/planning_brief.md` — optional, may contain handoff context.
92
92
  - `.claude/USER_PROFILE.json` — optional, for tailoring communication style.
93
93
 
94
- From the discovery brief, extract: core problem, success criteria, stakeholders, constraints, scope, assumptions, and research insights.
94
+ From the prompt brief, extract: core problem, success criteria, stakeholders, constraints, scope, assumptions, research insights, commander's intent, and decision posture.
95
95
 
96
96
  ## Step 2: Launch orientation research
97
97
 
@@ -156,14 +156,14 @@ When `active_context` is NOT trunk:
156
156
  Prompt:
157
157
  "The project root is the current working directory. Compare two workflow artifacts:
158
158
 
159
- 1. Read the discovery brief at {context_path}/discovery_brief.md.
159
+ 1. Read the prompt brief at {context_path}/prompt_brief.md.
160
160
  2. Read the parent plan at {parent_path}/plan.md.
161
- 3. For each file path mentioned in the parent plan's tasks, check if the discovery brief references the same files or components.
161
+ 3. For each file path mentioned in the parent plan's tasks, check if the prompt brief references the same files or components.
162
162
  4. Extract all technology decisions from the parent plan (Section 3 if it exists).
163
- 5. Identify acceptance criteria in the parent plan that touch the same areas as the discovery brief.
163
+ 5. Identify acceptance criteria in the parent plan that touch the same areas as the prompt brief.
164
164
 
165
165
  Report on:
166
- (1) Shared files/components that both parent plan and this branch's discovery brief touch
166
+ (1) Shared files/components that both parent plan and this branch's prompt brief touch
167
167
  (2) Decisions in the parent plan that constrain this branch
168
168
  (3) Potential conflicts or dependencies between parent and branch work
169
169
  (4) Patterns from parent implementation that this branch should reuse
@@ -176,7 +176,7 @@ Write results to `{context_path}/.planning_research/parent_intersection.md`.
176
176
 
177
177
  In a single message:
178
178
  1. Introduce your role as the planning architect in one sentence.
179
- 2. Summarize your understanding of the discovery brief in 3-4 sentences.
179
+ 2. Summarize your understanding of the prompt brief in 3-4 sentences.
180
180
  3. Present the stakeholders you identified from the brief and orientation research.
181
181
  4. Ask your first question via AskUserQuestion — about stakeholders. Are these the right actors? Who is missing?
182
182
 
@@ -186,7 +186,7 @@ This is the only turn in Phase 1.
186
186
 
187
187
  Goal: Map all stakeholders and identify tensions between their needs.
188
188
 
189
- - Present stakeholders identified from the discovery brief and orientation research.
189
+ - Present stakeholders identified from the prompt brief and orientation research.
190
190
  - Ask the user to confirm, adjust, or expand the list.
191
191
  - Push back if the stakeholder list seems incomplete. If the project affects end users but no end-user perspective is listed, say so.
192
192
  - Identify tensions between stakeholder needs (e.g., "Engineering wants speed but QA needs coverage — we'll need to balance that").
@@ -196,7 +196,7 @@ When actors are sufficiently mapped (user has confirmed or adjusted), transition
196
196
 
197
197
  # PHASE 2.5: DEPTH SELECTION (1 turn)
198
198
 
199
- Based on the scope revealed by the discovery brief and actors discussion, recommend a planning depth tier:
199
+ Based on the scope revealed by the prompt brief and actors discussion, recommend a planning depth tier:
200
200
 
201
201
  - **Lightweight** (1-4 tasks): Focused scope, few unknowns. Plan includes: Objective, Discovery Summary, Task Sequence, Execution Notes.
202
202
  - **Standard** (5-10 tasks): Moderate complexity. Adds: Technology Decisions, Testing Strategy, Risks & Mitigations.
@@ -213,7 +213,28 @@ The selected tier governs:
213
213
 
214
214
  Goal: Identify what the plan touches (Reach) and resolve every major decision (Choices).
215
215
 
216
- For each major decision domain identified from the discovery brief, orientation research, and dialogue:
216
+ ## Decision Boundary Test
217
+
218
+ Before presenting any decision question to the user, apply this gate:
219
+
220
+ 1. **Does this decision change the task breakdown?** If removing one option would add, remove, or fundamentally restructure tasks — it's plan-level. Resolve it here.
221
+ 2. **Does this decision ripple across multiple tasks?** If the answer constrains or reshapes work in 2+ tasks — it's plan-level. Resolve it here.
222
+
223
+ If NEITHER condition is met, the decision is specialist-level. Do NOT resolve it during planning. Instead:
224
+ - Note it as a `[USER]` or `[SPEC]` decision on the relevant task (using the 2x2 heuristic)
225
+ - Add it to Section 10 as an open question tagged by domain
226
+ - Move on to the next planning-level concern
227
+
228
+ When in doubt, defer. A specialist with loaded domain expertise will make a better-informed decision than the planning phase can. Over-resolving during planning robs the detail phase of its purpose.
229
+
230
+ **Examples:**
231
+ - "Structured state model vs text-based manipulation" → changes how 3+ tasks are structured → **plan-level, resolve here**
232
+ - "What happens when no valid path exists" → single task's error handling → **specialist-level, defer**
233
+ - "How should output be formatted" → single task's rendering detail → **specialist-level, defer**
234
+
235
+ 3. **Explain for the creative director.** When presenting a plan-level decision, assume the user has zero domain background. Explain what each option means in plain language — what it does, what it costs, and why you recommend one. If you cannot explain the trade-off without jargon, you don't understand it well enough to ask yet.
236
+
237
+ For each major decision domain identified from the prompt brief, orientation research, and dialogue:
217
238
 
218
239
  1. **Identify** the decision needed. State it clearly.
219
240
  2. **Research** (when needed): Launch 1-2 targeted research agents via Task tool.
@@ -281,6 +302,24 @@ Run the Executable Plan Checklist (below). Fix any failures before presenting.
281
302
 
282
303
  Present a summary: total tasks, key decisions that shaped the plan, judgment calls you made, notable risks. Ask via AskUserQuestion: "Does this plan look right?" Options: "Approve as-is" / "Needs changes".
283
304
 
305
+ ## Step 4b: Decision review
306
+
307
+ After the user approves the plan content (Step 4), present all `[USER]` and `[SPEC]` decisions in a single summary and ask via AskUserQuestion:
308
+
309
+ "Here are the decisions I'd surface to you during detail/build work. Want to reclassify any?"
310
+
311
+ - Header: "Decisions"
312
+ - Options:
313
+ - "Looks right"
314
+ - "I want to reclassify some"
315
+ - "Give me more control" — shifts all `[SPEC]` → `[USER]`
316
+ - "Give the team more autonomy" — shifts all `[USER]` on easy-to-reverse items → `[SPEC]`
317
+
318
+ If they want to reclassify, address specific changes (1 turn max), then proceed.
319
+ If no tasks have classified decisions, skip this step entirely.
320
+
321
+ This is the ONE exception to "one question per turn" — it happens on a separate turn after plan approval.
322
+
284
323
  ## Step 5: Iterate
285
324
 
286
325
  If changes requested, make them and present again. Repeat until explicitly approved.
@@ -291,7 +330,7 @@ After explicit approval:
291
330
 
292
331
  1. Write the final plan to `{context_path}/plan.md`.
293
332
  2. Tell the user: "Plan saved to `{context_path}/plan.md`. Next step: Run `/intuition-handoff` to transition to the next phase."
294
- 3. ALWAYS route to `/intuition-handoff`. NEVER suggest `/intuition-execute`.
333
+ 3. ALWAYS route to `/intuition-handoff`.
295
334
 
296
335
  # PLAN.MD OUTPUT FORMAT (Plan-Execute Contract v1.0)
297
336
 
@@ -301,7 +340,7 @@ After explicit approval:
301
340
  - **Standard**: Sections 1, 2, 3, 6, 6.5, 7, 8, 10
302
341
  - **Comprehensive**: All sections (1-10, including 6.5)
303
342
 
304
- Section 6.5 is Design Recommendations ALWAYS included regardless of tier.
343
+ Section 6.5 (Detail Assessment) is ALWAYS included regardless of tier.
305
344
  Section 2.5 is Parent Context — included for ALL tiers when on a branch.
306
345
 
307
346
  ## Section Specifications
@@ -349,16 +388,30 @@ Ordered list forming a valid dependency DAG. Each task:
349
388
 
350
389
  ```markdown
351
390
  ### Task [N]: [Title]
352
- - **Component**: [which architectural component]
391
+ - **Domain**: [free-text domain descriptor — e.g., "code/backend", "legal/regulatory", "marketing/copy"]
392
+ - **Depth**: Deep | Standard | Light
393
+ - **Component**: [which architectural component or project area]
353
394
  - **Description**: [WHAT to do, not HOW — execution decides HOW]
354
395
  - **Acceptance Criteria**:
355
396
  1. [Outcome-based criterion — verifiable without prescribing implementation]
356
397
  2. [Outcome-based criterion]
357
398
  [minimum 2 per task]
358
399
  - **Dependencies**: [Task numbers] or "None"
400
+ - **Decisions**: (include only when classified decision points exist)
401
+ - `[USER]` [decision description] — [one-line rationale]
402
+ - `[SPEC]` [decision description] — [one-line rationale]
359
403
  - **Files**: [Specific paths when known] or "TBD — [component area]"
360
404
  ```
361
405
 
406
+ `[SILENT]` decisions are NOT listed — they are silent by definition. Omit the Decisions field entirely for tasks with no classified decision points (pure mechanical work).
407
+
408
+ Domain and Depth are included for every task. Domain is a free-text descriptor — the plan does NOT reference specialist names. Team assembly matches domains to specialists later.
409
+
410
+ Depth controls specialist invocation:
411
+ - **Deep** — full exploration → user confirmation gate → specification. For novel territory, multiple valid approaches, or high-stakes decisions.
412
+ - **Standard** — research → 1-2 confirmation questions → blueprint. For clear paths with a few key decisions.
413
+ - **Light** — research → blueprint produced autonomously. For straightforward, pattern-following tasks.
414
+
362
415
  **Acceptance criteria rule:** If a criterion can only be satisfied ONE way, it is over-specified. Criteria describe outcomes ("users can reset passwords via email"), not implementations ("add a resetPassword() method that calls sendEmail()"). The engineer and build phases decide the code-level HOW.
363
416
 
364
417
  ### 7. Testing Strategy (Standard+, when code is produced)
@@ -378,61 +431,84 @@ Test types required. Which tasks need tests (reference task numbers). Critical t
378
431
 
379
432
  Every open question MUST have a Recommended Default. The execution phase uses the default unless the user provides direction. If you cannot write a reasonable default, the question is not ready to be left open — resolve it during dialogue.
380
433
 
381
- ### 10. Planning Context for Engineer (always)
382
- Context and considerations for the engineering phase — NOT instructions. Engineer owns all implementation decisions.
434
+ ### 10. Planning Context for Detail Phase (always)
383
435
 
384
- - **Sequencing Considerations**: Factors that affect task ordering (NOT a prescribed order Engineer decides)
385
- - **Parallelization Opportunities**: Which tasks touch independent surfaces (Engineer validates and decides)
386
- - **Engineering Questions**: Open implementation questions Engineer must resolve during code spec creation (e.g., "How should error propagation work across Tasks 3-5?" / "Tasks 2 and 6 both touch the auth layer — shared abstraction or independent?")
387
- - **Constraints**: Hard boundaries Engineer must respect (performance targets, API contracts, backward compatibility)
388
- - **Risk Context**: What could go wrong and why — Engineer decides mitigation strategy
436
+ - **Domain-Specific Considerations**: per-domain notes legal constraints, brand guidelines, data quality issues, performance targets
437
+ - **Cross-Domain Dependencies**: where specialist outputs must coordinate
438
+ - **Sequencing Considerations**: what depends on what across domains
439
+ - **Open Questions**: questions the detail phase must resolve, tagged by domain
440
+ - **Constraints**: hard boundaries per domain
441
+ - **Decision Policy**: summary of the user's posture (hands-on vs. delegator) and any global overrides from the decision review step
389
442
 
390
- ## Architect-Engineer Boundary
443
+ The planning phase decides WHAT. The detail and build phases decide HOW.
391
444
 
392
- The planning phase decides WHAT to build, WHERE it lives in the architecture, and WHY each decision was made. The engineering phase decides HOW to build it at the code level — internal implementation, code patterns, file decomposition within components. Engineer produces `code_specs.md` documenting its engineering decisions, then Build implements against those specs.
445
+ Interim artifacts in `.planning_research/` are working files for planning context management. They are NOT part of the plan-execute contract. Only `plan.md` crosses the handoff boundary.
393
446
 
394
- Overlap resolution: Planning specifies public interfaces between components and known file paths. Engineer owns everything internal to a component and determines paths for new files marked TBD.
447
+ # DETAIL READINESS ASSESSMENT
395
448
 
396
- Interim artifacts in `.planning_research/` are working files for planning context management. They are NOT part of the plan-execute contract. Only `plan.md` crosses the handoff boundary.
449
+ After drafting the task sequence, assess every task for readiness.
397
450
 
398
- # DESIGN READINESS ASSESSMENT
451
+ ## Detail Assessment
399
452
 
400
- After drafting the task sequence, evaluate EVERY task for design readiness. A task is "ready for execution" if it is 95% clear — execution can fill in the remaining 5% without making design decisions.
453
+ Every task gets a domain assignment and depth classification.
401
454
 
402
- ## Flagging Criteria
455
+ ### Depth Classification Criteria
403
456
 
404
- Flag a task as **DESIGN REQUIRED** if ANY of these apply:
457
+ Assign **Deep** depth if ANY of these apply:
458
+ - Novel territory with no existing pattern to follow
459
+ - Multiple valid approaches where the choice has lasting consequences
460
+ - User-facing decisions requiring stakeholder input
461
+ - Complex cross-domain interactions needing explicit definition
462
+ - High-stakes decisions where getting it wrong is costly to reverse
405
463
 
406
- - **Novel territory**: No existing pattern in the project to follow. The implementation approach needs to be invented, not just applied.
407
- - **Multiple valid approaches**: There are 2+ reasonable ways to build this, and the choice has lasting consequences. Execution shouldn't make this call.
408
- - **User-facing decisions**: The task involves layout, creative direction, user experience, tone, or aesthetic choices the user should weigh in on.
409
- - **Complex interactions**: The task touches multiple components and the interfaces between them need explicit definition before implementation.
410
- - **Ambiguous scope**: The task description says WHAT but the HOW has genuine options that affect quality, performance, or maintainability.
464
+ Assign **Standard** depth if:
465
+ - The approach is mostly clear but has 1-2 key decisions
466
+ - Existing patterns exist but need adaptation
467
+ - Confirmation is needed but not deep exploration
411
468
 
412
- Do NOT flag tasks that are:
469
+ Assign **Light** depth if:
413
470
  - Straightforward application of existing patterns
414
- - Mechanical wiring, boilerplate, or configuration
415
- - Well-understood implementations with clear precedent in the codebase
416
- - Simple enough that a competent engineer needs no design input
471
+ - Mechanical or configuration-level work
472
+ - Well-understood with clear precedent
417
473
 
418
- ## Design Recommendations Output
474
+ ### Detail Assessment Output
419
475
 
420
- Include this section in the plan AFTER the Task Sequence (Section 6) and BEFORE Testing Strategy (Section 7):
476
+ Include this section in the plan AFTER the Task Sequence (Section 6):
421
477
 
422
478
  ```markdown
423
- ### Design Recommendations
479
+ ### 6.5 Detail Assessment
424
480
 
425
- | Task(s) | Item Name | Recommendation | Rationale |
426
- |---------|-----------|---------------|-----------|
427
- | Task 3, 4 | [Descriptive Name] | DESIGN REQUIRED | [Specific reason what's unclear] |
428
- | Task 7 | [Descriptive Name] | DESIGN REQUIRED | [Specific reason] |
429
- | Task 1, 2 | [Name] | Ready for execution | [Why it's clear enough] |
430
- | Task 5, 6 | [Name] | Ready for execution | [Why it's clear enough] |
431
-
432
- **Design items group related tasks that share a design surface.** A single design session covers all tasks in the group. Items are named descriptively (e.g., "Behavior Tree AI System" not "Tasks 3-4").
481
+ | Task(s) | Domain | Depth | Rationale |
482
+ |---------|--------|-------|-----------|
483
+ | Task 3, 4 | legal/regulatory | Deep design exploration required | Novel regulatory territory, multiple valid approaches |
484
+ | Task 7 | code/api | Standard confirmation needed | Follows existing patterns, one key decision |
485
+ | Task 1, 2 | code/frontend | Light autonomous | Straightforward pattern application |
433
486
  ```
434
487
 
435
- When presenting the draft plan in Phase 4, explicitly call out which items you're recommending for design and why. The user confirms or adjusts during plan approval.
488
+ When presenting the draft plan in Phase 4, explicitly call out the depth assignments and domain groupings. The user confirms or adjusts during plan approval.
489
+
490
+ # DECISION CLASSIFICATION
491
+
492
+ Use this reference during Phase 4 drafting to classify decision points in each task.
493
+
494
+ ## Tiers
495
+
496
+ - `[USER]` — User decides. Surfaced during detail/build with full options.
497
+ - `[SPEC]` — Specialist decides, user informed. Specialist picks and documents rationale.
498
+ - `[SILENT]` — Team handles autonomously. No notification. Not listed in plan.
499
+
500
+ ## 2x2 Heuristic
501
+
502
+ | | Hard to reverse | Easy to reverse |
503
+ |---|---|---|
504
+ | **Human-facing** | `[USER]` | `[USER]` |
505
+ | **Internal** | `[SPEC]` | `[SILENT]` |
506
+
507
+ ## Classification Rules
508
+
509
+ - Use **Commander's Intent** to determine "human-facing" — anything touching the desired end state, non-negotiables, or experiential qualities is human-facing. Without intent signals, default conservative (`[USER]`).
510
+ - Use **Decision Posture Map** to override — areas marked "I decide" always get `[USER]`, areas marked "Team handles" can get `[SILENT]` even if human-facing + easy to reverse.
511
+ - Cap: 2-3 classified decisions per task max. Only decisions where the tier assignment matters — not every micro-choice.
436
512
 
437
513
  # EXECUTABLE PLAN CHECKLIST
438
514
 
@@ -446,9 +522,13 @@ Validate ALL before presenting the draft:
446
522
  - [ ] Technology decisions explicitly marked Locked or Recommended (Standard+)
447
523
  - [ ] Interface contracts provided where components interact (Comprehensive)
448
524
  - [ ] Risks have mitigations (Standard+)
449
- - [ ] Planning Context for Engineer includes engineering questions, not prescriptive instructions
450
- - [ ] Design Recommendations section included with every task assessed
451
- - [ ] Each DESIGN REQUIRED flag has a specific rationale (not generic)
525
+ - [ ] Planning Context for Detail Phase includes domain considerations, not prescriptive instructions
526
+ - [ ] Detail Assessment (Section 6.5) included with every task assessed
527
+ - [ ] Every task has Domain and Depth fields
528
+ - [ ] Detail Assessment table (Section 6.5) covers every task
529
+ - [ ] Section 10 includes domain-specific considerations and cross-domain dependencies
530
+ - [ ] Tasks with decision points have Decisions field with `[USER]`/`[SPEC]` classifications
531
+ - [ ] Decision classifications use Commander's Intent to determine human-facing boundary
452
532
 
453
533
  If any check fails, fix it before presenting.
454
534
 
@@ -478,4 +558,4 @@ Launch 1-2 agents per decision domain when dialogue reveals unknowns needing inv
478
558
 
479
559
  # DISCOVERY REVISION
480
560
 
481
- If `discovery_brief.md` has been updated after an existing `plan.md` was created, ask: "The discovery brief has been updated since the current plan. Would you like me to create a new plan based on the revised discovery?"
561
+ If `prompt_brief.md` has been updated after an existing `plan.md` was created, ask: "The prompt brief has been updated since the current plan. Would you like me to create a new plan based on the revised discovery?"
@@ -33,7 +33,7 @@ Before planning, load the user's persistent profile:
33
33
 
34
34
  ```
35
35
  1. READ DISCOVERY
36
- - Load discovery_brief.md from project memory
36
+ - Load prompt_brief.md from project memory
37
37
  - Understand problem, goals, users, motivations
38
38
  - Note scope boundaries and assumptions
39
39
  - Also read user_profile_learnings section for user context
@@ -77,7 +77,7 @@ Before planning, load the user's persistent profile:
77
77
 
78
78
  On activation, load from project memory:
79
79
 
80
- **discovery_brief.md** (`docs/project_notes/discovery_brief.md`):
80
+ **prompt_brief.md** (`docs/project_notes/prompt_brief.md`):
81
81
  - Problem statement and context
82
82
  - Goals and success criteria
83
83
  - User personas and workflows
@@ -162,15 +162,15 @@ Create plans in this structure:
162
162
 
163
163
  ## Discovery Summary
164
164
 
165
- **Problem:** [From discovery_brief.md]
165
+ **Problem:** [From prompt_brief.md]
166
166
 
167
- **Goals:** [From discovery_brief.md]
167
+ **Goals:** [From prompt_brief.md]
168
168
 
169
- **Users:** [From discovery_brief.md]
169
+ **Users:** [From prompt_brief.md]
170
170
 
171
- **Motivations:** [From discovery_brief.md]
171
+ **Motivations:** [From prompt_brief.md]
172
172
 
173
- **Scope Boundaries:** [From discovery_brief.md]
173
+ **Scope Boundaries:** [From prompt_brief.md]
174
174
 
175
175
  ---
176
176
 
@@ -280,7 +280,7 @@ Create plans in this structure:
280
280
 
281
281
  If discovery has been revised (user re-ran `/intuition-discovery`):
282
282
 
283
- 1. **Detect revision** - Check discovery_brief.md timestamp vs. plan.md timestamp
283
+ 1. **Detect revision** - Check prompt_brief.md timestamp vs. plan.md timestamp
284
284
  2. **Notify user** - "I see the discovery brief has been updated. Would you like me to create a new plan based on the revised discovery?"
285
285
  3. **If yes** - Start fresh planning process with new discovery
286
286
  4. **If no** - Continue with existing plan
@@ -14,15 +14,15 @@
14
14
 
15
15
  ## Discovery Summary
16
16
 
17
- **Problem:** [From discovery_brief.md]
17
+ **Problem:** [From prompt_brief.md]
18
18
 
19
- **Goals:** [From discovery_brief.md]
19
+ **Goals:** [From prompt_brief.md]
20
20
 
21
- **Users:** [From discovery_brief.md]
21
+ **Users:** [From prompt_brief.md]
22
22
 
23
- **Motivations:** [From discovery_brief.md]
23
+ **Motivations:** [From prompt_brief.md]
24
24
 
25
- **Scope Boundaries:** [From discovery_brief.md]
25
+ **Scope Boundaries:** [From prompt_brief.md]
26
26
 
27
27
  ---
28
28