declare-cc 0.2.0 → 0.3.1
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/README.md +126 -27
- package/agents/declare-codebase-mapper.md +761 -0
- package/agents/declare-debugger.md +1198 -0
- package/agents/declare-plan-checker.md +608 -0
- package/agents/declare-planner.md +1015 -0
- package/agents/declare-research-synthesizer.md +309 -0
- package/agents/declare-researcher.md +484 -0
- package/bin/install.js +33 -38
- package/commands/declare/add-todo.md +41 -0
- package/commands/declare/audit.md +76 -0
- package/commands/declare/check-todos.md +125 -0
- package/commands/declare/complete-milestone.md +215 -0
- package/commands/declare/dashboard.md +76 -0
- package/commands/{gsd → declare}/debug.md +11 -11
- package/commands/declare/discuss.md +65 -0
- package/commands/declare/health.md +92 -0
- package/commands/declare/map-codebase.md +149 -0
- package/commands/declare/new-milestone.md +172 -0
- package/commands/declare/new-project.md +565 -0
- package/commands/declare/pause.md +138 -0
- package/commands/declare/plan.md +236 -0
- package/commands/declare/progress.md +116 -0
- package/commands/declare/quick.md +119 -0
- package/commands/declare/reapply-patches.md +178 -0
- package/commands/declare/research.md +267 -0
- package/commands/declare/resume.md +146 -0
- package/commands/declare/set-profile.md +66 -0
- package/commands/declare/settings.md +119 -0
- package/commands/declare/update.md +251 -0
- package/commands/declare/verify.md +64 -0
- package/dist/declare-tools.cjs +1234 -3
- package/package.json +1 -1
- package/workflows/discuss.md +476 -0
- package/workflows/verify.md +504 -0
- package/commands/gsd/add-phase.md +0 -39
- package/commands/gsd/add-todo.md +0 -42
- package/commands/gsd/audit-milestone.md +0 -42
- package/commands/gsd/check-todos.md +0 -41
- package/commands/gsd/cleanup.md +0 -18
- package/commands/gsd/complete-milestone.md +0 -136
- package/commands/gsd/discuss-phase.md +0 -87
- package/commands/gsd/execute-phase.md +0 -42
- package/commands/gsd/health.md +0 -22
- package/commands/gsd/help.md +0 -22
- package/commands/gsd/insert-phase.md +0 -33
- package/commands/gsd/join-discord.md +0 -18
- package/commands/gsd/list-phase-assumptions.md +0 -50
- package/commands/gsd/map-codebase.md +0 -71
- package/commands/gsd/new-milestone.md +0 -51
- package/commands/gsd/new-project.md +0 -42
- package/commands/gsd/new-project.md.bak +0 -1041
- package/commands/gsd/pause-work.md +0 -35
- package/commands/gsd/plan-milestone-gaps.md +0 -40
- package/commands/gsd/plan-phase.md +0 -44
- package/commands/gsd/progress.md +0 -24
- package/commands/gsd/quick.md +0 -40
- package/commands/gsd/reapply-patches.md +0 -110
- package/commands/gsd/remove-phase.md +0 -32
- package/commands/gsd/research-phase.md +0 -187
- package/commands/gsd/resume-work.md +0 -40
- package/commands/gsd/set-profile.md +0 -34
- package/commands/gsd/settings.md +0 -36
- package/commands/gsd/update.md +0 -37
- package/commands/gsd/verify-work.md +0 -39
|
@@ -0,0 +1,504 @@
|
|
|
1
|
+
<purpose>
|
|
2
|
+
Validate built features through conversational testing with persistent state. Creates UAT.md that tracks test progress, survives /clear, and feeds gaps into /declare:verify --gaps.
|
|
3
|
+
|
|
4
|
+
User tests, Claude records. One test at a time. Plain text responses.
|
|
5
|
+
</purpose>
|
|
6
|
+
|
|
7
|
+
<philosophy>
|
|
8
|
+
**Show expected, ask if reality matches.**
|
|
9
|
+
|
|
10
|
+
Claude presents what SHOULD happen. User confirms or describes what's different.
|
|
11
|
+
- "yes" / "y" / "next" / empty → pass
|
|
12
|
+
- Anything else → logged as issue, severity inferred
|
|
13
|
+
|
|
14
|
+
No Pass/Fail buttons. No severity questions. Just: "Here's what should happen. Does it?"
|
|
15
|
+
</philosophy>
|
|
16
|
+
|
|
17
|
+
<template>
|
|
18
|
+
@workflows/uat-template.md
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
<process>
|
|
22
|
+
|
|
23
|
+
<step name="initialize" priority="first">
|
|
24
|
+
If $ARGUMENTS contains a milestone identifier (e.g., M-08), load context:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
INIT=$(node dist/declare-tools.cjs execute --milestone "${MILESTONE_ARG}" 2>/dev/null || echo "{}")
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Parse JSON for: `planner_model`, `checker_model`, `commit_docs`, `milestone_found`, `milestone_dir`, `milestone_id`, `milestone_name`, `has_verification`.
|
|
31
|
+
</step>
|
|
32
|
+
|
|
33
|
+
<step name="check_active_session">
|
|
34
|
+
**First: Check for active UAT sessions**
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
find .planning/milestones -name "*-UAT.md" -type f 2>/dev/null | head -5
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
**If active sessions exist AND no $ARGUMENTS provided:**
|
|
41
|
+
|
|
42
|
+
Read each file's frontmatter (status, milestone) and Current Test section.
|
|
43
|
+
|
|
44
|
+
Display inline:
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
## Active UAT Sessions
|
|
48
|
+
|
|
49
|
+
| # | Milestone | Status | Current Test | Progress |
|
|
50
|
+
|---|-----------|--------|--------------|----------|
|
|
51
|
+
| 1 | M-04-comments | testing | 3. Reply to Comment | 2/6 |
|
|
52
|
+
| 2 | M-05-auth | testing | 1. Login Form | 0/4 |
|
|
53
|
+
|
|
54
|
+
Reply with a number to resume, or provide a milestone ID to start new.
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Wait for user response.
|
|
58
|
+
|
|
59
|
+
- If user replies with number (1, 2) → Load that file, go to `resume_from_file`
|
|
60
|
+
- If user replies with milestone ID → Treat as new session, go to `create_uat_file`
|
|
61
|
+
|
|
62
|
+
**If active sessions exist AND $ARGUMENTS provided:**
|
|
63
|
+
|
|
64
|
+
Check if session exists for that milestone. If yes, offer to resume or restart.
|
|
65
|
+
If no, continue to `create_uat_file`.
|
|
66
|
+
|
|
67
|
+
**If no active sessions AND no $ARGUMENTS:**
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
No active UAT sessions.
|
|
71
|
+
|
|
72
|
+
Provide a milestone ID to start testing (e.g., /declare:verify M-08)
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
**If no active sessions AND $ARGUMENTS provided:**
|
|
76
|
+
|
|
77
|
+
Continue to `create_uat_file`.
|
|
78
|
+
</step>
|
|
79
|
+
|
|
80
|
+
<step name="find_plans">
|
|
81
|
+
**Find what to test:**
|
|
82
|
+
|
|
83
|
+
Locate the milestone directory under `.planning/milestones/`.
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
ls ".planning/milestones/${MILESTONE_DIR}/"*-PLAN.md 2>/dev/null
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Read each PLAN.md to extract testable deliverables from the `produces` fields and task descriptions.
|
|
90
|
+
</step>
|
|
91
|
+
|
|
92
|
+
<step name="extract_tests">
|
|
93
|
+
**Extract testable deliverables from milestone PLAN.md files:**
|
|
94
|
+
|
|
95
|
+
Parse each PLAN.md for:
|
|
96
|
+
1. **`produces` fields** — Explicit outputs listed per action/task
|
|
97
|
+
2. **User-facing changes** — UI, workflows, interactions described in task objectives
|
|
98
|
+
|
|
99
|
+
Focus on USER-OBSERVABLE outcomes, not implementation details.
|
|
100
|
+
|
|
101
|
+
For each deliverable, create a test:
|
|
102
|
+
- name: Brief test name
|
|
103
|
+
- expected: What the user should see/experience (specific, observable)
|
|
104
|
+
|
|
105
|
+
Examples:
|
|
106
|
+
- Produces: "agents/declare-debugger.md — working debug agent"
|
|
107
|
+
→ Test: "Declare Debugger Agent Exists"
|
|
108
|
+
→ Expected: "File agents/declare-debugger.md exists with proper YAML frontmatter (name, description, tools, color) and contains all core sections: philosophy, hypothesis_testing, investigation_techniques, debug_file_protocol, execution_flow."
|
|
109
|
+
|
|
110
|
+
- Produces: "commands/declare/verify.md — /declare:verify command"
|
|
111
|
+
→ Test: "Verify Command Available"
|
|
112
|
+
→ Expected: "File commands/declare/verify.md exists, references @workflows/verify.md, and accepts M-XX as argument."
|
|
113
|
+
|
|
114
|
+
Skip internal/non-observable items (refactors, config tweaks, etc.).
|
|
115
|
+
</step>
|
|
116
|
+
|
|
117
|
+
<step name="create_uat_file">
|
|
118
|
+
**Create UAT file with all tests:**
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
mkdir -p ".planning/milestones/${MILESTONE_DIR}"
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Build test list from extracted deliverables.
|
|
125
|
+
|
|
126
|
+
Create file at `.planning/milestones/{milestone_dir}/{milestone_id}-UAT.md`:
|
|
127
|
+
|
|
128
|
+
```markdown
|
|
129
|
+
---
|
|
130
|
+
status: testing
|
|
131
|
+
milestone: {milestone_id}-{milestone_name}
|
|
132
|
+
source: [list of PLAN.md files read]
|
|
133
|
+
started: [ISO timestamp]
|
|
134
|
+
updated: [ISO timestamp]
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## Current Test
|
|
138
|
+
<!-- OVERWRITE each test - shows where we are -->
|
|
139
|
+
|
|
140
|
+
number: 1
|
|
141
|
+
name: [first test name]
|
|
142
|
+
expected: |
|
|
143
|
+
[what user should observe]
|
|
144
|
+
awaiting: user response
|
|
145
|
+
|
|
146
|
+
## Tests
|
|
147
|
+
|
|
148
|
+
### 1. [Test Name]
|
|
149
|
+
expected: [observable behavior]
|
|
150
|
+
result: [pending]
|
|
151
|
+
|
|
152
|
+
### 2. [Test Name]
|
|
153
|
+
expected: [observable behavior]
|
|
154
|
+
result: [pending]
|
|
155
|
+
|
|
156
|
+
...
|
|
157
|
+
|
|
158
|
+
## Summary
|
|
159
|
+
|
|
160
|
+
total: [N]
|
|
161
|
+
passed: 0
|
|
162
|
+
issues: 0
|
|
163
|
+
pending: [N]
|
|
164
|
+
skipped: 0
|
|
165
|
+
|
|
166
|
+
## Gaps
|
|
167
|
+
|
|
168
|
+
[none yet]
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
Proceed to `present_test`.
|
|
172
|
+
</step>
|
|
173
|
+
|
|
174
|
+
<step name="present_test">
|
|
175
|
+
**Present current test to user:**
|
|
176
|
+
|
|
177
|
+
Read Current Test section from UAT file.
|
|
178
|
+
|
|
179
|
+
Display using checkpoint box format:
|
|
180
|
+
|
|
181
|
+
```
|
|
182
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
183
|
+
║ CHECKPOINT: Verification Required ║
|
|
184
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
185
|
+
|
|
186
|
+
**Test {number}: {name}**
|
|
187
|
+
|
|
188
|
+
{expected}
|
|
189
|
+
|
|
190
|
+
──────────────────────────────────────────────────────────────
|
|
191
|
+
→ Type "pass" or describe what's wrong
|
|
192
|
+
──────────────────────────────────────────────────────────────
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
Wait for user response (plain text, no AskUserQuestion).
|
|
196
|
+
</step>
|
|
197
|
+
|
|
198
|
+
<step name="process_response">
|
|
199
|
+
**Process user response and update file:**
|
|
200
|
+
|
|
201
|
+
**If response indicates pass:**
|
|
202
|
+
- Empty response, "yes", "y", "ok", "pass", "next", "approved", "✓"
|
|
203
|
+
|
|
204
|
+
Update Tests section:
|
|
205
|
+
```
|
|
206
|
+
### {N}. {name}
|
|
207
|
+
expected: {expected}
|
|
208
|
+
result: pass
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
**If response indicates skip:**
|
|
212
|
+
- "skip", "can't test", "n/a"
|
|
213
|
+
|
|
214
|
+
Update Tests section:
|
|
215
|
+
```
|
|
216
|
+
### {N}. {name}
|
|
217
|
+
expected: {expected}
|
|
218
|
+
result: skipped
|
|
219
|
+
reason: [user's reason if provided]
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
**If response is anything else:**
|
|
223
|
+
- Treat as issue description
|
|
224
|
+
|
|
225
|
+
Infer severity from description:
|
|
226
|
+
- Contains: crash, error, exception, fails, broken, unusable → blocker
|
|
227
|
+
- Contains: doesn't work, wrong, missing, can't → major
|
|
228
|
+
- Contains: slow, weird, off, minor, small → minor
|
|
229
|
+
- Contains: color, font, spacing, alignment, visual → cosmetic
|
|
230
|
+
- Default if unclear: major
|
|
231
|
+
|
|
232
|
+
Update Tests section:
|
|
233
|
+
```
|
|
234
|
+
### {N}. {name}
|
|
235
|
+
expected: {expected}
|
|
236
|
+
result: issue
|
|
237
|
+
reported: "{verbatim user response}"
|
|
238
|
+
severity: {inferred}
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
Append to Gaps section (structured YAML for diagnosis):
|
|
242
|
+
```yaml
|
|
243
|
+
- test_id: {N}
|
|
244
|
+
description: "{test name}"
|
|
245
|
+
expected: "{expected behavior from test}"
|
|
246
|
+
actual: "{verbatim user response}"
|
|
247
|
+
severity: {inferred}
|
|
248
|
+
root_cause: "" # Filled by declare-debugger diagnosis
|
|
249
|
+
status: failed
|
|
250
|
+
artifacts: [] # Filled by diagnosis
|
|
251
|
+
missing: [] # Filled by diagnosis
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
**After any response:**
|
|
255
|
+
|
|
256
|
+
Update Summary counts.
|
|
257
|
+
Update frontmatter.updated timestamp.
|
|
258
|
+
|
|
259
|
+
If more tests remain → Update Current Test, go to `present_test`
|
|
260
|
+
If no more tests → Go to `complete_session`
|
|
261
|
+
</step>
|
|
262
|
+
|
|
263
|
+
<step name="resume_from_file">
|
|
264
|
+
**Resume testing from UAT file:**
|
|
265
|
+
|
|
266
|
+
Read the full UAT file.
|
|
267
|
+
|
|
268
|
+
Find first test with `result: [pending]`.
|
|
269
|
+
|
|
270
|
+
Announce:
|
|
271
|
+
```
|
|
272
|
+
Resuming: Milestone {milestone_id} UAT
|
|
273
|
+
Progress: {passed + issues + skipped}/{total}
|
|
274
|
+
Issues found so far: {issues count}
|
|
275
|
+
|
|
276
|
+
Continuing from Test {N}...
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
Update Current Test section with the pending test.
|
|
280
|
+
Proceed to `present_test`.
|
|
281
|
+
</step>
|
|
282
|
+
|
|
283
|
+
<step name="complete_session">
|
|
284
|
+
**Complete testing and commit:**
|
|
285
|
+
|
|
286
|
+
Update frontmatter:
|
|
287
|
+
- status: complete
|
|
288
|
+
- updated: [now]
|
|
289
|
+
|
|
290
|
+
Clear Current Test section:
|
|
291
|
+
```
|
|
292
|
+
## Current Test
|
|
293
|
+
|
|
294
|
+
[testing complete]
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
Commit the UAT file:
|
|
298
|
+
```bash
|
|
299
|
+
node dist/declare-tools.cjs commit "test({milestone_id}): complete UAT - {passed} passed, {issues} issues" --files ".planning/milestones/{milestone_dir}/{milestone_id}-UAT.md"
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
Present summary:
|
|
303
|
+
```
|
|
304
|
+
## UAT Complete: Milestone {milestone_id}
|
|
305
|
+
|
|
306
|
+
| Result | Count |
|
|
307
|
+
|--------|-------|
|
|
308
|
+
| Passed | {N} |
|
|
309
|
+
| Issues | {N} |
|
|
310
|
+
| Skipped| {N} |
|
|
311
|
+
|
|
312
|
+
[If issues > 0:]
|
|
313
|
+
### Issues Found
|
|
314
|
+
|
|
315
|
+
[List from Issues section]
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
**If issues > 0:** Proceed to `diagnose_issues`
|
|
319
|
+
|
|
320
|
+
**If issues == 0:**
|
|
321
|
+
```
|
|
322
|
+
All tests passed. Ready to continue.
|
|
323
|
+
|
|
324
|
+
- `/declare:milestones` — View milestone status
|
|
325
|
+
- `/declare:execute M-{next}` — Execute next milestone
|
|
326
|
+
```
|
|
327
|
+
</step>
|
|
328
|
+
|
|
329
|
+
<step name="diagnose_issues">
|
|
330
|
+
**Diagnose root causes before planning fixes:**
|
|
331
|
+
|
|
332
|
+
```
|
|
333
|
+
---
|
|
334
|
+
|
|
335
|
+
{N} issues found. Diagnosing root causes...
|
|
336
|
+
|
|
337
|
+
Spawning parallel debug agents to investigate each issue.
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
For each gap in the UAT file:
|
|
341
|
+
1. Spawn a `declare-debugger` agent in `goal: find_root_cause_only` mode
|
|
342
|
+
2. Pass gap details as pre-filled symptoms (`symptoms_prefilled: true`)
|
|
343
|
+
3. Collect root causes from each agent's ROOT CAUSE FOUND response
|
|
344
|
+
4. Update UAT.md Gaps section with `root_cause` for each gap
|
|
345
|
+
|
|
346
|
+
All agents run in parallel — diagnosis overhead is minimal.
|
|
347
|
+
|
|
348
|
+
After all diagnoses complete, update UAT file with root causes, then proceed to `plan_gap_closure`.
|
|
349
|
+
</step>
|
|
350
|
+
|
|
351
|
+
<step name="plan_gap_closure">
|
|
352
|
+
**Auto-plan fixes from diagnosed gaps:**
|
|
353
|
+
|
|
354
|
+
Display:
|
|
355
|
+
```
|
|
356
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
357
|
+
DECLARE ► PLANNING FIXES
|
|
358
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
359
|
+
|
|
360
|
+
◆ Spawning planner for gap closure...
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
Spawn declare-planner in gap_closure mode with:
|
|
364
|
+
- The diagnosed UAT file
|
|
365
|
+
- Current STATE.md
|
|
366
|
+
- Current milestone PLAN.md files as context
|
|
367
|
+
|
|
368
|
+
On return:
|
|
369
|
+
- **PLANNING COMPLETE:** Proceed to `verify_gap_plans`
|
|
370
|
+
- **PLANNING INCONCLUSIVE:** Report and offer manual intervention
|
|
371
|
+
</step>
|
|
372
|
+
|
|
373
|
+
<step name="verify_gap_plans">
|
|
374
|
+
**Verify fix plans:**
|
|
375
|
+
|
|
376
|
+
Display:
|
|
377
|
+
```
|
|
378
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
379
|
+
DECLARE ► VERIFYING FIX PLANS
|
|
380
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
381
|
+
|
|
382
|
+
◆ Reviewing fix plans...
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
Initialize: `iteration_count = 1`
|
|
386
|
+
|
|
387
|
+
Review gap closure plans for completeness and correctness:
|
|
388
|
+
- Each diagnosed gap has a corresponding fix plan
|
|
389
|
+
- Fix plans address the root cause, not just symptoms
|
|
390
|
+
- No missing steps or broken dependencies
|
|
391
|
+
|
|
392
|
+
On review:
|
|
393
|
+
- **PLANS VALID:** Proceed to `present_ready`
|
|
394
|
+
- **ISSUES FOUND:** Return to plan_gap_closure with feedback (max 3 iterations)
|
|
395
|
+
|
|
396
|
+
**If iteration_count >= 3:**
|
|
397
|
+
|
|
398
|
+
Display: `Max iterations reached. {N} issues remain.`
|
|
399
|
+
|
|
400
|
+
Offer options:
|
|
401
|
+
1. Force proceed (execute despite issues)
|
|
402
|
+
2. Provide guidance (user gives direction, retry)
|
|
403
|
+
3. Abandon (exit, user runs `/declare:verify M-{milestone}` manually)
|
|
404
|
+
|
|
405
|
+
Wait for user response.
|
|
406
|
+
</step>
|
|
407
|
+
|
|
408
|
+
<step name="present_ready">
|
|
409
|
+
**Present completion and next steps:**
|
|
410
|
+
|
|
411
|
+
```
|
|
412
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
413
|
+
DECLARE ► FIXES READY
|
|
414
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
415
|
+
|
|
416
|
+
**Milestone {milestone_id}: {milestone_name}** — {N} gap(s) diagnosed, {M} fix plan(s) created
|
|
417
|
+
|
|
418
|
+
| Gap | Root Cause | Fix Plan |
|
|
419
|
+
|-----|------------|----------|
|
|
420
|
+
| {description 1} | {root_cause} | {action_id} |
|
|
421
|
+
| {description 2} | {root_cause} | {action_id} |
|
|
422
|
+
|
|
423
|
+
Plans verified and ready for execution.
|
|
424
|
+
|
|
425
|
+
───────────────────────────────────────────────────────────────
|
|
426
|
+
|
|
427
|
+
## Next Up
|
|
428
|
+
|
|
429
|
+
**Execute fixes** — run fix plans
|
|
430
|
+
|
|
431
|
+
`/clear` then `/declare:execute M-{milestone_id} --gaps-only`
|
|
432
|
+
|
|
433
|
+
───────────────────────────────────────────────────────────────
|
|
434
|
+
```
|
|
435
|
+
</step>
|
|
436
|
+
|
|
437
|
+
</process>
|
|
438
|
+
|
|
439
|
+
<update_rules>
|
|
440
|
+
**Batched writes for efficiency:**
|
|
441
|
+
|
|
442
|
+
Keep results in memory. Write to file only when:
|
|
443
|
+
1. **Issue found** — Preserve the problem immediately
|
|
444
|
+
2. **Session complete** — Final write before commit
|
|
445
|
+
3. **Checkpoint** — Every 5 passed tests (safety net)
|
|
446
|
+
|
|
447
|
+
| Section | Rule | When Written |
|
|
448
|
+
|---------|------|--------------|
|
|
449
|
+
| Frontmatter.status | OVERWRITE | Start, complete |
|
|
450
|
+
| Frontmatter.updated | OVERWRITE | On any file write |
|
|
451
|
+
| Current Test | OVERWRITE | On any file write |
|
|
452
|
+
| Tests.{N}.result | OVERWRITE | On any file write |
|
|
453
|
+
| Summary | OVERWRITE | On any file write |
|
|
454
|
+
| Gaps | APPEND | When issue found |
|
|
455
|
+
|
|
456
|
+
On context reset: File shows last checkpoint. Resume from there.
|
|
457
|
+
</update_rules>
|
|
458
|
+
|
|
459
|
+
<severity_inference>
|
|
460
|
+
**Infer severity from user's natural language:**
|
|
461
|
+
|
|
462
|
+
| User says | Infer |
|
|
463
|
+
|-----------|-------|
|
|
464
|
+
| "crashes", "error", "exception", "fails completely" | blocker |
|
|
465
|
+
| "doesn't work", "nothing happens", "wrong behavior" | major |
|
|
466
|
+
| "works but...", "slow", "weird", "minor issue" | minor |
|
|
467
|
+
| "color", "spacing", "alignment", "looks off" | cosmetic |
|
|
468
|
+
|
|
469
|
+
Default to **major** if unclear. User can correct if needed.
|
|
470
|
+
|
|
471
|
+
**Never ask "how severe is this?"** - just infer and move on.
|
|
472
|
+
</severity_inference>
|
|
473
|
+
|
|
474
|
+
<gap_format>
|
|
475
|
+
**Gap YAML written to UAT.md on each issue found:**
|
|
476
|
+
|
|
477
|
+
```yaml
|
|
478
|
+
- test_id: {N}
|
|
479
|
+
description: "{test name}"
|
|
480
|
+
expected: "{expected behavior from test}"
|
|
481
|
+
actual: "{verbatim user response}"
|
|
482
|
+
severity: {blocker|major|minor|cosmetic}
|
|
483
|
+
root_cause: "" # Populated by declare-debugger
|
|
484
|
+
status: failed
|
|
485
|
+
artifacts: [] # Populated by declare-debugger (files involved)
|
|
486
|
+
missing: [] # Populated by declare-debugger (what was missing)
|
|
487
|
+
```
|
|
488
|
+
|
|
489
|
+
This structured format feeds directly into the declare-debugger diagnosis mode and gap closure planning.
|
|
490
|
+
</gap_format>
|
|
491
|
+
|
|
492
|
+
<success_criteria>
|
|
493
|
+
- [ ] UAT file created with all tests from milestone PLAN.md "produces" fields
|
|
494
|
+
- [ ] Tests presented one at a time with expected behavior
|
|
495
|
+
- [ ] User responses processed as pass/issue/skip
|
|
496
|
+
- [ ] Severity inferred from description (never asked)
|
|
497
|
+
- [ ] Batched writes: on issue, every 5 passes, or completion
|
|
498
|
+
- [ ] Committed on completion
|
|
499
|
+
- [ ] If issues: parallel declare-debugger agents diagnose root causes
|
|
500
|
+
- [ ] Gap format includes test_id, description, expected, actual, severity, root_cause
|
|
501
|
+
- [ ] If issues: fix plans created covering all diagnosed gaps
|
|
502
|
+
- [ ] If issues: fix plans verified before presenting to user
|
|
503
|
+
- [ ] Ready for `/declare:execute M-{id} --gaps-only` when complete
|
|
504
|
+
</success_criteria>
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: gsd:add-phase
|
|
3
|
-
description: Add phase to end of current milestone in roadmap
|
|
4
|
-
argument-hint: <description>
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Write
|
|
8
|
-
- Bash
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
<objective>
|
|
12
|
-
Add a new integer phase to the end of the current milestone in the roadmap.
|
|
13
|
-
|
|
14
|
-
Routes to the add-phase workflow which handles:
|
|
15
|
-
- Phase number calculation (next sequential integer)
|
|
16
|
-
- Directory creation with slug generation
|
|
17
|
-
- Roadmap structure updates
|
|
18
|
-
- STATE.md roadmap evolution tracking
|
|
19
|
-
</objective>
|
|
20
|
-
|
|
21
|
-
<execution_context>
|
|
22
|
-
@.planning/ROADMAP.md
|
|
23
|
-
@.planning/STATE.md
|
|
24
|
-
@~/.claude/get-shit-done/workflows/add-phase.md
|
|
25
|
-
</execution_context>
|
|
26
|
-
|
|
27
|
-
<process>
|
|
28
|
-
**Follow the add-phase workflow** from `@~/.claude/get-shit-done/workflows/add-phase.md`.
|
|
29
|
-
|
|
30
|
-
The workflow handles all logic including:
|
|
31
|
-
1. Argument parsing and validation
|
|
32
|
-
2. Roadmap existence checking
|
|
33
|
-
3. Current milestone identification
|
|
34
|
-
4. Next phase number calculation (ignoring decimals)
|
|
35
|
-
5. Slug generation from description
|
|
36
|
-
6. Phase directory creation
|
|
37
|
-
7. Roadmap entry insertion
|
|
38
|
-
8. STATE.md updates
|
|
39
|
-
</process>
|
package/commands/gsd/add-todo.md
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: gsd:add-todo
|
|
3
|
-
description: Capture idea or task as todo from current conversation context
|
|
4
|
-
argument-hint: [optional description]
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Write
|
|
8
|
-
- Bash
|
|
9
|
-
- AskUserQuestion
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
<objective>
|
|
13
|
-
Capture an idea, task, or issue that surfaces during a GSD session as a structured todo for later work.
|
|
14
|
-
|
|
15
|
-
Routes to the add-todo workflow which handles:
|
|
16
|
-
- Directory structure creation
|
|
17
|
-
- Content extraction from arguments or conversation
|
|
18
|
-
- Area inference from file paths
|
|
19
|
-
- Duplicate detection and resolution
|
|
20
|
-
- Todo file creation with frontmatter
|
|
21
|
-
- STATE.md updates
|
|
22
|
-
- Git commits
|
|
23
|
-
</objective>
|
|
24
|
-
|
|
25
|
-
<execution_context>
|
|
26
|
-
@.planning/STATE.md
|
|
27
|
-
@~/.claude/get-shit-done/workflows/add-todo.md
|
|
28
|
-
</execution_context>
|
|
29
|
-
|
|
30
|
-
<process>
|
|
31
|
-
**Follow the add-todo workflow** from `@~/.claude/get-shit-done/workflows/add-todo.md`.
|
|
32
|
-
|
|
33
|
-
The workflow handles all logic including:
|
|
34
|
-
1. Directory ensuring
|
|
35
|
-
2. Existing area checking
|
|
36
|
-
3. Content extraction (arguments or conversation)
|
|
37
|
-
4. Area inference
|
|
38
|
-
5. Duplicate checking
|
|
39
|
-
6. File creation with slug generation
|
|
40
|
-
7. STATE.md updates
|
|
41
|
-
8. Git commits
|
|
42
|
-
</process>
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: gsd:audit-milestone
|
|
3
|
-
description: Audit milestone completion against original intent before archiving
|
|
4
|
-
argument-hint: "[version]"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Glob
|
|
8
|
-
- Grep
|
|
9
|
-
- Bash
|
|
10
|
-
- Task
|
|
11
|
-
- Write
|
|
12
|
-
---
|
|
13
|
-
<objective>
|
|
14
|
-
Verify milestone achieved its definition of done. Check requirements coverage, cross-phase integration, and end-to-end flows.
|
|
15
|
-
|
|
16
|
-
**This command IS the orchestrator.** Reads existing VERIFICATION.md files (phases already verified during execute-phase), aggregates tech debt and deferred gaps, then spawns integration checker for cross-phase wiring.
|
|
17
|
-
</objective>
|
|
18
|
-
|
|
19
|
-
<execution_context>
|
|
20
|
-
@~/.claude/get-shit-done/workflows/audit-milestone.md
|
|
21
|
-
</execution_context>
|
|
22
|
-
|
|
23
|
-
<context>
|
|
24
|
-
Version: $ARGUMENTS (optional — defaults to current milestone)
|
|
25
|
-
|
|
26
|
-
**Original Intent:**
|
|
27
|
-
@.planning/PROJECT.md
|
|
28
|
-
@.planning/REQUIREMENTS.md
|
|
29
|
-
|
|
30
|
-
**Planned Work:**
|
|
31
|
-
@.planning/ROADMAP.md
|
|
32
|
-
@.planning/config.json (if exists)
|
|
33
|
-
|
|
34
|
-
**Completed Work:**
|
|
35
|
-
Glob: .planning/phases/*/*-SUMMARY.md
|
|
36
|
-
Glob: .planning/phases/*/*-VERIFICATION.md
|
|
37
|
-
</context>
|
|
38
|
-
|
|
39
|
-
<process>
|
|
40
|
-
Execute the audit-milestone workflow from @~/.claude/get-shit-done/workflows/audit-milestone.md end-to-end.
|
|
41
|
-
Preserve all workflow gates (scope determination, verification reading, integration check, requirements coverage, routing).
|
|
42
|
-
</process>
|
|
@@ -1,41 +0,0 @@
|
|
|
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
|
-
- AskUserQuestion
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
<objective>
|
|
13
|
-
List all pending todos, allow selection, load full context for the selected todo, and route to appropriate action.
|
|
14
|
-
|
|
15
|
-
Routes to the check-todos workflow which handles:
|
|
16
|
-
- Todo counting and listing with area filtering
|
|
17
|
-
- Interactive selection with full context loading
|
|
18
|
-
- Roadmap correlation checking
|
|
19
|
-
- Action routing (work now, add to phase, brainstorm, create phase)
|
|
20
|
-
- STATE.md updates and git commits
|
|
21
|
-
</objective>
|
|
22
|
-
|
|
23
|
-
<execution_context>
|
|
24
|
-
@.planning/STATE.md
|
|
25
|
-
@.planning/ROADMAP.md
|
|
26
|
-
@~/.claude/get-shit-done/workflows/check-todos.md
|
|
27
|
-
</execution_context>
|
|
28
|
-
|
|
29
|
-
<process>
|
|
30
|
-
**Follow the check-todos workflow** from `@~/.claude/get-shit-done/workflows/check-todos.md`.
|
|
31
|
-
|
|
32
|
-
The workflow handles all logic including:
|
|
33
|
-
1. Todo existence checking
|
|
34
|
-
2. Area filtering
|
|
35
|
-
3. Interactive listing and selection
|
|
36
|
-
4. Full context loading with file summaries
|
|
37
|
-
5. Roadmap correlation checking
|
|
38
|
-
6. Action offering and execution
|
|
39
|
-
7. STATE.md updates
|
|
40
|
-
8. Git commits
|
|
41
|
-
</process>
|
package/commands/gsd/cleanup.md
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: gsd:cleanup
|
|
3
|
-
description: Archive accumulated phase directories from completed milestones
|
|
4
|
-
---
|
|
5
|
-
<objective>
|
|
6
|
-
Archive phase directories from completed milestones into `.planning/milestones/v{X.Y}-phases/`.
|
|
7
|
-
|
|
8
|
-
Use when `.planning/phases/` has accumulated directories from past milestones.
|
|
9
|
-
</objective>
|
|
10
|
-
|
|
11
|
-
<execution_context>
|
|
12
|
-
@~/.claude/get-shit-done/workflows/cleanup.md
|
|
13
|
-
</execution_context>
|
|
14
|
-
|
|
15
|
-
<process>
|
|
16
|
-
Follow the cleanup workflow at @~/.claude/get-shit-done/workflows/cleanup.md.
|
|
17
|
-
Identify completed milestones, show a dry-run summary, and archive on confirmation.
|
|
18
|
-
</process>
|