@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
|
@@ -1,111 +1,111 @@
|
|
|
1
|
-
# GSD-T: Populate — Auto-Populate Documentation from Existing Codebase
|
|
2
|
-
|
|
3
|
-
Scan this codebase and populate the GSD-T documentation. Analyze the actual code — don't ask me questions.
|
|
4
|
-
|
|
5
|
-
## For docs/requirements.md:
|
|
6
|
-
- Scan routes/endpoints/UI to identify functional requirements (REQ-###)
|
|
7
|
-
- Scan package.json/requirements.txt/configs for technical requirements (TECH-###)
|
|
8
|
-
- Scan tests, configs, README for non-functional requirements (NFR-###)
|
|
9
|
-
- Cross-reference tests to populate the Test Coverage table
|
|
10
|
-
|
|
11
|
-
## For docs/architecture.md:
|
|
12
|
-
- Write a System Overview from the folder structure and entry points
|
|
13
|
-
- Document each major Component: purpose, location, dependencies, key methods
|
|
14
|
-
- Extract Data Models from schema files, migrations, or ORM models (fields, types, relationships, indexes)
|
|
15
|
-
- Document API Structure from route definitions (endpoints, methods, auth, request/response)
|
|
16
|
-
- Identify External Integrations from API clients, SDKs, env vars
|
|
17
|
-
- Note any Design Decisions found in comments, README, or ADR files
|
|
18
|
-
|
|
19
|
-
## For docs/workflows.md:
|
|
20
|
-
- Trace User Workflows from routes/handlers (registration, login, core features)
|
|
21
|
-
- Document Technical Workflows from cron jobs, queue workers, scheduled tasks
|
|
22
|
-
- Document API Workflows for complex multi-step operations
|
|
23
|
-
- Document Integration Workflows for any external system syncing
|
|
24
|
-
|
|
25
|
-
## For docs/infrastructure.md:
|
|
26
|
-
- Extract Quick Reference commands from package.json scripts, Makefile, README
|
|
27
|
-
- Document Local Development setup from README, docker-compose, .env.example
|
|
28
|
-
- Document Database commands from migrations, scripts, ORM config
|
|
29
|
-
- List Credentials and Secrets from .env.example (local) and any secret manager configs
|
|
30
|
-
- Document Deployment from CI/CD configs, Dockerfiles, cloud configs
|
|
31
|
-
- Document Logging and Monitoring from any logging setup or dashboard configs
|
|
32
|
-
|
|
33
|
-
## Graph-Enhanced Population
|
|
34
|
-
|
|
35
|
-
If `.gsd-t/graph/meta.json` exists (graph index is available):
|
|
36
|
-
1. Use `getEntities` and `getImports` to auto-populate architecture docs more accurately — entity relationships map directly to component diagrams and data flow sections
|
|
37
|
-
2. Use `getEntitiesByDomain` to pre-fill domain scope files with precise file ownership
|
|
38
|
-
|
|
39
|
-
If graph is not available, rely on filesystem scanning as usual.
|
|
40
|
-
|
|
41
|
-
## For .gsd-t/progress.md:
|
|
42
|
-
- Set Milestone 1: "Documentation Baseline"
|
|
43
|
-
- Set status: VERIFIED
|
|
44
|
-
- Log today session: "GSD-T documentation populated from existing codebase"
|
|
45
|
-
|
|
46
|
-
## Reconstruct Decision Log from Git History
|
|
47
|
-
|
|
48
|
-
Rebuild the progress.md Decision Log from the project's commit history:
|
|
49
|
-
|
|
50
|
-
1. **Read existing Decision Log entries** — note what's already recorded to avoid duplicates
|
|
51
|
-
2. **Run `git log --reverse --format="%ai|%s"`** — get all commits with timestamps and messages
|
|
52
|
-
3. **Filter meaningful commits** — skip merge commits, trivial whitespace/formatting-only commits
|
|
53
|
-
4. **Generate entries** in the standard format:
|
|
54
|
-
```
|
|
55
|
-
- YYYY-MM-DD HH:MM: {commit summary} — {brief context from commit message}
|
|
56
|
-
```
|
|
57
|
-
5. **Group by date** — if multiple commits on the same day cover the same logical change, combine them into one entry rather than listing each commit separately
|
|
58
|
-
6. **Merge with existing entries** — insert reconstructed entries chronologically, keeping any hand-written entries that already exist (they may have richer context than commit messages)
|
|
59
|
-
7. **Mark the reconstruction** — add a note at the top of the reconstructed section:
|
|
60
|
-
```
|
|
61
|
-
(Entries before {date} reconstructed from git history)
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
### What to include:
|
|
65
|
-
- Feature additions, bug fixes, refactors
|
|
66
|
-
- Config/dependency changes
|
|
67
|
-
- Documentation updates
|
|
68
|
-
- Version bumps and releases
|
|
69
|
-
- Any commit that modified documents, scripts, or code
|
|
70
|
-
|
|
71
|
-
### What to exclude:
|
|
72
|
-
- Pure merge commits with no additional context
|
|
73
|
-
- Commits that only change whitespace or formatting
|
|
74
|
-
- Duplicate entries already in the Decision Log
|
|
75
|
-
|
|
76
|
-
---
|
|
77
|
-
|
|
78
|
-
## Document Ripple
|
|
79
|
-
|
|
80
|
-
After populating all documentation, verify cross-references:
|
|
81
|
-
|
|
82
|
-
### Always update:
|
|
83
|
-
1. **`.gsd-t/progress.md`** — Set milestone and log the population session
|
|
84
|
-
2. **`CLAUDE.md`** — If it exists, verify it references all populated docs. If conventions were discovered during population, add them
|
|
85
|
-
|
|
86
|
-
### Check if affected:
|
|
87
|
-
3. **`.gsd-t/contracts/`** — If API or schema contracts exist, verify they match what was documented in architecture/requirements
|
|
88
|
-
4. **`.gsd-t/techdebt.md`** — If population revealed inconsistencies, missing tests, or debt, log items
|
|
89
|
-
5. **`README.md`** — If it exists, verify it's consistent with the populated docs. If not, update it
|
|
90
|
-
|
|
91
|
-
### Skip what's not affected.
|
|
92
|
-
|
|
93
|
-
## Test Verification
|
|
94
|
-
|
|
95
|
-
After populating documentation:
|
|
96
|
-
|
|
97
|
-
1. **Run existing tests**: Execute the full test suite to establish the current baseline
|
|
98
|
-
2. **Verify passing**: Document what passes and what fails — this is the project's test starting point
|
|
99
|
-
3. **Cross-reference**: Verify that test files mentioned in `docs/requirements.md` Test Coverage table actually exist and pass
|
|
100
|
-
|
|
101
|
-
---
|
|
102
|
-
|
|
103
|
-
Replace all "{Project Name}" with the actual project name (from package.json, README, or folder name).
|
|
104
|
-
Replace all "{Date}" with today date.
|
|
105
|
-
Fill every section with real findings. If a section has nothing (e.g., no cron jobs), write "None" instead of placeholder text.
|
|
106
|
-
|
|
107
|
-
$ARGUMENTS
|
|
108
|
-
|
|
109
|
-
## Auto-Clear
|
|
110
|
-
|
|
111
|
-
All work is committed to project files. Execute `/clear` to free the context window for the next command.
|
|
1
|
+
# GSD-T: Populate — Auto-Populate Documentation from Existing Codebase
|
|
2
|
+
|
|
3
|
+
Scan this codebase and populate the GSD-T documentation. Analyze the actual code — don't ask me questions.
|
|
4
|
+
|
|
5
|
+
## For docs/requirements.md:
|
|
6
|
+
- Scan routes/endpoints/UI to identify functional requirements (REQ-###)
|
|
7
|
+
- Scan package.json/requirements.txt/configs for technical requirements (TECH-###)
|
|
8
|
+
- Scan tests, configs, README for non-functional requirements (NFR-###)
|
|
9
|
+
- Cross-reference tests to populate the Test Coverage table
|
|
10
|
+
|
|
11
|
+
## For docs/architecture.md:
|
|
12
|
+
- Write a System Overview from the folder structure and entry points
|
|
13
|
+
- Document each major Component: purpose, location, dependencies, key methods
|
|
14
|
+
- Extract Data Models from schema files, migrations, or ORM models (fields, types, relationships, indexes)
|
|
15
|
+
- Document API Structure from route definitions (endpoints, methods, auth, request/response)
|
|
16
|
+
- Identify External Integrations from API clients, SDKs, env vars
|
|
17
|
+
- Note any Design Decisions found in comments, README, or ADR files
|
|
18
|
+
|
|
19
|
+
## For docs/workflows.md:
|
|
20
|
+
- Trace User Workflows from routes/handlers (registration, login, core features)
|
|
21
|
+
- Document Technical Workflows from cron jobs, queue workers, scheduled tasks
|
|
22
|
+
- Document API Workflows for complex multi-step operations
|
|
23
|
+
- Document Integration Workflows for any external system syncing
|
|
24
|
+
|
|
25
|
+
## For docs/infrastructure.md:
|
|
26
|
+
- Extract Quick Reference commands from package.json scripts, Makefile, README
|
|
27
|
+
- Document Local Development setup from README, docker-compose, .env.example
|
|
28
|
+
- Document Database commands from migrations, scripts, ORM config
|
|
29
|
+
- List Credentials and Secrets from .env.example (local) and any secret manager configs
|
|
30
|
+
- Document Deployment from CI/CD configs, Dockerfiles, cloud configs
|
|
31
|
+
- Document Logging and Monitoring from any logging setup or dashboard configs
|
|
32
|
+
|
|
33
|
+
## Graph-Enhanced Population
|
|
34
|
+
|
|
35
|
+
If `.gsd-t/graph/meta.json` exists (graph index is available):
|
|
36
|
+
1. Use `getEntities` and `getImports` to auto-populate architecture docs more accurately — entity relationships map directly to component diagrams and data flow sections
|
|
37
|
+
2. Use `getEntitiesByDomain` to pre-fill domain scope files with precise file ownership
|
|
38
|
+
|
|
39
|
+
If graph is not available, rely on filesystem scanning as usual.
|
|
40
|
+
|
|
41
|
+
## For .gsd-t/progress.md:
|
|
42
|
+
- Set Milestone 1: "Documentation Baseline"
|
|
43
|
+
- Set status: VERIFIED
|
|
44
|
+
- Log today session: "GSD-T documentation populated from existing codebase"
|
|
45
|
+
|
|
46
|
+
## Reconstruct Decision Log from Git History
|
|
47
|
+
|
|
48
|
+
Rebuild the progress.md Decision Log from the project's commit history:
|
|
49
|
+
|
|
50
|
+
1. **Read existing Decision Log entries** — note what's already recorded to avoid duplicates
|
|
51
|
+
2. **Run `git log --reverse --format="%ai|%s"`** — get all commits with timestamps and messages
|
|
52
|
+
3. **Filter meaningful commits** — skip merge commits, trivial whitespace/formatting-only commits
|
|
53
|
+
4. **Generate entries** in the standard format:
|
|
54
|
+
```
|
|
55
|
+
- YYYY-MM-DD HH:MM: {commit summary} — {brief context from commit message}
|
|
56
|
+
```
|
|
57
|
+
5. **Group by date** — if multiple commits on the same day cover the same logical change, combine them into one entry rather than listing each commit separately
|
|
58
|
+
6. **Merge with existing entries** — insert reconstructed entries chronologically, keeping any hand-written entries that already exist (they may have richer context than commit messages)
|
|
59
|
+
7. **Mark the reconstruction** — add a note at the top of the reconstructed section:
|
|
60
|
+
```
|
|
61
|
+
(Entries before {date} reconstructed from git history)
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### What to include:
|
|
65
|
+
- Feature additions, bug fixes, refactors
|
|
66
|
+
- Config/dependency changes
|
|
67
|
+
- Documentation updates
|
|
68
|
+
- Version bumps and releases
|
|
69
|
+
- Any commit that modified documents, scripts, or code
|
|
70
|
+
|
|
71
|
+
### What to exclude:
|
|
72
|
+
- Pure merge commits with no additional context
|
|
73
|
+
- Commits that only change whitespace or formatting
|
|
74
|
+
- Duplicate entries already in the Decision Log
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Document Ripple
|
|
79
|
+
|
|
80
|
+
After populating all documentation, verify cross-references:
|
|
81
|
+
|
|
82
|
+
### Always update:
|
|
83
|
+
1. **`.gsd-t/progress.md`** — Set milestone and log the population session
|
|
84
|
+
2. **`CLAUDE.md`** — If it exists, verify it references all populated docs. If conventions were discovered during population, add them
|
|
85
|
+
|
|
86
|
+
### Check if affected:
|
|
87
|
+
3. **`.gsd-t/contracts/`** — If API or schema contracts exist, verify they match what was documented in architecture/requirements
|
|
88
|
+
4. **`.gsd-t/techdebt.md`** — If population revealed inconsistencies, missing tests, or debt, log items
|
|
89
|
+
5. **`README.md`** — If it exists, verify it's consistent with the populated docs. If not, update it
|
|
90
|
+
|
|
91
|
+
### Skip what's not affected.
|
|
92
|
+
|
|
93
|
+
## Test Verification
|
|
94
|
+
|
|
95
|
+
After populating documentation:
|
|
96
|
+
|
|
97
|
+
1. **Run existing tests**: Execute the full test suite to establish the current baseline
|
|
98
|
+
2. **Verify passing**: Document what passes and what fails — this is the project's test starting point
|
|
99
|
+
3. **Cross-reference**: Verify that test files mentioned in `docs/requirements.md` Test Coverage table actually exist and pass
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
Replace all "{Project Name}" with the actual project name (from package.json, README, or folder name).
|
|
104
|
+
Replace all "{Date}" with today date.
|
|
105
|
+
Fill every section with real findings. If a section has nothing (e.g., no cron jobs), write "None" instead of placeholder text.
|
|
106
|
+
|
|
107
|
+
$ARGUMENTS
|
|
108
|
+
|
|
109
|
+
## Auto-Clear
|
|
110
|
+
|
|
111
|
+
All work is committed to project files. Execute `/clear` to free the context window for the next command.
|