@undeemed/get-shit-done-codex 1.6.5

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 (79) hide show
  1. package/AGENTS.md +183 -0
  2. package/LICENSE +21 -0
  3. package/README.md +179 -0
  4. package/bin/install.js +214 -0
  5. package/commands/gsd/add-phase.md +207 -0
  6. package/commands/gsd/add-todo.md +182 -0
  7. package/commands/gsd/audit-milestone.md +258 -0
  8. package/commands/gsd/check-todos.md +217 -0
  9. package/commands/gsd/complete-milestone.md +136 -0
  10. package/commands/gsd/debug.md +149 -0
  11. package/commands/gsd/discuss-phase.md +80 -0
  12. package/commands/gsd/execute-phase.md +304 -0
  13. package/commands/gsd/help.md +383 -0
  14. package/commands/gsd/insert-phase.md +227 -0
  15. package/commands/gsd/list-phase-assumptions.md +50 -0
  16. package/commands/gsd/map-codebase.md +71 -0
  17. package/commands/gsd/new-milestone.md +717 -0
  18. package/commands/gsd/new-project.md +896 -0
  19. package/commands/gsd/pause-work.md +123 -0
  20. package/commands/gsd/plan-milestone-gaps.md +284 -0
  21. package/commands/gsd/plan-phase.md +475 -0
  22. package/commands/gsd/progress.md +356 -0
  23. package/commands/gsd/remove-phase.md +338 -0
  24. package/commands/gsd/research-phase.md +180 -0
  25. package/commands/gsd/resume-work.md +40 -0
  26. package/commands/gsd/update.md +172 -0
  27. package/commands/gsd/verify-work.md +219 -0
  28. package/commands/gsd/whats-new.md +124 -0
  29. package/get-shit-done/references/checkpoints.md +788 -0
  30. package/get-shit-done/references/continuation-format.md +249 -0
  31. package/get-shit-done/references/git-integration.md +254 -0
  32. package/get-shit-done/references/questioning.md +141 -0
  33. package/get-shit-done/references/tdd.md +263 -0
  34. package/get-shit-done/references/ui-brand.md +160 -0
  35. package/get-shit-done/references/verification-patterns.md +595 -0
  36. package/get-shit-done/templates/DEBUG.md +159 -0
  37. package/get-shit-done/templates/UAT.md +247 -0
  38. package/get-shit-done/templates/codebase/architecture.md +255 -0
  39. package/get-shit-done/templates/codebase/concerns.md +310 -0
  40. package/get-shit-done/templates/codebase/conventions.md +307 -0
  41. package/get-shit-done/templates/codebase/integrations.md +280 -0
  42. package/get-shit-done/templates/codebase/stack.md +186 -0
  43. package/get-shit-done/templates/codebase/structure.md +285 -0
  44. package/get-shit-done/templates/codebase/testing.md +480 -0
  45. package/get-shit-done/templates/config.json +26 -0
  46. package/get-shit-done/templates/context.md +291 -0
  47. package/get-shit-done/templates/continue-here.md +78 -0
  48. package/get-shit-done/templates/debug-subagent-prompt.md +91 -0
  49. package/get-shit-done/templates/discovery.md +146 -0
  50. package/get-shit-done/templates/milestone-archive.md +123 -0
  51. package/get-shit-done/templates/milestone.md +115 -0
  52. package/get-shit-done/templates/phase-prompt.md +576 -0
  53. package/get-shit-done/templates/planner-subagent-prompt.md +117 -0
  54. package/get-shit-done/templates/project.md +184 -0
  55. package/get-shit-done/templates/requirements.md +231 -0
  56. package/get-shit-done/templates/research-project/ARCHITECTURE.md +204 -0
  57. package/get-shit-done/templates/research-project/FEATURES.md +147 -0
  58. package/get-shit-done/templates/research-project/PITFALLS.md +200 -0
  59. package/get-shit-done/templates/research-project/STACK.md +120 -0
  60. package/get-shit-done/templates/research-project/SUMMARY.md +170 -0
  61. package/get-shit-done/templates/research.md +529 -0
  62. package/get-shit-done/templates/roadmap.md +202 -0
  63. package/get-shit-done/templates/state.md +206 -0
  64. package/get-shit-done/templates/summary.md +269 -0
  65. package/get-shit-done/templates/user-setup.md +323 -0
  66. package/get-shit-done/templates/verification-report.md +322 -0
  67. package/get-shit-done/workflows/complete-milestone.md +750 -0
  68. package/get-shit-done/workflows/diagnose-issues.md +233 -0
  69. package/get-shit-done/workflows/discovery-phase.md +293 -0
  70. package/get-shit-done/workflows/discuss-phase.md +422 -0
  71. package/get-shit-done/workflows/execute-phase.md +552 -0
  72. package/get-shit-done/workflows/execute-plan.md +1831 -0
  73. package/get-shit-done/workflows/list-phase-assumptions.md +178 -0
  74. package/get-shit-done/workflows/map-codebase.md +289 -0
  75. package/get-shit-done/workflows/resume-project.md +311 -0
  76. package/get-shit-done/workflows/transition.md +564 -0
  77. package/get-shit-done/workflows/verify-phase.md +629 -0
  78. package/get-shit-done/workflows/verify-work.md +563 -0
  79. package/package.json +39 -0
@@ -0,0 +1,217 @@
1
+ ---
2
+ name: gsd:check-todos
3
+ description: List pending todos and select one to work on
4
+ argument-hint: [area filter]
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Bash
9
+ - Glob
10
+ - AskUserQuestion
11
+ ---
12
+
13
+ <objective>
14
+ List all pending todos, allow selection, load full context for the selected todo, and route to appropriate action.
15
+
16
+ Enables reviewing captured ideas and deciding what to work on next.
17
+ </objective>
18
+
19
+ <context>
20
+ @.planning/STATE.md
21
+ @.planning/ROADMAP.md
22
+ </context>
23
+
24
+ <process>
25
+
26
+ <step name="check_exist">
27
+ ```bash
28
+ TODO_COUNT=$(ls .planning/todos/pending/*.md 2>/dev/null | wc -l | tr -d ' ')
29
+ echo "Pending todos: $TODO_COUNT"
30
+ ```
31
+
32
+ If count is 0:
33
+ ```
34
+ No pending todos.
35
+
36
+ Todos are captured during work sessions with /gsd:add-todo.
37
+
38
+ ---
39
+
40
+ Would you like to:
41
+
42
+ 1. Continue with current phase (/gsd:progress)
43
+ 2. Add a todo now (/gsd:add-todo)
44
+ ```
45
+
46
+ Exit.
47
+ </step>
48
+
49
+ <step name="parse_filter">
50
+ Check for area filter in arguments:
51
+ - `/gsd:check-todos` → show all
52
+ - `/gsd:check-todos api` → filter to area:api only
53
+ </step>
54
+
55
+ <step name="list_todos">
56
+ ```bash
57
+ for file in .planning/todos/pending/*.md; do
58
+ created=$(grep "^created:" "$file" | cut -d' ' -f2)
59
+ title=$(grep "^title:" "$file" | cut -d':' -f2- | xargs)
60
+ area=$(grep "^area:" "$file" | cut -d' ' -f2)
61
+ echo "$created|$title|$area|$file"
62
+ done | sort
63
+ ```
64
+
65
+ Apply area filter if specified. Display as numbered list:
66
+
67
+ ```
68
+ Pending Todos:
69
+
70
+ 1. Add auth token refresh (api, 2d ago)
71
+ 2. Fix modal z-index issue (ui, 1d ago)
72
+ 3. Refactor database connection pool (database, 5h ago)
73
+
74
+ ---
75
+
76
+ Reply with a number to view details, or:
77
+ - `/gsd:check-todos [area]` to filter by area
78
+ - `q` to exit
79
+ ```
80
+
81
+ Format age as relative time.
82
+ </step>
83
+
84
+ <step name="handle_selection">
85
+ Wait for user to reply with a number.
86
+
87
+ If valid: load selected todo, proceed.
88
+ If invalid: "Invalid selection. Reply with a number (1-[N]) or `q` to exit."
89
+ </step>
90
+
91
+ <step name="load_context">
92
+ Read the todo file completely. Display:
93
+
94
+ ```
95
+ ## [title]
96
+
97
+ **Area:** [area]
98
+ **Created:** [date] ([relative time] ago)
99
+ **Files:** [list or "None"]
100
+
101
+ ### Problem
102
+ [problem section content]
103
+
104
+ ### Solution
105
+ [solution section content]
106
+ ```
107
+
108
+ If `files` field has entries, read and briefly summarize each.
109
+ </step>
110
+
111
+ <step name="check_roadmap">
112
+ ```bash
113
+ ls .planning/ROADMAP.md 2>/dev/null && echo "Roadmap exists"
114
+ ```
115
+
116
+ If roadmap exists:
117
+ 1. Check if todo's area matches an upcoming phase
118
+ 2. Check if todo's files overlap with a phase's scope
119
+ 3. Note any match for action options
120
+ </step>
121
+
122
+ <step name="offer_actions">
123
+ **If todo maps to a roadmap phase:**
124
+
125
+ Use AskUserQuestion:
126
+ - header: "Action"
127
+ - question: "This todo relates to Phase [N]: [name]. What would you like to do?"
128
+ - options:
129
+ - "Work on it now" — move to done, start working
130
+ - "Add to phase plan" — include when planning Phase [N]
131
+ - "Brainstorm approach" — think through before deciding
132
+ - "Put it back" — return to list
133
+
134
+ **If no roadmap match:**
135
+
136
+ Use AskUserQuestion:
137
+ - header: "Action"
138
+ - question: "What would you like to do with this todo?"
139
+ - options:
140
+ - "Work on it now" — move to done, start working
141
+ - "Create a phase" — /gsd:add-phase with this scope
142
+ - "Brainstorm approach" — think through before deciding
143
+ - "Put it back" — return to list
144
+ </step>
145
+
146
+ <step name="execute_action">
147
+ **Work on it now:**
148
+ ```bash
149
+ mv ".planning/todos/pending/[filename]" ".planning/todos/done/"
150
+ ```
151
+ Update STATE.md todo count. Present problem/solution context. Begin work or ask how to proceed.
152
+
153
+ **Add to phase plan:**
154
+ Note todo reference in phase planning notes. Keep in pending. Return to list or exit.
155
+
156
+ **Create a phase:**
157
+ Display: `/gsd:add-phase [description from todo]`
158
+ Keep in pending. User runs command in fresh context.
159
+
160
+ **Brainstorm approach:**
161
+ Keep in pending. Start discussion about problem and approaches.
162
+
163
+ **Put it back:**
164
+ Return to list_todos step.
165
+ </step>
166
+
167
+ <step name="update_state">
168
+ After any action that changes todo count:
169
+
170
+ ```bash
171
+ ls .planning/todos/pending/*.md 2>/dev/null | wc -l
172
+ ```
173
+
174
+ Update STATE.md "### Pending Todos" section if exists.
175
+ </step>
176
+
177
+ <step name="git_commit">
178
+ If todo was moved to done/, commit the change:
179
+
180
+ ```bash
181
+ git add .planning/todos/done/[filename]
182
+ git rm --cached .planning/todos/pending/[filename] 2>/dev/null || true
183
+ [ -f .planning/STATE.md ] && git add .planning/STATE.md
184
+ git commit -m "$(cat <<'EOF'
185
+ docs: start work on todo - [title]
186
+
187
+ Moved to done/, beginning implementation.
188
+ EOF
189
+ )"
190
+ ```
191
+
192
+ Confirm: "Committed: docs: start work on todo - [title]"
193
+ </step>
194
+
195
+ </process>
196
+
197
+ <output>
198
+ - Moved todo to `.planning/todos/done/` (if "Work on it now")
199
+ - Updated `.planning/STATE.md` (if todo count changed)
200
+ </output>
201
+
202
+ <anti_patterns>
203
+ - Don't delete todos — move to done/ when work begins
204
+ - Don't start work without moving to done/ first
205
+ - Don't create plans from this command — route to /gsd:plan-phase or /gsd:add-phase
206
+ </anti_patterns>
207
+
208
+ <success_criteria>
209
+ - [ ] All pending todos listed with title, area, age
210
+ - [ ] Area filter applied if specified
211
+ - [ ] Selected todo's full context loaded
212
+ - [ ] Roadmap context checked for phase match
213
+ - [ ] Appropriate actions offered
214
+ - [ ] Selected action executed
215
+ - [ ] STATE.md updated if todo count changed
216
+ - [ ] Changes committed to git (if todo moved to done/)
217
+ </success_criteria>
@@ -0,0 +1,136 @@
1
+ ---
2
+ type: prompt
3
+ name: gsd:complete-milestone
4
+ description: Archive completed milestone and prepare for next version
5
+ argument-hint: <version>
6
+ allowed-tools:
7
+ - Read
8
+ - Write
9
+ - Bash
10
+ ---
11
+
12
+ <objective>
13
+ Mark milestone {{version}} complete, archive to milestones/, and update ROADMAP.md and REQUIREMENTS.md.
14
+
15
+ Purpose: Create historical record of shipped version, archive milestone artifacts (roadmap + requirements), and prepare for next milestone.
16
+ Output: Milestone archived (roadmap + requirements), PROJECT.md evolved, git tagged.
17
+ </objective>
18
+
19
+ <execution_context>
20
+ **Load these files NOW (before proceeding):**
21
+
22
+ - @~/.claude/get-shit-done/workflows/complete-milestone.md (main workflow)
23
+ - @~/.claude/get-shit-done/templates/milestone-archive.md (archive template)
24
+ </execution_context>
25
+
26
+ <context>
27
+ **Project files:**
28
+ - `.planning/ROADMAP.md`
29
+ - `.planning/REQUIREMENTS.md`
30
+ - `.planning/STATE.md`
31
+ - `.planning/PROJECT.md`
32
+
33
+ **User input:**
34
+
35
+ - Version: {{version}} (e.g., "1.0", "1.1", "2.0")
36
+ </context>
37
+
38
+ <process>
39
+
40
+ **Follow complete-milestone.md workflow:**
41
+
42
+ 0. **Check for audit:**
43
+
44
+ - Look for `.planning/v{{version}}-MILESTONE-AUDIT.md`
45
+ - If missing or stale: recommend `/gsd:audit-milestone` first
46
+ - If audit status is `gaps_found`: recommend `/gsd:plan-milestone-gaps` first
47
+ - If audit status is `passed`: proceed to step 1
48
+
49
+ ```markdown
50
+ ## Pre-flight Check
51
+
52
+ {If no v{{version}}-MILESTONE-AUDIT.md:}
53
+ ⚠ No milestone audit found. Run `/gsd:audit-milestone` first to verify
54
+ requirements coverage, cross-phase integration, and E2E flows.
55
+
56
+ {If audit has gaps:}
57
+ ⚠ Milestone audit found gaps. Run `/gsd:plan-milestone-gaps` to create
58
+ phases that close the gaps, or proceed anyway to accept as tech debt.
59
+
60
+ {If audit passed:}
61
+ ✓ Milestone audit passed. Proceeding with completion.
62
+ ```
63
+
64
+ 1. **Verify readiness:**
65
+
66
+ - Check all phases in milestone have completed plans (SUMMARY.md exists)
67
+ - Present milestone scope and stats
68
+ - Wait for confirmation
69
+
70
+ 2. **Gather stats:**
71
+
72
+ - Count phases, plans, tasks
73
+ - Calculate git range, file changes, LOC
74
+ - Extract timeline from git log
75
+ - Present summary, confirm
76
+
77
+ 3. **Extract accomplishments:**
78
+
79
+ - Read all phase SUMMARY.md files in milestone range
80
+ - Extract 4-6 key accomplishments
81
+ - Present for approval
82
+
83
+ 4. **Archive milestone:**
84
+
85
+ - Create `.planning/milestones/v{{version}}-ROADMAP.md`
86
+ - Extract full phase details from ROADMAP.md
87
+ - Fill milestone-archive.md template
88
+ - Update ROADMAP.md to one-line summary with link
89
+
90
+ 5. **Archive requirements:**
91
+
92
+ - Create `.planning/milestones/v{{version}}-REQUIREMENTS.md`
93
+ - Mark all v1 requirements as complete (checkboxes checked)
94
+ - Note requirement outcomes (validated, adjusted, dropped)
95
+ - Delete `.planning/REQUIREMENTS.md` (fresh one created for next milestone)
96
+
97
+ 6. **Update PROJECT.md:**
98
+
99
+ - Add "Current State" section with shipped version
100
+ - Add "Next Milestone Goals" section
101
+ - Archive previous content in `<details>` (if v1.1+)
102
+
103
+ 7. **Commit and tag:**
104
+
105
+ - Stage: MILESTONES.md, PROJECT.md, ROADMAP.md, STATE.md, archive files
106
+ - Commit: `chore: archive v{{version}} milestone`
107
+ - Tag: `git tag -a v{{version}} -m "[milestone summary]"`
108
+ - Ask about pushing tag
109
+
110
+ 8. **Offer next steps:**
111
+ - `/gsd:new-milestone` — start next milestone (questioning → research → requirements → roadmap)
112
+
113
+ </process>
114
+
115
+ <success_criteria>
116
+
117
+ - Milestone archived to `.planning/milestones/v{{version}}-ROADMAP.md`
118
+ - Requirements archived to `.planning/milestones/v{{version}}-REQUIREMENTS.md`
119
+ - `.planning/REQUIREMENTS.md` deleted (fresh for next milestone)
120
+ - ROADMAP.md collapsed to one-line entry
121
+ - PROJECT.md updated with current state
122
+ - Git tag v{{version}} created
123
+ - Commit successful
124
+ - User knows next steps (including need for fresh requirements)
125
+ </success_criteria>
126
+
127
+ <critical_rules>
128
+
129
+ - **Load workflow first:** Read complete-milestone.md before executing
130
+ - **Verify completion:** All phases must have SUMMARY.md files
131
+ - **User confirmation:** Wait for approval at verification gates
132
+ - **Archive before deleting:** Always create archive files before updating/deleting originals
133
+ - **One-line summary:** Collapsed milestone in ROADMAP.md should be single line with link
134
+ - **Context efficiency:** Archive keeps ROADMAP.md and REQUIREMENTS.md constant size per milestone
135
+ - **Fresh requirements:** Next milestone starts with `/gsd:new-milestone` which includes requirements definition
136
+ </critical_rules>
@@ -0,0 +1,149 @@
1
+ ---
2
+ name: gsd:debug
3
+ description: Systematic debugging with persistent state across context resets
4
+ argument-hint: [issue description]
5
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ - Task
9
+ - AskUserQuestion
10
+ ---
11
+
12
+ <objective>
13
+ Debug issues using scientific method with subagent isolation.
14
+
15
+ **Orchestrator role:** Gather symptoms, spawn gsd-debugger agent, handle checkpoints, spawn continuations.
16
+
17
+ **Why subagent:** Investigation burns context fast (reading files, forming hypotheses, testing). Fresh 200k context per investigation. Main context stays lean for user interaction.
18
+ </objective>
19
+
20
+ <context>
21
+ User's issue: $ARGUMENTS
22
+
23
+ Check for active sessions:
24
+ ```bash
25
+ ls .planning/debug/*.md 2>/dev/null | grep -v resolved | head -5
26
+ ```
27
+ </context>
28
+
29
+ <process>
30
+
31
+ ## 1. Check Active Sessions
32
+
33
+ If active sessions exist AND no $ARGUMENTS:
34
+ - List sessions with status, hypothesis, next action
35
+ - User picks number to resume OR describes new issue
36
+
37
+ If $ARGUMENTS provided OR user describes new issue:
38
+ - Continue to symptom gathering
39
+
40
+ ## 2. Gather Symptoms (if new issue)
41
+
42
+ Use AskUserQuestion for each:
43
+
44
+ 1. **Expected behavior** - What should happen?
45
+ 2. **Actual behavior** - What happens instead?
46
+ 3. **Error messages** - Any errors? (paste or describe)
47
+ 4. **Timeline** - When did this start? Ever worked?
48
+ 5. **Reproduction** - How do you trigger it?
49
+
50
+ After all gathered, confirm ready to investigate.
51
+
52
+ ## 3. Spawn gsd-debugger Agent
53
+
54
+ Fill prompt and spawn:
55
+
56
+ ```markdown
57
+ <objective>
58
+ Investigate issue: {slug}
59
+
60
+ **Summary:** {trigger}
61
+ </objective>
62
+
63
+ <symptoms>
64
+ expected: {expected}
65
+ actual: {actual}
66
+ errors: {errors}
67
+ reproduction: {reproduction}
68
+ timeline: {timeline}
69
+ </symptoms>
70
+
71
+ <mode>
72
+ symptoms_prefilled: true
73
+ goal: find_and_fix
74
+ </mode>
75
+
76
+ <debug_file>
77
+ Create: .planning/debug/{slug}.md
78
+ </debug_file>
79
+ ```
80
+
81
+ ```
82
+ Task(
83
+ prompt=filled_prompt,
84
+ subagent_type="gsd-debugger",
85
+ description="Debug {slug}"
86
+ )
87
+ ```
88
+
89
+ ## 4. Handle Agent Return
90
+
91
+ **If `## ROOT CAUSE FOUND`:**
92
+ - Display root cause and evidence summary
93
+ - Offer options:
94
+ - "Fix now" - spawn fix subagent
95
+ - "Plan fix" - suggest /gsd:plan-phase --gaps
96
+ - "Manual fix" - done
97
+
98
+ **If `## CHECKPOINT REACHED`:**
99
+ - Present checkpoint details to user
100
+ - Get user response
101
+ - Spawn continuation agent (see step 5)
102
+
103
+ **If `## INVESTIGATION INCONCLUSIVE`:**
104
+ - Show what was checked and eliminated
105
+ - Offer options:
106
+ - "Continue investigating" - spawn new agent with additional context
107
+ - "Manual investigation" - done
108
+ - "Add more context" - gather more symptoms, spawn again
109
+
110
+ ## 5. Spawn Continuation Agent (After Checkpoint)
111
+
112
+ When user responds to checkpoint, spawn fresh agent:
113
+
114
+ ```markdown
115
+ <objective>
116
+ Continue debugging {slug}. Evidence is in the debug file.
117
+ </objective>
118
+
119
+ <prior_state>
120
+ Debug file: @.planning/debug/{slug}.md
121
+ </prior_state>
122
+
123
+ <checkpoint_response>
124
+ **Type:** {checkpoint_type}
125
+ **Response:** {user_response}
126
+ </checkpoint_response>
127
+
128
+ <mode>
129
+ goal: find_and_fix
130
+ </mode>
131
+ ```
132
+
133
+ ```
134
+ Task(
135
+ prompt=continuation_prompt,
136
+ subagent_type="gsd-debugger",
137
+ description="Continue debug {slug}"
138
+ )
139
+ ```
140
+
141
+ </process>
142
+
143
+ <success_criteria>
144
+ - [ ] Active sessions checked
145
+ - [ ] Symptoms gathered (if new)
146
+ - [ ] gsd-debugger spawned with context
147
+ - [ ] Checkpoints handled correctly
148
+ - [ ] Root cause confirmed before fixing
149
+ </success_criteria>
@@ -0,0 +1,80 @@
1
+ ---
2
+ name: gsd:discuss-phase
3
+ description: Gather phase context through adaptive questioning before planning
4
+ argument-hint: "<phase>"
5
+ allowed-tools: [Read, Write, Bash, Glob, Grep, AskUserQuestion]
6
+ ---
7
+
8
+ <objective>
9
+ Extract implementation decisions that downstream agents need — researcher and planner will use CONTEXT.md to know what to investigate and what choices are locked.
10
+
11
+ **How it works:**
12
+ 1. Analyze the phase to identify gray areas (UI, UX, behavior, etc.)
13
+ 2. Present gray areas — user selects which to discuss
14
+ 3. Deep-dive each selected area until satisfied
15
+ 4. Create CONTEXT.md with decisions that guide research and planning
16
+
17
+ **Output:** `{phase}-CONTEXT.md` — decisions clear enough that downstream agents can act without asking the user again
18
+ </objective>
19
+
20
+ <execution_context>
21
+ @~/.claude/get-shit-done/workflows/discuss-phase.md
22
+ @~/.claude/get-shit-done/templates/context.md
23
+ </execution_context>
24
+
25
+ <context>
26
+ Phase number: $ARGUMENTS (required)
27
+
28
+ **Load project state:**
29
+ @.planning/STATE.md
30
+
31
+ **Load roadmap:**
32
+ @.planning/ROADMAP.md
33
+ </context>
34
+
35
+ <process>
36
+ 1. Validate phase number (error if missing or not in roadmap)
37
+ 2. Check if CONTEXT.md exists (offer update/view/skip if yes)
38
+ 3. **Analyze phase** — Identify domain and generate phase-specific gray areas
39
+ 4. **Present gray areas** — Multi-select: which to discuss? (NO skip option)
40
+ 5. **Deep-dive each area** — 4 questions per area, then offer more/next
41
+ 6. **Write CONTEXT.md** — Sections match areas discussed
42
+ 7. Offer next steps (research or plan)
43
+
44
+ **CRITICAL: Scope guardrail**
45
+ - Phase boundary from ROADMAP.md is FIXED
46
+ - Discussion clarifies HOW to implement, not WHETHER to add more
47
+ - If user suggests new capabilities: "That's its own phase. I'll note it for later."
48
+ - Capture deferred ideas — don't lose them, don't act on them
49
+
50
+ **Domain-aware gray areas:**
51
+ Gray areas depend on what's being built. Analyze the phase goal:
52
+ - Something users SEE → layout, density, interactions, states
53
+ - Something users CALL → responses, errors, auth, versioning
54
+ - Something users RUN → output format, flags, modes, error handling
55
+ - Something users READ → structure, tone, depth, flow
56
+ - Something being ORGANIZED → criteria, grouping, naming, exceptions
57
+
58
+ Generate 3-4 **phase-specific** gray areas, not generic categories.
59
+
60
+ **Probing depth:**
61
+ - Ask 4 questions per area before checking
62
+ - "More questions about [area], or move to next?"
63
+ - If more → ask 4 more, check again
64
+ - After all areas → "Ready to create context?"
65
+
66
+ **Do NOT ask about (Claude handles these):**
67
+ - Technical implementation
68
+ - Architecture choices
69
+ - Performance concerns
70
+ - Scope expansion
71
+ </process>
72
+
73
+ <success_criteria>
74
+ - Gray areas identified through intelligent analysis
75
+ - User chose which areas to discuss
76
+ - Each selected area explored until satisfied
77
+ - Scope creep redirected to deferred ideas
78
+ - CONTEXT.md captures decisions, not vague vision
79
+ - User knows next steps
80
+ </success_criteria>