@tekyzinc/gsd-t 2.51.10 → 2.53.11

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 (100) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +379 -373
  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 -482
  34. package/commands/gsd-t-discuss.md +174 -174
  35. package/commands/gsd-t-execute.md +758 -715
  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-scan-setup.md +1 -5
  41. package/commands/gsd-t-init.md +314 -280
  42. package/commands/gsd-t-integrate.md +365 -333
  43. package/commands/gsd-t-milestone.md +87 -87
  44. package/commands/gsd-t-partition.md +442 -361
  45. package/commands/gsd-t-pause.md +82 -82
  46. package/commands/gsd-t-plan.md +345 -344
  47. package/commands/gsd-t-populate.md +111 -111
  48. package/commands/gsd-t-prd.md +326 -326
  49. package/commands/gsd-t-project.md +211 -211
  50. package/commands/gsd-t-promote-debt.md +123 -123
  51. package/commands/gsd-t-prompt.md +137 -137
  52. package/commands/gsd-t-qa.md +266 -266
  53. package/commands/gsd-t-quick.md +357 -315
  54. package/commands/gsd-t-reflect.md +134 -134
  55. package/commands/gsd-t-resume.md +72 -72
  56. package/commands/gsd-t-scan.md +615 -615
  57. package/commands/gsd-t-setup.md +76 -0
  58. package/commands/gsd-t-status.md +192 -166
  59. package/commands/gsd-t-test-sync.md +381 -381
  60. package/commands/gsd-t-triage-and-merge.md +171 -171
  61. package/commands/gsd-t-verify.md +382 -382
  62. package/commands/gsd-t-visualize.md +118 -118
  63. package/commands/gsd-t-wave.md +401 -378
  64. package/docs/GSD-T-README.md +425 -424
  65. package/docs/architecture.md +385 -369
  66. package/docs/harness-design-analysis.md +371 -0
  67. package/docs/infrastructure.md +205 -205
  68. package/docs/prd-graph-engine.md +398 -398
  69. package/docs/prd-gsd2-hybrid.md +559 -559
  70. package/docs/prd-harness-evolution.md +583 -0
  71. package/docs/requirements.md +14 -0
  72. package/docs/workflows.md +226 -226
  73. package/examples/.gsd-t/domains/example-domain/scope.md +13 -13
  74. package/package.json +40 -40
  75. package/scripts/gsd-t-auto-route.js +39 -39
  76. package/scripts/gsd-t-dashboard-mockup.html +1143 -1143
  77. package/scripts/gsd-t-dashboard-server.js +171 -171
  78. package/scripts/gsd-t-dashboard.html +262 -262
  79. package/scripts/gsd-t-event-writer.js +128 -128
  80. package/scripts/gsd-t-statusline.js +94 -94
  81. package/scripts/gsd-t-tools.js +175 -175
  82. package/templates/CLAUDE-global.md +638 -634
  83. package/templates/CLAUDE-project.md +24 -0
  84. package/templates/backlog-settings.md +18 -18
  85. package/templates/backlog.md +1 -1
  86. package/templates/progress.md +40 -40
  87. package/templates/shared-services-contract.md +60 -60
  88. package/templates/stacks/desktop.ini +2 -2
  89. package/bin/desktop.ini +0 -2
  90. package/commands/desktop.ini +0 -2
  91. package/docs/ci-examples/desktop.ini +0 -2
  92. package/docs/desktop.ini +0 -2
  93. package/examples/.gsd-t/contracts/desktop.ini +0 -2
  94. package/examples/.gsd-t/desktop.ini +0 -2
  95. package/examples/.gsd-t/domains/desktop.ini +0 -2
  96. package/examples/.gsd-t/domains/example-domain/desktop.ini +0 -2
  97. package/examples/desktop.ini +0 -2
  98. package/examples/rules/desktop.ini +0 -2
  99. package/scripts/desktop.ini +0 -2
  100. 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.