@tekyzinc/gsd-t 2.0.1 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -17,7 +17,7 @@ A methodology for reliable, parallelizable development using Claude Code with op
17
17
  npx @tekyzinc/gsd-t install
18
18
  ```
19
19
 
20
- This installs 23 GSD-T commands + 3 utility commands to `~/.claude/commands/` and the global CLAUDE.md to `~/.claude/CLAUDE.md`. Works on Windows, Mac, and Linux.
20
+ This installs 24 GSD-T commands + 3 utility commands to `~/.claude/commands/` and the global CLAUDE.md to `~/.claude/CLAUDE.md`. Works on Windows, Mac, and Linux.
21
21
 
22
22
  ### Start Using It
23
23
 
@@ -103,6 +103,7 @@ This will replace changed command files, back up your CLAUDE.md if customized, a
103
103
  | `/user:gsd-t-feature` | Major feature → impact analysis + milestones |
104
104
  | `/user:gsd-t-scan` | Deep codebase analysis → techdebt.md |
105
105
  | `/user:gsd-t-promote-debt` | Convert techdebt items to milestones |
106
+ | `/user:gsd-t-populate` | Auto-populate docs from existing codebase |
106
107
 
107
108
  ### Milestone Workflow
108
109
 
@@ -172,9 +173,10 @@ This will replace changed command files, back up your CLAUDE.md if customized, a
172
173
  your-project/
173
174
  ├── CLAUDE.md
174
175
  ├── docs/
175
- │ ├── requirements.md
176
- │ ├── architecture.md
177
- └── ...
176
+ │ ├── requirements.md # Functional + technical requirements
177
+ │ ├── architecture.md # System design, components, data flow
178
+ ├── workflows.md # User journeys, technical processes
179
+ │ └── infrastructure.md # Dev setup, DB, cloud, deployment
178
180
  ├── .gsd-t/
179
181
  │ ├── progress.md # Master state file
180
182
  │ ├── roadmap.md # Milestone roadmap
@@ -249,8 +251,8 @@ get-stuff-done-teams/
249
251
  ├── LICENSE
250
252
  ├── bin/
251
253
  │ └── gsd-t.js # CLI installer
252
- ├── commands/ # 25 slash commands
253
- │ ├── gsd-t-*.md # 22 GSD-T workflow commands
254
+ ├── commands/ # 27 slash commands
255
+ │ ├── gsd-t-*.md # 24 GSD-T workflow commands
254
256
  │ ├── branch.md # Git branch helper
255
257
  │ ├── checkin.md # Git commit/push helper
256
258
  │ └── Claude-md.md # Reload CLAUDE.md directives
@@ -266,8 +268,8 @@ get-stuff-done-teams/
266
268
  │ ├── settings.json
267
269
  │ └── .gsd-t/
268
270
  ├── docs/
271
+ │ ├── GSD-T-README.md # Detailed methodology + usage guide
269
272
  │ └── methodology.md
270
- └── GSD-T-README.md
271
273
  ```
272
274
 
273
275
  ---
@@ -84,7 +84,26 @@ Create `summary.md`:
84
84
  {Summary of files created/modified/deleted}
85
85
  ```
86
86
 
87
- ## Step 5: Clean Working State
87
+ ## Step 5: Bump Version
88
+
89
+ GSD-T tracks project version in `.gsd-t/progress.md` using semantic versioning: `Major.Minor.Patch`
90
+
91
+ - **Major** (X.0.0): Breaking changes, major rework, v1 launch
92
+ - **Minor** (0.X.0): New features, completed feature milestones
93
+ - **Patch** (0.0.X): Bug fixes, minor improvements, cleanup milestones
94
+
95
+ Determine the version bump based on the milestone:
96
+ 1. Read current version from `.gsd-t/progress.md`
97
+ 2. Assess milestone scope:
98
+ - Was this a major/breaking milestone? → bump **major**, reset minor and patch to 0
99
+ - Was this a feature milestone? → bump **minor**, reset patch to 0
100
+ - Was this a bugfix/cleanup/debt milestone? → bump **patch**
101
+ 3. Update version in `.gsd-t/progress.md`
102
+ 4. If a package manifest exists (`package.json`, `pyproject.toml`, `Cargo.toml`, etc.), update its version to match
103
+ 5. Update `README.md` version badge or version reference if present
104
+ 6. Include version in the milestone summary and git tag
105
+
106
+ ## Step 6: Clean Working State
88
107
 
89
108
  Reset `.gsd-t/` for next milestone:
90
109
 
@@ -97,30 +116,42 @@ Reset `.gsd-t/` for next milestone:
97
116
  ```markdown
98
117
  # GSD-T Progress
99
118
 
119
+ ## Version: {new version}
100
120
  ## Current Milestone
101
121
  None — ready for next milestone
102
122
 
103
123
  ## Completed Milestones
104
- | Milestone | Completed | Tag |
105
- |-----------|-----------|-----|
106
- | {name} | {date} | {tag} |
107
- | {previous} | {date} | {tag} |
124
+ | Milestone | Version | Completed | Tag |
125
+ |-----------|---------|-----------|-----|
126
+ | {name} | {version} | {date} | v{version} |
127
+ | {previous} | {version} | {date} | v{version} |
108
128
 
109
129
  ## Decision Log
110
130
  {Keep the decision log — it's valuable context}
111
131
  ```
112
132
 
113
- ## Step 6: Create Git Tag
133
+ ## Step 7: Update README.md
134
+
135
+ If `README.md` exists, update it to reflect the completed milestone:
136
+ - Add or update a **Features** / **What's Included** section with capabilities delivered
137
+ - Update version number if displayed in README
138
+ - Update setup instructions if infrastructure changed
139
+ - Update tech stack if new dependencies were added
140
+ - Keep existing user content — merge, don't overwrite
141
+
142
+ If `README.md` doesn't exist, create one with project name, description, version, tech stack, setup instructions, and link to `docs/`.
143
+
144
+ ## Step 8: Create Git Tag
114
145
 
115
146
  ```bash
116
147
  # Stage any remaining .gsd-t changes
117
148
  git add .gsd-t/
118
149
 
119
150
  # Commit the archive
120
- git commit -m "milestone({milestone-name}): complete and archive"
151
+ git commit -m "milestone({milestone-name}): complete and archive v{version}"
121
152
 
122
- # Create annotated tag
123
- git tag -a "milestone/{milestone-name}" -m "Milestone: {name}
153
+ # Create annotated tag with version
154
+ git tag -a "v{version}" -m "v{version} — Milestone: {name}
124
155
 
125
156
  {Brief description from summary}
126
157
 
@@ -128,27 +159,28 @@ Domains: {list}
128
159
  Verified: {date}"
129
160
  ```
130
161
 
131
- ## Step 7: Report Completion
162
+ ## Step 9: Report Completion
132
163
 
133
164
  ```
134
- ✅ Milestone "{name}" completed!
165
+ ✅ Milestone "{name}" completed — v{version}
135
166
 
136
167
  📁 Archived to: .gsd-t/milestones/{name}-{date}/
137
- 🏷️ Tagged as: milestone/{name}
168
+ 🏷️ Tagged as: v{version}
138
169
 
139
170
  Summary:
171
+ - Version: {previous version} → {new version}
140
172
  - Domains completed: {N}
141
173
  - Tasks completed: {N}
142
174
  - Contracts: {N} defined/updated
143
175
  - Tests: {N} added/updated
144
176
 
145
177
  Next steps:
146
- - Push tags: git push origin milestone/{name}
178
+ - Push tags: git push origin v{version}
147
179
  - Start next milestone: /user:gsd-t-milestone "{next name}"
148
180
  - Or view roadmap: /user:gsd-t-status
149
181
  ```
150
182
 
151
- ## Step 8: Update Roadmap (if exists)
183
+ ## Step 10: Update Roadmap (if exists)
152
184
 
153
185
  If `.gsd-t/roadmap.md` exists:
154
186
  - Mark this milestone as complete
@@ -44,6 +44,7 @@ UTILITIES
44
44
  quick Fast task with GSD-T guarantees
45
45
  debug Systematic debugging with state
46
46
  promote-debt Convert techdebt items to milestones
47
+ populate Auto-populate docs from existing codebase
47
48
 
48
49
  ───────────────────────────────────────────────────────────────────────────────
49
50
  Type /user:gsd-t-help {command} for detailed help on any command.
@@ -240,6 +241,12 @@ Use these when user asks for help on a specific command:
240
241
  - **Updates**: `.gsd-t/roadmap.md`, `.gsd-t/techdebt.md`
241
242
  - **Use when**: Ready to address technical debt items
242
243
 
244
+ ### populate
245
+ - **Summary**: Auto-populate all living docs from existing codebase analysis
246
+ - **Auto-invoked**: No
247
+ - **Updates**: `docs/requirements.md`, `docs/architecture.md`, `docs/workflows.md`, `docs/infrastructure.md`, `.gsd-t/progress.md`
248
+ - **Use when**: You have an existing codebase and want to fill docs with real findings instead of placeholders
249
+
243
250
  ## Unknown Command
244
251
 
245
252
  If user asks for help on unrecognized command:
@@ -37,6 +37,7 @@ Create `.gsd-t/progress.md`:
37
37
  # GSD-T Progress
38
38
 
39
39
  ## Project: {name from CLAUDE.md or $ARGUMENTS}
40
+ ## Version: 0.1.0
40
41
  ## Status: INITIALIZED
41
42
  ## Date: {today}
42
43
 
@@ -73,9 +74,10 @@ Create a starter template:
73
74
  {Languages, frameworks, services — fill this in}
74
75
 
75
76
  ## Documentation
76
- - Requirements: docs/requirements.md (if exists)
77
- - Architecture: docs/architecture.md (if exists)
78
- - Schema: docs/schema.md (if exists)
77
+ - Requirements: docs/requirements.md
78
+ - Architecture: docs/architecture.md
79
+ - Workflows: docs/workflows.md
80
+ - Infrastructure: docs/infrastructure.md
79
81
 
80
82
  ## Conventions
81
83
  - {Coding style, naming patterns — fill this in}
@@ -91,14 +93,30 @@ If `CLAUDE.md` exists but doesn't reference GSD-T, append the GSD-T section.
91
93
 
92
94
  ## Step 5: Create docs/ if Needed
93
95
 
94
- If no `docs/` directory:
96
+ If no `docs/` directory, create it with all 4 living document templates.
97
+ For each file, skip if it already exists:
98
+
95
99
  ```
96
100
  docs/
97
- ├── requirements.md — (create placeholder)
98
- └── architecture.md — (create placeholder)
101
+ ├── requirements.md — Functional, technical, and non-functional requirements
102
+ ├── architecture.md — System design, components, data flow, design decisions
103
+ ├── workflows.md — User journeys, technical processes, API flows
104
+ └── infrastructure.md — Dev setup, DB commands, cloud provisioning, deployment, credentials
99
105
  ```
100
106
 
101
- ## Step 6: Map Existing Codebase (if code exists)
107
+ These are the living documents that persist across milestones and keep institutional knowledge alive. The `infrastructure.md` is especially important — it captures the exact commands for provisioning cloud resources, setting up databases, managing secrets, and deploying, so this knowledge doesn't get lost between sessions.
108
+
109
+ ## Step 6: Ensure README.md Exists
110
+
111
+ If no `README.md` exists, create one with:
112
+ - Project name and brief description
113
+ - Tech stack summary
114
+ - Getting started / setup instructions (from existing configs or placeholder)
115
+ - Link to `docs/` for detailed documentation
116
+
117
+ If `README.md` exists, leave it as-is — don't overwrite user content during init.
118
+
119
+ ## Step 7: Map Existing Codebase (if code exists)
102
120
 
103
121
  If there's existing source code:
104
122
  1. Scan the codebase structure
@@ -107,7 +125,7 @@ If there's existing source code:
107
125
  4. Add findings to CLAUDE.md
108
126
  5. Log in progress.md: "Existing codebase analyzed — {summary}"
109
127
 
110
- ## Step 7: Report
128
+ ## Step 8: Report
111
129
 
112
130
  Tell the user:
113
131
  1. What was created
@@ -310,7 +310,65 @@ Estimated effort: {assessment}
310
310
  Can be scheduled: During next maintenance window
311
311
  ```
312
312
 
313
- ## Step 5: Update Project State
313
+ ## Step 5: Update Living Documents
314
+
315
+ The scan produces deep analysis in `.gsd-t/scan/`. Now cross-populate findings into the living docs so knowledge persists across milestones.
316
+
317
+ ### docs/architecture.md
318
+ Using findings from `.gsd-t/scan/architecture.md`, update or create `docs/architecture.md`:
319
+ - System overview (stack, structure, patterns)
320
+ - Component descriptions with locations and dependencies
321
+ - Data flow (request → handler → service → data layer → response)
322
+ - Data models from schema files or ORM definitions
323
+ - API structure from route definitions
324
+ - External integrations
325
+ - Design decisions found in code comments or configs
326
+
327
+ If the file exists, merge new findings — don't overwrite existing content.
328
+
329
+ ### docs/workflows.md
330
+ Using findings from `.gsd-t/scan/business-rules.md`, update or create `docs/workflows.md`:
331
+ - User workflows traced from routes/handlers (registration, login, core features)
332
+ - Technical workflows from cron jobs, queue workers, scheduled tasks
333
+ - API workflows for multi-step operations
334
+ - Integration workflows for external system syncing
335
+ - State machines and approval flows discovered in code
336
+
337
+ ### docs/infrastructure.md
338
+ Scan the codebase for operational knowledge and update or create `docs/infrastructure.md`:
339
+ - **Quick Reference commands** from package.json scripts, Makefile, README, CI/CD configs
340
+ - **Local development setup** from README, docker-compose, .env.example
341
+ - **Database commands** from migrations, seeds, ORM config, backup scripts
342
+ - **Cloud provisioning** from Terraform, CloudFormation, Pulumi, or deployment scripts
343
+ - **Credentials and secrets** from .env.example (names only, not values) and secret manager configs
344
+ - **Deployment** from CI/CD configs, Dockerfiles, cloud platform configs
345
+ - **Logging and monitoring** from any logging setup or dashboard configs
346
+
347
+ This is critical — infrastructure knowledge is the most commonly lost between sessions.
348
+
349
+ ### docs/requirements.md
350
+ Using all scan findings, update or create `docs/requirements.md`:
351
+ - Functional requirements discovered from routes, handlers, UI components
352
+ - Technical requirements from configs, package.json, runtime settings
353
+ - Non-functional requirements from performance configs, rate limits, caching
354
+
355
+ ### README.md
356
+ Update or create `README.md` with scan findings:
357
+ - Project name and description
358
+ - Tech stack and versions discovered
359
+ - Getting started / setup instructions (from infrastructure findings)
360
+ - Brief architecture overview
361
+ - Link to `docs/` for detailed documentation
362
+
363
+ If `README.md` exists, merge — update tech stack and setup sections but preserve the user's existing structure and custom content.
364
+
365
+ ### For all docs:
366
+ - If the file exists and has real content, **merge** — don't overwrite
367
+ - If the file exists with only placeholder text, **replace** with real findings
368
+ - If the file doesn't exist, **create** it
369
+ - Replace `{Project Name}` and `{Date}` tokens with actual values
370
+
371
+ ## Step 6: Update Project State
314
372
 
315
373
  If `.gsd-t/progress.md` exists:
316
374
  - Log scan in Decision Log
@@ -323,7 +381,7 @@ If `.gsd-t/roadmap.md` exists:
323
381
  If `CLAUDE.md` exists:
324
382
  - Suggest updates for any patterns or conventions discovered during scan
325
383
 
326
- ## Step 6: Report to User
384
+ ## Step 7: Report to User
327
385
 
328
386
  Present a summary:
329
387
  1. Architecture overview (brief)
@@ -76,6 +76,7 @@ GSD-T reads all state files and tells you exactly where you left off.
76
76
  | `/user:gsd-t-feature` | Major feature → impact analysis + milestones |
77
77
  | `/user:gsd-t-scan` | Deep codebase analysis → techdebt.md |
78
78
  | `/user:gsd-t-promote-debt` | Convert techdebt items to milestones |
79
+ | `/user:gsd-t-populate` | Auto-populate docs from existing codebase |
79
80
 
80
81
  ### Milestone Workflow
81
82
 
@@ -148,9 +149,10 @@ GSD-T reads all state files and tells you exactly where you left off.
148
149
  your-project/
149
150
  ├── CLAUDE.md # Project conventions + GSD-T reference
150
151
  ├── docs/
151
- │ ├── requirements.md
152
- │ ├── architecture.md
153
- └── ...
152
+ │ ├── requirements.md # Functional + technical requirements
153
+ │ ├── architecture.md # System design, components, data flow
154
+ ├── workflows.md # User journeys, technical processes
155
+ │ └── infrastructure.md # Dev setup, DB, cloud, deployment
154
156
  ├── .gsd-t/
155
157
  │ ├── progress.md # Master state file
156
158
  │ ├── roadmap.md # Milestone roadmap
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekyzinc/gsd-t",
3
- "version": "2.0.1",
3
+ "version": "2.1.0",
4
4
  "description": "GSD-T: Contract-Driven Development for Claude Code — 27 slash commands with impact analysis, test sync, and milestone archival",
5
5
  "author": "Tekyz, Inc.",
6
6
  "license": "MIT",
@@ -49,6 +49,7 @@ PROJECT or FEATURE or SCAN
49
49
  | `/user:gsd-t-status` | Cross-domain progress view |
50
50
  | `/user:gsd-t-debug` | Systematic debugging |
51
51
  | `/user:gsd-t-quick` | Fast task, respects contracts |
52
+ | `/user:gsd-t-populate` | Auto-populate docs from existing codebase |
52
53
  | `/user:gsd-t-resume` | Restore context, continue |
53
54
  | `/user:branch` | Create and switch to a new git branch |
54
55
  | `/user:checkin` | Stage, commit, and push all changes |
@@ -65,7 +66,8 @@ These documents MUST be maintained and referenced throughout development:
65
66
  | **Architecture** | `docs/architecture.md` | System design, components, data flow, decisions |
66
67
  | **Workflows** | `docs/workflows.md` | User journeys and technical process flows |
67
68
  | **Infrastructure** | `docs/infrastructure.md` | Commands, DB setup, server access, creds |
68
- | **Progress** | `.gsd-t/progress.md` | Current milestone/phase state |
69
+ | **README** | `README.md` | Project overview, setup, features |
70
+ | **Progress** | `.gsd-t/progress.md` | Current milestone/phase state + version |
69
71
  | **Contracts** | `.gsd-t/contracts/` | Interfaces between domains |
70
72
  | **Tech Debt** | `.gsd-t/techdebt.md` | Debt register from scans |
71
73
 
@@ -84,6 +86,21 @@ NEED TO UNDERSTAND SOMETHING?
84
86
  ```
85
87
 
86
88
 
89
+ # Versioning
90
+
91
+ GSD-T tracks project version in `.gsd-t/progress.md` using semantic versioning: `Major.Minor.Patch`
92
+
93
+ | Segment | Bumped When | Example |
94
+ |---------|-------------|---------|
95
+ | **Major** | Breaking changes, major rework, v1 launch | 1.0.0 → 2.0.0 |
96
+ | **Minor** | New features, completed feature milestones | 1.1.0 → 1.2.0 |
97
+ | **Patch** | Bug fixes, minor improvements, cleanup | 1.1.1 → 1.1.2 |
98
+
99
+ - Version is set during `gsd-t-init` (starts at `0.1.0`)
100
+ - Version is bumped during `gsd-t-complete-milestone` based on milestone scope
101
+ - Version is reflected in: `progress.md`, `README.md`, package manifest (if any), and git tags (`v{version}`)
102
+
103
+
87
104
  # Autonomous Execution Rules
88
105
 
89
106
  ## Prime Rule
@@ -1,6 +1,7 @@
1
1
  # GSD-T Progress
2
2
 
3
3
  ## Project: {Project Name}
4
+ ## Version: 0.1.0
4
5
  ## Status: INITIALIZED
5
6
  ## Date: {Date}
6
7