gsdd-cli 0.18.4 → 0.19.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.
Files changed (100) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +625 -607
  3. package/agents/DISTILLATION.md +421 -421
  4. package/agents/README.md +62 -62
  5. package/agents/approach-explorer.md +361 -361
  6. package/agents/debugger.md +82 -82
  7. package/agents/executor.md +394 -394
  8. package/agents/integration-checker.md +318 -318
  9. package/agents/mapper.md +103 -103
  10. package/agents/planner.md +313 -313
  11. package/agents/researcher.md +84 -84
  12. package/agents/roadmapper.md +296 -296
  13. package/agents/synthesizer.md +236 -236
  14. package/agents/verifier.md +337 -337
  15. package/bin/adapters/agents.mjs +34 -34
  16. package/bin/adapters/claude.mjs +191 -191
  17. package/bin/adapters/codex.mjs +85 -85
  18. package/bin/adapters/index.mjs +20 -20
  19. package/bin/adapters/opencode.mjs +278 -278
  20. package/bin/gsdd.mjs +123 -116
  21. package/bin/lib/cli-utils.mjs +28 -28
  22. package/bin/lib/evidence-contract.mjs +112 -112
  23. package/bin/lib/file-ops.mjs +209 -161
  24. package/bin/lib/health-truth.mjs +181 -178
  25. package/bin/lib/health.mjs +265 -235
  26. package/bin/lib/init-flow.mjs +252 -236
  27. package/bin/lib/init-prompts.mjs +248 -247
  28. package/bin/lib/init-runtime.mjs +225 -212
  29. package/bin/lib/init.mjs +17 -17
  30. package/bin/lib/lifecycle-preflight.mjs +360 -333
  31. package/bin/lib/lifecycle-state.mjs +351 -267
  32. package/bin/lib/manifest.mjs +116 -114
  33. package/bin/lib/models.mjs +411 -411
  34. package/bin/lib/phase.mjs +397 -378
  35. package/bin/lib/plan-constants.mjs +30 -30
  36. package/bin/lib/provenance.mjs +109 -106
  37. package/bin/lib/rendering.mjs +178 -130
  38. package/bin/lib/runtime-freshness.mjs +221 -219
  39. package/bin/lib/templates.mjs +225 -224
  40. package/bin/lib/workspace-root.mjs +132 -0
  41. package/distilled/DESIGN.md +2347 -2327
  42. package/distilled/EVIDENCE-INDEX.md +397 -394
  43. package/distilled/README.md +196 -193
  44. package/distilled/SKILL.md +86 -85
  45. package/distilled/templates/agents.block.md +21 -21
  46. package/distilled/templates/agents.md +6 -6
  47. package/distilled/templates/approach.md +232 -232
  48. package/distilled/templates/auth-matrix.md +78 -78
  49. package/distilled/templates/brownfield-change/CHANGE.md +99 -0
  50. package/distilled/templates/brownfield-change/HANDOFF.md +38 -0
  51. package/distilled/templates/brownfield-change/VERIFICATION.md +56 -0
  52. package/distilled/templates/codebase/architecture.md +110 -110
  53. package/distilled/templates/codebase/concerns.md +95 -95
  54. package/distilled/templates/codebase/conventions.md +193 -193
  55. package/distilled/templates/codebase/stack.md +96 -96
  56. package/distilled/templates/delegates/approach-explorer.md +25 -25
  57. package/distilled/templates/delegates/mapper-arch.md +26 -26
  58. package/distilled/templates/delegates/mapper-concerns.md +27 -27
  59. package/distilled/templates/delegates/mapper-quality.md +28 -28
  60. package/distilled/templates/delegates/mapper-tech.md +25 -25
  61. package/distilled/templates/delegates/plan-checker.md +68 -68
  62. package/distilled/templates/delegates/researcher-architecture.md +30 -30
  63. package/distilled/templates/delegates/researcher-features.md +30 -30
  64. package/distilled/templates/delegates/researcher-pitfalls.md +30 -30
  65. package/distilled/templates/delegates/researcher-stack.md +30 -30
  66. package/distilled/templates/delegates/researcher-synthesizer.md +31 -31
  67. package/distilled/templates/research/architecture.md +57 -57
  68. package/distilled/templates/research/features.md +23 -23
  69. package/distilled/templates/research/pitfalls.md +46 -46
  70. package/distilled/templates/research/stack.md +45 -45
  71. package/distilled/templates/research/summary.md +67 -67
  72. package/distilled/templates/roadmap.md +74 -62
  73. package/distilled/templates/spec.md +110 -110
  74. package/distilled/workflows/audit-milestone.md +275 -271
  75. package/distilled/workflows/complete-milestone.md +336 -332
  76. package/distilled/workflows/execute.md +454 -449
  77. package/distilled/workflows/map-codebase.md +253 -253
  78. package/distilled/workflows/new-milestone.md +242 -238
  79. package/distilled/workflows/new-project.md +398 -398
  80. package/distilled/workflows/pause.md +160 -156
  81. package/distilled/workflows/plan-milestone-gaps.md +183 -183
  82. package/distilled/workflows/plan.md +451 -447
  83. package/distilled/workflows/progress.md +227 -223
  84. package/distilled/workflows/quick.md +351 -347
  85. package/distilled/workflows/resume.md +220 -212
  86. package/distilled/workflows/verify-work.md +260 -260
  87. package/distilled/workflows/verify.md +431 -429
  88. package/docs/BROWNFIELD-PROOF.md +95 -95
  89. package/docs/RUNTIME-SUPPORT.md +93 -75
  90. package/docs/USER-GUIDE.md +440 -399
  91. package/docs/VERIFICATION-DISCIPLINE.md +59 -59
  92. package/docs/claude/context-monitor.md +98 -98
  93. package/docs/proof/consumer-node-cli/README.md +37 -37
  94. package/docs/proof/consumer-node-cli/ROADMAP.md +14 -14
  95. package/docs/proof/consumer-node-cli/SPEC.md +17 -17
  96. package/docs/proof/consumer-node-cli/brief.md +9 -9
  97. package/docs/proof/consumer-node-cli/phases/01-foundation/01-01-PLAN.md +34 -34
  98. package/docs/proof/consumer-node-cli/phases/01-foundation/01-01-SUMMARY.md +10 -10
  99. package/docs/proof/consumer-node-cli/phases/01-foundation/01-VERIFICATION.md +30 -30
  100. package/package.json +62 -61
@@ -1,83 +1,85 @@
1
- # Workspine
2
-
3
- A repo-native delivery spine for planning, checking, execution, verification, and handoff of long-horizon AI-assisted work.
4
-
5
- Workspine keeps planning, execution, verification, handoff, and progress state in the repo so work survives cold starts, runtime switches, and session loss. The retained package and CLI contracts remain `gsdd-cli` / `gsdd`.
6
-
7
- ## What This Is
8
-
9
- Workspine is a small set of workflow sources plus a CLI (`gsdd`) that:
10
- - scaffolds a project planning workspace (`.planning/`)
11
- - generates portable workflow entrypoints as skills (`.agents/skills/gsdd-*/SKILL.md`)
12
- - optionally generates tool-specific adapters for runtimes that need extra native surfaces (root `AGENTS.md`, Claude skills + plan-command alias + native agents, OpenCode commands + native agents)
13
-
14
- It gives serious AI-assisted work one durable repo workflow spine for planning, checking, execution, verification, and handoff without pretending to be a hosted orchestration layer.
15
-
16
- Workspine is the product name. The package, CLI commands, workflow prefixes, and workspace directory remain `gsdd-cli`, `gsdd`, `gsdd-*`, and `.planning/` — these are retained technical contracts, not rename residue.
17
-
18
- Workspine began as a fork of Get Shit Done, whose long-horizon delivery spine proved the problem was real. Since the fork, upstream GSD has continued evolving into a broad multi-runtime framework. Workspine took a different path: a smaller repo-native delivery spine with fewer public workflow surfaces, generated runtime surfaces from a portable core, evidence-gated closure, and provenance-aware continuity.
19
-
1
+ # Workspine
2
+
3
+ A repo-native delivery spine for planning, checking, execution, verification, and handoff of long-horizon AI-assisted work.
4
+
5
+ Workspine keeps planning, execution, verification, handoff, and progress state in the repo so work survives cold starts, runtime switches, and session loss. The retained package and CLI contracts remain `gsdd-cli` / `gsdd`.
6
+
7
+ ## What This Is
8
+
9
+ Workspine is a small set of workflow sources plus a CLI (`gsdd`) that:
10
+ - scaffolds a project planning workspace (`.planning/`)
11
+ - generates compact open-standard workflow entrypoints as skills (`.agents/skills/gsdd-*/SKILL.md`)
12
+ - generates an internal repo-local helper runtime at `.planning/bin/gsdd.mjs` for deterministic workflow commands run from the repo root
13
+ - optionally generates tool-specific adapters for runtimes that need extra native surfaces (root `AGENTS.md`, Claude skills + plan-command alias + native agents, OpenCode commands + native agents, Codex CLI checker agent)
14
+
15
+ It gives serious AI-assisted work one durable repo workflow spine for planning, checking, execution, verification, and handoff without pretending to be a hosted orchestration layer.
16
+
17
+ Workspine is the product name. The package, CLI commands, workflow prefixes, and workspace directory remain `gsdd-cli`, `gsdd`, `gsdd-*`, and `.planning/` — these are retained technical contracts, not rename residue.
18
+
19
+ Workspine began as a fork of Get Shit Done, whose long-horizon delivery spine proved the problem was real. Since the fork, upstream GSD has continued evolving into a broad multi-runtime framework. Workspine took a different path: a smaller repo-native delivery spine with fewer public workflow surfaces, generated runtime surfaces from a portable core, evidence-gated closure, and provenance-aware continuity.
20
+
20
21
  Launch proof posture:
21
22
  - Directly validated in repo truth: Claude Code, Codex CLI, OpenCode
22
- - Qualified support only: Cursor, Copilot, Gemini CLI support the same core workflow via the shared `.agents/skills/` surface plus optional governance; proof and ergonomics differ from the directly validated runtimes
23
- - Installed generated runtime surfaces are renderer-checked locally through `gsdd health`, with deterministic repair through `gsdd update`
24
- - Public proof entrypoints: `docs/BROWNFIELD-PROOF.md`, `docs/proof/consumer-node-cli/README.md`, `docs/RUNTIME-SUPPORT.md`, `docs/VERIFICATION-DISCIPLINE.md`
25
-
26
- ## Quick Start
27
-
28
- Run in your project root:
29
- ```bash
30
- npx gsdd-cli init
31
- ```
32
-
33
- In a TTY, `gsdd init` now opens a guided install wizard: choose runtimes first, then decide separately whether repo-wide `AGENTS.md` governance is worth installing.
34
-
35
- Optional adapters:
36
- ```bash
37
- npx gsdd-cli init --tools claude
38
- npx gsdd-cli init --tools opencode
39
- npx gsdd-cli init --tools codex
40
- npx gsdd-cli init --tools agents
41
- npx gsdd-cli init --tools cursor
42
- npx gsdd-cli init --tools all
43
- ```
44
-
45
- Notes:
46
- - `gsdd init` always generates open-standard skills at `.agents/skills/gsdd-*`. This is also the primary Codex CLI surface.
47
- - `--tools ...` remains the manual/headless path; legacy runtime aliases such as `cursor`, `copilot`, and `gemini` are still supported for backward compatibility.
48
- - `--tools claude` also generates native agents at `.claude/agents/gsdd-*.md` and a compatibility plan command alias at `.claude/commands/gsdd-plan.md`.
49
- - `--tools opencode` also generates native agents at `.opencode/agents/gsdd-*.md`.
50
- - `--tools codex` generates `.codex/agents/gsdd-plan-checker.toml`; the portable `.agents/skills/gsdd-plan/` surface remains the Codex entry path.
51
- - Root `AGENTS.md` is only written when explicitly requested (`--tools agents`, `--tools all`, legacy runtime aliases, or the wizard governance opt-in).
52
-
53
- ## The Workflow
54
-
55
- ```
56
- gsdd init -> bootstrap (create .planning/, copy templates, generate skills/adapters)
57
- /gsdd-new-project -> .planning/SPEC.md + .planning/ROADMAP.md (questioning + codebase audit + research)
58
- /gsdd-plan N -> phases/N/PLAN.md (task breakdown + research)
59
- /gsdd-execute N -> code changes (plan execution with quality gates)
60
- /gsdd-verify N -> VERIFICATION.md (goal-backward validation)
61
- ... repeat plan/execute/verify per phase ...
62
- /gsdd-audit-milestone -> MILESTONE-AUDIT.md (cross-phase integration + requirements coverage)
63
- /gsdd-complete-milestone -> milestones/vX.Y-* (archive, evolve spec, collapse roadmap)
64
- /gsdd-new-milestone -> updated SPEC.md + ROADMAP.md (next milestone goals + phases)
65
- /gsdd-plan-milestone-gaps -> gap closure phases in ROADMAP.md (from audit results)
66
- /gsdd-quick -> .planning/quick/NNN/ (sub-hour task outside phases)
67
- /gsdd-pause -> .planning/.continue-here.md (session checkpoint)
68
- /gsdd-resume -> restore context, route to next action
69
- /gsdd-progress -> show status, route to next action
70
- ```
71
-
72
- ## Brownfield Entry Contract
73
-
74
- Use the same three-way routing everywhere:
75
-
76
- - `gsdd-new-project` is the full initializer for greenfield work, fuzzy brownfield scope, or milestone-shaped work. Users do not need to pre-run `map-codebase`; `new-project` does that internally when needed.
77
- - `gsdd-quick` is the bounded brownfield lane when the change is already concrete. It uses existing codebase maps when present and otherwise builds a just-enough inline baseline.
78
- - `gsdd-map-codebase` is the deeper orientation pass for unfamiliar or higher-risk repos before choosing between `quick` and `new-project`.
79
-
80
- ## Current Status (updated 2026-04-21)
23
+ - Qualified support only: Cursor, Copilot, Gemini CLI can use the shared `.agents/skills/` surface plus optional governance when their skill or slash discovery sees it; proof and ergonomics differ from the directly validated runtimes
24
+ - Codex CLI validation does not automatically cover Codex VS Code or the Codex app; use native discovery there when available, otherwise open or paste `.agents/skills/gsdd-*/SKILL.md`
25
+ - Installed generated runtime surfaces are renderer-checked locally through `npx -y gsdd-cli health`, with deterministic repair through `npx -y gsdd-cli update` (bare `gsdd ...` is equivalent only when globally installed)
26
+ - Public proof entrypoints: `docs/BROWNFIELD-PROOF.md`, `docs/proof/consumer-node-cli/README.md`, `docs/RUNTIME-SUPPORT.md`, `docs/VERIFICATION-DISCIPLINE.md`
27
+
28
+ ## Quick Start
29
+
30
+ Run in your project root:
31
+ ```bash
32
+ npx -y gsdd-cli init
33
+ ```
34
+
35
+ In a TTY, `npx -y gsdd-cli init` opens a guided install wizard: choose runtimes first, then decide separately whether repo-wide `AGENTS.md` governance is worth installing. If `gsdd-cli` is globally installed, `gsdd init` is the equivalent shorthand.
36
+
37
+ Optional adapters:
38
+ ```bash
39
+ npx -y gsdd-cli init --tools claude
40
+ npx -y gsdd-cli init --tools opencode
41
+ npx -y gsdd-cli init --tools codex
42
+ npx -y gsdd-cli init --tools agents
43
+ npx -y gsdd-cli init --tools cursor
44
+ npx -y gsdd-cli init --tools all
45
+ ```
46
+
47
+ Notes:
48
+ - `npx -y gsdd-cli init` always generates open-standard skills at `.agents/skills/gsdd-*` plus the repo-local helper runtime at `.planning/bin/gsdd.mjs`. Workflow helper commands assume the repo root as the current working directory.
49
+ - `--tools ...` remains the manual/headless path; legacy runtime aliases such as `cursor`, `copilot`, and `gemini` are still supported for backward compatibility.
50
+ - `--tools claude` also generates native agents at `.claude/agents/gsdd-*.md` and a compatibility plan command alias at `.claude/commands/gsdd-plan.md`.
51
+ - `--tools opencode` also generates native agents at `.opencode/agents/gsdd-*.md`.
52
+ - `--tools codex` generates `.codex/agents/gsdd-plan-checker.toml`; the portable `.agents/skills/gsdd-plan/` surface remains the Codex entry path and internal helper commands route through `.planning/bin/gsdd.mjs`.
53
+ - Root `AGENTS.md` is only written when explicitly requested (`--tools agents`, `--tools all`, legacy runtime aliases, or the wizard governance opt-in). Governance and native adapter surfaces are optional ergonomics; the compact `.agents/skills/` files remain the baseline agent entrypoints.
54
+
55
+ ## The Workflow
56
+
57
+ ```
58
+ npx -y gsdd-cli init -> bootstrap (create .planning/, copy templates, generate skills/adapters)
59
+ /gsdd-new-project -> .planning/SPEC.md + .planning/ROADMAP.md (questioning + codebase audit + research)
60
+ /gsdd-plan N -> phases/N/PLAN.md (task breakdown + research)
61
+ /gsdd-execute N -> code changes (plan execution with quality gates)
62
+ /gsdd-verify N -> VERIFICATION.md (goal-backward validation)
63
+ ... repeat plan/execute/verify per phase ...
64
+ /gsdd-audit-milestone -> MILESTONE-AUDIT.md (cross-phase integration + requirements coverage)
65
+ /gsdd-complete-milestone -> milestones/vX.Y-* (archive, evolve spec, collapse roadmap)
66
+ /gsdd-new-milestone -> updated SPEC.md + ROADMAP.md (next milestone goals + phases)
67
+ /gsdd-plan-milestone-gaps -> gap closure phases in ROADMAP.md (from audit results)
68
+ /gsdd-quick -> .planning/quick/NNN/ (sub-hour task outside phases)
69
+ /gsdd-pause -> .planning/.continue-here.md (session checkpoint)
70
+ /gsdd-resume -> restore context, route to next action
71
+ /gsdd-progress -> show status, route to next action
72
+ ```
73
+
74
+ ## Brownfield Entry Contract
75
+
76
+ Use the same three-way routing everywhere:
77
+
78
+ - `gsdd-new-project` is the full initializer for greenfield work, fuzzy brownfield scope, or milestone-shaped work. Users do not need to pre-run `map-codebase`; `new-project` does that internally when needed.
79
+ - `gsdd-quick` is the bounded brownfield lane when the change is already concrete. It uses existing codebase maps when present and otherwise builds a just-enough inline baseline.
80
+ - `gsdd-map-codebase` is the deeper orientation pass for unfamiliar or higher-risk repos before choosing between `quick` and `new-project`.
81
+
82
+ ## Workflow Surface
81
83
 
82
84
  | Workflow | What ships |
83
85
  |----------|------------|
@@ -95,119 +97,120 @@ Use the same three-way routing everywhere:
95
97
  | `progress.md` | Read-only status reporter with recent work, archived-milestone detection, and non-phase brownfield routing |
96
98
  | `map-codebase.md` | Standalone codebase mapping/refresh and deeper brownfield orientation |
97
99
  | `verify-work.md` | Conversational UAT validation with structured gap tracking |
98
-
99
- Architecture notes:
100
- - `bin/gsdd.mjs` remains the thin generator entrypoint, while vendor-specific rendering lives in adapter modules.
101
- - Codex CLI uses the always-generated `.agents/skills/gsdd-*` surface as its entry path and can add a native `.codex/agents/gsdd-plan-checker.toml` checker agent.
102
- - `gsdd health` now compares any installed generated runtime surfaces against current render output and routes repairs back through `gsdd update`.
103
- - Portable lifecycle contracts now align to the roadmap template status grammar: `[ ]`, `[-]`, `[x]`.
104
- - Phase verification and milestone integration audit are treated as separate concerns.
105
- - Canonical role contracts use bounded sections, typed output examples, and checklist-driven completion where those structures materially improve downstream reliability.
100
+
101
+ Architecture notes:
102
+ - `bin/gsdd.mjs` remains the thin generator entrypoint, while vendor-specific rendering lives in adapter modules.
103
+ - Codex CLI uses the always-generated `.agents/skills/gsdd-*` surface as its entry path, relies on `.planning/bin/gsdd.mjs` for deterministic helper calls, and can add a native `.codex/agents/gsdd-plan-checker.toml` checker agent.
104
+ - Codex VS Code/app are separate surfaces from Codex CLI; do not claim the CLI proof for them unless they expose compatible skill discovery. Fallback is opening or pasting the generated `SKILL.md`.
105
+ - `npx -y gsdd-cli health` now compares any installed generated runtime surfaces against current render output and routes repairs back through `npx -y gsdd-cli update`.
106
+ - Portable lifecycle contracts now align to the roadmap template status grammar: `[ ]`, `[-]`, `[x]`.
107
+ - Phase verification and milestone integration audit are treated as separate concerns.
108
+ - Canonical role contracts use bounded sections, typed output examples, and checklist-driven completion where those structures materially improve downstream reliability.
106
109
  - Public launch wording is conservative by design: direct proof is claimed only for runtimes with recorded lifecycle evidence in the repo.
107
-
108
- ## Init Workflow Agent Count (by config)
109
-
110
- | Mode | Mappers | Researchers | Synthesizer | Total |
111
- |------|---------|-------------|-------------|-------|
112
- | Brownfield, first run, research balanced/deep | 4 | 4 | 1 | 9 |
113
- | Brownfield, first run, research fast | 4 | 4 | 0 (inline) | 8 |
114
- | Brownfield, subsequent run, research balanced/deep | 0 (maps exist) | 4 | 1 | 5 |
115
- | Greenfield, research balanced/deep | 0 | 4 | 1 | 5 |
116
- | Greenfield, research fast | 0 | 4 | 0 (inline) | 4 |
117
- | Any, no research | 0-4 | 0 | 0 | 0-4 |
118
-
119
- Note: `parallelization: false` keeps the same mapper/researcher set but runs them sequentially.
120
-
121
- ## What Gets Created (Project Output)
122
-
123
- ```
124
- .planning/
125
- SPEC.md
126
- ROADMAP.md
127
- config.json
128
- templates/ # copied from distilled/templates/
129
- phases/ # phase plans and summaries
130
- research/ # optional research outputs
131
- .agents/skills/
132
- gsdd-new-project/SKILL.md
133
- gsdd-new-milestone/SKILL.md
134
- gsdd-plan/SKILL.md
135
- gsdd-plan-milestone-gaps/SKILL.md
136
- gsdd-execute/SKILL.md
137
- gsdd-verify/SKILL.md
138
- gsdd-verify-work/SKILL.md
139
- gsdd-audit-milestone/SKILL.md
140
- gsdd-complete-milestone/SKILL.md
141
- gsdd-quick/SKILL.md
142
- gsdd-pause/SKILL.md
143
- gsdd-resume/SKILL.md
144
- gsdd-progress/SKILL.md
145
- gsdd-map-codebase/SKILL.md
146
- .claude/agents/
147
- gsdd-plan-checker.md # native-capable checker agent generated from the active plan-checker contract
148
- .claude/commands/
149
- gsdd-plan.md # compatibility alias to the Claude skill-primary plan entry
150
- .claude/skills/
151
- gsdd-plan/SKILL.md # Claude-native skill-primary planner -> checker surface
152
- .opencode/agents/
153
- gsdd-plan-checker.md # native-capable checker agent generated from the active plan-checker contract
154
- .opencode/commands/
155
- gsdd-plan.md # OpenCode-native specialized planner -> checker command surface
156
- .codex/agents/
157
- gsdd-plan-checker.toml # Codex-native checker agent (read-only, high reasoning effort)
158
- .planning/
159
- quick/ # quick task directories and LOG.md
160
- .continue-here.md # session checkpoint (created by pause)
161
- ```
162
-
163
- ## Files In This Framework
164
-
165
- ```
166
- distilled/
167
- DESIGN.md # design decisions and rationale (58 decisions, evidence-backed)
168
- EVIDENCE-INDEX.md # source-to-decision index for durable research-backed claims
169
- SKILL.md # primary entry point (plain markdown)
170
- workflows/
171
- audit-milestone.md
172
- complete-milestone.md
173
- execute.md
174
- map-codebase.md
175
- new-project.md
176
- new-milestone.md
177
- pause.md
178
- plan.md
179
- plan-milestone-gaps.md
180
- progress.md
181
- quick.md
182
- resume.md
183
- verify-work.md
184
- verify.md
185
- templates/
186
- spec.md
187
- roadmap.md
188
- agents.md # full AGENTS.md template (for tool adapters)
189
- agents.block.md # bounded block payload for root AGENTS.md insertion
190
- delegates/ # delegate instruction files (copied to .planning/templates/delegates/)
191
- mapper-tech.md
192
- mapper-arch.md
193
- mapper-quality.md
194
- mapper-concerns.md
195
- plan-checker.md
196
- approach-explorer.md
197
- researcher-stack.md
198
- researcher-features.md
199
- researcher-architecture.md
200
- researcher-pitfalls.md
201
- researcher-synthesizer.md
202
- research/
203
- stack.md
204
- features.md
205
- architecture.md
206
- pitfalls.md
207
- summary.md
208
- codebase/
209
- stack.md
210
- architecture.md
211
- conventions.md
212
- concerns.md
213
- ```
110
+
111
+ ## Init Workflow Agent Use (by config)
112
+
113
+ | Mode | Mappers | Researchers | Synthesizer | Total |
114
+ |------|---------|-------------|-------------|-------|
115
+ | Brownfield, first run, research balanced/deep | 4 | 4 | 1 | 9 |
116
+ | Brownfield, first run, research fast | 4 | 4 | 0 (inline) | 8 |
117
+ | Brownfield, subsequent run, research balanced/deep | 0 (maps exist) | 4 | 1 | 5 |
118
+ | Greenfield, research balanced/deep | 0 | 4 | 1 | 5 |
119
+ | Greenfield, research fast | 0 | 4 | 0 (inline) | 4 |
120
+ | Any, no research | 0-4 | 0 | 0 | 0-4 |
121
+
122
+ Note: `parallelization: false` keeps the same mapper/researcher set but runs them sequentially.
123
+
124
+ ## What Gets Created (Project Output)
125
+
126
+ ```
127
+ .planning/
128
+ SPEC.md
129
+ ROADMAP.md
130
+ config.json
131
+ templates/ # copied from distilled/templates/
132
+ phases/ # phase plans and summaries
133
+ research/ # optional research outputs
134
+ .agents/skills/
135
+ gsdd-new-project/SKILL.md
136
+ gsdd-new-milestone/SKILL.md
137
+ gsdd-plan/SKILL.md
138
+ gsdd-plan-milestone-gaps/SKILL.md
139
+ gsdd-execute/SKILL.md
140
+ gsdd-verify/SKILL.md
141
+ gsdd-verify-work/SKILL.md
142
+ gsdd-audit-milestone/SKILL.md
143
+ gsdd-complete-milestone/SKILL.md
144
+ gsdd-quick/SKILL.md
145
+ gsdd-pause/SKILL.md
146
+ gsdd-resume/SKILL.md
147
+ gsdd-progress/SKILL.md
148
+ gsdd-map-codebase/SKILL.md
149
+ .claude/agents/
150
+ gsdd-plan-checker.md # native-capable checker agent generated from the active plan-checker contract
151
+ .claude/commands/
152
+ gsdd-plan.md # compatibility alias to the Claude skill-primary plan entry
153
+ .claude/skills/
154
+ gsdd-plan/SKILL.md # Claude-native skill-primary planner -> checker surface
155
+ .opencode/agents/
156
+ gsdd-plan-checker.md # native-capable checker agent generated from the active plan-checker contract
157
+ .opencode/commands/
158
+ gsdd-plan.md # OpenCode-native specialized planner -> checker command surface
159
+ .codex/agents/
160
+ gsdd-plan-checker.toml # Codex-native checker agent (read-only, high reasoning effort)
161
+ .planning/
162
+ quick/ # quick task directories and LOG.md
163
+ .continue-here.md # session checkpoint (created by pause)
164
+ ```
165
+
166
+ ## Files In This Framework
167
+
168
+ ```
169
+ distilled/
170
+ DESIGN.md # design decisions and rationale
171
+ EVIDENCE-INDEX.md # source-to-decision index for durable research-backed claims
172
+ SKILL.md # primary entry point (plain markdown)
173
+ workflows/
174
+ audit-milestone.md
175
+ complete-milestone.md
176
+ execute.md
177
+ map-codebase.md
178
+ new-project.md
179
+ new-milestone.md
180
+ pause.md
181
+ plan.md
182
+ plan-milestone-gaps.md
183
+ progress.md
184
+ quick.md
185
+ resume.md
186
+ verify-work.md
187
+ verify.md
188
+ templates/
189
+ spec.md
190
+ roadmap.md
191
+ agents.md # full AGENTS.md template (for tool adapters)
192
+ agents.block.md # bounded block payload for root AGENTS.md insertion
193
+ delegates/ # delegate instruction files (copied to .planning/templates/delegates/)
194
+ mapper-tech.md
195
+ mapper-arch.md
196
+ mapper-quality.md
197
+ mapper-concerns.md
198
+ plan-checker.md
199
+ approach-explorer.md
200
+ researcher-stack.md
201
+ researcher-features.md
202
+ researcher-architecture.md
203
+ researcher-pitfalls.md
204
+ researcher-synthesizer.md
205
+ research/
206
+ stack.md
207
+ features.md
208
+ architecture.md
209
+ pitfalls.md
210
+ summary.md
211
+ codebase/
212
+ stack.md
213
+ architecture.md
214
+ conventions.md
215
+ concerns.md
216
+ ```
@@ -1,89 +1,90 @@
1
- ---
1
+ ---
2
2
  name: Workspine (published as gsdd-cli)
3
3
  description: Disciplined repo-native workflow for AI-assisted development. Spec first, then build, then verify.
4
- ---
5
-
6
- <role>
4
+ ---
5
+
6
+ <role>
7
7
  You are an AI agent following the Workspine workflow. You are a disciplined engineer, not a code generator.
8
- Your mandate: understand the problem deeply, specify what "done" looks like, implement with precision, and verify with rigor.
9
- </role>
10
-
11
- <principles>
12
- 1. Spec first: do not write code without a written spec that defines "done".
13
- 2. Clean commits: group changes logically following repo conventions. Do not bundle unrelated changes.
14
- 3. Verify everything: verify observable success criteria, not vibes.
15
- 4. Research when unsure: verify current docs and patterns before choosing an approach.
16
- 5. Honest reporting: a clear failure report beats a false pass.
17
- </principles>
18
-
19
- <workflow>
20
- The loop is:
21
-
22
- ```
23
- init -> [plan -> execute -> verify] x N phases -> done
24
- ```
25
-
26
- Read only the file for the phase you are in:
27
- - new-project: `workflows/new-project.md`
28
- - plan: `workflows/plan.md`
29
- - execute: `workflows/execute.md`
30
- - verify: `workflows/verify.md`
31
- - audit-milestone: `workflows/audit-milestone.md`
32
- - complete-milestone: `workflows/complete-milestone.md`
33
- - new-milestone: `workflows/new-milestone.md`
34
- - plan-milestone-gaps: `workflows/plan-milestone-gaps.md`
35
- - quick: `workflows/quick.md`
36
- </workflow>
37
-
38
- <governance>
39
- Mandatory:
40
- - Read before you write. If `.planning/` exists, read `.planning/SPEC.md`, `.planning/ROADMAP.md`, `.planning/config.json`.
41
- - Stay in scope. Implement only what the current phase plan describes.
42
- - Never hallucinate. Confirm paths and APIs from repo or docs before use.
43
- - Research-first when unfamiliar. Log evidence, then plan.
44
- - Exists -> Substantive -> Wired gate before claiming done.
45
- </governance>
46
-
47
- <project_structure>
8
+ Your mandate: understand the problem deeply, specify what "done" looks like, implement with precision, and verify with rigor.
9
+ </role>
10
+
11
+ <principles>
12
+ 1. Spec first: do not write code without a written spec that defines "done".
13
+ 2. Clean commits: group changes logically following repo conventions. Do not bundle unrelated changes.
14
+ 3. Verify everything: verify observable success criteria, not vibes.
15
+ 4. Research when unsure: verify current docs and patterns before choosing an approach.
16
+ 5. Honest reporting: a clear failure report beats a false pass.
17
+ </principles>
18
+
19
+ <workflow>
20
+ The loop is:
21
+
22
+ ```
23
+ init -> [plan -> execute -> verify] x N phases -> done
24
+ ```
25
+
26
+ Read only the file for the phase you are in:
27
+ - new-project: `workflows/new-project.md`
28
+ - plan: `workflows/plan.md`
29
+ - execute: `workflows/execute.md`
30
+ - verify: `workflows/verify.md`
31
+ - audit-milestone: `workflows/audit-milestone.md`
32
+ - complete-milestone: `workflows/complete-milestone.md`
33
+ - new-milestone: `workflows/new-milestone.md`
34
+ - plan-milestone-gaps: `workflows/plan-milestone-gaps.md`
35
+ - quick: `workflows/quick.md`
36
+ </workflow>
37
+
38
+ <governance>
39
+ Mandatory:
40
+ - Read before you write. If `.planning/` exists, read `.planning/SPEC.md`, `.planning/ROADMAP.md`, `.planning/config.json`.
41
+ - Stay in scope. Implement only what the current phase plan describes.
42
+ - Never hallucinate. Confirm paths and APIs from repo or docs before use.
43
+ - Research-first when unfamiliar. Log evidence, then plan.
44
+ - Exists -> Substantive -> Wired gate before claiming done.
45
+ </governance>
46
+
47
+ <project_structure>
48
48
  Workspine uses `.planning/` as the durable workspace:
49
-
50
- ```
51
- .planning/
52
- SPEC.md
53
- ROADMAP.md
54
- config.json
55
- templates/
56
- phases/
57
- research/
58
- ```
59
- </project_structure>
60
-
61
- <adapters>
62
- Recommended: generate adapters with `gsdd`:
63
-
64
- ```bash
65
- npx gsdd-cli init
66
- npx gsdd-cli init --tools claude
67
- npx gsdd-cli init --tools agents
68
- ```
69
-
70
- Behavior:
71
- - Always: generates open-standard skills at `.agents/skills/gsdd-*/SKILL.md` by embedding `distilled/workflows/*.md`. This is also the primary Codex CLI surface.
72
- - Optional: generates tool adapters (root `AGENTS.md`, Claude `.claude/skills` + `.claude/commands` alias + `.claude/agents`, OpenCode `.opencode/commands` + `.opencode/agents`).
73
- - Deprecated compatibility: `--tools codex` does not generate `.codex/AGENTS.md`; Codex CLI should use the default skills directly.
74
- - Root `AGENTS.md` is only written when explicitly requested (so we do not pollute existing user governance).
75
- </adapters>
76
-
77
- <templates>
78
- Use templates from `.planning/templates/` (copied from `distilled/templates/`) when producing planning artifacts.
79
-
80
- Core:
81
- - `.planning/templates/spec.md` -> `.planning/SPEC.md`
82
- - `.planning/templates/roadmap.md` -> `.planning/ROADMAP.md`
83
-
84
- Research:
85
- - `.planning/templates/research/*.md` -> `.planning/research/*.md`
86
-
87
- Brownfield codebase mapping:
88
- - `.planning/templates/codebase/*.md` -> `.planning/codebase/*.md`
89
- </templates>
49
+
50
+ ```
51
+ .planning/
52
+ SPEC.md
53
+ ROADMAP.md
54
+ config.json
55
+ templates/
56
+ phases/
57
+ research/
58
+ ```
59
+ </project_structure>
60
+
61
+ <adapters>
62
+ Recommended: generate adapters with `gsdd-cli`:
63
+
64
+ ```bash
65
+ npx -y gsdd-cli init
66
+ npx -y gsdd-cli init --tools claude
67
+ npx -y gsdd-cli init --tools codex
68
+ npx -y gsdd-cli init --tools agents
69
+ ```
70
+
71
+ Behavior:
72
+ - Always: generates open-standard skills at `.agents/skills/gsdd-*/SKILL.md` by embedding `distilled/workflows/*.md`, plus repo-local deterministic helpers at `.planning/bin/gsdd.mjs`.
73
+ - Optional: generates tool adapters (root `AGENTS.md`, Claude `.claude/skills` + `.claude/commands` alias + `.claude/agents`, OpenCode `.opencode/commands` + `.opencode/agents`, Codex CLI `.codex/agents/gsdd-plan-checker.toml`).
74
+ - Codex CLI: uses the portable skill entry surface and the generated `.codex/agents/` checker/approach-explorer agents; it does not use `.codex/AGENTS.md` as the primary integration path.
75
+ - Root `AGENTS.md` is only written when explicitly requested (so we do not pollute existing user governance).
76
+ </adapters>
77
+
78
+ <templates>
79
+ Use templates from `.planning/templates/` (copied from `distilled/templates/`) when producing planning artifacts.
80
+
81
+ Core:
82
+ - `.planning/templates/spec.md` -> `.planning/SPEC.md`
83
+ - `.planning/templates/roadmap.md` -> `.planning/ROADMAP.md`
84
+
85
+ Research:
86
+ - `.planning/templates/research/*.md` -> `.planning/research/*.md`
87
+
88
+ Brownfield codebase mapping:
89
+ - `.planning/templates/codebase/*.md` -> `.planning/codebase/*.md`
90
+ </templates>
@@ -1,21 +1,21 @@
1
- ## GSDD Governance (Generated)
2
-
3
- Managed by `gsdd`; edit the framework template, not this block.
4
-
5
- Lifecycle: `new-project -> plan -> execute -> verify -> audit-milestone`.
6
-
7
- Core skills: `gsdd-new-project`, `gsdd-plan`, `gsdd-execute`, `gsdd-verify`, `gsdd-progress`.
8
- Planning state: `.planning/`. Portable workflows: `.agents/skills/gsdd-*/SKILL.md`.
9
-
10
- Invoke: `/gsdd-plan` (Claude, OpenCode, Cursor, Copilot, Gemini) · `$gsdd-plan` (Codex, plan-only until `$gsdd-execute`) · open SKILL.md directly elsewhere.
11
-
12
- Rules:
13
- 1. Read before writing roadmap work: `.planning/SPEC.md`, `.planning/ROADMAP.md`, `.planning/config.json`, and the relevant phase plan when one exists.
14
- 2. Stay in scope. Implement only what the approved plan or direct user request says. Record unrelated ideas as TODOs.
15
- 3. Verify before claiming done: artifact exists, content is substantive, and it is wired into the system.
16
- 4. Research unfamiliar domains from real docs and code; never hallucinate paths or APIs.
17
- 5. Do not pollute core workflows with vendor-specific syntax; adapters are generated under `bin/`.
18
- 6. Git guidance in `.planning/config.json` -> `gitProtocol` is advisory; follow the repo's own conventions first.
19
-
20
- If `.planning/` is missing, run `gsdd init` then `gsdd-new-project`.
21
-
1
+ ## GSDD Governance (Generated)
2
+
3
+ Managed by `gsdd`; edit the framework template, not this block.
4
+
5
+ Lifecycle: `new-project -> plan -> execute -> verify -> audit-milestone`.
6
+
7
+ Core skills: `gsdd-new-project`, `gsdd-plan`, `gsdd-execute`, `gsdd-verify`, `gsdd-progress`.
8
+ Planning state: `.planning/`. Portable workflows: `.agents/skills/gsdd-*/SKILL.md`.
9
+
10
+ Invoke: `/gsdd-plan` (Claude, OpenCode; Cursor/Copilot/Gemini when skill discovery is available) · `$gsdd-plan` (Codex CLI, plan-only until `$gsdd-execute`) · open SKILL.md directly elsewhere.
11
+
12
+ Rules:
13
+ 1. Read before writing roadmap work: `.planning/SPEC.md`, `.planning/ROADMAP.md`, `.planning/config.json`, and the relevant phase plan when one exists.
14
+ 2. Stay in scope. Implement only what the approved plan or direct user request says. Record unrelated ideas as TODOs.
15
+ 3. Verify before claiming done: artifact exists, content is substantive, and it is wired into the system.
16
+ 4. Research unfamiliar domains from real docs and code; never hallucinate paths or APIs.
17
+ 5. Do not pollute core workflows with vendor-specific syntax; workflow entry lives in `.agents/skills/`, helpers in `.planning/bin/`, and native adapters in their tool-specific directories.
18
+ 6. Git guidance in `.planning/config.json` -> `gitProtocol` is advisory; follow the repo's own conventions first.
19
+
20
+ If `.planning/` is missing, run `npx -y gsdd-cli init` then `gsdd-new-project`; bare `gsdd init` is equivalent only when globally installed.
21
+