get-shit-done-cc 1.5.28 → 1.5.30
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/agents/gsd-plan-checker.md +3 -2
- package/bin/install.js +13 -109
- package/commands/gsd/audit-milestone.md +23 -19
- package/commands/gsd/create-roadmap.md +2 -2
- package/commands/gsd/discuss-phase.md +24 -15
- package/commands/gsd/execute-phase.md +18 -24
- package/commands/gsd/new-project.md +7 -2
- package/commands/gsd/plan-phase.md +37 -22
- package/commands/gsd/progress.md +4 -4
- package/commands/gsd/research-phase.md +13 -7
- package/commands/gsd/verify-work.md +15 -5
- package/get-shit-done/templates/context.md +143 -13
- package/get-shit-done/workflows/create-roadmap.md +2 -2
- package/get-shit-done/workflows/diagnose-issues.md +10 -20
- package/get-shit-done/workflows/discuss-phase.md +95 -46
- package/get-shit-done/workflows/verify-work.md +170 -14
- package/hooks/gsd-check-update.js +51 -0
- package/hooks/statusline.js +84 -0
- package/package.json +1 -1
- package/hooks/gsd-check-update.sh +0 -20
- package/hooks/gsd-notify.sh +0 -59
- package/hooks/statusline.sh +0 -58
package/commands/gsd/progress.md
CHANGED
|
@@ -193,14 +193,14 @@ Check if `{phase}-CONTEXT.md` exists in phase directory.
|
|
|
193
193
|
|
|
194
194
|
**Phase {N}: {Name}** — {Goal from ROADMAP.md}
|
|
195
195
|
|
|
196
|
-
`/gsd:
|
|
196
|
+
`/gsd:discuss-phase {phase}` — gather context and clarify approach
|
|
197
197
|
|
|
198
198
|
<sub>`/clear` first → fresh context window</sub>
|
|
199
199
|
|
|
200
200
|
---
|
|
201
201
|
|
|
202
202
|
**Also available:**
|
|
203
|
-
- `/gsd:
|
|
203
|
+
- `/gsd:plan-phase {phase}` — skip discussion, plan directly
|
|
204
204
|
- `/gsd:list-phase-assumptions {phase}` — see Claude's assumptions
|
|
205
205
|
|
|
206
206
|
---
|
|
@@ -266,15 +266,15 @@ Read ROADMAP.md to get the next phase's name and goal.
|
|
|
266
266
|
|
|
267
267
|
**Phase {Z+1}: {Name}** — {Goal from ROADMAP.md}
|
|
268
268
|
|
|
269
|
-
`/gsd:
|
|
269
|
+
`/gsd:discuss-phase {Z+1}` — gather context and clarify approach
|
|
270
270
|
|
|
271
271
|
<sub>`/clear` first → fresh context window</sub>
|
|
272
272
|
|
|
273
273
|
---
|
|
274
274
|
|
|
275
275
|
**Also available:**
|
|
276
|
+
- `/gsd:plan-phase {Z+1}` — skip discussion, plan directly
|
|
276
277
|
- `/gsd:verify-work {Z}` — user acceptance test before continuing
|
|
277
|
-
- `/gsd:discuss-phase {Z+1}` — gather context first
|
|
278
278
|
|
|
279
279
|
---
|
|
280
280
|
```
|
|
@@ -26,17 +26,23 @@ Research how to implement a phase. Spawns gsd-phase-researcher agent with phase
|
|
|
26
26
|
<context>
|
|
27
27
|
Phase number: $ARGUMENTS (required)
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
ls .planning/phases/${PHASE}-*/*RESEARCH.md 2>/dev/null
|
|
32
|
-
```
|
|
29
|
+
Normalize phase input in step 1 before any directory lookups.
|
|
33
30
|
</context>
|
|
34
31
|
|
|
35
32
|
<process>
|
|
36
33
|
|
|
37
|
-
## 1.
|
|
34
|
+
## 1. Normalize and Validate Phase
|
|
38
35
|
|
|
39
36
|
```bash
|
|
37
|
+
# Normalize phase number (8 → 08, but preserve decimals like 2.1 → 02.1)
|
|
38
|
+
if [[ "$ARGUMENTS" =~ ^[0-9]+$ ]]; then
|
|
39
|
+
PHASE=$(printf "%02d" "$ARGUMENTS")
|
|
40
|
+
elif [[ "$ARGUMENTS" =~ ^([0-9]+)\.([0-9]+)$ ]]; then
|
|
41
|
+
PHASE=$(printf "%02d.%s" "${BASH_REMATCH[1]}" "${BASH_REMATCH[2]}")
|
|
42
|
+
else
|
|
43
|
+
PHASE="$ARGUMENTS"
|
|
44
|
+
fi
|
|
45
|
+
|
|
40
46
|
grep -A5 "Phase ${PHASE}:" .planning/ROADMAP.md 2>/dev/null
|
|
41
47
|
```
|
|
42
48
|
|
|
@@ -118,7 +124,7 @@ Before declaring complete, verify:
|
|
|
118
124
|
</quality_gate>
|
|
119
125
|
|
|
120
126
|
<output>
|
|
121
|
-
Write to: .planning/phases
|
|
127
|
+
Write to: .planning/phases/${PHASE}-{slug}/${PHASE}-RESEARCH.md
|
|
122
128
|
</output>
|
|
123
129
|
```
|
|
124
130
|
|
|
@@ -146,7 +152,7 @@ Continue research for Phase {phase_number}: {phase_name}
|
|
|
146
152
|
</objective>
|
|
147
153
|
|
|
148
154
|
<prior_state>
|
|
149
|
-
Research file: @.planning/phases
|
|
155
|
+
Research file: @.planning/phases/${PHASE}-{slug}/${PHASE}-RESEARCH.md
|
|
150
156
|
</prior_state>
|
|
151
157
|
|
|
152
158
|
<checkpoint_response>
|
|
@@ -9,14 +9,15 @@ allowed-tools:
|
|
|
9
9
|
- Grep
|
|
10
10
|
- Edit
|
|
11
11
|
- Write
|
|
12
|
+
- Task
|
|
12
13
|
---
|
|
13
14
|
|
|
14
15
|
<objective>
|
|
15
16
|
Validate built features through conversational testing with persistent state.
|
|
16
17
|
|
|
17
|
-
Purpose: Confirm what Claude built actually works from user's perspective. One test at a time, plain text responses, no interrogation.
|
|
18
|
+
Purpose: Confirm what Claude built actually works from user's perspective. One test at a time, plain text responses, no interrogation. When issues are found, automatically diagnose, plan fixes, and prepare for execution.
|
|
18
19
|
|
|
19
|
-
Output: {phase}-UAT.md tracking all test results
|
|
20
|
+
Output: {phase}-UAT.md tracking all test results. If issues found: diagnosed gaps, verified fix plans ready for /gsd:execute-phase
|
|
20
21
|
</objective>
|
|
21
22
|
|
|
22
23
|
<execution_context>
|
|
@@ -43,7 +44,13 @@ Phase: $ARGUMENTS (optional)
|
|
|
43
44
|
- Wait for plain text response
|
|
44
45
|
- "yes/y/next" = pass, anything else = issue (severity inferred)
|
|
45
46
|
6. Update UAT.md after each response
|
|
46
|
-
7. On completion: commit, present summary
|
|
47
|
+
7. On completion: commit, present summary
|
|
48
|
+
8. If issues found:
|
|
49
|
+
- Spawn parallel debug agents to diagnose root causes
|
|
50
|
+
- Spawn gsd-planner in --gaps mode to create fix plans
|
|
51
|
+
- Spawn gsd-plan-checker to verify fix plans
|
|
52
|
+
- Iterate planner ↔ checker until plans pass (max 3)
|
|
53
|
+
- Present ready status with `/clear` then `/gsd:execute-phase`
|
|
47
54
|
</process>
|
|
48
55
|
|
|
49
56
|
<anti_patterns>
|
|
@@ -51,7 +58,7 @@ Phase: $ARGUMENTS (optional)
|
|
|
51
58
|
- Don't ask severity — infer from description
|
|
52
59
|
- Don't present full checklist upfront — one test at a time
|
|
53
60
|
- Don't run automated tests — this is manual user validation
|
|
54
|
-
- Don't fix issues during testing — log as gaps
|
|
61
|
+
- Don't fix issues during testing — log as gaps, diagnose after all tests complete
|
|
55
62
|
</anti_patterns>
|
|
56
63
|
|
|
57
64
|
<success_criteria>
|
|
@@ -61,5 +68,8 @@ Phase: $ARGUMENTS (optional)
|
|
|
61
68
|
- [ ] Severity inferred, never asked
|
|
62
69
|
- [ ] Batched writes: on issue, every 5 passes, or completion
|
|
63
70
|
- [ ] Committed on completion
|
|
64
|
-
- [ ]
|
|
71
|
+
- [ ] If issues: parallel debug agents diagnose root causes
|
|
72
|
+
- [ ] If issues: gsd-planner creates fix plans from diagnosed gaps
|
|
73
|
+
- [ ] If issues: gsd-plan-checker verifies fix plans (max 3 iterations)
|
|
74
|
+
- [ ] Ready for `/gsd:execute-phase` when complete
|
|
65
75
|
</success_criteria>
|
|
@@ -4,6 +4,8 @@ Template for `.planning/phases/XX-name/{phase}-CONTEXT.md` - captures implementa
|
|
|
4
4
|
|
|
5
5
|
**Purpose:** Document decisions that downstream agents need. Researcher uses this to know WHAT to investigate. Planner uses this to know WHAT choices are locked vs flexible.
|
|
6
6
|
|
|
7
|
+
**Key principle:** Categories are NOT predefined. They emerge from what was actually discussed for THIS phase. A CLI phase has CLI-relevant sections, a UI phase has UI-relevant sections.
|
|
8
|
+
|
|
7
9
|
**Downstream consumers:**
|
|
8
10
|
- `gsd-phase-researcher` — Reads decisions to focus research (e.g., "card layout" → research card component patterns)
|
|
9
11
|
- `gsd-planner` — Reads decisions to create specific tasks (e.g., "infinite scroll" → task includes virtualization)
|
|
@@ -28,11 +30,14 @@ Template for `.planning/phases/XX-name/{phase}-CONTEXT.md` - captures implementa
|
|
|
28
30
|
<decisions>
|
|
29
31
|
## Implementation Decisions
|
|
30
32
|
|
|
31
|
-
### [
|
|
33
|
+
### [Area 1 that was discussed]
|
|
32
34
|
- [Specific decision made]
|
|
33
35
|
- [Another decision if applicable]
|
|
34
36
|
|
|
35
|
-
### [
|
|
37
|
+
### [Area 2 that was discussed]
|
|
38
|
+
- [Specific decision made]
|
|
39
|
+
|
|
40
|
+
### [Area 3 that was discussed]
|
|
36
41
|
- [Specific decision made]
|
|
37
42
|
|
|
38
43
|
### Claude's Discretion
|
|
@@ -65,6 +70,9 @@ Template for `.planning/phases/XX-name/{phase}-CONTEXT.md` - captures implementa
|
|
|
65
70
|
```
|
|
66
71
|
|
|
67
72
|
<good_examples>
|
|
73
|
+
|
|
74
|
+
**Example 1: Visual feature (Post Feed)**
|
|
75
|
+
|
|
68
76
|
```markdown
|
|
69
77
|
# Phase 3: Post Feed - Context
|
|
70
78
|
|
|
@@ -81,18 +89,17 @@ Display posts from followed users in a scrollable feed. Users can view posts and
|
|
|
81
89
|
<decisions>
|
|
82
90
|
## Implementation Decisions
|
|
83
91
|
|
|
84
|
-
###
|
|
92
|
+
### Layout style
|
|
85
93
|
- Card-based layout, not timeline or list
|
|
86
94
|
- Each card shows: author avatar, name, timestamp, full post content, reaction counts
|
|
87
95
|
- Cards have subtle shadows, rounded corners — modern feel
|
|
88
|
-
- Show 10 posts initially, load more on scroll
|
|
89
96
|
|
|
90
|
-
###
|
|
97
|
+
### Loading behavior
|
|
91
98
|
- Infinite scroll, not pagination
|
|
92
99
|
- Pull-to-refresh on mobile
|
|
93
100
|
- New posts indicator at top ("3 new posts") rather than auto-inserting
|
|
94
101
|
|
|
95
|
-
### Empty
|
|
102
|
+
### Empty state
|
|
96
103
|
- Friendly illustration + "Follow people to see posts here"
|
|
97
104
|
- Suggest 3-5 accounts to follow based on interests
|
|
98
105
|
|
|
@@ -108,7 +115,6 @@ Display posts from followed users in a scrollable feed. Users can view posts and
|
|
|
108
115
|
|
|
109
116
|
- "I like how Twitter shows the new posts indicator without disrupting your scroll position"
|
|
110
117
|
- Cards should feel like Linear's issue cards — clean, not cluttered
|
|
111
|
-
- No infinite scroll fatigue — maybe show "You're all caught up" after ~50 posts
|
|
112
118
|
|
|
113
119
|
</specifics>
|
|
114
120
|
|
|
@@ -116,7 +122,6 @@ Display posts from followed users in a scrollable feed. Users can view posts and
|
|
|
116
122
|
## Deferred Ideas
|
|
117
123
|
|
|
118
124
|
- Commenting on posts — Phase 5
|
|
119
|
-
- Reaction picker (not just counts) — Phase 5
|
|
120
125
|
- Bookmarking posts — add to backlog
|
|
121
126
|
|
|
122
127
|
</deferred>
|
|
@@ -126,6 +131,131 @@ Display posts from followed users in a scrollable feed. Users can view posts and
|
|
|
126
131
|
*Phase: 03-post-feed*
|
|
127
132
|
*Context gathered: 2025-01-20*
|
|
128
133
|
```
|
|
134
|
+
|
|
135
|
+
**Example 2: CLI tool (Database backup)**
|
|
136
|
+
|
|
137
|
+
```markdown
|
|
138
|
+
# Phase 2: Backup Command - Context
|
|
139
|
+
|
|
140
|
+
**Gathered:** 2025-01-20
|
|
141
|
+
**Status:** Ready for planning
|
|
142
|
+
|
|
143
|
+
<domain>
|
|
144
|
+
## Phase Boundary
|
|
145
|
+
|
|
146
|
+
CLI command to backup database to local file or S3. Supports full and incremental backups. Restore command is a separate phase.
|
|
147
|
+
|
|
148
|
+
</domain>
|
|
149
|
+
|
|
150
|
+
<decisions>
|
|
151
|
+
## Implementation Decisions
|
|
152
|
+
|
|
153
|
+
### Output format
|
|
154
|
+
- JSON for programmatic use, table format for humans
|
|
155
|
+
- Default to table, --json flag for JSON
|
|
156
|
+
- Verbose mode (-v) shows progress, silent by default
|
|
157
|
+
|
|
158
|
+
### Flag design
|
|
159
|
+
- Short flags for common options: -o (output), -v (verbose), -f (force)
|
|
160
|
+
- Long flags for clarity: --incremental, --compress, --encrypt
|
|
161
|
+
- Required: database connection string (positional or --db)
|
|
162
|
+
|
|
163
|
+
### Error recovery
|
|
164
|
+
- Retry 3 times on network failure, then fail with clear message
|
|
165
|
+
- --no-retry flag to fail fast
|
|
166
|
+
- Partial backups are deleted on failure (no corrupt files)
|
|
167
|
+
|
|
168
|
+
### Claude's Discretion
|
|
169
|
+
- Exact progress bar implementation
|
|
170
|
+
- Compression algorithm choice
|
|
171
|
+
- Temp file handling
|
|
172
|
+
|
|
173
|
+
</decisions>
|
|
174
|
+
|
|
175
|
+
<specifics>
|
|
176
|
+
## Specific Ideas
|
|
177
|
+
|
|
178
|
+
- "I want it to feel like pg_dump — familiar to database people"
|
|
179
|
+
- Should work in CI pipelines (exit codes, no interactive prompts)
|
|
180
|
+
|
|
181
|
+
</specifics>
|
|
182
|
+
|
|
183
|
+
<deferred>
|
|
184
|
+
## Deferred Ideas
|
|
185
|
+
|
|
186
|
+
- Scheduled backups — separate phase
|
|
187
|
+
- Backup rotation/retention — add to backlog
|
|
188
|
+
|
|
189
|
+
</deferred>
|
|
190
|
+
|
|
191
|
+
---
|
|
192
|
+
|
|
193
|
+
*Phase: 02-backup-command*
|
|
194
|
+
*Context gathered: 2025-01-20*
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
**Example 3: Organization task (Photo library)**
|
|
198
|
+
|
|
199
|
+
```markdown
|
|
200
|
+
# Phase 1: Photo Organization - Context
|
|
201
|
+
|
|
202
|
+
**Gathered:** 2025-01-20
|
|
203
|
+
**Status:** Ready for planning
|
|
204
|
+
|
|
205
|
+
<domain>
|
|
206
|
+
## Phase Boundary
|
|
207
|
+
|
|
208
|
+
Organize existing photo library into structured folders. Handle duplicates and apply consistent naming. Tagging and search are separate phases.
|
|
209
|
+
|
|
210
|
+
</domain>
|
|
211
|
+
|
|
212
|
+
<decisions>
|
|
213
|
+
## Implementation Decisions
|
|
214
|
+
|
|
215
|
+
### Grouping criteria
|
|
216
|
+
- Primary grouping by year, then by month
|
|
217
|
+
- Events detected by time clustering (photos within 2 hours = same event)
|
|
218
|
+
- Event folders named by date + location if available
|
|
219
|
+
|
|
220
|
+
### Duplicate handling
|
|
221
|
+
- Keep highest resolution version
|
|
222
|
+
- Move duplicates to _duplicates folder (don't delete)
|
|
223
|
+
- Log all duplicate decisions for review
|
|
224
|
+
|
|
225
|
+
### Naming convention
|
|
226
|
+
- Format: YYYY-MM-DD_HH-MM-SS_originalname.ext
|
|
227
|
+
- Preserve original filename as suffix for searchability
|
|
228
|
+
- Handle name collisions with incrementing suffix
|
|
229
|
+
|
|
230
|
+
### Claude's Discretion
|
|
231
|
+
- Exact clustering algorithm
|
|
232
|
+
- How to handle photos with no EXIF data
|
|
233
|
+
- Folder emoji usage
|
|
234
|
+
|
|
235
|
+
</decisions>
|
|
236
|
+
|
|
237
|
+
<specifics>
|
|
238
|
+
## Specific Ideas
|
|
239
|
+
|
|
240
|
+
- "I want to be able to find photos by roughly when they were taken"
|
|
241
|
+
- Don't delete anything — worst case, move to a review folder
|
|
242
|
+
|
|
243
|
+
</specifics>
|
|
244
|
+
|
|
245
|
+
<deferred>
|
|
246
|
+
## Deferred Ideas
|
|
247
|
+
|
|
248
|
+
- Face detection grouping — future phase
|
|
249
|
+
- Cloud sync — out of scope for now
|
|
250
|
+
|
|
251
|
+
</deferred>
|
|
252
|
+
|
|
253
|
+
---
|
|
254
|
+
|
|
255
|
+
*Phase: 01-photo-organization*
|
|
256
|
+
*Context gathered: 2025-01-20*
|
|
257
|
+
```
|
|
258
|
+
|
|
129
259
|
</good_examples>
|
|
130
260
|
|
|
131
261
|
<guidelines>
|
|
@@ -133,11 +263,11 @@ Display posts from followed users in a scrollable feed. Users can view posts and
|
|
|
133
263
|
|
|
134
264
|
The output should answer: "What does the researcher need to investigate? What choices are locked for the planner?"
|
|
135
265
|
|
|
136
|
-
**Good content:**
|
|
266
|
+
**Good content (concrete decisions):**
|
|
137
267
|
- "Card-based layout, not timeline"
|
|
138
|
-
- "
|
|
139
|
-
- "
|
|
140
|
-
- "
|
|
268
|
+
- "Retry 3 times on network failure, then fail"
|
|
269
|
+
- "Group by year, then by month"
|
|
270
|
+
- "JSON for programmatic use, table for humans"
|
|
141
271
|
|
|
142
272
|
**Bad content (too vague):**
|
|
143
273
|
- "Should feel modern and clean"
|
|
@@ -148,7 +278,7 @@ The output should answer: "What does the researcher need to investigate? What ch
|
|
|
148
278
|
**Sections explained:**
|
|
149
279
|
|
|
150
280
|
- **Domain** — The scope anchor. Copied/derived from ROADMAP.md. Fixed boundary.
|
|
151
|
-
- **Decisions** — Organized by
|
|
281
|
+
- **Decisions** — Organized by areas discussed (NOT predefined categories). Section headers come from the actual discussion — "Layout style", "Flag design", "Grouping criteria", etc.
|
|
152
282
|
- **Claude's Discretion** — Explicit acknowledgment of what Claude can decide during implementation.
|
|
153
283
|
- **Specifics** — Product references, examples, "like X but..." statements.
|
|
154
284
|
- **Deferred** — Ideas captured but explicitly out of scope. Prevents scope creep while preserving good ideas.
|
|
@@ -577,14 +577,14 @@ Project initialized:
|
|
|
577
577
|
|
|
578
578
|
**Phase 1: [Name]** — [Goal from ROADMAP.md]
|
|
579
579
|
|
|
580
|
-
`/gsd:
|
|
580
|
+
`/gsd:discuss-phase 1` — gather context and clarify approach
|
|
581
581
|
|
|
582
582
|
<sub>`/clear` first → fresh context window</sub>
|
|
583
583
|
|
|
584
584
|
---
|
|
585
585
|
|
|
586
586
|
**Also available:**
|
|
587
|
-
- `/gsd:
|
|
587
|
+
- `/gsd:plan-phase 1` — skip discussion, plan directly
|
|
588
588
|
- Review roadmap
|
|
589
589
|
|
|
590
590
|
---
|
|
@@ -164,10 +164,13 @@ git commit -m "docs({phase}): add root causes from diagnosis"
|
|
|
164
164
|
</step>
|
|
165
165
|
|
|
166
166
|
<step name="report_results">
|
|
167
|
-
**Report diagnosis results:**
|
|
167
|
+
**Report diagnosis results and hand off:**
|
|
168
168
|
|
|
169
|
+
Display:
|
|
169
170
|
```
|
|
170
|
-
|
|
171
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
172
|
+
GSD ► DIAGNOSIS COMPLETE
|
|
173
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
171
174
|
|
|
172
175
|
| Gap (Truth) | Root Cause | Files |
|
|
173
176
|
|-------------|------------|-------|
|
|
@@ -175,26 +178,13 @@ git commit -m "docs({phase}): add root causes from diagnosis"
|
|
|
175
178
|
| Reply button positioned correctly | CSS flex order incorrect | ReplyButton.tsx |
|
|
176
179
|
| Delete removes comment | API missing auth header | api/comments.ts |
|
|
177
180
|
|
|
178
|
-
Debug sessions
|
|
181
|
+
Debug sessions: ${DEBUG_DIR}/
|
|
179
182
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
Next steps:
|
|
183
|
-
- `/gsd:plan-phase {phase} --gaps` — Create fix plans from diagnosed gaps
|
|
184
|
-
- Review debug sessions for details
|
|
183
|
+
Proceeding to plan fixes...
|
|
185
184
|
```
|
|
186
|
-
</step>
|
|
187
185
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
```
|
|
192
|
-
Root causes identified. Ready to plan fixes?
|
|
193
|
-
|
|
194
|
-
`/gsd:plan-phase {phase} --gaps`
|
|
195
|
-
|
|
196
|
-
The fix plans will use diagnosed root causes for targeted fixes.
|
|
197
|
-
```
|
|
186
|
+
Return to verify-work orchestrator for automatic planning.
|
|
187
|
+
Do NOT offer manual next steps - verify-work handles the rest.
|
|
198
188
|
</step>
|
|
199
189
|
|
|
200
190
|
</process>
|
|
@@ -239,5 +229,5 @@ The fix plans will use diagnosed root causes for targeted fixes.
|
|
|
239
229
|
- [ ] Root causes collected from all agents
|
|
240
230
|
- [ ] UAT.md gaps updated with artifacts and missing
|
|
241
231
|
- [ ] Debug sessions saved to ${DEBUG_DIR}/
|
|
242
|
-
- [ ]
|
|
232
|
+
- [ ] Hand off to verify-work for automatic planning
|
|
243
233
|
</success_criteria>
|
|
@@ -66,23 +66,44 @@ For now, let's focus on [phase domain]."
|
|
|
66
66
|
Capture the idea in a "Deferred Ideas" section. Don't lose it, don't act on it.
|
|
67
67
|
</scope_guardrail>
|
|
68
68
|
|
|
69
|
-
<
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
- **
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
69
|
+
<gray_area_identification>
|
|
70
|
+
Gray areas are **implementation decisions the user cares about** — things that could go multiple ways and would change the result.
|
|
71
|
+
|
|
72
|
+
**How to identify gray areas:**
|
|
73
|
+
|
|
74
|
+
1. **Read the phase goal** from ROADMAP.md
|
|
75
|
+
2. **Understand the domain** — What kind of thing is being built?
|
|
76
|
+
- Something users SEE → visual presentation, interactions, states matter
|
|
77
|
+
- Something users CALL → interface contracts, responses, errors matter
|
|
78
|
+
- Something users RUN → invocation, output, behavior modes matter
|
|
79
|
+
- Something users READ → structure, tone, depth, flow matter
|
|
80
|
+
- Something being ORGANIZED → criteria, grouping, handling exceptions matter
|
|
81
|
+
3. **Generate phase-specific gray areas** — Not generic categories, but concrete decisions for THIS phase
|
|
82
|
+
|
|
83
|
+
**Don't use generic category labels** (UI, UX, Behavior). Generate specific gray areas:
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
Phase: "User authentication"
|
|
87
|
+
→ Session handling, Error responses, Multi-device policy, Recovery flow
|
|
88
|
+
|
|
89
|
+
Phase: "Organize photo library"
|
|
90
|
+
→ Grouping criteria, Duplicate handling, Naming convention, Folder structure
|
|
91
|
+
|
|
92
|
+
Phase: "CLI for database backups"
|
|
93
|
+
→ Output format, Flag design, Progress reporting, Error recovery
|
|
94
|
+
|
|
95
|
+
Phase: "API documentation"
|
|
96
|
+
→ Structure/navigation, Code examples depth, Versioning approach, Interactive elements
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
**The key question:** What decisions would change the outcome that the user should weigh in on?
|
|
100
|
+
|
|
101
|
+
**Claude handles these (don't ask):**
|
|
102
|
+
- Technical implementation details
|
|
103
|
+
- Architecture patterns
|
|
104
|
+
- Performance optimization
|
|
105
|
+
- Scope (roadmap defines this)
|
|
106
|
+
</gray_area_identification>
|
|
86
107
|
|
|
87
108
|
<process>
|
|
88
109
|
|
|
@@ -169,47 +190,79 @@ We'll clarify HOW to implement this.
|
|
|
169
190
|
|
|
170
191
|
**Then use AskUserQuestion (multiSelect: true):**
|
|
171
192
|
- header: "Discuss"
|
|
172
|
-
- question: "Which areas do you want to discuss?"
|
|
173
|
-
- options: Generate
|
|
174
|
-
- "[
|
|
175
|
-
-
|
|
193
|
+
- question: "Which areas do you want to discuss for [phase name]?"
|
|
194
|
+
- options: Generate 3-4 phase-specific gray areas, each formatted as:
|
|
195
|
+
- "[Specific area]" (label) — concrete, not generic
|
|
196
|
+
- [1-2 questions this covers] (description)
|
|
197
|
+
|
|
198
|
+
**Do NOT include a "skip" or "you decide" option.** User ran this command to discuss — give them real choices.
|
|
176
199
|
|
|
177
|
-
**
|
|
200
|
+
**Examples by domain:**
|
|
201
|
+
|
|
202
|
+
For "Post Feed" (visual feature):
|
|
203
|
+
```
|
|
204
|
+
☐ Layout style — Cards vs list vs timeline? Information density?
|
|
205
|
+
☐ Loading behavior — Infinite scroll or pagination? Pull to refresh?
|
|
206
|
+
☐ Content ordering — Chronological, algorithmic, or user choice?
|
|
207
|
+
☐ Post metadata — What info per post? Timestamps, reactions, author?
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
For "Database backup CLI" (command-line tool):
|
|
211
|
+
```
|
|
212
|
+
☐ Output format — JSON, table, or plain text? Verbosity levels?
|
|
213
|
+
☐ Flag design — Short flags, long flags, or both? Required vs optional?
|
|
214
|
+
☐ Progress reporting — Silent, progress bar, or verbose logging?
|
|
215
|
+
☐ Error recovery — Fail fast, retry, or prompt for action?
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
For "Organize photo library" (organization task):
|
|
178
219
|
```
|
|
179
|
-
☐
|
|
180
|
-
☐
|
|
181
|
-
☐
|
|
182
|
-
☐
|
|
220
|
+
☐ Grouping criteria — By date, location, faces, or events?
|
|
221
|
+
☐ Duplicate handling — Keep best, keep all, or prompt each time?
|
|
222
|
+
☐ Naming convention — Original names, dates, or descriptive?
|
|
223
|
+
☐ Folder structure — Flat, nested by year, or by category?
|
|
183
224
|
```
|
|
184
225
|
|
|
185
|
-
|
|
186
|
-
Otherwise: Continue to discuss_areas with selected areas.
|
|
226
|
+
Continue to discuss_areas with selected areas.
|
|
187
227
|
</step>
|
|
188
228
|
|
|
189
229
|
<step name="discuss_areas">
|
|
190
230
|
For each selected area, conduct a focused discussion loop.
|
|
191
231
|
|
|
232
|
+
**Philosophy: 4 questions, then check.**
|
|
233
|
+
|
|
234
|
+
Ask 4 questions per area before offering to continue or move on. Each answer often reveals the next question.
|
|
235
|
+
|
|
192
236
|
**For each area:**
|
|
193
237
|
|
|
194
238
|
1. **Announce the area:**
|
|
195
239
|
```
|
|
196
|
-
Let's talk about [
|
|
240
|
+
Let's talk about [Area].
|
|
197
241
|
```
|
|
198
242
|
|
|
199
|
-
2. **Ask
|
|
200
|
-
- header: "[
|
|
201
|
-
- question: Specific
|
|
202
|
-
- options: 2-3 concrete choices
|
|
243
|
+
2. **Ask 4 questions using AskUserQuestion:**
|
|
244
|
+
- header: "[Area]"
|
|
245
|
+
- question: Specific decision for this area
|
|
246
|
+
- options: 2-3 concrete choices (AskUserQuestion adds "Other" automatically)
|
|
247
|
+
- Include "You decide" as an option when reasonable — captures Claude discretion
|
|
203
248
|
|
|
204
|
-
3. **
|
|
205
|
-
-
|
|
206
|
-
-
|
|
207
|
-
-
|
|
249
|
+
3. **After 4 questions, check:**
|
|
250
|
+
- header: "[Area]"
|
|
251
|
+
- question: "More questions about [area], or move to next?"
|
|
252
|
+
- options: "More questions" / "Next area"
|
|
208
253
|
|
|
209
|
-
4
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
254
|
+
If "More questions" → ask 4 more, then check again
|
|
255
|
+
If "Next area" → proceed to next selected area
|
|
256
|
+
|
|
257
|
+
4. **After all areas complete:**
|
|
258
|
+
- header: "Done"
|
|
259
|
+
- question: "That covers [list areas]. Ready to create context?"
|
|
260
|
+
- options: "Create context" / "Revisit an area"
|
|
261
|
+
|
|
262
|
+
**Question design:**
|
|
263
|
+
- Options should be concrete, not abstract ("Cards" not "Option A")
|
|
264
|
+
- Each answer should inform the next question
|
|
265
|
+
- If user picks "Other", receive their input, reflect it back, confirm
|
|
213
266
|
|
|
214
267
|
**Scope creep handling:**
|
|
215
268
|
If user mentions something outside the phase domain:
|
|
@@ -217,14 +270,10 @@ If user mentions something outside the phase domain:
|
|
|
217
270
|
"[Feature] sounds like a new capability — that belongs in its own phase.
|
|
218
271
|
I'll note it as a deferred idea.
|
|
219
272
|
|
|
220
|
-
Back to [current
|
|
273
|
+
Back to [current area]: [return to current question]"
|
|
221
274
|
```
|
|
222
275
|
|
|
223
276
|
Track deferred ideas internally.
|
|
224
|
-
|
|
225
|
-
**Continue until:**
|
|
226
|
-
- User says "Move to next area" and all selected areas are done, OR
|
|
227
|
-
- User says "That's enough, create context"
|
|
228
277
|
</step>
|
|
229
278
|
|
|
230
279
|
<step name="write_context">
|