claude-cook 1.10.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.
Files changed (112) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +607 -0
  3. package/agents/gsd-codebase-mapper.md +738 -0
  4. package/agents/gsd-debugger.md +1203 -0
  5. package/agents/gsd-executor.md +784 -0
  6. package/agents/gsd-integration-checker.md +423 -0
  7. package/agents/gsd-phase-researcher.md +641 -0
  8. package/agents/gsd-plan-checker.md +745 -0
  9. package/agents/gsd-planner.md +1386 -0
  10. package/agents/gsd-pm.md +331 -0
  11. package/agents/gsd-project-researcher.md +865 -0
  12. package/agents/gsd-research-synthesizer.md +256 -0
  13. package/agents/gsd-roadmapper.md +605 -0
  14. package/agents/gsd-verifier.md +778 -0
  15. package/bin/install.js +1477 -0
  16. package/commands/gsd/add-phase.md +207 -0
  17. package/commands/gsd/add-todo.md +193 -0
  18. package/commands/gsd/audit-milestone.md +277 -0
  19. package/commands/gsd/check-todos.md +228 -0
  20. package/commands/gsd/complete-milestone.md +136 -0
  21. package/commands/gsd/debug.md +169 -0
  22. package/commands/gsd/discuss-phase.md +86 -0
  23. package/commands/gsd/execute-phase.md +339 -0
  24. package/commands/gsd/help.md +545 -0
  25. package/commands/gsd/insert-phase.md +227 -0
  26. package/commands/gsd/join-discord.md +18 -0
  27. package/commands/gsd/list-phase-assumptions.md +50 -0
  28. package/commands/gsd/map-codebase.md +71 -0
  29. package/commands/gsd/new-milestone.md +721 -0
  30. package/commands/gsd/new-project.md +1008 -0
  31. package/commands/gsd/pause-work.md +134 -0
  32. package/commands/gsd/plan-milestone-gaps.md +295 -0
  33. package/commands/gsd/plan-phase.md +525 -0
  34. package/commands/gsd/pm-check.md +115 -0
  35. package/commands/gsd/pm-replan.md +102 -0
  36. package/commands/gsd/pm-start.md +218 -0
  37. package/commands/gsd/pm-status.md +116 -0
  38. package/commands/gsd/pm-stop.md +72 -0
  39. package/commands/gsd/progress.md +415 -0
  40. package/commands/gsd/quick.md +309 -0
  41. package/commands/gsd/remove-phase.md +349 -0
  42. package/commands/gsd/research-phase.md +200 -0
  43. package/commands/gsd/resume-work.md +40 -0
  44. package/commands/gsd/set-profile.md +106 -0
  45. package/commands/gsd/settings.md +151 -0
  46. package/commands/gsd/update.md +172 -0
  47. package/commands/gsd/verify-work.md +219 -0
  48. package/get-shit-done/references/checkpoints.md +1078 -0
  49. package/get-shit-done/references/continuation-format.md +249 -0
  50. package/get-shit-done/references/git-integration.md +254 -0
  51. package/get-shit-done/references/model-profiles.md +73 -0
  52. package/get-shit-done/references/planning-config.md +189 -0
  53. package/get-shit-done/references/questioning.md +141 -0
  54. package/get-shit-done/references/tdd.md +263 -0
  55. package/get-shit-done/references/ui-brand.md +172 -0
  56. package/get-shit-done/references/verification-patterns.md +612 -0
  57. package/get-shit-done/references/vibe-kanban.md +142 -0
  58. package/get-shit-done/templates/DEBUG.md +159 -0
  59. package/get-shit-done/templates/UAT.md +247 -0
  60. package/get-shit-done/templates/codebase/architecture.md +255 -0
  61. package/get-shit-done/templates/codebase/concerns.md +310 -0
  62. package/get-shit-done/templates/codebase/conventions.md +307 -0
  63. package/get-shit-done/templates/codebase/integrations.md +280 -0
  64. package/get-shit-done/templates/codebase/stack.md +186 -0
  65. package/get-shit-done/templates/codebase/structure.md +285 -0
  66. package/get-shit-done/templates/codebase/testing.md +480 -0
  67. package/get-shit-done/templates/config.json +35 -0
  68. package/get-shit-done/templates/context.md +283 -0
  69. package/get-shit-done/templates/continue-here.md +78 -0
  70. package/get-shit-done/templates/debug-subagent-prompt.md +91 -0
  71. package/get-shit-done/templates/discovery.md +146 -0
  72. package/get-shit-done/templates/milestone-archive.md +123 -0
  73. package/get-shit-done/templates/milestone.md +115 -0
  74. package/get-shit-done/templates/phase-prompt.md +567 -0
  75. package/get-shit-done/templates/planner-subagent-prompt.md +117 -0
  76. package/get-shit-done/templates/pm-config.md +55 -0
  77. package/get-shit-done/templates/pm-log.md +27 -0
  78. package/get-shit-done/templates/project.md +184 -0
  79. package/get-shit-done/templates/requirements.md +231 -0
  80. package/get-shit-done/templates/research-project/ARCHITECTURE.md +204 -0
  81. package/get-shit-done/templates/research-project/FEATURES.md +147 -0
  82. package/get-shit-done/templates/research-project/PITFALLS.md +200 -0
  83. package/get-shit-done/templates/research-project/STACK.md +120 -0
  84. package/get-shit-done/templates/research-project/SUMMARY.md +170 -0
  85. package/get-shit-done/templates/research.md +529 -0
  86. package/get-shit-done/templates/roadmap.md +202 -0
  87. package/get-shit-done/templates/state.md +205 -0
  88. package/get-shit-done/templates/summary.md +246 -0
  89. package/get-shit-done/templates/ticket-map.md +28 -0
  90. package/get-shit-done/templates/user-setup.md +311 -0
  91. package/get-shit-done/templates/verification-report.md +322 -0
  92. package/get-shit-done/workflows/complete-milestone.md +903 -0
  93. package/get-shit-done/workflows/diagnose-issues.md +231 -0
  94. package/get-shit-done/workflows/discovery-phase.md +289 -0
  95. package/get-shit-done/workflows/discuss-phase.md +433 -0
  96. package/get-shit-done/workflows/execute-phase.md +671 -0
  97. package/get-shit-done/workflows/execute-plan.md +1844 -0
  98. package/get-shit-done/workflows/list-phase-assumptions.md +178 -0
  99. package/get-shit-done/workflows/map-codebase.md +322 -0
  100. package/get-shit-done/workflows/pm-check.md +210 -0
  101. package/get-shit-done/workflows/pm-dispatch.md +104 -0
  102. package/get-shit-done/workflows/pm-replan.md +203 -0
  103. package/get-shit-done/workflows/pm-sync.md +130 -0
  104. package/get-shit-done/workflows/resume-project.md +307 -0
  105. package/get-shit-done/workflows/transition.md +556 -0
  106. package/get-shit-done/workflows/verify-phase.md +628 -0
  107. package/get-shit-done/workflows/verify-work.md +596 -0
  108. package/hooks/dist/gsd-check-update.js +61 -0
  109. package/hooks/dist/gsd-statusline.js +87 -0
  110. package/package.json +47 -0
  111. package/scripts/build-hooks.js +42 -0
  112. package/scripts/pm-loop.sh +155 -0
@@ -0,0 +1,207 @@
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
+ This command appends sequential phases to the current milestone's phase list, automatically calculating the next phase number based on existing phases.
15
+
16
+ Purpose: Add planned work discovered during execution that belongs at the end of current milestone.
17
+ </objective>
18
+
19
+ <execution_context>
20
+ @.planning/ROADMAP.md
21
+ @.planning/STATE.md
22
+ </execution_context>
23
+
24
+ <process>
25
+
26
+ <step name="parse_arguments">
27
+ Parse the command arguments:
28
+ - All arguments become the phase description
29
+ - Example: `/gsd:add-phase Add authentication` → description = "Add authentication"
30
+ - Example: `/gsd:add-phase Fix critical performance issues` → description = "Fix critical performance issues"
31
+
32
+ If no arguments provided:
33
+
34
+ ```
35
+ ERROR: Phase description required
36
+ Usage: /gsd:add-phase <description>
37
+ Example: /gsd:add-phase Add authentication system
38
+ ```
39
+
40
+ Exit.
41
+ </step>
42
+
43
+ <step name="load_roadmap">
44
+ Load the roadmap file:
45
+
46
+ ```bash
47
+ if [ -f .planning/ROADMAP.md ]; then
48
+ ROADMAP=".planning/ROADMAP.md"
49
+ else
50
+ echo "ERROR: No roadmap found (.planning/ROADMAP.md)"
51
+ exit 1
52
+ fi
53
+ ```
54
+
55
+ Read roadmap content for parsing.
56
+ </step>
57
+
58
+ <step name="find_current_milestone">
59
+ Parse the roadmap to find the current milestone section:
60
+
61
+ 1. Locate the "## Current Milestone:" heading
62
+ 2. Extract milestone name and version
63
+ 3. Identify all phases under this milestone (before next "---" separator or next milestone heading)
64
+ 4. Parse existing phase numbers (including decimals if present)
65
+
66
+ Example structure:
67
+
68
+ ```
69
+ ## Current Milestone: v1.0 Foundation
70
+
71
+ ### Phase 4: Focused Command System
72
+ ### Phase 5: Path Routing & Validation
73
+ ### Phase 6: Documentation & Distribution
74
+ ```
75
+
76
+ </step>
77
+
78
+ <step name="calculate_next_phase">
79
+ Find the highest integer phase number in the current milestone:
80
+
81
+ 1. Extract all phase numbers from phase headings (### Phase N:)
82
+ 2. Filter to integer phases only (ignore decimals like 4.1, 4.2)
83
+ 3. Find the maximum integer value
84
+ 4. Add 1 to get the next phase number
85
+
86
+ Example: If phases are 4, 5, 5.1, 6 → next is 7
87
+
88
+ Format as two-digit: `printf "%02d" $next_phase`
89
+ </step>
90
+
91
+ <step name="generate_slug">
92
+ Convert the phase description to a kebab-case slug:
93
+
94
+ ```bash
95
+ # Example transformation:
96
+ # "Add authentication" → "add-authentication"
97
+ # "Fix critical performance issues" → "fix-critical-performance-issues"
98
+
99
+ slug=$(echo "$description" | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9]/-/g' | sed 's/--*/-/g' | sed 's/^-//;s/-$//')
100
+ ```
101
+
102
+ Phase directory name: `{two-digit-phase}-{slug}`
103
+ Example: `07-add-authentication`
104
+ </step>
105
+
106
+ <step name="create_phase_directory">
107
+ Create the phase directory structure:
108
+
109
+ ```bash
110
+ phase_dir=".planning/phases/${phase_num}-${slug}"
111
+ mkdir -p "$phase_dir"
112
+ ```
113
+
114
+ Confirm: "Created directory: $phase_dir"
115
+ </step>
116
+
117
+ <step name="update_roadmap">
118
+ Add the new phase entry to the roadmap:
119
+
120
+ 1. Find the insertion point (after last phase in current milestone, before "---" separator)
121
+ 2. Insert new phase heading:
122
+
123
+ ```
124
+ ### Phase {N}: {Description}
125
+
126
+ **Goal:** [To be planned]
127
+ **Depends on:** Phase {N-1}
128
+ **Plans:** 0 plans
129
+
130
+ Plans:
131
+ - [ ] TBD (run /gsd:plan-phase {N} to break down)
132
+
133
+ **Details:**
134
+ [To be added during planning]
135
+ ```
136
+
137
+ 3. Write updated roadmap back to file
138
+
139
+ Preserve all other content exactly (formatting, spacing, other phases).
140
+ </step>
141
+
142
+ <step name="update_project_state">
143
+ Update STATE.md to reflect the new phase:
144
+
145
+ 1. Read `.planning/STATE.md`
146
+ 2. Under "## Current Position" → "**Next Phase:**" add reference to new phase
147
+ 3. Under "## Accumulated Context" → "### Roadmap Evolution" add entry:
148
+ ```
149
+ - Phase {N} added: {description}
150
+ ```
151
+
152
+ If "Roadmap Evolution" section doesn't exist, create it.
153
+ </step>
154
+
155
+ <step name="completion">
156
+ Present completion summary:
157
+
158
+ ```
159
+ Phase {N} added to current milestone:
160
+ - Description: {description}
161
+ - Directory: .planning/phases/{phase-num}-{slug}/
162
+ - Status: Not planned yet
163
+
164
+ Roadmap updated: {roadmap-path}
165
+ Project state updated: .planning/STATE.md
166
+
167
+ ---
168
+
169
+ ## ▶ Next Up
170
+
171
+ **Phase {N}: {description}**
172
+
173
+ `/gsd:plan-phase {N}`
174
+
175
+ <sub>`/clear` first → fresh context window</sub>
176
+
177
+ ---
178
+
179
+ **Also available:**
180
+ - `/gsd:add-phase <description>` — add another phase
181
+ - Review roadmap
182
+
183
+ ---
184
+ ```
185
+ </step>
186
+
187
+ </process>
188
+
189
+ <anti_patterns>
190
+
191
+ - Don't modify phases outside current milestone
192
+ - Don't renumber existing phases
193
+ - Don't use decimal numbering (that's /gsd:insert-phase)
194
+ - Don't create plans yet (that's /gsd:plan-phase)
195
+ - Don't commit changes (user decides when to commit)
196
+ </anti_patterns>
197
+
198
+ <success_criteria>
199
+ Phase addition is complete when:
200
+
201
+ - [ ] Phase directory created: `.planning/phases/{NN}-{slug}/`
202
+ - [ ] Roadmap updated with new phase entry
203
+ - [ ] STATE.md updated with roadmap evolution note
204
+ - [ ] New phase appears at end of current milestone
205
+ - [ ] Next phase number calculated correctly (ignoring decimals)
206
+ - [ ] User informed of next steps
207
+ </success_criteria>
@@ -0,0 +1,193 @@
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
+ - Glob
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
+ Enables "thought → capture → continue" flow without losing context or derailing current work.
16
+ </objective>
17
+
18
+ <context>
19
+ @.planning/STATE.md
20
+ </context>
21
+
22
+ <process>
23
+
24
+ <step name="ensure_directory">
25
+ ```bash
26
+ mkdir -p .planning/todos/pending .planning/todos/done
27
+ ```
28
+ </step>
29
+
30
+ <step name="check_existing_areas">
31
+ ```bash
32
+ ls .planning/todos/pending/*.md 2>/dev/null | xargs -I {} grep "^area:" {} 2>/dev/null | cut -d' ' -f2 | sort -u
33
+ ```
34
+
35
+ Note existing areas for consistency in infer_area step.
36
+ </step>
37
+
38
+ <step name="extract_content">
39
+ **With arguments:** Use as the title/focus.
40
+ - `/gsd:add-todo Add auth token refresh` → title = "Add auth token refresh"
41
+
42
+ **Without arguments:** Analyze recent conversation to extract:
43
+ - The specific problem, idea, or task discussed
44
+ - Relevant file paths mentioned
45
+ - Technical details (error messages, line numbers, constraints)
46
+
47
+ Formulate:
48
+ - `title`: 3-10 word descriptive title (action verb preferred)
49
+ - `problem`: What's wrong or why this is needed
50
+ - `solution`: Approach hints or "TBD" if just an idea
51
+ - `files`: Relevant paths with line numbers from conversation
52
+ </step>
53
+
54
+ <step name="infer_area">
55
+ Infer area from file paths:
56
+
57
+ | Path pattern | Area |
58
+ |--------------|------|
59
+ | `src/api/*`, `api/*` | `api` |
60
+ | `src/components/*`, `src/ui/*` | `ui` |
61
+ | `src/auth/*`, `auth/*` | `auth` |
62
+ | `src/db/*`, `database/*` | `database` |
63
+ | `tests/*`, `__tests__/*` | `testing` |
64
+ | `docs/*` | `docs` |
65
+ | `.planning/*` | `planning` |
66
+ | `scripts/*`, `bin/*` | `tooling` |
67
+ | No files or unclear | `general` |
68
+
69
+ Use existing area from step 2 if similar match exists.
70
+ </step>
71
+
72
+ <step name="check_duplicates">
73
+ ```bash
74
+ grep -l -i "[key words from title]" .planning/todos/pending/*.md 2>/dev/null
75
+ ```
76
+
77
+ If potential duplicate found:
78
+ 1. Read the existing todo
79
+ 2. Compare scope
80
+
81
+ If overlapping, use AskUserQuestion:
82
+ - header: "Duplicate?"
83
+ - question: "Similar todo exists: [title]. What would you like to do?"
84
+ - options:
85
+ - "Skip" — keep existing todo
86
+ - "Replace" — update existing with new context
87
+ - "Add anyway" — create as separate todo
88
+ </step>
89
+
90
+ <step name="create_file">
91
+ ```bash
92
+ timestamp=$(date "+%Y-%m-%dT%H:%M")
93
+ date_prefix=$(date "+%Y-%m-%d")
94
+ ```
95
+
96
+ Generate slug from title (lowercase, hyphens, no special chars).
97
+
98
+ Write to `.planning/todos/pending/${date_prefix}-${slug}.md`:
99
+
100
+ ```markdown
101
+ ---
102
+ created: [timestamp]
103
+ title: [title]
104
+ area: [area]
105
+ files:
106
+ - [file:lines]
107
+ ---
108
+
109
+ ## Problem
110
+
111
+ [problem description - enough context for future Claude to understand weeks later]
112
+
113
+ ## Solution
114
+
115
+ [approach hints or "TBD"]
116
+ ```
117
+ </step>
118
+
119
+ <step name="update_state">
120
+ If `.planning/STATE.md` exists:
121
+
122
+ 1. Count todos: `ls .planning/todos/pending/*.md 2>/dev/null | wc -l`
123
+ 2. Update "### Pending Todos" under "## Accumulated Context"
124
+ </step>
125
+
126
+ <step name="git_commit">
127
+ Commit the todo and any updated state:
128
+
129
+ **Check planning config:**
130
+
131
+ ```bash
132
+ COMMIT_PLANNING_DOCS=$(cat .planning/config.json 2>/dev/null | grep -o '"commit_docs"[[:space:]]*:[[:space:]]*[^,}]*' | grep -o 'true\|false' || echo "true")
133
+ git check-ignore -q .planning 2>/dev/null && COMMIT_PLANNING_DOCS=false
134
+ ```
135
+
136
+ **If `COMMIT_PLANNING_DOCS=false`:** Skip git operations, log "Todo saved (not committed - commit_docs: false)"
137
+
138
+ **If `COMMIT_PLANNING_DOCS=true` (default):**
139
+
140
+ ```bash
141
+ git add .planning/todos/pending/[filename]
142
+ [ -f .planning/STATE.md ] && git add .planning/STATE.md
143
+ git commit -m "$(cat <<'EOF'
144
+ docs: capture todo - [title]
145
+
146
+ Area: [area]
147
+ EOF
148
+ )"
149
+ ```
150
+
151
+ Confirm: "Committed: docs: capture todo - [title]"
152
+ </step>
153
+
154
+ <step name="confirm">
155
+ ```
156
+ Todo saved: .planning/todos/pending/[filename]
157
+
158
+ [title]
159
+ Area: [area]
160
+ Files: [count] referenced
161
+
162
+ ---
163
+
164
+ Would you like to:
165
+
166
+ 1. Continue with current work
167
+ 2. Add another todo
168
+ 3. View all todos (/gsd:check-todos)
169
+ ```
170
+ </step>
171
+
172
+ </process>
173
+
174
+ <output>
175
+ - `.planning/todos/pending/[date]-[slug].md`
176
+ - Updated `.planning/STATE.md` (if exists)
177
+ </output>
178
+
179
+ <anti_patterns>
180
+ - Don't create todos for work in current plan (that's deviation rule territory)
181
+ - Don't create elaborate solution sections — captures ideas, not plans
182
+ - Don't block on missing information — "TBD" is fine
183
+ </anti_patterns>
184
+
185
+ <success_criteria>
186
+ - [ ] Directory structure exists
187
+ - [ ] Todo file created with valid frontmatter
188
+ - [ ] Problem section has enough context for future Claude
189
+ - [ ] No duplicates (checked and resolved)
190
+ - [ ] Area consistent with existing todos
191
+ - [ ] STATE.md updated if exists
192
+ - [ ] Todo and state committed to git
193
+ </success_criteria>
@@ -0,0 +1,277 @@
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
+
14
+ <objective>
15
+ Verify milestone achieved its definition of done. Check requirements coverage, cross-phase integration, and end-to-end flows.
16
+
17
+ **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.
18
+ </objective>
19
+
20
+ <execution_context>
21
+ <!-- Spawns gsd-integration-checker agent which has all audit expertise baked in -->
22
+ </execution_context>
23
+
24
+ <context>
25
+ Version: $ARGUMENTS (optional — defaults to current milestone)
26
+
27
+ **Original Intent:**
28
+ @.planning/PROJECT.md
29
+ @.planning/REQUIREMENTS.md
30
+
31
+ **Planned Work:**
32
+ @.planning/ROADMAP.md
33
+ @.planning/config.json (if exists)
34
+
35
+ **Completed Work:**
36
+ Glob: .planning/phases/*/*-SUMMARY.md
37
+ Glob: .planning/phases/*/*-VERIFICATION.md
38
+ </context>
39
+
40
+ <process>
41
+
42
+ ## 0. Resolve Model Profile
43
+
44
+ Read model profile for agent spawning:
45
+
46
+ ```bash
47
+ MODEL_PROFILE=$(cat .planning/config.json 2>/dev/null | grep -o '"model_profile"[[:space:]]*:[[:space:]]*"[^"]*"' | grep -o '"[^"]*"$' | tr -d '"' || echo "balanced")
48
+ ```
49
+
50
+ Default to "balanced" if not set.
51
+
52
+ **Model lookup table:**
53
+
54
+ | Agent | quality | balanced | budget |
55
+ |-------|---------|----------|--------|
56
+ | gsd-integration-checker | sonnet | sonnet | haiku |
57
+
58
+ Store resolved model for use in Task call below.
59
+
60
+ ## 1. Determine Milestone Scope
61
+
62
+ ```bash
63
+ # Get phases in milestone
64
+ ls -d .planning/phases/*/ | sort -V
65
+ ```
66
+
67
+ - Parse version from arguments or detect current from ROADMAP.md
68
+ - Identify all phase directories in scope
69
+ - Extract milestone definition of done from ROADMAP.md
70
+ - Extract requirements mapped to this milestone from REQUIREMENTS.md
71
+
72
+ ## 2. Read All Phase Verifications
73
+
74
+ For each phase directory, read the VERIFICATION.md:
75
+
76
+ ```bash
77
+ cat .planning/phases/01-*/*-VERIFICATION.md
78
+ cat .planning/phases/02-*/*-VERIFICATION.md
79
+ # etc.
80
+ ```
81
+
82
+ From each VERIFICATION.md, extract:
83
+ - **Status:** passed | gaps_found
84
+ - **Critical gaps:** (if any — these are blockers)
85
+ - **Non-critical gaps:** tech debt, deferred items, warnings
86
+ - **Anti-patterns found:** TODOs, stubs, placeholders
87
+ - **Requirements coverage:** which requirements satisfied/blocked
88
+
89
+ If a phase is missing VERIFICATION.md, flag it as "unverified phase" — this is a blocker.
90
+
91
+ ## 3. Spawn Integration Checker
92
+
93
+ With phase context collected:
94
+
95
+ ```
96
+ Task(
97
+ prompt="Check cross-phase integration and E2E flows.
98
+
99
+ Phases: {phase_dirs}
100
+ Phase exports: {from SUMMARYs}
101
+ API routes: {routes created}
102
+
103
+ Verify cross-phase wiring and E2E user flows.",
104
+ subagent_type="gsd-integration-checker",
105
+ model="{integration_checker_model}"
106
+ )
107
+ ```
108
+
109
+ ## 4. Collect Results
110
+
111
+ Combine:
112
+ - Phase-level gaps and tech debt (from step 2)
113
+ - Integration checker's report (wiring gaps, broken flows)
114
+
115
+ ## 5. Check Requirements Coverage
116
+
117
+ For each requirement in REQUIREMENTS.md mapped to this milestone:
118
+ - Find owning phase
119
+ - Check phase verification status
120
+ - Determine: satisfied | partial | unsatisfied
121
+
122
+ ## 6. Aggregate into v{version}-MILESTONE-AUDIT.md
123
+
124
+ Create `.planning/v{version}-v{version}-MILESTONE-AUDIT.md` with:
125
+
126
+ ```yaml
127
+ ---
128
+ milestone: {version}
129
+ audited: {timestamp}
130
+ status: passed | gaps_found | tech_debt
131
+ scores:
132
+ requirements: N/M
133
+ phases: N/M
134
+ integration: N/M
135
+ flows: N/M
136
+ gaps: # Critical blockers
137
+ requirements: [...]
138
+ integration: [...]
139
+ flows: [...]
140
+ tech_debt: # Non-critical, deferred
141
+ - phase: 01-auth
142
+ items:
143
+ - "TODO: add rate limiting"
144
+ - "Warning: no password strength validation"
145
+ - phase: 03-dashboard
146
+ items:
147
+ - "Deferred: mobile responsive layout"
148
+ ---
149
+ ```
150
+
151
+ Plus full markdown report with tables for requirements, phases, integration, tech debt.
152
+
153
+ **Status values:**
154
+ - `passed` — all requirements met, no critical gaps, minimal tech debt
155
+ - `gaps_found` — critical blockers exist
156
+ - `tech_debt` — no blockers but accumulated deferred items need review
157
+
158
+ ## 7. Present Results
159
+
160
+ Route by status (see `<offer_next>`).
161
+
162
+ </process>
163
+
164
+ <offer_next>
165
+ Output this markdown directly (not as a code block). Route based on status:
166
+
167
+ ---
168
+
169
+ **If passed:**
170
+
171
+ ## ✓ Milestone {version} — Audit Passed
172
+
173
+ **Score:** {N}/{M} requirements satisfied
174
+ **Report:** .planning/v{version}-MILESTONE-AUDIT.md
175
+
176
+ All requirements covered. Cross-phase integration verified. E2E flows complete.
177
+
178
+ ───────────────────────────────────────────────────────────────
179
+
180
+ ## ▶ Next Up
181
+
182
+ **Complete milestone** — archive and tag
183
+
184
+ /gsd:complete-milestone {version}
185
+
186
+ <sub>/clear first → fresh context window</sub>
187
+
188
+ ───────────────────────────────────────────────────────────────
189
+
190
+ ---
191
+
192
+ **If gaps_found:**
193
+
194
+ ## ⚠ Milestone {version} — Gaps Found
195
+
196
+ **Score:** {N}/{M} requirements satisfied
197
+ **Report:** .planning/v{version}-MILESTONE-AUDIT.md
198
+
199
+ ### Unsatisfied Requirements
200
+
201
+ {For each unsatisfied requirement:}
202
+ - **{REQ-ID}: {description}** (Phase {X})
203
+ - {reason}
204
+
205
+ ### Cross-Phase Issues
206
+
207
+ {For each integration gap:}
208
+ - **{from} → {to}:** {issue}
209
+
210
+ ### Broken Flows
211
+
212
+ {For each flow gap:}
213
+ - **{flow name}:** breaks at {step}
214
+
215
+ ───────────────────────────────────────────────────────────────
216
+
217
+ ## ▶ Next Up
218
+
219
+ **Plan gap closure** — create phases to complete milestone
220
+
221
+ /gsd:plan-milestone-gaps
222
+
223
+ <sub>/clear first → fresh context window</sub>
224
+
225
+ ───────────────────────────────────────────────────────────────
226
+
227
+ **Also available:**
228
+ - cat .planning/v{version}-MILESTONE-AUDIT.md — see full report
229
+ - /gsd:complete-milestone {version} — proceed anyway (accept tech debt)
230
+
231
+ ───────────────────────────────────────────────────────────────
232
+
233
+ ---
234
+
235
+ **If tech_debt (no blockers but accumulated debt):**
236
+
237
+ ## ⚡ Milestone {version} — Tech Debt Review
238
+
239
+ **Score:** {N}/{M} requirements satisfied
240
+ **Report:** .planning/v{version}-MILESTONE-AUDIT.md
241
+
242
+ All requirements met. No critical blockers. Accumulated tech debt needs review.
243
+
244
+ ### Tech Debt by Phase
245
+
246
+ {For each phase with debt:}
247
+ **Phase {X}: {name}**
248
+ - {item 1}
249
+ - {item 2}
250
+
251
+ ### Total: {N} items across {M} phases
252
+
253
+ ───────────────────────────────────────────────────────────────
254
+
255
+ ## ▶ Options
256
+
257
+ **A. Complete milestone** — accept debt, track in backlog
258
+
259
+ /gsd:complete-milestone {version}
260
+
261
+ **B. Plan cleanup phase** — address debt before completing
262
+
263
+ /gsd:plan-milestone-gaps
264
+
265
+ <sub>/clear first → fresh context window</sub>
266
+
267
+ ───────────────────────────────────────────────────────────────
268
+ </offer_next>
269
+
270
+ <success_criteria>
271
+ - [ ] Milestone scope identified
272
+ - [ ] All phase VERIFICATION.md files read
273
+ - [ ] Tech debt and deferred gaps aggregated
274
+ - [ ] Integration checker spawned for cross-phase wiring
275
+ - [ ] v{version}-MILESTONE-AUDIT.md created
276
+ - [ ] Results presented with actionable next steps
277
+ </success_criteria>