@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.
- package/docs/v9/decision-framework-direction.md +142 -0
- package/docs/v9/decision-framework-implementation.md +114 -0
- package/docs/v9/domain-adaptive-team-architecture.md +1016 -0
- package/docs/v9/test/SESSION_SUMMARY.md +117 -0
- package/docs/v9/test/TEST_PLAN.md +119 -0
- package/docs/v9/test/blueprints/legal-analyst.md +166 -0
- package/docs/v9/test/output/07_cover_letter.md +41 -0
- package/docs/v9/test/phase2/mock_plan.md +89 -0
- package/docs/v9/test/phase2/producers.json +32 -0
- package/docs/v9/test/phase2/specialists/database-architect.specialist.md +10 -0
- package/docs/v9/test/phase2/specialists/financial-analyst.specialist.md +10 -0
- package/docs/v9/test/phase2/specialists/legal-analyst.specialist.md +10 -0
- package/docs/v9/test/phase2/specialists/technical-writer.specialist.md +10 -0
- package/docs/v9/test/phase2/team_assignment.json +61 -0
- package/docs/v9/test/phase3/blueprints/legal-analyst.md +840 -0
- package/docs/v9/test/phase3/legal-analyst-full.specialist.md +111 -0
- package/docs/v9/test/phase3/project_context/nh_landlord_tenant_notes.md +35 -0
- package/docs/v9/test/phase3/project_context/property_facts.md +32 -0
- package/docs/v9/test/phase3b/blueprints/legal-analyst.md +1715 -0
- package/docs/v9/test/phase3b/legal-analyst.specialist.md +153 -0
- package/docs/v9/test/phase3b/scratch/legal-analyst-stage1.md +270 -0
- package/docs/v9/test/phase4/TEST_PLAN.md +32 -0
- package/docs/v9/test/phase4/blueprints/financial-analyst-T2.md +538 -0
- package/docs/v9/test/phase4/blueprints/legal-analyst-T4.md +253 -0
- package/docs/v9/test/phase4/cross-blueprint-check.md +280 -0
- package/docs/v9/test/phase4/scratch/financial-analyst-T2-stage1.md +67 -0
- package/docs/v9/test/phase4/scratch/legal-analyst-T4-stage1.md +54 -0
- package/docs/v9/test/phase4/specialists/financial-analyst.specialist.md +156 -0
- package/docs/v9/test/phase4/specialists/legal-analyst.specialist.md +153 -0
- package/docs/v9/test/phase5/TEST_PLAN.md +35 -0
- package/docs/v9/test/phase5/blueprints/code-architect-hw-vetter.md +375 -0
- package/docs/v9/test/phase5/output/04_compliance_checklist.md +149 -0
- package/docs/v9/test/phase5/output/hardware-vetter-SKILL-v2.md +561 -0
- package/docs/v9/test/phase5/output/hardware-vetter-SKILL.md +459 -0
- package/docs/v9/test/phase5/producers/code-writer.producer.md +49 -0
- package/docs/v9/test/phase5/producers/document-writer.producer.md +62 -0
- package/docs/v9/test/phase5/regression-comparison-v2.md +60 -0
- package/docs/v9/test/phase5/regression-comparison.md +197 -0
- package/docs/v9/test/phase5/review-5A-specialist.md +213 -0
- package/docs/v9/test/phase5/specialist-test/TEST_PLAN.md +60 -0
- package/docs/v9/test/phase5/specialist-test/blueprint-comparison.md +252 -0
- package/docs/v9/test/phase5/specialist-test/blueprints/code-architect-hw-vetter.md +916 -0
- package/docs/v9/test/phase5/specialist-test/scratch/code-architect-stage1.md +427 -0
- package/docs/v9/test/phase5/specialists/code-architect.specialist.md +168 -0
- package/docs/v9/test/phase5b/TEST_PLAN.md +219 -0
- package/docs/v9/test/phase5b/blueprints/5B-10-stage2-with-decisions.md +286 -0
- package/docs/v9/test/phase5b/decisions/5B-2-accept-all-decisions.json +68 -0
- package/docs/v9/test/phase5b/decisions/5B-3-promote-decisions.json +70 -0
- package/docs/v9/test/phase5b/decisions/5B-4-individual-decisions.json +68 -0
- package/docs/v9/test/phase5b/decisions/5B-5-triage-decisions.json +110 -0
- package/docs/v9/test/phase5b/decisions/5B-6-fallback-decisions.json +40 -0
- package/docs/v9/test/phase5b/decisions/5B-8-partial-decisions.json +46 -0
- package/docs/v9/test/phase5b/decisions/5B-9-complete-decisions.json +54 -0
- package/docs/v9/test/phase5b/scratch/code-architect-stage1.md +133 -0
- package/docs/v9/test/phase5b/specialists/code-architect.specialist.md +202 -0
- package/docs/v9/test/phase5b/stage1-many-decisions.md +139 -0
- package/docs/v9/test/phase5b/stage1-no-assumptions.md +70 -0
- package/docs/v9/test/phase5b/stage1-with-assumptions.md +86 -0
- package/docs/v9/test/phase5b/test-5B-1-results.md +157 -0
- package/docs/v9/test/phase5b/test-5B-10-results.md +130 -0
- package/docs/v9/test/phase5b/test-5B-2-results.md +75 -0
- package/docs/v9/test/phase5b/test-5B-3-results.md +104 -0
- package/docs/v9/test/phase5b/test-5B-4-results.md +114 -0
- package/docs/v9/test/phase5b/test-5B-5-results.md +126 -0
- package/docs/v9/test/phase5b/test-5B-6-results.md +60 -0
- package/docs/v9/test/phase5b/test-5B-7-results.md +141 -0
- package/docs/v9/test/phase5b/test-5B-8-results.md +115 -0
- package/docs/v9/test/phase5b/test-5B-9-results.md +76 -0
- package/docs/v9/test/producers/document-writer.producer.md +62 -0
- package/docs/v9/test/specialists/legal-analyst.specialist.md +58 -0
- package/package.json +4 -2
- package/producers/code-writer/code-writer.producer.md +86 -0
- package/producers/data-file-writer/data-file-writer.producer.md +116 -0
- package/producers/document-writer/document-writer.producer.md +117 -0
- package/producers/form-filler/form-filler.producer.md +99 -0
- package/producers/presentation-creator/presentation-creator.producer.md +109 -0
- package/producers/spreadsheet-builder/spreadsheet-builder.producer.md +107 -0
- package/scripts/install-skills.js +88 -7
- package/scripts/uninstall-skills.js +3 -0
- package/skills/intuition-agent-advisor/SKILL.md +107 -0
- package/skills/intuition-assemble/SKILL.md +261 -0
- package/skills/intuition-build/SKILL.md +211 -151
- package/skills/intuition-debugger/SKILL.md +4 -4
- package/skills/intuition-design/SKILL.md +7 -3
- package/skills/intuition-detail/SKILL.md +377 -0
- package/skills/intuition-engineer/SKILL.md +8 -4
- package/skills/intuition-handoff/SKILL.md +251 -213
- package/skills/intuition-handoff/references/handoff_core.md +16 -16
- package/skills/intuition-initialize/SKILL.md +20 -5
- package/skills/intuition-initialize/references/state_template.json +16 -1
- package/skills/intuition-plan/SKILL.md +139 -59
- package/skills/intuition-plan/references/magellan_core.md +8 -8
- package/skills/intuition-plan/references/templates/plan_template.md +5 -5
- package/skills/intuition-prompt/SKILL.md +89 -27
- package/skills/intuition-start/SKILL.md +42 -9
- package/skills/intuition-start/references/start_core.md +12 -12
- package/skills/intuition-test/SKILL.md +345 -0
- package/specialists/api-designer/api-designer.specialist.md +291 -0
- package/specialists/business-analyst/business-analyst.specialist.md +270 -0
- package/specialists/copywriter/copywriter.specialist.md +268 -0
- package/specialists/database-architect/database-architect.specialist.md +275 -0
- package/specialists/devops-infrastructure/devops-infrastructure.specialist.md +314 -0
- package/specialists/financial-analyst/financial-analyst.specialist.md +269 -0
- package/specialists/frontend-component/frontend-component.specialist.md +293 -0
- package/specialists/instructional-designer/instructional-designer.specialist.md +285 -0
- package/specialists/legal-analyst/legal-analyst.specialist.md +260 -0
- package/specialists/marketing-strategist/marketing-strategist.specialist.md +281 -0
- package/specialists/project-manager/project-manager.specialist.md +266 -0
- package/specialists/research-analyst/research-analyst.specialist.md +273 -0
- package/specialists/security-auditor/security-auditor.specialist.md +354 -0
- 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
|
|
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 `
|
|
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": ["
|
|
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
|
-
|
|
114
|
+
prompt_brief.md
|
|
115
115
|
└─ Human-readable summary of discovery
|
|
116
116
|
|
|
117
|
-
|
|
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 `
|
|
130
|
+
From `prompt_output.json`, extract:
|
|
131
131
|
|
|
132
132
|
**Key Facts** (for key_facts.md):
|
|
133
133
|
```
|
|
134
|
-
Example from
|
|
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
|
-
|
|
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
|
|
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/
|
|
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/
|
|
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/
|
|
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 (
|
|
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
|
|
509
|
+
### What if prompt_output.json doesn't exist?
|
|
510
510
|
|
|
511
511
|
```
|
|
512
|
-
1. Check if
|
|
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
|
|
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
|
|
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
|
|
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 (
|
|
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
|
|
120
|
+
The state file uses the v7.0 schema:
|
|
121
121
|
|
|
122
122
|
```json
|
|
123
123
|
{
|
|
124
124
|
"initialized": true,
|
|
125
|
-
"version": "
|
|
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": "
|
|
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
|
|
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}/
|
|
15
|
-
3. You MUST launch orientation research agents during Intake, after reading the
|
|
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 `
|
|
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
|
|
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-
|
|
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}/
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
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`.
|
|
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
|
|
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
|
-
- **
|
|
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
|
|
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
|
-
- **
|
|
385
|
-
- **
|
|
386
|
-
- **
|
|
387
|
-
- **
|
|
388
|
-
- **
|
|
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
|
-
|
|
443
|
+
The planning phase decides WHAT. The detail and build phases decide HOW.
|
|
391
444
|
|
|
392
|
-
|
|
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
|
-
|
|
447
|
+
# DETAIL READINESS ASSESSMENT
|
|
395
448
|
|
|
396
|
-
|
|
449
|
+
After drafting the task sequence, assess every task for readiness.
|
|
397
450
|
|
|
398
|
-
|
|
451
|
+
## Detail Assessment
|
|
399
452
|
|
|
400
|
-
|
|
453
|
+
Every task gets a domain assignment and depth classification.
|
|
401
454
|
|
|
402
|
-
|
|
455
|
+
### Depth Classification Criteria
|
|
403
456
|
|
|
404
|
-
|
|
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
|
-
|
|
407
|
-
-
|
|
408
|
-
-
|
|
409
|
-
-
|
|
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
|
-
|
|
469
|
+
Assign **Light** depth if:
|
|
413
470
|
- Straightforward application of existing patterns
|
|
414
|
-
- Mechanical
|
|
415
|
-
- Well-understood
|
|
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
|
-
|
|
474
|
+
### Detail Assessment Output
|
|
419
475
|
|
|
420
|
-
Include this section in the plan AFTER the Task Sequence (Section 6)
|
|
476
|
+
Include this section in the plan AFTER the Task Sequence (Section 6):
|
|
421
477
|
|
|
422
478
|
```markdown
|
|
423
|
-
###
|
|
479
|
+
### 6.5 Detail Assessment
|
|
424
480
|
|
|
425
|
-
| Task(s) |
|
|
426
|
-
|
|
427
|
-
| Task 3, 4 |
|
|
428
|
-
| Task 7 |
|
|
429
|
-
| Task 1, 2 |
|
|
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
|
|
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
|
|
450
|
-
- [ ]
|
|
451
|
-
- [ ]
|
|
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 `
|
|
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
|
|
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
|
-
**
|
|
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
|
|
165
|
+
**Problem:** [From prompt_brief.md]
|
|
166
166
|
|
|
167
|
-
**Goals:** [From
|
|
167
|
+
**Goals:** [From prompt_brief.md]
|
|
168
168
|
|
|
169
|
-
**Users:** [From
|
|
169
|
+
**Users:** [From prompt_brief.md]
|
|
170
170
|
|
|
171
|
-
**Motivations:** [From
|
|
171
|
+
**Motivations:** [From prompt_brief.md]
|
|
172
172
|
|
|
173
|
-
**Scope Boundaries:** [From
|
|
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
|
|
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
|
|
17
|
+
**Problem:** [From prompt_brief.md]
|
|
18
18
|
|
|
19
|
-
**Goals:** [From
|
|
19
|
+
**Goals:** [From prompt_brief.md]
|
|
20
20
|
|
|
21
|
-
**Users:** [From
|
|
21
|
+
**Users:** [From prompt_brief.md]
|
|
22
22
|
|
|
23
|
-
**Motivations:** [From
|
|
23
|
+
**Motivations:** [From prompt_brief.md]
|
|
24
24
|
|
|
25
|
-
**Scope Boundaries:** [From
|
|
25
|
+
**Scope Boundaries:** [From prompt_brief.md]
|
|
26
26
|
|
|
27
27
|
---
|
|
28
28
|
|