@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.
- package/CHANGELOG.md +24 -0
- package/README.md +379 -372
- package/bin/component-registry.js +250 -0
- package/bin/graph-cgc.js +510 -510
- package/bin/graph-indexer.js +147 -147
- package/bin/graph-overlay.js +195 -195
- package/bin/graph-parsers.js +327 -327
- package/bin/graph-query.js +453 -452
- package/bin/graph-store.js +154 -154
- package/bin/qa-calibrator.js +194 -0
- package/bin/scan-data-collector.js +153 -153
- package/bin/scan-diagrams-generators.js +187 -187
- package/bin/scan-diagrams.js +79 -79
- package/bin/scan-renderer.js +92 -92
- package/bin/scan-report-sections.js +121 -121
- package/bin/scan-report.js +184 -184
- package/bin/scan-schema-parsers.js +199 -199
- package/bin/scan-schema.js +103 -103
- package/bin/token-budget.js +246 -0
- package/commands/Claude-md.md +10 -10
- package/commands/branch.md +15 -15
- package/commands/checkin.md +45 -45
- package/commands/global-change.md +209 -209
- package/commands/gsd-t-audit.md +199 -0
- package/commands/gsd-t-backlog-add.md +94 -94
- package/commands/gsd-t-backlog-edit.md +111 -111
- package/commands/gsd-t-backlog-list.md +63 -63
- package/commands/gsd-t-backlog-move.md +94 -94
- package/commands/gsd-t-backlog-promote.md +123 -123
- package/commands/gsd-t-backlog-remove.md +86 -86
- package/commands/gsd-t-backlog-settings.md +158 -158
- package/commands/gsd-t-complete-milestone.md +528 -515
- package/commands/gsd-t-debug.md +506 -399
- package/commands/gsd-t-discuss.md +174 -174
- package/commands/gsd-t-execute.md +758 -634
- package/commands/gsd-t-feature.md +276 -276
- package/commands/gsd-t-health.md +142 -142
- package/commands/gsd-t-help.md +465 -457
- package/commands/gsd-t-impact.md +302 -302
- package/commands/gsd-t-init.md +320 -280
- package/commands/gsd-t-integrate.md +365 -249
- package/commands/gsd-t-milestone.md +87 -87
- package/commands/gsd-t-partition.md +442 -361
- package/commands/gsd-t-pause.md +82 -82
- package/commands/gsd-t-plan.md +345 -344
- package/commands/gsd-t-populate.md +111 -111
- package/commands/gsd-t-prd.md +326 -326
- package/commands/gsd-t-project.md +211 -211
- package/commands/gsd-t-promote-debt.md +123 -123
- package/commands/gsd-t-prompt.md +137 -137
- package/commands/gsd-t-qa.md +266 -266
- package/commands/gsd-t-quick.md +357 -234
- package/commands/gsd-t-reflect.md +134 -134
- package/commands/gsd-t-resume.md +72 -72
- package/commands/gsd-t-scan.md +615 -615
- package/commands/gsd-t-setup.md +76 -0
- package/commands/gsd-t-status.md +192 -166
- package/commands/gsd-t-test-sync.md +381 -381
- package/commands/gsd-t-triage-and-merge.md +171 -171
- package/commands/gsd-t-verify.md +382 -382
- package/commands/gsd-t-visualize.md +118 -118
- package/commands/gsd-t-wave.md +401 -378
- package/docs/GSD-T-README.md +425 -422
- package/docs/architecture.md +385 -369
- package/docs/harness-design-analysis.md +371 -0
- package/docs/infrastructure.md +205 -205
- package/docs/prd-graph-engine.md +398 -398
- package/docs/prd-gsd2-hybrid.md +559 -559
- package/docs/prd-harness-evolution.md +583 -0
- package/docs/requirements.md +14 -0
- package/docs/workflows.md +226 -226
- package/examples/.gsd-t/domains/example-domain/scope.md +13 -13
- package/package.json +40 -40
- package/scripts/gsd-t-auto-route.js +39 -39
- package/scripts/gsd-t-dashboard-mockup.html +1143 -1143
- package/scripts/gsd-t-dashboard-server.js +171 -171
- package/scripts/gsd-t-dashboard.html +262 -262
- package/scripts/gsd-t-event-writer.js +128 -128
- package/scripts/gsd-t-statusline.js +94 -94
- package/scripts/gsd-t-tools.js +175 -175
- package/templates/CLAUDE-global.md +639 -614
- package/templates/CLAUDE-project.md +24 -0
- package/templates/backlog-settings.md +18 -18
- package/templates/backlog.md +1 -1
- package/templates/progress.md +40 -40
- package/templates/shared-services-contract.md +60 -60
- package/templates/stacks/desktop.ini +2 -2
- package/bin/desktop.ini +0 -2
- package/commands/desktop.ini +0 -2
- package/docs/ci-examples/desktop.ini +0 -2
- package/docs/desktop.ini +0 -2
- package/examples/.gsd-t/contracts/desktop.ini +0 -2
- package/examples/.gsd-t/desktop.ini +0 -2
- package/examples/.gsd-t/domains/desktop.ini +0 -2
- package/examples/.gsd-t/domains/example-domain/desktop.ini +0 -2
- package/examples/desktop.ini +0 -2
- package/examples/rules/desktop.ini +0 -2
- package/scripts/desktop.ini +0 -2
- package/templates/desktop.ini +0 -2
package/docs/GSD-T-README.md
CHANGED
|
@@ -1,422 +1,425 @@
|
|
|
1
|
-
# GSD-T: Contract-Driven Development for Claude Code
|
|
2
|
-
|
|
3
|
-
A methodology for reliable, parallelizable development using Claude Code with optional Agent Teams support.
|
|
4
|
-
|
|
5
|
-
## What It Does
|
|
6
|
-
|
|
7
|
-
**Solves context rot** — the quality degradation that happens as Claude fills its context window.
|
|
8
|
-
|
|
9
|
-
**Enables parallel execution** — contract-driven domains can be worked on simultaneously.
|
|
10
|
-
|
|
11
|
-
**Maintains test coverage** — automatically keeps tests aligned with code changes.
|
|
12
|
-
|
|
13
|
-
**Catches downstream effects** — analyzes impact before changes break things.
|
|
14
|
-
|
|
15
|
-
**Self-learning rule engine** — declarative rules detect failure patterns from task metrics. Patches progress through 5 lifecycle stages with measurable improvement gates before graduating into permanent methodology.
|
|
16
|
-
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
## Quick Start
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
# 1. Start Claude Code in your project
|
|
23
|
-
cd my-project
|
|
24
|
-
claude
|
|
25
|
-
|
|
26
|
-
# 2. Full onboarding (git + init + scan + setup in one)
|
|
27
|
-
/user:gsd-t-init-scan-setup
|
|
28
|
-
|
|
29
|
-
# Or step by step:
|
|
30
|
-
/user:gsd-t-init my-project
|
|
31
|
-
|
|
32
|
-
# 3. Define what you're building
|
|
33
|
-
/user:gsd-t-milestone "User Authentication System"
|
|
34
|
-
|
|
35
|
-
# 5. Let it rip (auto-advances through all phases)
|
|
36
|
-
/user:gsd-t-wave
|
|
37
|
-
|
|
38
|
-
# Or go phase by phase for more control:
|
|
39
|
-
/user:gsd-t-partition
|
|
40
|
-
/user:gsd-t-discuss
|
|
41
|
-
/user:gsd-t-plan
|
|
42
|
-
/user:gsd-t-impact
|
|
43
|
-
/user:gsd-t-execute
|
|
44
|
-
/user:gsd-t-test-sync
|
|
45
|
-
/user:gsd-t-integrate
|
|
46
|
-
/user:gsd-t-verify
|
|
47
|
-
/user:gsd-t-complete-milestone
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
## Resuming After a Break
|
|
51
|
-
|
|
52
|
-
```bash
|
|
53
|
-
claude
|
|
54
|
-
/user:gsd-t-resume
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
GSD-T reads all state files and tells you exactly where you left off.
|
|
58
|
-
|
|
59
|
-
---
|
|
60
|
-
|
|
61
|
-
## Commands Reference
|
|
62
|
-
|
|
63
|
-
### Smart Router
|
|
64
|
-
|
|
65
|
-
| Command | Purpose | Auto |
|
|
66
|
-
|---------|---------|------|
|
|
67
|
-
| `/user:gsd {request}` | Describe what you need → auto-routes to the right command | Manual |
|
|
68
|
-
| _(any plain text)_ | Auto-routed via UserPromptSubmit hook — no leading `/` needed | Auto |
|
|
69
|
-
|
|
70
|
-
### Help & Onboarding
|
|
71
|
-
|
|
72
|
-
| Command | Purpose | Auto |
|
|
73
|
-
|---------|---------|------|
|
|
74
|
-
| `/user:gsd-t-help` | List all commands with descriptions | Manual |
|
|
75
|
-
| `/user:gsd-t-help {cmd}` | Detailed help for specific command | Manual |
|
|
76
|
-
| `/user:gsd-t-prompt` | Help formulate your idea before committing | Manual |
|
|
77
|
-
| `/user:gsd-t-brainstorm` | Creative exploration and idea generation | Manual |
|
|
78
|
-
| `/user:gsd-t-prd` | Generate a GSD-T-optimized Product Requirements Document | Manual |
|
|
79
|
-
|
|
80
|
-
### Project Initialization
|
|
81
|
-
|
|
82
|
-
| Command | Purpose | Auto |
|
|
83
|
-
|---------|---------|------|
|
|
84
|
-
| `/user:gsd-t-setup` | Generate or restructure project CLAUDE.md | Manual |
|
|
85
|
-
| `/user:gsd-t-init` | Initialize GSD-T structure in project | Manual |
|
|
86
|
-
| `/user:gsd-t-init-scan-setup` | Full onboarding: git + init + scan + setup in one | Manual |
|
|
87
|
-
| `/user:gsd-t-project` | Full project → milestone roadmap | Manual |
|
|
88
|
-
| `/user:gsd-t-feature` | Major feature → impact analysis + milestones | Manual |
|
|
89
|
-
| `/user:gsd-t-scan` | Deep codebase analysis → techdebt.md | Manual |
|
|
90
|
-
| `/user:gsd-t-gap-analysis` | Requirements gap analysis — spec vs. existing code | Manual |
|
|
91
|
-
| `/user:gsd-t-promote-debt` | Convert techdebt items to milestones | Manual |
|
|
92
|
-
| `/user:gsd-t-populate` | Auto-populate docs from existing codebase | Manual |
|
|
93
|
-
|
|
94
|
-
### Milestone Workflow
|
|
95
|
-
|
|
96
|
-
| Command | Purpose | Auto |
|
|
97
|
-
|---------|---------|------|
|
|
98
|
-
| `/user:gsd-t-milestone` | Define new milestone | Manual |
|
|
99
|
-
| `/user:gsd-t-partition` | Decompose into domains + contracts | In wave |
|
|
100
|
-
| `/user:gsd-t-discuss` | Multi-perspective design exploration | In wave |
|
|
101
|
-
| `/user:gsd-t-plan` | Create atomic task lists per domain (tasks auto-split to fit one context window) | In wave |
|
|
102
|
-
| `/user:gsd-t-impact` | Analyze downstream effects | In wave |
|
|
103
|
-
| `/user:gsd-t-execute` | Run tasks — task-level fresh dispatch, worktree isolation, adaptive replanning, stack rules injection | In wave |
|
|
104
|
-
| `/user:gsd-t-test-sync` | Sync tests with code changes | In wave |
|
|
105
|
-
| `/user:gsd-t-qa` | QA agent — test generation, execution, gap reporting | Auto-spawned |
|
|
106
|
-
|
|
|
107
|
-
| `/user:gsd-t-
|
|
108
|
-
| `/user:gsd-t-
|
|
109
|
-
| `/user:gsd-t-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
| `/user:gsd-t-
|
|
117
|
-
| `/user:gsd-t-
|
|
118
|
-
| `/user:gsd-t-
|
|
119
|
-
| `/user:gsd-t-
|
|
120
|
-
| `/user:gsd-t-
|
|
121
|
-
| `/user:gsd-t-
|
|
122
|
-
| `/user:gsd-t-
|
|
123
|
-
| `/user:gsd-t-
|
|
124
|
-
| `/user:gsd-t-
|
|
125
|
-
| `/user:gsd-t-
|
|
126
|
-
| `/user:gsd-t-
|
|
127
|
-
| `/user:gsd-t-version-update
|
|
128
|
-
| `/user:gsd-t-
|
|
129
|
-
| `/
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
|
136
|
-
|
|
137
|
-
| `/user:gsd-t-backlog-
|
|
138
|
-
| `/user:gsd-t-backlog-
|
|
139
|
-
| `/user:gsd-t-backlog-
|
|
140
|
-
| `/user:gsd-t-backlog-
|
|
141
|
-
| `/user:gsd-t-backlog-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
│
|
|
152
|
-
|
|
153
|
-
│
|
|
154
|
-
│
|
|
155
|
-
│ │
|
|
156
|
-
│ │
|
|
157
|
-
│ │
|
|
158
|
-
│ │
|
|
159
|
-
│ │
|
|
160
|
-
│
|
|
161
|
-
│
|
|
162
|
-
│
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
|
170
|
-
|
|
171
|
-
| **
|
|
172
|
-
| **
|
|
173
|
-
| **
|
|
174
|
-
| **
|
|
175
|
-
| **
|
|
176
|
-
| **
|
|
177
|
-
| **
|
|
178
|
-
| **
|
|
179
|
-
| **
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
│
|
|
193
|
-
├── .
|
|
194
|
-
│ ├──
|
|
195
|
-
│
|
|
196
|
-
|
|
197
|
-
│ ├──
|
|
198
|
-
│ ├──
|
|
199
|
-
│ ├──
|
|
200
|
-
│ ├──
|
|
201
|
-
│
|
|
202
|
-
│
|
|
203
|
-
│
|
|
204
|
-
│ │
|
|
205
|
-
│ ├──
|
|
206
|
-
│ │
|
|
207
|
-
│ │
|
|
208
|
-
│
|
|
209
|
-
│ │
|
|
210
|
-
│ ├──
|
|
211
|
-
│ │
|
|
212
|
-
│ │
|
|
213
|
-
│
|
|
214
|
-
│ │
|
|
215
|
-
│ │ ├──
|
|
216
|
-
│ │
|
|
217
|
-
│
|
|
218
|
-
│ ├──
|
|
219
|
-
│
|
|
220
|
-
│
|
|
221
|
-
│
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
|
245
|
-
|
|
246
|
-
|
|
|
247
|
-
| `package.json` with `"
|
|
248
|
-
| `package.json` with `"
|
|
249
|
-
| `package.json` with `"
|
|
250
|
-
| `package.json` with `"
|
|
251
|
-
| `package.json` with `"
|
|
252
|
-
| `package.json` with `"
|
|
253
|
-
| `package.json` with `"
|
|
254
|
-
| `package.json` with `"
|
|
255
|
-
| `package.json` with `"
|
|
256
|
-
| `package.json` with `"
|
|
257
|
-
| `package.json` with `"
|
|
258
|
-
| `package.json` with `"
|
|
259
|
-
| `package.json` with `"
|
|
260
|
-
| `package.json` with `"
|
|
261
|
-
| `package.json` with `"
|
|
262
|
-
| `
|
|
263
|
-
|
|
|
264
|
-
| `
|
|
265
|
-
| `
|
|
266
|
-
| `
|
|
267
|
-
| `
|
|
268
|
-
| `requirements.txt`
|
|
269
|
-
| `
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
```
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
```
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
|
313
|
-
|
|
314
|
-
| `--
|
|
315
|
-
| `--
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
#
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
-
|
|
369
|
-
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
#
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
"
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
1
|
+
# GSD-T: Contract-Driven Development for Claude Code
|
|
2
|
+
|
|
3
|
+
A methodology for reliable, parallelizable development using Claude Code with optional Agent Teams support.
|
|
4
|
+
|
|
5
|
+
## What It Does
|
|
6
|
+
|
|
7
|
+
**Solves context rot** — the quality degradation that happens as Claude fills its context window.
|
|
8
|
+
|
|
9
|
+
**Enables parallel execution** — contract-driven domains can be worked on simultaneously.
|
|
10
|
+
|
|
11
|
+
**Maintains test coverage** — automatically keeps tests aligned with code changes.
|
|
12
|
+
|
|
13
|
+
**Catches downstream effects** — analyzes impact before changes break things.
|
|
14
|
+
|
|
15
|
+
**Self-learning rule engine** — declarative rules detect failure patterns from task metrics. Patches progress through 5 lifecycle stages with measurable improvement gates before graduating into permanent methodology.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Quick Start
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
# 1. Start Claude Code in your project
|
|
23
|
+
cd my-project
|
|
24
|
+
claude
|
|
25
|
+
|
|
26
|
+
# 2. Full onboarding (git + init + scan + setup in one)
|
|
27
|
+
/user:gsd-t-init-scan-setup
|
|
28
|
+
|
|
29
|
+
# Or step by step:
|
|
30
|
+
/user:gsd-t-init my-project
|
|
31
|
+
|
|
32
|
+
# 3. Define what you're building
|
|
33
|
+
/user:gsd-t-milestone "User Authentication System"
|
|
34
|
+
|
|
35
|
+
# 5. Let it rip (auto-advances through all phases)
|
|
36
|
+
/user:gsd-t-wave
|
|
37
|
+
|
|
38
|
+
# Or go phase by phase for more control:
|
|
39
|
+
/user:gsd-t-partition
|
|
40
|
+
/user:gsd-t-discuss
|
|
41
|
+
/user:gsd-t-plan
|
|
42
|
+
/user:gsd-t-impact
|
|
43
|
+
/user:gsd-t-execute
|
|
44
|
+
/user:gsd-t-test-sync
|
|
45
|
+
/user:gsd-t-integrate
|
|
46
|
+
/user:gsd-t-verify
|
|
47
|
+
/user:gsd-t-complete-milestone
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Resuming After a Break
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
claude
|
|
54
|
+
/user:gsd-t-resume
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
GSD-T reads all state files and tells you exactly where you left off.
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
## Commands Reference
|
|
62
|
+
|
|
63
|
+
### Smart Router
|
|
64
|
+
|
|
65
|
+
| Command | Purpose | Auto |
|
|
66
|
+
|---------|---------|------|
|
|
67
|
+
| `/user:gsd {request}` | Describe what you need → auto-routes to the right command | Manual |
|
|
68
|
+
| _(any plain text)_ | Auto-routed via UserPromptSubmit hook — no leading `/` needed | Auto |
|
|
69
|
+
|
|
70
|
+
### Help & Onboarding
|
|
71
|
+
|
|
72
|
+
| Command | Purpose | Auto |
|
|
73
|
+
|---------|---------|------|
|
|
74
|
+
| `/user:gsd-t-help` | List all commands with descriptions | Manual |
|
|
75
|
+
| `/user:gsd-t-help {cmd}` | Detailed help for specific command | Manual |
|
|
76
|
+
| `/user:gsd-t-prompt` | Help formulate your idea before committing | Manual |
|
|
77
|
+
| `/user:gsd-t-brainstorm` | Creative exploration and idea generation | Manual |
|
|
78
|
+
| `/user:gsd-t-prd` | Generate a GSD-T-optimized Product Requirements Document | Manual |
|
|
79
|
+
|
|
80
|
+
### Project Initialization
|
|
81
|
+
|
|
82
|
+
| Command | Purpose | Auto |
|
|
83
|
+
|---------|---------|------|
|
|
84
|
+
| `/user:gsd-t-setup` | Generate or restructure project CLAUDE.md | Manual |
|
|
85
|
+
| `/user:gsd-t-init` | Initialize GSD-T structure in project | Manual |
|
|
86
|
+
| `/user:gsd-t-init-scan-setup` | Full onboarding: git + init + scan + setup in one | Manual |
|
|
87
|
+
| `/user:gsd-t-project` | Full project → milestone roadmap | Manual |
|
|
88
|
+
| `/user:gsd-t-feature` | Major feature → impact analysis + milestones | Manual |
|
|
89
|
+
| `/user:gsd-t-scan` | Deep codebase analysis → techdebt.md | Manual |
|
|
90
|
+
| `/user:gsd-t-gap-analysis` | Requirements gap analysis — spec vs. existing code | Manual |
|
|
91
|
+
| `/user:gsd-t-promote-debt` | Convert techdebt items to milestones | Manual |
|
|
92
|
+
| `/user:gsd-t-populate` | Auto-populate docs from existing codebase | Manual |
|
|
93
|
+
|
|
94
|
+
### Milestone Workflow
|
|
95
|
+
|
|
96
|
+
| Command | Purpose | Auto |
|
|
97
|
+
|---------|---------|------|
|
|
98
|
+
| `/user:gsd-t-milestone` | Define new milestone | Manual |
|
|
99
|
+
| `/user:gsd-t-partition` | Decompose into domains + contracts | In wave |
|
|
100
|
+
| `/user:gsd-t-discuss` | Multi-perspective design exploration | In wave |
|
|
101
|
+
| `/user:gsd-t-plan` | Create atomic task lists per domain (tasks auto-split to fit one context window) | In wave |
|
|
102
|
+
| `/user:gsd-t-impact` | Analyze downstream effects | In wave |
|
|
103
|
+
| `/user:gsd-t-execute` | Run tasks — task-level fresh dispatch, worktree isolation, adaptive replanning, stack rules injection | In wave |
|
|
104
|
+
| `/user:gsd-t-test-sync` | Sync tests with code changes | In wave |
|
|
105
|
+
| `/user:gsd-t-qa` | QA agent — test generation, execution, gap reporting | Auto-spawned |
|
|
106
|
+
| *Red Team* | Adversarial QA — spawns after QA passes to find bugs the builder missed | Auto-spawned |
|
|
107
|
+
| `/user:gsd-t-doc-ripple` | Automated document ripple — update downstream docs after code changes | Auto-spawned |
|
|
108
|
+
| `/user:gsd-t-integrate` | Wire domains together | In wave |
|
|
109
|
+
| `/user:gsd-t-verify` | Run quality gates + goal-backward verification → auto-invokes complete-milestone | In wave |
|
|
110
|
+
| `/user:gsd-t-complete-milestone` | Archive + git tag (auto-invoked by verify, also standalone) | In wave |
|
|
111
|
+
|
|
112
|
+
### Automation & Utilities
|
|
113
|
+
|
|
114
|
+
| Command | Purpose | Auto |
|
|
115
|
+
|---------|---------|------|
|
|
116
|
+
| `/user:gsd-t-wave` | Full cycle, auto-advances all phases | Manual |
|
|
117
|
+
| `/user:gsd-t-status` | Cross-domain progress view with token breakdown, global ELO and cross-project rankings | Manual |
|
|
118
|
+
| `/user:gsd-t-resume` | Restore context, continue | Manual |
|
|
119
|
+
| `/user:gsd-t-quick` | Fast task with GSD-T guarantees | Manual |
|
|
120
|
+
| `/user:gsd-t-reflect` | Generate retrospective from event stream, propose memory updates | Manual |
|
|
121
|
+
| `/user:gsd-t-visualize` | Launch browser dashboard — SSE server + React Flow agent visualization | Manual |
|
|
122
|
+
| `/user:gsd-t-debug` | Systematic debugging with state | Manual |
|
|
123
|
+
| `/user:gsd-t-metrics` | View task telemetry, process ELO, signal distribution, domain health, and cross-project comparison (`--cross-project`) | Manual |
|
|
124
|
+
| `/user:gsd-t-health` | Validate .gsd-t/ structure, optionally repair | Manual |
|
|
125
|
+
| `/user:gsd-t-pause` | Save exact position for reliable resume | Manual |
|
|
126
|
+
| `/user:gsd-t-log` | Sync progress Decision Log with recent git activity | Manual |
|
|
127
|
+
| `/user:gsd-t-version-update` | Update GSD-T to latest version | Manual |
|
|
128
|
+
| `/user:gsd-t-version-update-all` | Update GSD-T + all registered projects | Manual |
|
|
129
|
+
| `/user:gsd-t-triage-and-merge` | Auto-review, merge, and publish GitHub branches | Manual |
|
|
130
|
+
| `/user:gsd-t-audit` | Harness self-audit — analyze cost/benefit of enforcement components | Manual |
|
|
131
|
+
| `/global-change` | Apply file changes (copy/insert/update/delete) across all GSD-T projects | Manual |
|
|
132
|
+
|
|
133
|
+
### Backlog Management
|
|
134
|
+
|
|
135
|
+
| Command | Purpose | Auto |
|
|
136
|
+
|---------|---------|------|
|
|
137
|
+
| `/user:gsd-t-backlog-add` | Capture item, auto-categorize, append to backlog | Manual |
|
|
138
|
+
| `/user:gsd-t-backlog-list` | Filtered, ordered view of backlog items | Manual |
|
|
139
|
+
| `/user:gsd-t-backlog-move` | Reorder items by position (priority) | Manual |
|
|
140
|
+
| `/user:gsd-t-backlog-edit` | Modify backlog entry fields | Manual |
|
|
141
|
+
| `/user:gsd-t-backlog-remove` | Drop item with optional reason | Manual |
|
|
142
|
+
| `/user:gsd-t-backlog-promote` | Refine, classify, launch GSD-T workflow | Manual |
|
|
143
|
+
| `/user:gsd-t-backlog-settings` | Manage types, apps, categories, defaults | Manual |
|
|
144
|
+
|
|
145
|
+
---
|
|
146
|
+
|
|
147
|
+
## Workflow Phases
|
|
148
|
+
|
|
149
|
+
```
|
|
150
|
+
┌─────────────────────────────────────────────────────────────────────────────┐
|
|
151
|
+
│ GSD-T Wave Flow │
|
|
152
|
+
├─────────────────────────────────────────────────────────────────────────────┤
|
|
153
|
+
│ │
|
|
154
|
+
│ milestone → partition → discuss → plan → impact → execute → test-sync │
|
|
155
|
+
│ │ │ │
|
|
156
|
+
│ │ └──────┐ │
|
|
157
|
+
│ │ ▼ │
|
|
158
|
+
│ │ ┌───────────────────┐ │
|
|
159
|
+
│ │ │ QA + Red Team │ │
|
|
160
|
+
│ │ │ (after each phase │ │
|
|
161
|
+
│ │ │ that writes code)│ │
|
|
162
|
+
│ │ └───────────────────┘ │
|
|
163
|
+
│ ▼ │
|
|
164
|
+
│ verify+complete ◄──────────── integrate ◄──────────────────────┘ │
|
|
165
|
+
│ │
|
|
166
|
+
└─────────────────────────────────────────────────────────────────────────────┘
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
| Phase | Purpose | Solo/Team |
|
|
170
|
+
|-------|---------|-----------|
|
|
171
|
+
| **Prompt** | Formulate idea (pre-workflow) | Solo |
|
|
172
|
+
| **Project/Feature/Scan** | Initialize work | Solo (team for large scans) |
|
|
173
|
+
| **Milestone** | Define deliverable | Solo |
|
|
174
|
+
| **Partition** | Decompose into domains + contracts | Solo |
|
|
175
|
+
| **Discuss** | Explore design decisions | Both |
|
|
176
|
+
| **Plan** | Create atomic task lists | Solo (always) |
|
|
177
|
+
| **Impact** | Downstream effect analysis | Solo |
|
|
178
|
+
| **Execute** | Build it (+ Red Team adversarial QA) | Both |
|
|
179
|
+
| **Test-Sync** | Maintain test coverage | Solo |
|
|
180
|
+
| **Integrate** | Wire domains together (+ Red Team adversarial QA) | Solo (always) |
|
|
181
|
+
| **Verify** | Quality gates | Both |
|
|
182
|
+
| **Complete** | Archive + tag | Solo |
|
|
183
|
+
|
|
184
|
+
---
|
|
185
|
+
|
|
186
|
+
## Project Structure
|
|
187
|
+
|
|
188
|
+
```
|
|
189
|
+
your-project/
|
|
190
|
+
├── CLAUDE.md # Project conventions + GSD-T reference
|
|
191
|
+
├── docs/
|
|
192
|
+
│ ├── requirements.md # Functional + technical requirements
|
|
193
|
+
│ ├── architecture.md # System design, components, data flow
|
|
194
|
+
│ ├── workflows.md # User journeys, technical processes
|
|
195
|
+
│ └── infrastructure.md # Dev setup, DB, cloud, deployment
|
|
196
|
+
├── .gsd-t/
|
|
197
|
+
│ ├── progress.md # Master state file
|
|
198
|
+
│ ├── roadmap.md # Milestone roadmap
|
|
199
|
+
│ ├── techdebt.md # Technical debt register
|
|
200
|
+
│ ├── verify-report.md # Latest verification results
|
|
201
|
+
│ ├── impact-report.md # Downstream effect analysis
|
|
202
|
+
│ ├── test-coverage.md # Test sync report
|
|
203
|
+
│ ├── contracts/
|
|
204
|
+
│ │ ├── api-contract.md # API endpoint specifications
|
|
205
|
+
│ │ ├── schema-contract.md # Database/data model specs
|
|
206
|
+
│ │ ├── component-contract.md # UI component interfaces
|
|
207
|
+
│ │ └── integration-points.md # Dependency graph + checkpoints
|
|
208
|
+
│ ├── domains/
|
|
209
|
+
│ │ └── {domain-name}/
|
|
210
|
+
│ │ ├── scope.md # What this domain owns
|
|
211
|
+
│ │ ├── tasks.md # Atomic task list
|
|
212
|
+
│ │ └── constraints.md # Rules and boundaries
|
|
213
|
+
│ ├── milestones/ # Archived completed milestones
|
|
214
|
+
│ │ └── {milestone-name}-{date}/
|
|
215
|
+
│ │ ├── summary.md
|
|
216
|
+
│ │ ├── progress.md
|
|
217
|
+
│ │ ├── verify-report.md
|
|
218
|
+
│ │ ├── contracts/
|
|
219
|
+
│ │ └── domains/
|
|
220
|
+
│ └── scan/ # Codebase analysis outputs
|
|
221
|
+
│ ├── architecture.md
|
|
222
|
+
│ ├── business-rules.md
|
|
223
|
+
│ ├── security.md
|
|
224
|
+
│ └── quality.md
|
|
225
|
+
└── src/
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
---
|
|
229
|
+
|
|
230
|
+
## Stack Rules Engine
|
|
231
|
+
|
|
232
|
+
GSD-T auto-detects your project's tech stack and injects mandatory best-practice rules into subagent prompts at execute-time. This ensures stack conventions are enforced at the same weight as contract compliance — violations are task failures, not warnings.
|
|
233
|
+
|
|
234
|
+
### How It Works
|
|
235
|
+
|
|
236
|
+
1. At subagent spawn time, GSD-T reads project manifest files to detect the active stack(s).
|
|
237
|
+
2. Universal rules (`templates/stacks/_security.md`, `_auth.md`) are **always** injected.
|
|
238
|
+
3. Stack-specific rules are injected when the corresponding stack is detected.
|
|
239
|
+
4. Project-level overrides in `.gsd-t/stacks/` replace global files of the same name.
|
|
240
|
+
5. Rules are appended to the subagent prompt as a `## Stack Rules (MANDATORY)` section.
|
|
241
|
+
|
|
242
|
+
### Stack Detection (27 files)
|
|
243
|
+
|
|
244
|
+
| Project File | Detected Stack(s) |
|
|
245
|
+
|---|---|
|
|
246
|
+
| *(always)* | `_security.md`, `_auth.md` |
|
|
247
|
+
| `package.json` with `"react"` | `react.md` |
|
|
248
|
+
| `package.json` with `"react-native"` | `react-native.md` |
|
|
249
|
+
| `package.json` with `"next"` | `nextjs.md` |
|
|
250
|
+
| `package.json` with `"vue"` | `vue.md` |
|
|
251
|
+
| `package.json` with `"typescript"` or `tsconfig.json` | `typescript.md` |
|
|
252
|
+
| `package.json` with `"tailwindcss"` | `tailwind.md` |
|
|
253
|
+
| `package.json` with `"express"`, `"fastify"`, `"hono"`, or `"koa"` | `node-api.md`, `rest-api.md` |
|
|
254
|
+
| `package.json` with `"vite"` | `vite.md` |
|
|
255
|
+
| `package.json` with `"@supabase/supabase-js"` | `supabase.md` |
|
|
256
|
+
| `package.json` with `"firebase"` | `firebase.md` |
|
|
257
|
+
| `package.json` with `"graphql"` or `"@apollo/server"` | `graphql.md` |
|
|
258
|
+
| `package.json` with `"zustand"` | `zustand.md` |
|
|
259
|
+
| `package.json` with `"@reduxjs/toolkit"` | `redux.md` |
|
|
260
|
+
| `package.json` with `"prisma"` or `"@prisma/client"` | `prisma.md` |
|
|
261
|
+
| `package.json` with `"pg"`, `"knex"`, or `"drizzle-orm"` | `postgresql.md` |
|
|
262
|
+
| `package.json` with `"neo4j-driver"` | `neo4j.md` |
|
|
263
|
+
| `package.json` with `"bullmq"`, `"bull"`, `"amqplib"`, or `"@aws-sdk/client-sqs"` | `queues.md` |
|
|
264
|
+
| `package.json` with `"openai"`, `"anthropic"`, `"langchain"` | `llm.md` |
|
|
265
|
+
| `Dockerfile` or `compose.yaml` | `docker.md` |
|
|
266
|
+
| `.github/workflows/*.yml` | `github-actions.md` |
|
|
267
|
+
| `playwright.config.*` | `playwright.md` |
|
|
268
|
+
| `requirements.txt` or `pyproject.toml` | `python.md` |
|
|
269
|
+
| `requirements.txt` with `fastapi` | `fastapi.md` |
|
|
270
|
+
| `requirements.txt` with `celery`, `dramatiq`, `rq`, or `arq` | `queues.md` |
|
|
271
|
+
| `requirements.txt` with `openai`, `anthropic`, `langchain` | `llm.md` |
|
|
272
|
+
| `pubspec.yaml` | `flutter.md` |
|
|
273
|
+
|
|
274
|
+
### Commands That Inject Stack Rules
|
|
275
|
+
|
|
276
|
+
`gsd-t-execute`, `gsd-t-quick`, `gsd-t-integrate`, `gsd-t-wave`, `gsd-t-debug`
|
|
277
|
+
|
|
278
|
+
### Extending
|
|
279
|
+
|
|
280
|
+
Drop a `.md` file into `templates/stacks/` to add a new stack. Files prefixed with `_` are universal (always injected). Files without a prefix are stack-specific (injected only when detected). If the `stacks/` directory is missing, detection skips silently — no error.
|
|
281
|
+
|
|
282
|
+
---
|
|
283
|
+
|
|
284
|
+
## Headless Mode
|
|
285
|
+
|
|
286
|
+
Run GSD-T non-interactively in CI/CD pipelines or automated workflows.
|
|
287
|
+
|
|
288
|
+
### headless exec
|
|
289
|
+
|
|
290
|
+
```bash
|
|
291
|
+
gsd-t headless verify --json --timeout=1200 # Run verify non-interactively
|
|
292
|
+
gsd-t headless execute --json # Execute tasks without interactive prompts
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
### headless query
|
|
296
|
+
|
|
297
|
+
```bash
|
|
298
|
+
gsd-t headless query status # Project state — no LLM, <100ms
|
|
299
|
+
gsd-t headless query domains # Domain list with status
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
### headless debug-loop
|
|
303
|
+
|
|
304
|
+
Compaction-proof automated test-fix-retest cycles. Each iteration runs as a separate `claude -p` session with fresh context. A cumulative debug ledger (`.gsd-t/debug-state.jsonl`) preserves all hypothesis/fix/learning history across sessions. An anti-repetition preamble is injected into each session to prevent retrying failed approaches.
|
|
305
|
+
|
|
306
|
+
```bash
|
|
307
|
+
gsd-t headless --debug-loop [--max-iterations=N] [--test-cmd=CMD] [--fix-scope=PATTERN] [--json] [--log]
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
**Flags:**
|
|
311
|
+
|
|
312
|
+
| Flag | Default | Description |
|
|
313
|
+
|--------------------|---------|-------------|
|
|
314
|
+
| `--max-iterations` | 20 | Hard ceiling on iterations |
|
|
315
|
+
| `--test-cmd` | (auto) | Override test command (auto-detected from project) |
|
|
316
|
+
| `--fix-scope` | (all) | Limit fix scope to specific files or patterns |
|
|
317
|
+
| `--json` | false | Structured JSON output after each iteration |
|
|
318
|
+
| `--log` | false | Write per-iteration logs to `.gsd-t/` |
|
|
319
|
+
|
|
320
|
+
**Escalation tiers:**
|
|
321
|
+
|
|
322
|
+
| Iterations | Model | Behavior |
|
|
323
|
+
|------------|--------|----------|
|
|
324
|
+
| 1–5 | sonnet | Standard debug — one fix per session |
|
|
325
|
+
| 6–15 | opus | Deeper reasoning — reads full ledger, may attempt multi-file fixes |
|
|
326
|
+
| 16–20 | STOP | Write full diagnostic summary, present to user, exit code 4 |
|
|
327
|
+
|
|
328
|
+
**Exit codes:** `0` all tests pass · `1` max iterations reached · `2` compaction error · `3` process error · `4` needs human decision
|
|
329
|
+
|
|
330
|
+
**Auto-escalation from commands:** `gsd-t-execute`, `gsd-t-test-sync`, `gsd-t-verify`, `gsd-t-debug`, and `gsd-t-wave` delegate to `--debug-loop` automatically after 2 failed in-context fix attempts.
|
|
331
|
+
|
|
332
|
+
---
|
|
333
|
+
|
|
334
|
+
## Key Principles
|
|
335
|
+
|
|
336
|
+
1. **Contracts are the source of truth.** Code implements contracts, not the other way around. If code and contract disagree, fix one or the other — never leave them inconsistent.
|
|
337
|
+
|
|
338
|
+
2. **Domains own files exclusively.** No two domains should modify the same file. If they need shared state, that's a contract.
|
|
339
|
+
|
|
340
|
+
3. **Impact before execution.** Always analyze downstream effects before making changes. Surprises are expensive.
|
|
341
|
+
|
|
342
|
+
4. **Tests stay synced.** Every code change triggers test analysis. Gaps are caught immediately, not in production.
|
|
343
|
+
|
|
344
|
+
5. **State survives sessions.** Everything is in `.gsd-t/`. A fresh Claude Code session can resume from any point by reading the state files.
|
|
345
|
+
|
|
346
|
+
6. **Plan is single-brain, execute is multi-brain.** Planning, impact analysis, and integration require full context (always solo). Execution and verification can parallelize.
|
|
347
|
+
|
|
348
|
+
7. **Every decision is logged.** The Decision Log in progress.md captures why, not just what. Future sessions don't need to re-derive decisions.
|
|
349
|
+
|
|
350
|
+
---
|
|
351
|
+
|
|
352
|
+
## Enabling Agent Teams
|
|
353
|
+
|
|
354
|
+
Agent Teams is an experimental feature. Enable it:
|
|
355
|
+
|
|
356
|
+
```bash
|
|
357
|
+
# Environment variable
|
|
358
|
+
export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
|
|
359
|
+
|
|
360
|
+
# Or in settings.json
|
|
361
|
+
{ "experimental": { "agentTeams": true } }
|
|
362
|
+
```
|
|
363
|
+
|
|
364
|
+
Teams are optional — all commands work in solo mode without teams enabled.
|
|
365
|
+
|
|
366
|
+
### When to Use Teams
|
|
367
|
+
|
|
368
|
+
- 3+ domains with independent starting work
|
|
369
|
+
- Codebase scanning and feature impact analysis
|
|
370
|
+
- Complex design questions with multiple viable approaches
|
|
371
|
+
- Verification of large milestones
|
|
372
|
+
- Debugging cross-domain issues
|
|
373
|
+
|
|
374
|
+
---
|
|
375
|
+
|
|
376
|
+
## Installation
|
|
377
|
+
|
|
378
|
+
Copy all `.md` files from this package to `~/.claude/commands/`:
|
|
379
|
+
|
|
380
|
+
```bash
|
|
381
|
+
# Windows
|
|
382
|
+
copy *.md %USERPROFILE%\.claude\commands\
|
|
383
|
+
|
|
384
|
+
# Mac/Linux
|
|
385
|
+
cp *.md ~/.claude/commands/
|
|
386
|
+
```
|
|
387
|
+
|
|
388
|
+
Verify with: `/user:gsd-t-help`
|
|
389
|
+
|
|
390
|
+
---
|
|
391
|
+
|
|
392
|
+
## Configuration
|
|
393
|
+
|
|
394
|
+
GSD-T respects your project's `CLAUDE.md` for conventions and autonomy level.
|
|
395
|
+
|
|
396
|
+
### Autonomy Levels
|
|
397
|
+
|
|
398
|
+
| Level | Phase Behavior |
|
|
399
|
+
|-------|---------------|
|
|
400
|
+
| **Level 1: Supervised** | Pauses at each phase for confirmation |
|
|
401
|
+
| **Level 2: Standard** | Pauses at milestones |
|
|
402
|
+
| **Level 3: Full Auto** (default) | Auto-advances through all phases. Only stops for: Destructive Action Guard, impact BLOCK verdicts, unrecoverable errors (after 2 fix attempts), and the Discuss phase |
|
|
403
|
+
|
|
404
|
+
Set in your project's `CLAUDE.md` under `## Autonomy Level`.
|
|
405
|
+
|
|
406
|
+
Recommended `.gsd-t/config.json`:
|
|
407
|
+
|
|
408
|
+
```json
|
|
409
|
+
{
|
|
410
|
+
"mode": "yolo",
|
|
411
|
+
"model_profile": "quality",
|
|
412
|
+
"workflow": {
|
|
413
|
+
"research": true,
|
|
414
|
+
"impact_check": true,
|
|
415
|
+
"test_sync": true,
|
|
416
|
+
"verifier": true
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
```
|
|
420
|
+
|
|
421
|
+
---
|
|
422
|
+
|
|
423
|
+
## License
|
|
424
|
+
|
|
425
|
+
MIT
|