@tekyzinc/gsd-t 2.50.12 → 2.53.10

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 (99) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +379 -372
  3. package/bin/component-registry.js +250 -0
  4. package/bin/graph-cgc.js +510 -510
  5. package/bin/graph-indexer.js +147 -147
  6. package/bin/graph-overlay.js +195 -195
  7. package/bin/graph-parsers.js +327 -327
  8. package/bin/graph-query.js +453 -452
  9. package/bin/graph-store.js +154 -154
  10. package/bin/qa-calibrator.js +194 -0
  11. package/bin/scan-data-collector.js +153 -153
  12. package/bin/scan-diagrams-generators.js +187 -187
  13. package/bin/scan-diagrams.js +79 -79
  14. package/bin/scan-renderer.js +92 -92
  15. package/bin/scan-report-sections.js +121 -121
  16. package/bin/scan-report.js +184 -184
  17. package/bin/scan-schema-parsers.js +199 -199
  18. package/bin/scan-schema.js +103 -103
  19. package/bin/token-budget.js +246 -0
  20. package/commands/Claude-md.md +10 -10
  21. package/commands/branch.md +15 -15
  22. package/commands/checkin.md +45 -45
  23. package/commands/global-change.md +209 -209
  24. package/commands/gsd-t-audit.md +199 -0
  25. package/commands/gsd-t-backlog-add.md +94 -94
  26. package/commands/gsd-t-backlog-edit.md +111 -111
  27. package/commands/gsd-t-backlog-list.md +63 -63
  28. package/commands/gsd-t-backlog-move.md +94 -94
  29. package/commands/gsd-t-backlog-promote.md +123 -123
  30. package/commands/gsd-t-backlog-remove.md +86 -86
  31. package/commands/gsd-t-backlog-settings.md +158 -158
  32. package/commands/gsd-t-complete-milestone.md +528 -515
  33. package/commands/gsd-t-debug.md +506 -399
  34. package/commands/gsd-t-discuss.md +174 -174
  35. package/commands/gsd-t-execute.md +758 -634
  36. package/commands/gsd-t-feature.md +276 -276
  37. package/commands/gsd-t-health.md +142 -142
  38. package/commands/gsd-t-help.md +465 -457
  39. package/commands/gsd-t-impact.md +302 -302
  40. package/commands/gsd-t-init.md +320 -280
  41. package/commands/gsd-t-integrate.md +365 -249
  42. package/commands/gsd-t-milestone.md +87 -87
  43. package/commands/gsd-t-partition.md +442 -361
  44. package/commands/gsd-t-pause.md +82 -82
  45. package/commands/gsd-t-plan.md +345 -344
  46. package/commands/gsd-t-populate.md +111 -111
  47. package/commands/gsd-t-prd.md +326 -326
  48. package/commands/gsd-t-project.md +211 -211
  49. package/commands/gsd-t-promote-debt.md +123 -123
  50. package/commands/gsd-t-prompt.md +137 -137
  51. package/commands/gsd-t-qa.md +266 -266
  52. package/commands/gsd-t-quick.md +357 -234
  53. package/commands/gsd-t-reflect.md +134 -134
  54. package/commands/gsd-t-resume.md +72 -72
  55. package/commands/gsd-t-scan.md +615 -615
  56. package/commands/gsd-t-setup.md +76 -0
  57. package/commands/gsd-t-status.md +192 -166
  58. package/commands/gsd-t-test-sync.md +381 -381
  59. package/commands/gsd-t-triage-and-merge.md +171 -171
  60. package/commands/gsd-t-verify.md +382 -382
  61. package/commands/gsd-t-visualize.md +118 -118
  62. package/commands/gsd-t-wave.md +401 -378
  63. package/docs/GSD-T-README.md +425 -422
  64. package/docs/architecture.md +385 -369
  65. package/docs/harness-design-analysis.md +371 -0
  66. package/docs/infrastructure.md +205 -205
  67. package/docs/prd-graph-engine.md +398 -398
  68. package/docs/prd-gsd2-hybrid.md +559 -559
  69. package/docs/prd-harness-evolution.md +583 -0
  70. package/docs/requirements.md +14 -0
  71. package/docs/workflows.md +226 -226
  72. package/examples/.gsd-t/domains/example-domain/scope.md +13 -13
  73. package/package.json +40 -40
  74. package/scripts/gsd-t-auto-route.js +39 -39
  75. package/scripts/gsd-t-dashboard-mockup.html +1143 -1143
  76. package/scripts/gsd-t-dashboard-server.js +171 -171
  77. package/scripts/gsd-t-dashboard.html +262 -262
  78. package/scripts/gsd-t-event-writer.js +128 -128
  79. package/scripts/gsd-t-statusline.js +94 -94
  80. package/scripts/gsd-t-tools.js +175 -175
  81. package/templates/CLAUDE-global.md +639 -614
  82. package/templates/CLAUDE-project.md +24 -0
  83. package/templates/backlog-settings.md +18 -18
  84. package/templates/backlog.md +1 -1
  85. package/templates/progress.md +40 -40
  86. package/templates/shared-services-contract.md +60 -60
  87. package/templates/stacks/desktop.ini +2 -2
  88. package/bin/desktop.ini +0 -2
  89. package/commands/desktop.ini +0 -2
  90. package/docs/ci-examples/desktop.ini +0 -2
  91. package/docs/desktop.ini +0 -2
  92. package/examples/.gsd-t/contracts/desktop.ini +0 -2
  93. package/examples/.gsd-t/desktop.ini +0 -2
  94. package/examples/.gsd-t/domains/desktop.ini +0 -2
  95. package/examples/.gsd-t/domains/example-domain/desktop.ini +0 -2
  96. package/examples/desktop.ini +0 -2
  97. package/examples/rules/desktop.ini +0 -2
  98. package/scripts/desktop.ini +0 -2
  99. package/templates/desktop.ini +0 -2
@@ -1,457 +1,465 @@
1
- # GSD-T: Help — Command Reference
2
-
3
- You are the GSD-T help system. List all commands with descriptions, and provide detailed help for any selected command.
4
-
5
- ## Default Behavior (no arguments)
6
-
7
- Display the full command reference:
8
-
9
- ```
10
- ╔══════════════════════════════════════════════════════════════════════════════╗
11
- ║ GSD-T Command Reference ║
12
- ╚══════════════════════════════════════════════════════════════════════════════╝
13
-
14
- SMART ROUTER Manual
15
- ───────────────────────────────────────────────────────────────────────────────
16
- gsd Describe what you need → auto-routes to the right command
17
-
18
- GETTING STARTED Manual
19
- ───────────────────────────────────────────────────────────────────────────────
20
- prompt Help formulate your idea before committing to a command
21
- brainstorm Creative exploration, rethinking, and idea generation
22
- prd Generate a GSD-T-optimized Product Requirements Document
23
- setup Generate or restructure project CLAUDE.md
24
- init Initialize GSD-T structure in current project
25
- init-scan-setup Full onboarding: git + init + scan + setup in one
26
- project New project → requirements → milestone roadmap
27
- feature Major feature → impact analysis → milestones
28
- scan Deep codebase analysis → techdebt.md
29
- gap-analysis Requirements gap analysis — spec vs. existing code
30
-
31
- MILESTONE WORKFLOW [auto] = in wave
32
- ───────────────────────────────────────────────────────────────────────────────
33
- milestone Define a new milestone
34
- partition [auto] Decompose milestone into domains + contracts
35
- discuss [auto] Multi-perspective design exploration (always pauses)
36
- plan [auto] Create atomic task lists per domain
37
- impact [auto] Analyze downstream effects before execution
38
- execute [auto] Run tasks (solo or team mode)
39
- test-sync [auto] Sync tests with code changes
40
- qa [auto] QA agent — test generation, execution, gap reporting
41
- doc-ripple [auto] Automated document ripple — update docs after code changes
42
- integrate [auto] Wire domains together at boundaries
43
- verify [auto] Run quality gates → auto-invokes complete-milestone
44
- complete-milestone [auto] Archive milestone + git tag (auto-invoked by verify)
45
-
46
- AUTOMATION Auto
47
- ───────────────────────────────────────────────────────────────────────────────
48
- wave Full cycle: partition → ... → complete (auto-advances)
49
-
50
- UTILITIES Manual
51
- ───────────────────────────────────────────────────────────────────────────────
52
- status Cross-domain progress view
53
- resume Restore context after break
54
- quick Fast task with GSD-T guarantees
55
- reflect Generate retrospective from event stream, propose memory updates
56
- visualize Launch browser dashboard (SSE server + React Flow)
57
- debug Systematic debugging with state
58
- health Validate .gsd-t/ structure, optionally repair missing files
59
- pause Save exact position for reliable resume later
60
- promote-debt Convert techdebt items to milestones
61
- populate Auto-populate docs from existing codebase
62
- log Sync progress Decision Log with recent git activity
63
- version-update Update GSD-T package to latest version
64
- version-update-all Update GSD-T package + all registered projects
65
- triage-and-merge Auto-review, merge, and publish GitHub branches
66
- global-change Apply file changes across all registered GSD-T projects
67
-
68
- HEADLESS (CI/CD) CLI
69
- ───────────────────────────────────────────────────────────────────────────────
70
- headless exec Run any GSD-T command non-interactively via claude -p
71
- headless query Read project state without LLM (<100ms)
72
- headless --debug-loop Compaction-proof test-fix-retest loop (fresh sessions)
73
-
74
- BACKLOG Manual
75
- ───────────────────────────────────────────────────────────────────────────────
76
- backlog-add Capture item, auto-categorize, append to backlog
77
- backlog-list Filtered, ordered view of backlog items
78
- backlog-move Reorder items by position (priority)
79
- backlog-edit Modify entry fields (title, type, app, category)
80
- backlog-remove Drop item with optional reason
81
- backlog-promote Refine, classify, and launch GSD-T workflow
82
- backlog-settings Manage types, apps, categories, and defaults
83
-
84
- ───────────────────────────────────────────────────────────────────────────────
85
- Type /user:gsd-t-help {command} for detailed help on any command.
86
- Example: /user:gsd-t-help impact
87
- ╚══════════════════════════════════════════════════════════════════════════════╝
88
- ```
89
-
90
- ## With Argument (specific command)
91
-
92
- When user provides a command name, show detailed help:
93
-
94
- ```
95
- /user:gsd-t-help {command}
96
- ```
97
-
98
- ### Command Details Format:
99
-
100
- ```
101
- ╔══════════════════════════════════════════════════════════════════════════════╗
102
- ║ gsd-t-{command} ║
103
- ╚══════════════════════════════════════════════════════════════════════════════╝
104
-
105
- SUMMARY
106
- {One-line description}
107
-
108
- USAGE
109
- /user:gsd-t-{command} [arguments]
110
-
111
- WHEN TO USE
112
- {Use case 1}
113
- • {Use case 2}
114
-
115
- WHAT IT DOES
116
- 1. {Step 1}
117
- 2. {Step 2}
118
- 3. {Step 3}
119
-
120
- AUTO-INVOKED
121
- {Yes — during {phase} | No — manual only}
122
-
123
- FILES READ
124
- {file 1}
125
- • {file 2}
126
-
127
- FILES CREATED/UPDATED
128
- {file 1}
129
- • {file 2}
130
-
131
- EXAMPLES
132
- /user:gsd-t-{command}
133
- /user:gsd-t-{command} "with argument"
134
-
135
- RELATED COMMANDS
136
- {related 1} — {why related}
137
- • {related 2} — {why related}
138
-
139
- ───────────────────────────────────────────────────────────────────────────────
140
- ```
141
-
142
- ## Command Summaries
143
-
144
- Use these when user asks for help on a specific command:
145
-
146
- ### gsd (smart router)
147
- - **Summary**: Describe what you need in plain language — auto-routes to the right GSD-T command using semantic evaluation
148
- - **Auto-invoked**: Yesvia UserPromptSubmit hook when prompt does not start with `/`
149
- - **Files**: Reads `CLAUDE.md`, `.gsd-t/progress.md`, command summaries from `gsd-t-help`
150
- - **How it works**: First checks if this is a continuation of an ongoing command (mid-task follow-up, status report, or acknowledgment) — if so, outputs `→ /gsd ──▶ continue /user:gsd-t-{last-command}` and resumes. For new requests, evaluates against every command's purpose and "Use when" criteria. Commands that match get shortlisted, best fit is selected. Shows runner-up when close.
151
- - **Auto-route**: After `gsd-t install`, any plain text message (no leading `/`) is automatically routed through `/gsd`. Slash commands pass through unchanged. Binary detection no heuristics.
152
- - **Use when**: You don't want to remember which command to use just describe what you want
153
- - **Examples**: `/user:gsd Fix the login bug`, `/user:gsd Add dark mode`, `/user:gsd Scan for tech debt`
154
- - **Auto-route examples**: `Fix the login bug` (no slash needed), `Add dark mode`, `Scan for tech debt`
155
-
156
- ### prompt
157
- - **Summary**: Help formulate project/feature/milestone prompts through guided questions
158
- - **Auto-invoked**: No
159
- - **Files**: None (conversational only)
160
- - **Use when**: You have a vague idea and need help articulating it
161
-
162
- ### brainstorm
163
- - **Summary**: Creative exploration, rethinking, and idea generation
164
- - **Auto-invoked**: No
165
- - **Files**: Optional save to `.gsd-t/brainstorm-{date}.md`
166
- - **Use when**: You want to explore ideas, challenge assumptions, or break out of tunnel vision
167
- - **Modes**: Ideation, Enhancement, Rethink, Unstuck, Blue Sky
168
-
169
- ### prd
170
- - **Summary**: Generate a GSD-T-optimized Product Requirements Document
171
- - **Auto-invoked**: No
172
- - **Reads**: `CLAUDE.md`, `.gsd-t/progress.md`, `docs/requirements.md`, `docs/architecture.md`, `.gsd-t/backlog.md`, `.gsd-t/contracts/`
173
- - **Creates/Updates**: `docs/prd.md`, `.gsd-t/progress.md` (Decision Log)
174
- - **Use when**: Starting a new project or feature and you need a structured PRD with REQ-IDs, data model, milestones, and exclusions — all optimized for downstream GSD-T commands
175
- - **Features**: GSD-T context-aware (reads existing docs), adaptive intake (skips questions answered by CLAUDE.md), produces REQ-IDs, field-level data model, file-path-level component list, suggested milestone sequence
176
-
177
- ### setup
178
- - **Summary**: Generate or restructure the project-level CLAUDE.md
179
- - **Auto-invoked**: No
180
- - **Creates/Updates**: `CLAUDE.md`
181
- - **Use when**: Starting a new project, migrating from GSD, or restructuring an existing CLAUDE.md to complement the global one
182
-
183
- ### init
184
- - **Summary**: Initialize GSD-T directory structure in current project
185
- - **Auto-invoked**: No
186
- - **Creates**: `.gsd-t/` directory structure, initial progress.md
187
- - **Use when**: Starting GSD-T in a new or existing project
188
-
189
- ### init-scan-setup
190
- - **Summary**: Full project onboarding — git + init + scan + setup in one command
191
- - **Auto-invoked**: No
192
- - **Creates**: `.gsd-t/` structure, `docs/`, `.gsd-t/scan/`, `.gsd-t/techdebt.md`, optimized `CLAUDE.md`
193
- - **Use when**: Onboarding any project into GSD-T for the first time (new or existing codebase)
194
- - **Combines**: gsd-t-init gsd-t-scan gsd-t-setup, plus git remote setup if needed
195
-
196
- ### project
197
- - **Summary**: Define a complete new project with requirements and milestone roadmap
198
- - **Auto-invoked**: No
199
- - **Creates**: `.gsd-t/roadmap.md`, `.gsd-t/progress.md`, `docs/requirements.md`
200
- - **Use when**: Starting a brand new application from scratch
201
-
202
- ### feature
203
- - **Summary**: Add a major feature to existing codebase with impact analysis
204
- - **Auto-invoked**: No
205
- - **Creates**: Milestones in roadmap, impact analysis
206
- - **Use when**: Adding significant new functionality to existing project
207
-
208
- ### scan
209
- - **Summary**: Deep codebase analysis producing architecture docs and techdebt.md
210
- - **Auto-invoked**: No
211
- - **Creates**: `.gsd-t/scan/`, `.gsd-t/techdebt.md`
212
- - **Use when**: Understanding an existing codebase or auditing technical debt
213
-
214
- ### gap-analysis
215
- - **Summary**: Gap analysis — paste a spec, identify what's done, partial, incorrect, or missing
216
- - **Auto-invoked**: No
217
- - **Creates**: `.gsd-t/gap-analysis.md`
218
- - **Reads**: Codebase, `docs/requirements.md`, `docs/architecture.md`, `.gsd-t/contracts/`
219
- - **Use when**: You have a spec or requirements doc and need to know what's already built vs. what's missing
220
- - **Features**: Re-run diffing, severity classification, evidence-backed classifications, optional requirements merge, promotable gap groupings
221
-
222
- ### milestone
223
- - **Summary**: Define a specific deliverable milestone within a project
224
- - **Auto-invoked**: No
225
- - **Updates**: `.gsd-t/progress.md`, `.gsd-t/roadmap.md`
226
- - **Use when**: Starting work on a defined chunk of functionality
227
-
228
- ### partition
229
- - **Summary**: Decompose milestone into domains with explicit contracts
230
- - **Auto-invoked**: Yes (in wave, after milestone)
231
- - **Creates**: `.gsd-t/domains/*/`, `.gsd-t/contracts/`
232
- - **Use when**: Breaking down a milestone for parallel work
233
-
234
- ### discuss
235
- - **Summary**: Explore design decisions from multiple perspectives
236
- - **Auto-invoked**: Yes (in wave, after partition)
237
- - **Updates**: `.gsd-t/contracts/`, decision log
238
- - **Use when**: Architectural decisions need exploration
239
-
240
- ### plan
241
- - **Summary**: Create atomic task lists for each domain (each task must fit in one context window)
242
- - **Auto-invoked**: Yes (in wave, after discuss)
243
- - **Creates**: `.gsd-t/domains/*/tasks.md`
244
- - **Use when**: Ready to define specific implementation tasks
245
- - **Note (M22)**: Tasks auto-split if estimated scope exceeds 70% context window — guarantees fresh dispatch works
246
- - **Note (M26)**: Pre-mortem step now also reads rules.jsonl for historical failure patterns via getPreMortemRules
247
-
248
- ### impact
249
- - **Summary**: Analyze downstream effects of planned changes
250
- - **Auto-invoked**: Yes (in wave, between plan and execute)
251
- - **Creates**: `.gsd-t/impact-report.md`
252
- - **Use when**: Before making changes, to understand what might break
253
-
254
- ### execute
255
- - **Summary**: Run tasks from plan, solo or with agent teams
256
- - **Auto-invoked**: Yes (in wave, after impact)
257
- - **Updates**: Domain tasks, progress.md, source code
258
- - **Use when**: Ready to implement
259
- - **Note (M22)**: Task-level fresh dispatch (one subagent per task, ~10-20% context each). Team mode uses worktree isolation (`isolation: "worktree"`) — zero file conflicts. Adaptive replanning between domain completions.
260
- - **Note (M26)**: Active rule injection evaluates declarative rules from rules.jsonl before dispatching each domain's tasks. Fires matching rules as warnings in subagent prompts.
261
- - **Note (M29)**: Stack Rules Engineauto-detects project tech stack from manifest files and injects mandatory best-practice rules into each task subagent prompt. Universal rules (`_security.md`, `_auth.md`) always apply; stack-specific rules layer on top. Violations are task failures (same weight as contract violations).
262
-
263
- ### test-sync
264
- - **Summary**: Keep tests aligned with code changes
265
- - **Auto-invoked**: Yes (during execute and verify)
266
- - **Creates**: `.gsd-t/test-coverage.md`, test tasks
267
- - **Use when**: After code changes, to maintain test health
268
-
269
- ### qa
270
- - **Summary**: QA agent — test generation, execution, and gap reporting
271
- - **Auto-invoked**: Yes (spawned as teammate by partition, plan, execute, verify, quick, debug, integrate, complete-milestone)
272
- - **Creates**: Contract test skeletons, acceptance tests, edge case tests, test audit reports
273
- - **Use when**: Automatically spawned never needs manual invocation. Standalone use for ad-hoc test audits.
274
-
275
- ### doc-ripple
276
- - **Summary**: Automated document ripple — identifies and updates all downstream docs after code changes
277
- - **Auto-invoked**: Yes (after primary work in execute, integrate, quick, debug, wave)
278
- - **Creates**: `.gsd-t/doc-ripple-manifest.md`
279
- - **Use when**: Automatically spawned — never needs manual invocation. Standalone use for ad-hoc doc sync audits.
280
-
281
- ### integrate
282
- - **Summary**: Wire domains together at their boundaries
283
- - **Auto-invoked**: Yes (in wave, after execute)
284
- - **Updates**: Contracts, integration code
285
- - **Use when**: Domains are complete and need to work together
286
-
287
- ### verify
288
- - **Summary**: Run quality gates across all dimensions, including goal-backward behavior verification
289
- - **Auto-invoked**: Yes (in wave, after integrate)
290
- - **Creates**: `.gsd-t/verify-report.md`
291
- - **Use when**: Checking that milestone meets requirements
292
- - **Note (M22)**: Goal-backward verification step added — checks for placeholder implementations (console.log/TODO/hardcoded returns) after structural gates pass
293
-
294
- ### complete-milestone
295
- - **Summary**: Archive milestone documentation and create git tag
296
- - **Auto-invoked**: Yes by verify (Step 8, all autonomy levels) and in wave
297
- - **Creates**: `.gsd-t/milestones/{name}/`, git tag
298
- - **Use when**: Auto-runs after verify passes. Can also be invoked standalone to manually close a milestone.
299
- - **Note (M22)**: Goal-backward gate runs as final check before archiving blocks completion if placeholders remain
300
- - **Note (M26)**: Distillation extended with rule engine evaluation, patch candidate generation, promotion gate checks, graduation, consolidation, and quality budget governance
301
-
302
- ### wave
303
- - **Summary**: Run complete cycle automatically: partition through verify+complete
304
- - **Auto-invoked**: No (user triggers)
305
- - **Runs**: partition discuss → plan → impact → execute → test-sync → integrate → verify+complete
306
- - **Use when**: Ready to execute a full milestone hands-off
307
-
308
- ### status
309
- - **Summary**: Show current progress across all domains, including token breakdown by domain/task/phase, global ELO and cross-project rankings
310
- - **Auto-invoked**: No
311
- - **Note (M22)**: Displays context observability data — token usage by domain, avg tokens/task, peak Ctx% per domain
312
- - **Note (M27)**: Displays global ELO and cross-project rankings when global metrics exist
313
- - **Reads**: All `.gsd-t/` files, `~/.claude/metrics/` (global metrics)
314
- - **Use when**: Need to see where things stand
315
-
316
- ### resume
317
- - **Summary**: Restore context and continue from where you left off
318
- - **Auto-invoked**: No
319
- - **Reads**: `.gsd-t/progress.md`, domain states
320
- - **Use when**: Starting a new session on existing work
321
-
322
- ### quick
323
- - **Summary**: Fast task execution with GSD-T guarantees (contracts, commits)
324
- - **Auto-invoked**: No
325
- - **Creates**: Quick task record
326
- - **Use when**: Small tasks that don't need full planning
327
-
328
- ### reflect
329
- - **Summary**: Generate a structured retrospective from the event stream for the current milestone, then propose CLAUDE.md/constraints.md rule additions based on recurring patterns
330
- - **Auto-invoked**: No
331
- - **Reads**: `.gsd-t/events/*.jsonl`, `.gsd-t/progress.md`, `CLAUDE.md`
332
- - **Creates**: `.gsd-t/retrospectives/YYYY-MM-DD-{milestone}.md`
333
- - **Use when**: After completing a milestone or mid-milestone to surface what's working, what's failing, and what patterns should become permanent rules
334
-
335
- ### visualize
336
- - **Summary**: Launch the real-time agent dashboard — starts the SSE server (if not running) and opens the React Flow visualization in a browser
337
- - **Auto-invoked**: No
338
- - **Reads**: `.gsd-t/dashboard.pid`, `.gsd-t/events/*.jsonl` (via server)
339
- - **Creates**: `.gsd-t/dashboard.pid` (when starting server)
340
- - **Use when**: Monitoring live agent activity during execute/wave phases; run `gsd-t-visualize stop` to stop the server
341
-
342
- ### metrics
343
- - **Summary**: View task telemetry, process ELO, signal distribution, domain health, and cross-project comparison (with `--cross-project` flag)
344
- - **Auto-invoked**: No
345
- - **Reads**: `.gsd-t/metrics/task-metrics.jsonl`, `.gsd-t/metrics/rollup.jsonl`, `~/.claude/metrics/` (when `--cross-project`)
346
- - **Use when**: Reviewing process health, first-pass rates, ELO trends, anomaly flags, or comparing signal distributions across projects
347
-
348
- ### debug
349
- - **Summary**: Systematic debugging with persistent state; delegates to `gsd-t headless --debug-loop` after 2 failed in-context fix attempts
350
- - **Auto-invoked**: No
351
- - **Creates**: Debug session state, `.gsd-t/debug-state.jsonl` (when delegating to headless loop)
352
- - **Use when**: Tracking down a bug methodically
353
-
354
- ### headless --debug-loop
355
- - **Summary**: Compaction-proof automated test-fix-retest loop — each iteration is a fresh `claude -p` session; a cumulative ledger (`.gsd-t/debug-state.jsonl`) preserves all hypothesis/fix/learning history; anti-repetition preamble prevents retrying failed approaches
356
- - **Auto-invoked**: Yesby `execute`, `test-sync`, `verify`, `debug`, and `wave` after 2 failed in-context fix attempts
357
- - **Flags**: `--max-iterations=N` (default 20), `--test-cmd=CMD`, `--fix-scope=PATTERN`, `--json`, `--log`
358
- - **Escalation**: sonnet (iterations 1–5) → opus (6–15) → STOP with diagnostic summary (16–20)
359
- - **Exit codes**: `0` pass · `1` max iterations · `2` compaction error · `3` process error · `4` needs human
360
- - **Creates**: `.gsd-t/debug-state.jsonl`, optional `.gsd-t/headless-{ts}.log`
361
- - **Use when**: Running automated fix loops in CI, or delegated from in-context commands that exhausted fix attempts
362
-
363
- ### promote-debt
364
- - **Summary**: Convert techdebt.md items into milestones
365
- - **Auto-invoked**: No
366
- - **Updates**: `.gsd-t/roadmap.md`, `.gsd-t/techdebt.md`
367
- - **Use when**: Ready to address technical debt items
368
-
369
- ### populate
370
- - **Summary**: Auto-populate all living docs from existing codebase analysis
371
- - **Auto-invoked**: No
372
- - **Updates**: `docs/requirements.md`, `docs/architecture.md`, `docs/workflows.md`, `docs/infrastructure.md`, `.gsd-t/progress.md`
373
- - **Use when**: You have an existing codebase and want to fill docs with real findings instead of placeholders
374
-
375
- ### log
376
- - **Summary**: Sync progress.md Decision Log with recent git activity
377
- - **Auto-invoked**: No
378
- - **Files**: `.gsd-t/progress.md`, git history
379
- - **Use when**: Progress.md Decision Log is behind — catches up by scanning git commits since the last logged entry
380
- - **Features**: Incremental updates, first-time full reconstruction from git history, groups same-day changes
381
-
382
- ### triage-and-merge
383
- - **Summary**: Auto-review unmerged GitHub branches, merge safe ones, and optionally publish
384
- - **Auto-invoked**: No
385
- - **Files**: Reads `CLAUDE.md`, `.gsd-t/progress.md`, `package.json`; updates `package.json`, `.gsd-t/progress.md`, `CHANGELOG.md`
386
- - **Use when**: Collaborators have pushed branches and you want to batch-review, merge, and publish without manual per-branch ceremony
387
- - **Features**: 3-tier impact scoring (auto-merge / review / skip), publish gate (auto in Level 3, prompted otherwise), conflict detection, sensitive file detection
388
-
389
- ### global-change
390
- - **Summary**: Apply file changes (copy/insert/update/delete) across all registered GSD-T projects
391
- - **Auto-invoked**: No
392
- - **Files**: Reads `~/.claude/.gsd-t-projects`; modifies target file in each registered project
393
- - **Use when**: You need to make the same change to CLAUDE.md, contracts, templates, or config across multiple projects at once
394
- - **Operations**: `copy` (file from GSD-T package), `insert` (append content), `update` (find/replace with `%%REPLACE_WITH%%` delimiter), `delete` (remove file)
395
- - **Features**: Dry run preview, per-project match validation, parallel execution, skip-on-no-match safety
396
-
397
- ### backlog-add
398
- - **Summary**: Capture a new backlog item with auto-categorization
399
- - **Auto-invoked**: No
400
- - **Files**: `.gsd-t/backlog.md`, `.gsd-t/backlog-settings.md`
401
- - **Use when**: You have an idea, bug, or improvement to capture for later
402
-
403
- ### backlog-list
404
- - **Summary**: Display backlog with optional filtering by type, app, or category
405
- - **Auto-invoked**: No
406
- - **Files**: `.gsd-t/backlog.md` (read-only)
407
- - **Use when**: Reviewing the backlog to see what's queued up
408
-
409
- ### backlog-move
410
- - **Summary**: Reorder a backlog item to change its priority
411
- - **Auto-invoked**: No
412
- - **Files**: `.gsd-t/backlog.md`
413
- - **Use when**: Reprioritizing items in the backlog
414
-
415
- ### backlog-edit
416
- - **Summary**: Modify fields of an existing backlog entry
417
- - **Auto-invoked**: No
418
- - **Files**: `.gsd-t/backlog.md`, `.gsd-t/backlog-settings.md`
419
- - **Use when**: Updating details of a captured backlog item
420
-
421
- ### backlog-remove
422
- - **Summary**: Remove a backlog item with optional reason
423
- - **Auto-invoked**: No
424
- - **Files**: `.gsd-t/backlog.md`
425
- - **Use when**: Dropping an item that's no longer relevant
426
-
427
- ### backlog-promote
428
- - **Summary**: Refine a backlog item and launch the appropriate GSD-T workflow
429
- - **Auto-invoked**: No
430
- - **Files**: `.gsd-t/backlog.md`, `.gsd-t/progress.md`
431
- - **Use when**: Ready to act on a backlog item — promotes to milestone, quick, debug, or feature
432
-
433
- ### backlog-settings
434
- - **Summary**: Manage allowed types, apps, categories, and default settings
435
- - **Auto-invoked**: No
436
- - **Files**: `.gsd-t/backlog-settings.md`
437
- - **Use when**: Customizing the classification dimensions for your project
438
-
439
- ## Unknown Command
440
-
441
- If user asks for help on unrecognized command:
442
-
443
- ```
444
- Unknown command: {command}
445
-
446
- Did you mean one of these?
447
- {closest match 1}
448
- • {closest match 2}
449
-
450
- Run /user:gsd-t-help for full command list.
451
- ```
452
-
453
- $ARGUMENTS
454
-
455
- ## Auto-Clear
456
-
457
- All work is committed to project files. Execute `/clear` to free the context window for the next command.
1
+ # GSD-T: Help — Command Reference
2
+
3
+ You are the GSD-T help system. List all commands with descriptions, and provide detailed help for any selected command.
4
+
5
+ ## Default Behavior (no arguments)
6
+
7
+ Display the full command reference:
8
+
9
+ ```
10
+ ╔══════════════════════════════════════════════════════════════════════════════╗
11
+ ║ GSD-T Command Reference ║
12
+ ╚══════════════════════════════════════════════════════════════════════════════╝
13
+
14
+ SMART ROUTER Manual
15
+ ───────────────────────────────────────────────────────────────────────────────
16
+ gsd Describe what you need → auto-routes to the right command
17
+
18
+ GETTING STARTED Manual
19
+ ───────────────────────────────────────────────────────────────────────────────
20
+ prompt Help formulate your idea before committing to a command
21
+ brainstorm Creative exploration, rethinking, and idea generation
22
+ prd Generate a GSD-T-optimized Product Requirements Document
23
+ setup Generate or restructure project CLAUDE.md
24
+ init Initialize GSD-T structure in current project
25
+ init-scan-setup Full onboarding: git + init + scan + setup in one
26
+ project New project → requirements → milestone roadmap
27
+ feature Major feature → impact analysis → milestones
28
+ scan Deep codebase analysis → techdebt.md
29
+ gap-analysis Requirements gap analysis — spec vs. existing code
30
+
31
+ MILESTONE WORKFLOW [auto] = in wave
32
+ ───────────────────────────────────────────────────────────────────────────────
33
+ milestone Define a new milestone
34
+ partition [auto] Decompose milestone into domains + contracts
35
+ discuss [auto] Multi-perspective design exploration (always pauses)
36
+ plan [auto] Create atomic task lists per domain
37
+ impact [auto] Analyze downstream effects before execution
38
+ execute [auto] Run tasks (solo or team mode)
39
+ test-sync [auto] Sync tests with code changes
40
+ qa [auto] QA agent — test generation, execution, gap reporting
41
+ doc-ripple [auto] Automated document ripple — update docs after code changes
42
+ integrate [auto] Wire domains together at boundaries
43
+ verify [auto] Run quality gates → auto-invokes complete-milestone
44
+ complete-milestone [auto] Archive milestone + git tag (auto-invoked by verify)
45
+
46
+ AUTOMATION Auto
47
+ ───────────────────────────────────────────────────────────────────────────────
48
+ wave Full cycle: partition → ... → complete (auto-advances)
49
+
50
+ UTILITIES Manual
51
+ ───────────────────────────────────────────────────────────────────────────────
52
+ status Cross-domain progress view
53
+ resume Restore context after break
54
+ quick Fast task with GSD-T guarantees
55
+ reflect Generate retrospective from event stream, propose memory updates
56
+ visualize Launch browser dashboard (SSE server + React Flow)
57
+ debug Systematic debugging with state
58
+ health Validate .gsd-t/ structure, optionally repair missing files
59
+ pause Save exact position for reliable resume later
60
+ audit Harness self-audit analyze cost/benefit of enforcement components
61
+ promote-debt Convert techdebt items to milestones
62
+ populate Auto-populate docs from existing codebase
63
+ log Sync progress Decision Log with recent git activity
64
+ version-update Update GSD-T package to latest version
65
+ version-update-all Update GSD-T package + all registered projects
66
+ triage-and-merge Auto-review, merge, and publish GitHub branches
67
+ global-change Apply file changes across all registered GSD-T projects
68
+
69
+ HEADLESS (CI/CD) CLI
70
+ ───────────────────────────────────────────────────────────────────────────────
71
+ headless exec Run any GSD-T command non-interactively via claude -p
72
+ headless query Read project state without LLM (<100ms)
73
+ headless --debug-loop Compaction-proof test-fix-retest loop (fresh sessions)
74
+
75
+ BACKLOG Manual
76
+ ───────────────────────────────────────────────────────────────────────────────
77
+ backlog-add Capture item, auto-categorize, append to backlog
78
+ backlog-list Filtered, ordered view of backlog items
79
+ backlog-move Reorder items by position (priority)
80
+ backlog-edit Modify entry fields (title, type, app, category)
81
+ backlog-remove Drop item with optional reason
82
+ backlog-promote Refine, classify, and launch GSD-T workflow
83
+ backlog-settings Manage types, apps, categories, and defaults
84
+
85
+ ───────────────────────────────────────────────────────────────────────────────
86
+ Type /user:gsd-t-help {command} for detailed help on any command.
87
+ Example: /user:gsd-t-help impact
88
+ ╚══════════════════════════════════════════════════════════════════════════════╝
89
+ ```
90
+
91
+ ## With Argument (specific command)
92
+
93
+ When user provides a command name, show detailed help:
94
+
95
+ ```
96
+ /user:gsd-t-help {command}
97
+ ```
98
+
99
+ ### Command Details Format:
100
+
101
+ ```
102
+ ╔══════════════════════════════════════════════════════════════════════════════╗
103
+ ║ gsd-t-{command} ║
104
+ ╚══════════════════════════════════════════════════════════════════════════════╝
105
+
106
+ SUMMARY
107
+ {One-line description}
108
+
109
+ USAGE
110
+ /user:gsd-t-{command} [arguments]
111
+
112
+ WHEN TO USE
113
+ • {Use case 1}
114
+ • {Use case 2}
115
+
116
+ WHAT IT DOES
117
+ 1. {Step 1}
118
+ 2. {Step 2}
119
+ 3. {Step 3}
120
+
121
+ AUTO-INVOKED
122
+ {Yes — during {phase} | No — manual only}
123
+
124
+ FILES READ
125
+ • {file 1}
126
+ • {file 2}
127
+
128
+ FILES CREATED/UPDATED
129
+ • {file 1}
130
+ • {file 2}
131
+
132
+ EXAMPLES
133
+ /user:gsd-t-{command}
134
+ /user:gsd-t-{command} "with argument"
135
+
136
+ RELATED COMMANDS
137
+ • {related 1} — {why related}
138
+ • {related 2} — {why related}
139
+
140
+ ───────────────────────────────────────────────────────────────────────────────
141
+ ```
142
+
143
+ ## Command Summaries
144
+
145
+ Use these when user asks for help on a specific command:
146
+
147
+ ### gsd (smart router)
148
+ - **Summary**: Describe what you need in plain language auto-routes to the right GSD-T command using semantic evaluation
149
+ - **Auto-invoked**: Yes via UserPromptSubmit hook when prompt does not start with `/`
150
+ - **Files**: Reads `CLAUDE.md`, `.gsd-t/progress.md`, command summaries from `gsd-t-help`
151
+ - **How it works**: First checks if this is a continuation of an ongoing command (mid-task follow-up, status report, or acknowledgment) if so, outputs `→ /gsd ──▶ continue /user:gsd-t-{last-command}` and resumes. For new requests, evaluates against every command's purpose and "Use when" criteria. Commands that match get shortlisted, best fit is selected. Shows runner-up when close.
152
+ - **Auto-route**: After `gsd-t install`, any plain text message (no leading `/`) is automatically routed through `/gsd`. Slash commands pass through unchanged. Binary detection — no heuristics.
153
+ - **Use when**: You don't want to remember which command to use just describe what you want
154
+ - **Examples**: `/user:gsd Fix the login bug`, `/user:gsd Add dark mode`, `/user:gsd Scan for tech debt`
155
+ - **Auto-route examples**: `Fix the login bug` (no slash needed), `Add dark mode`, `Scan for tech debt`
156
+
157
+ ### prompt
158
+ - **Summary**: Help formulate project/feature/milestone prompts through guided questions
159
+ - **Auto-invoked**: No
160
+ - **Files**: None (conversational only)
161
+ - **Use when**: You have a vague idea and need help articulating it
162
+
163
+ ### brainstorm
164
+ - **Summary**: Creative exploration, rethinking, and idea generation
165
+ - **Auto-invoked**: No
166
+ - **Files**: Optional save to `.gsd-t/brainstorm-{date}.md`
167
+ - **Use when**: You want to explore ideas, challenge assumptions, or break out of tunnel vision
168
+ - **Modes**: Ideation, Enhancement, Rethink, Unstuck, Blue Sky
169
+
170
+ ### prd
171
+ - **Summary**: Generate a GSD-T-optimized Product Requirements Document
172
+ - **Auto-invoked**: No
173
+ - **Reads**: `CLAUDE.md`, `.gsd-t/progress.md`, `docs/requirements.md`, `docs/architecture.md`, `.gsd-t/backlog.md`, `.gsd-t/contracts/`
174
+ - **Creates/Updates**: `docs/prd.md`, `.gsd-t/progress.md` (Decision Log)
175
+ - **Use when**: Starting a new project or feature and you need a structured PRD with REQ-IDs, data model, milestones, and exclusions all optimized for downstream GSD-T commands
176
+ - **Features**: GSD-T context-aware (reads existing docs), adaptive intake (skips questions answered by CLAUDE.md), produces REQ-IDs, field-level data model, file-path-level component list, suggested milestone sequence
177
+
178
+ ### setup
179
+ - **Summary**: Generate or restructure the project-level CLAUDE.md
180
+ - **Auto-invoked**: No
181
+ - **Creates/Updates**: `CLAUDE.md`
182
+ - **Use when**: Starting a new project, migrating from GSD, or restructuring an existing CLAUDE.md to complement the global one
183
+
184
+ ### init
185
+ - **Summary**: Initialize GSD-T directory structure in current project
186
+ - **Auto-invoked**: No
187
+ - **Creates**: `.gsd-t/` directory structure, initial progress.md
188
+ - **Use when**: Starting GSD-T in a new or existing project
189
+
190
+ ### init-scan-setup
191
+ - **Summary**: Full project onboarding — git + init + scan + setup in one command
192
+ - **Auto-invoked**: No
193
+ - **Creates**: `.gsd-t/` structure, `docs/`, `.gsd-t/scan/`, `.gsd-t/techdebt.md`, optimized `CLAUDE.md`
194
+ - **Use when**: Onboarding any project into GSD-T for the first time (new or existing codebase)
195
+ - **Combines**: gsd-t-init → gsd-t-scan → gsd-t-setup, plus git remote setup if needed
196
+
197
+ ### project
198
+ - **Summary**: Define a complete new project with requirements and milestone roadmap
199
+ - **Auto-invoked**: No
200
+ - **Creates**: `.gsd-t/roadmap.md`, `.gsd-t/progress.md`, `docs/requirements.md`
201
+ - **Use when**: Starting a brand new application from scratch
202
+
203
+ ### feature
204
+ - **Summary**: Add a major feature to existing codebase with impact analysis
205
+ - **Auto-invoked**: No
206
+ - **Creates**: Milestones in roadmap, impact analysis
207
+ - **Use when**: Adding significant new functionality to existing project
208
+
209
+ ### scan
210
+ - **Summary**: Deep codebase analysis producing architecture docs and techdebt.md
211
+ - **Auto-invoked**: No
212
+ - **Creates**: `.gsd-t/scan/`, `.gsd-t/techdebt.md`
213
+ - **Use when**: Understanding an existing codebase or auditing technical debt
214
+
215
+ ### gap-analysis
216
+ - **Summary**: Gap analysis — paste a spec, identify what's done, partial, incorrect, or missing
217
+ - **Auto-invoked**: No
218
+ - **Creates**: `.gsd-t/gap-analysis.md`
219
+ - **Reads**: Codebase, `docs/requirements.md`, `docs/architecture.md`, `.gsd-t/contracts/`
220
+ - **Use when**: You have a spec or requirements doc and need to know what's already built vs. what's missing
221
+ - **Features**: Re-run diffing, severity classification, evidence-backed classifications, optional requirements merge, promotable gap groupings
222
+
223
+ ### milestone
224
+ - **Summary**: Define a specific deliverable milestone within a project
225
+ - **Auto-invoked**: No
226
+ - **Updates**: `.gsd-t/progress.md`, `.gsd-t/roadmap.md`
227
+ - **Use when**: Starting work on a defined chunk of functionality
228
+
229
+ ### partition
230
+ - **Summary**: Decompose milestone into domains with explicit contracts
231
+ - **Auto-invoked**: Yes (in wave, after milestone)
232
+ - **Creates**: `.gsd-t/domains/*/`, `.gsd-t/contracts/`
233
+ - **Use when**: Breaking down a milestone for parallel work
234
+
235
+ ### discuss
236
+ - **Summary**: Explore design decisions from multiple perspectives
237
+ - **Auto-invoked**: Yes (in wave, after partition)
238
+ - **Updates**: `.gsd-t/contracts/`, decision log
239
+ - **Use when**: Architectural decisions need exploration
240
+
241
+ ### plan
242
+ - **Summary**: Create atomic task lists for each domain (each task must fit in one context window)
243
+ - **Auto-invoked**: Yes (in wave, after discuss)
244
+ - **Creates**: `.gsd-t/domains/*/tasks.md`
245
+ - **Use when**: Ready to define specific implementation tasks
246
+ - **Note (M22)**: Tasks auto-split if estimated scope exceeds 70% context window guarantees fresh dispatch works
247
+ - **Note (M26)**: Pre-mortem step now also reads rules.jsonl for historical failure patterns via getPreMortemRules
248
+
249
+ ### impact
250
+ - **Summary**: Analyze downstream effects of planned changes
251
+ - **Auto-invoked**: Yes (in wave, between plan and execute)
252
+ - **Creates**: `.gsd-t/impact-report.md`
253
+ - **Use when**: Before making changes, to understand what might break
254
+
255
+ ### execute
256
+ - **Summary**: Run tasks from plan, solo or with agent teams
257
+ - **Auto-invoked**: Yes (in wave, after impact)
258
+ - **Updates**: Domain tasks, progress.md, source code
259
+ - **Use when**: Ready to implement
260
+ - **Note (M22)**: Task-level fresh dispatch (one subagent per task, ~10-20% context each). Team mode uses worktree isolation (`isolation: "worktree"`) zero file conflicts. Adaptive replanning between domain completions.
261
+ - **Note (M26)**: Active rule injectionevaluates declarative rules from rules.jsonl before dispatching each domain's tasks. Fires matching rules as warnings in subagent prompts.
262
+ - **Note (M29)**: Stack Rules Engine — auto-detects project tech stack from manifest files and injects mandatory best-practice rules into each task subagent prompt. Universal rules (`_security.md`, `_auth.md`) always apply; stack-specific rules layer on top. Violations are task failures (same weight as contract violations).
263
+
264
+ ### test-sync
265
+ - **Summary**: Keep tests aligned with code changes
266
+ - **Auto-invoked**: Yes (during execute and verify)
267
+ - **Creates**: `.gsd-t/test-coverage.md`, test tasks
268
+ - **Use when**: After code changes, to maintain test health
269
+
270
+ ### qa
271
+ - **Summary**: QA agent test generation, execution, and gap reporting
272
+ - **Auto-invoked**: Yes (spawned as teammate by partition, plan, execute, verify, quick, debug, integrate, complete-milestone)
273
+ - **Creates**: Contract test skeletons, acceptance tests, edge case tests, test audit reports
274
+ - **Use when**: Automatically spawned — never needs manual invocation. Standalone use for ad-hoc test audits.
275
+
276
+ ### doc-ripple
277
+ - **Summary**: Automated document ripple identifies and updates all downstream docs after code changes
278
+ - **Auto-invoked**: Yes (after primary work in execute, integrate, quick, debug, wave)
279
+ - **Creates**: `.gsd-t/doc-ripple-manifest.md`
280
+ - **Use when**: Automatically spawned — never needs manual invocation. Standalone use for ad-hoc doc sync audits.
281
+
282
+ ### integrate
283
+ - **Summary**: Wire domains together at their boundaries
284
+ - **Auto-invoked**: Yes (in wave, after execute)
285
+ - **Updates**: Contracts, integration code
286
+ - **Use when**: Domains are complete and need to work together
287
+
288
+ ### verify
289
+ - **Summary**: Run quality gates across all dimensions, including goal-backward behavior verification
290
+ - **Auto-invoked**: Yes (in wave, after integrate)
291
+ - **Creates**: `.gsd-t/verify-report.md`
292
+ - **Use when**: Checking that milestone meets requirements
293
+ - **Note (M22)**: Goal-backward verification step added — checks for placeholder implementations (console.log/TODO/hardcoded returns) after structural gates pass
294
+
295
+ ### complete-milestone
296
+ - **Summary**: Archive milestone documentation and create git tag
297
+ - **Auto-invoked**: Yes by verify (Step 8, all autonomy levels) and in wave
298
+ - **Creates**: `.gsd-t/milestones/{name}/`, git tag
299
+ - **Use when**: Auto-runs after verify passes. Can also be invoked standalone to manually close a milestone.
300
+ - **Note (M22)**: Goal-backward gate runs as final check before archiving blocks completion if placeholders remain
301
+ - **Note (M26)**: Distillation extended with rule engine evaluation, patch candidate generation, promotion gate checks, graduation, consolidation, and quality budget governance
302
+
303
+ ### wave
304
+ - **Summary**: Run complete cycle automatically: partition through verify+complete
305
+ - **Auto-invoked**: No (user triggers)
306
+ - **Runs**: partition discuss → plan → impact → execute test-sync integrate → verify+complete
307
+ - **Use when**: Ready to execute a full milestone hands-off
308
+
309
+ ### status
310
+ - **Summary**: Show current progress across all domains, including token breakdown by domain/task/phase, global ELO and cross-project rankings
311
+ - **Auto-invoked**: No
312
+ - **Note (M22)**: Displays context observability data token usage by domain, avg tokens/task, peak Ctx% per domain
313
+ - **Note (M27)**: Displays global ELO and cross-project rankings when global metrics exist
314
+ - **Reads**: All `.gsd-t/` files, `~/.claude/metrics/` (global metrics)
315
+ - **Use when**: Need to see where things stand
316
+
317
+ ### resume
318
+ - **Summary**: Restore context and continue from where you left off
319
+ - **Auto-invoked**: No
320
+ - **Reads**: `.gsd-t/progress.md`, domain states
321
+ - **Use when**: Starting a new session on existing work
322
+
323
+ ### quick
324
+ - **Summary**: Fast task execution with GSD-T guarantees (contracts, commits)
325
+ - **Auto-invoked**: No
326
+ - **Creates**: Quick task record
327
+ - **Use when**: Small tasks that don't need full planning
328
+
329
+ ### reflect
330
+ - **Summary**: Generate a structured retrospective from the event stream for the current milestone, then propose CLAUDE.md/constraints.md rule additions based on recurring patterns
331
+ - **Auto-invoked**: No
332
+ - **Reads**: `.gsd-t/events/*.jsonl`, `.gsd-t/progress.md`, `CLAUDE.md`
333
+ - **Creates**: `.gsd-t/retrospectives/YYYY-MM-DD-{milestone}.md`
334
+ - **Use when**: After completing a milestone or mid-milestone to surface what's working, what's failing, and what patterns should become permanent rules
335
+
336
+ ### visualize
337
+ - **Summary**: Launch the real-time agent dashboard — starts the SSE server (if not running) and opens the React Flow visualization in a browser
338
+ - **Auto-invoked**: No
339
+ - **Reads**: `.gsd-t/dashboard.pid`, `.gsd-t/events/*.jsonl` (via server)
340
+ - **Creates**: `.gsd-t/dashboard.pid` (when starting server)
341
+ - **Use when**: Monitoring live agent activity during execute/wave phases; run `gsd-t-visualize stop` to stop the server
342
+
343
+ ### metrics
344
+ - **Summary**: View task telemetry, process ELO, signal distribution, domain health, and cross-project comparison (with `--cross-project` flag)
345
+ - **Auto-invoked**: No
346
+ - **Reads**: `.gsd-t/metrics/task-metrics.jsonl`, `.gsd-t/metrics/rollup.jsonl`, `~/.claude/metrics/` (when `--cross-project`)
347
+ - **Use when**: Reviewing process health, first-pass rates, ELO trends, anomaly flags, or comparing signal distributions across projects
348
+
349
+ ### debug
350
+ - **Summary**: Systematic debugging with persistent state; delegates to `gsd-t headless --debug-loop` after 2 failed in-context fix attempts
351
+ - **Auto-invoked**: No
352
+ - **Creates**: Debug session state, `.gsd-t/debug-state.jsonl` (when delegating to headless loop)
353
+ - **Use when**: Tracking down a bug methodically
354
+
355
+ ### audit
356
+ - **Summary**: Harness self-audit analyze cost and benefit of GSD-T enforcement components (QA, Red Team, doc-ripple, token budget), with optional shadow mode to measure overhead
357
+ - **Auto-invoked**: No
358
+ - **Creates**: `.gsd-t/audit-report.md`
359
+ - **Reads**: `.gsd-t/metrics/`, `.gsd-t/token-log.md`, `bin/component-registry.js`, `bin/qa-calibrator.js`, `bin/token-budget.js`
360
+ - **Use when**: Reviewing whether enforcement components are adding value or overhead; shadow mode measures impact without disabling components; `--disable {component}` temporarily disables one component for comparison
361
+
362
+ ### headless --debug-loop
363
+ - **Summary**: Compaction-proof automated test-fix-retest loop — each iteration is a fresh `claude -p` session; a cumulative ledger (`.gsd-t/debug-state.jsonl`) preserves all hypothesis/fix/learning history; anti-repetition preamble prevents retrying failed approaches
364
+ - **Auto-invoked**: Yes by `execute`, `test-sync`, `verify`, `debug`, and `wave` after 2 failed in-context fix attempts
365
+ - **Flags**: `--max-iterations=N` (default 20), `--test-cmd=CMD`, `--fix-scope=PATTERN`, `--json`, `--log`
366
+ - **Escalation**: sonnet (iterations 1–5) → opus (6–15) → STOP with diagnostic summary (16–20)
367
+ - **Exit codes**: `0` pass · `1` max iterations · `2` compaction error · `3` process error · `4` needs human
368
+ - **Creates**: `.gsd-t/debug-state.jsonl`, optional `.gsd-t/headless-{ts}.log`
369
+ - **Use when**: Running automated fix loops in CI, or delegated from in-context commands that exhausted fix attempts
370
+
371
+ ### promote-debt
372
+ - **Summary**: Convert techdebt.md items into milestones
373
+ - **Auto-invoked**: No
374
+ - **Updates**: `.gsd-t/roadmap.md`, `.gsd-t/techdebt.md`
375
+ - **Use when**: Ready to address technical debt items
376
+
377
+ ### populate
378
+ - **Summary**: Auto-populate all living docs from existing codebase analysis
379
+ - **Auto-invoked**: No
380
+ - **Updates**: `docs/requirements.md`, `docs/architecture.md`, `docs/workflows.md`, `docs/infrastructure.md`, `.gsd-t/progress.md`
381
+ - **Use when**: You have an existing codebase and want to fill docs with real findings instead of placeholders
382
+
383
+ ### log
384
+ - **Summary**: Sync progress.md Decision Log with recent git activity
385
+ - **Auto-invoked**: No
386
+ - **Files**: `.gsd-t/progress.md`, git history
387
+ - **Use when**: Progress.md Decision Log is behind catches up by scanning git commits since the last logged entry
388
+ - **Features**: Incremental updates, first-time full reconstruction from git history, groups same-day changes
389
+
390
+ ### triage-and-merge
391
+ - **Summary**: Auto-review unmerged GitHub branches, merge safe ones, and optionally publish
392
+ - **Auto-invoked**: No
393
+ - **Files**: Reads `CLAUDE.md`, `.gsd-t/progress.md`, `package.json`; updates `package.json`, `.gsd-t/progress.md`, `CHANGELOG.md`
394
+ - **Use when**: Collaborators have pushed branches and you want to batch-review, merge, and publish without manual per-branch ceremony
395
+ - **Features**: 3-tier impact scoring (auto-merge / review / skip), publish gate (auto in Level 3, prompted otherwise), conflict detection, sensitive file detection
396
+
397
+ ### global-change
398
+ - **Summary**: Apply file changes (copy/insert/update/delete) across all registered GSD-T projects
399
+ - **Auto-invoked**: No
400
+ - **Files**: Reads `~/.claude/.gsd-t-projects`; modifies target file in each registered project
401
+ - **Use when**: You need to make the same change to CLAUDE.md, contracts, templates, or config across multiple projects at once
402
+ - **Operations**: `copy` (file from GSD-T package), `insert` (append content), `update` (find/replace with `%%REPLACE_WITH%%` delimiter), `delete` (remove file)
403
+ - **Features**: Dry run preview, per-project match validation, parallel execution, skip-on-no-match safety
404
+
405
+ ### backlog-add
406
+ - **Summary**: Capture a new backlog item with auto-categorization
407
+ - **Auto-invoked**: No
408
+ - **Files**: `.gsd-t/backlog.md`, `.gsd-t/backlog-settings.md`
409
+ - **Use when**: You have an idea, bug, or improvement to capture for later
410
+
411
+ ### backlog-list
412
+ - **Summary**: Display backlog with optional filtering by type, app, or category
413
+ - **Auto-invoked**: No
414
+ - **Files**: `.gsd-t/backlog.md` (read-only)
415
+ - **Use when**: Reviewing the backlog to see what's queued up
416
+
417
+ ### backlog-move
418
+ - **Summary**: Reorder a backlog item to change its priority
419
+ - **Auto-invoked**: No
420
+ - **Files**: `.gsd-t/backlog.md`
421
+ - **Use when**: Reprioritizing items in the backlog
422
+
423
+ ### backlog-edit
424
+ - **Summary**: Modify fields of an existing backlog entry
425
+ - **Auto-invoked**: No
426
+ - **Files**: `.gsd-t/backlog.md`, `.gsd-t/backlog-settings.md`
427
+ - **Use when**: Updating details of a captured backlog item
428
+
429
+ ### backlog-remove
430
+ - **Summary**: Remove a backlog item with optional reason
431
+ - **Auto-invoked**: No
432
+ - **Files**: `.gsd-t/backlog.md`
433
+ - **Use when**: Dropping an item that's no longer relevant
434
+
435
+ ### backlog-promote
436
+ - **Summary**: Refine a backlog item and launch the appropriate GSD-T workflow
437
+ - **Auto-invoked**: No
438
+ - **Files**: `.gsd-t/backlog.md`, `.gsd-t/progress.md`
439
+ - **Use when**: Ready to act on a backlog item — promotes to milestone, quick, debug, or feature
440
+
441
+ ### backlog-settings
442
+ - **Summary**: Manage allowed types, apps, categories, and default settings
443
+ - **Auto-invoked**: No
444
+ - **Files**: `.gsd-t/backlog-settings.md`
445
+ - **Use when**: Customizing the classification dimensions for your project
446
+
447
+ ## Unknown Command
448
+
449
+ If user asks for help on unrecognized command:
450
+
451
+ ```
452
+ ❓ Unknown command: {command}
453
+
454
+ Did you mean one of these?
455
+ {closest match 1}
456
+ • {closest match 2}
457
+
458
+ Run /user:gsd-t-help for full command list.
459
+ ```
460
+
461
+ $ARGUMENTS
462
+
463
+ ## Auto-Clear
464
+
465
+ All work is committed to project files. Execute `/clear` to free the context window for the next command.