sdtk-spec-kit 0.3.9 → 0.3.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.
- package/README.md +136 -106
- package/assets/manifest/toolkit-bundle.manifest.json +94 -80
- package/assets/manifest/toolkit-bundle.sha256.txt +41 -38
- package/assets/toolkit/toolkit/AGENTS.md +5 -4
- package/assets/toolkit/toolkit/README.md +50 -0
- package/assets/toolkit/toolkit/SDTK_TOOLKIT.md +185 -0
- package/assets/toolkit/toolkit/install.ps1 +2 -2
- package/assets/toolkit/toolkit/scripts/init-feature.ps1 +4 -3
- package/assets/toolkit/toolkit/scripts/install-codex-skills.ps1 +32 -12
- package/assets/toolkit/toolkit/scripts/uninstall-codex-skills.ps1 +33 -6
- package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/SKILL.md +84 -84
- package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/references/API_DESIGN_FLOWCHART_CREATION_RULES.md +468 -468
- package/assets/toolkit/toolkit/skills/sdtk-api-doc/references/API_DESIGN_FLOWCHART_CREATION_RULES.md +468 -468
- package/assets/toolkit/toolkit/skills/sdtk-api-doc/references/YAML_CREATION_RULES.md +127 -127
- package/assets/toolkit/toolkit/skills/sdtk-arch/SKILL.md +85 -83
- package/assets/toolkit/toolkit/skills/sdtk-arch/references/API_DESIGN_FLOWCHART_CREATION_RULES.md +468 -468
- package/assets/toolkit/toolkit/skills/sdtk-arch/references/FLOW_ACTION_SPEC_CREATION_RULES.md +220 -220
- package/assets/toolkit/toolkit/skills/sdtk-arch/references/YAML_CREATION_RULES.md +127 -127
- package/assets/toolkit/toolkit/skills/sdtk-dev/SKILL.md +108 -98
- package/assets/toolkit/toolkit/skills/sdtk-dev-backend/SKILL.md +7 -4
- package/assets/toolkit/toolkit/skills/sdtk-dev-frontend/SKILL.md +7 -4
- package/assets/toolkit/toolkit/skills/sdtk-orchestrator/SKILL.md +97 -81
- package/assets/toolkit/toolkit/skills/sdtk-pm/SKILL.md +37 -30
- package/assets/toolkit/toolkit/skills/sdtk-qa/SKILL.md +75 -52
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/references/FLOW_ACTION_SPEC_CREATION_RULES.md +220 -220
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/references/excel-image-export.md +30 -30
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/references/figma-mcp.md +25 -25
- package/assets/toolkit/toolkit/skills/skills.catalog.yaml +4 -2
- package/assets/toolkit/toolkit/skills-claude/api-design-spec/SKILL.md +90 -90
- package/assets/toolkit/toolkit/skills-claude/dev/SKILL.md +3 -0
- package/assets/toolkit/toolkit/skills-claude/orchestrator/SKILL.md +25 -53
- package/assets/toolkit/toolkit/skills-claude/qa/SKILL.md +16 -8
- package/assets/toolkit/toolkit/templates/QUALITY_CHECKLIST.md +124 -121
- package/assets/toolkit/toolkit/templates/README.md +1 -0
- package/assets/toolkit/toolkit/templates/SHARED_PLANNING.md +81 -81
- package/assets/toolkit/toolkit/templates/docs/api/API_DESIGN_FLOWCHART_CREATION_RULES.md +468 -468
- package/assets/toolkit/toolkit/templates/docs/api/YAML_CREATION_RULES.md +127 -127
- package/assets/toolkit/toolkit/templates/docs/database/DATABASE_SPEC_TEMPLATE.md +174 -174
- package/assets/toolkit/toolkit/templates/docs/dev/FEATURE_IMPL_PLAN_TEMPLATE.md +106 -93
- package/assets/toolkit/toolkit/templates/docs/qa/CONTROLLER_ACCEPTANCE_TEMPLATE.md +90 -0
- package/assets/toolkit/toolkit/templates/docs/qa/QA_RELEASE_REPORT_TEMPLATE.md +162 -61
- package/assets/toolkit/toolkit/templates/docs/specs/FLOW_ACTION_SPEC_CREATION_RULES.md +220 -220
- package/assets/toolkit/toolkit/templates/handoffs/DEV_TO_QA.md +4 -0
- package/assets/toolkit/toolkit/templates/handoffs/QA_RELEASE_DECISION.md +5 -0
- package/package.json +16 -16
- package/src/commands/help.js +123 -101
- package/src/commands/init.js +10 -2
- package/src/commands/runtime.js +27 -5
- package/src/commands/update.js +11 -0
- package/src/index.js +62 -59
- package/src/lib/scope.js +19 -4
- package/src/lib/update.js +326 -0
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Wraps the `SDTK-SPEC` PowerShell toolkit for portable, reproducible feature docu
|
|
|
8
8
|
|
|
9
9
|
Canonical install/runtime source in the source repo: `governance/ai/cli/SDTK_RUNTIME_AND_FEATURE_STATUS.md`
|
|
10
10
|
|
|
11
|
-
Generated skills include verification gates and two-stage review hard gates. The current source baseline also ships a canonical skill catalog, handoff templates, public example packs, and a runtime readiness audit. See `toolkit/SDTK_TOOLKIT.md` for workflow quality contracts.
|
|
11
|
+
Generated skills include verification gates and two-stage review hard gates. The current source baseline also ships a canonical skill catalog, handoff templates, public example packs, and a runtime readiness audit. See `products/sdtk-spec/toolkit/SDTK_TOOLKIT.md` for workflow quality contracts.
|
|
12
12
|
|
|
13
13
|
## Migration From `sdtk-kit` / `sdtk`
|
|
14
14
|
|
|
@@ -28,10 +28,32 @@ npm install -g sdtk-spec-kit
|
|
|
28
28
|
# or link locally for development:
|
|
29
29
|
npm link
|
|
30
30
|
```
|
|
31
|
-
|
|
32
|
-
##
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
|
|
32
|
+
## Update Existing Installation
|
|
33
|
+
|
|
34
|
+
Use the public `update` command when `sdtk-spec-kit` is already installed and you want the current published package line plus refreshed managed project or runtime files.
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
sdtk-spec update --check-only
|
|
38
|
+
sdtk-spec update --runtime claude --project-path ./my-project
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Codex user-scope example:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
sdtk-spec update --runtime codex --scope user --project-path ./my-project
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Important truth:
|
|
48
|
+
- `sdtk-spec update` still uses `npm install -g sdtk-spec-kit@<target>` as the package refresh mechanism
|
|
49
|
+
- `update --check-only` is non-destructive and prints the planned commands only
|
|
50
|
+
- `--skip-project-files` suppresses `sdtk-spec init --force`
|
|
51
|
+
- `--skip-runtime-assets` suppresses runtime refresh
|
|
52
|
+
- there is no umbrella `sdtk-kit update`
|
|
53
|
+
|
|
54
|
+
## Quick Start
|
|
55
|
+
|
|
56
|
+
```bash
|
|
35
57
|
# 1. Initialize workspace with runtime adapter
|
|
36
58
|
sdtk-spec init --runtime claude
|
|
37
59
|
|
|
@@ -45,146 +67,154 @@ sdtk-spec generate --feature-key USER_PROFILE --feature-name "User Profile"
|
|
|
45
67
|
# sdtk-spec init --runtime codex
|
|
46
68
|
|
|
47
69
|
```
|
|
48
|
-
|
|
49
|
-
The CLI generates the scaffold contract only. Full content enrichment still runs phase-by-phase through PM, BA, ARCH, DEV, and QA using the installed runtime guidance plus the toolkit docs.
|
|
50
|
-
|
|
51
|
-
## Commands
|
|
52
|
-
|
|
70
|
+
|
|
71
|
+
The CLI generates the scaffold contract only. Full content enrichment still runs phase-by-phase through PM, BA, ARCH, DEV, and QA using the installed runtime guidance plus the toolkit docs.
|
|
72
|
+
|
|
73
|
+
## Commands
|
|
74
|
+
|
|
53
75
|
### `sdtk-spec init`
|
|
54
|
-
|
|
76
|
+
|
|
55
77
|
Initialize `SDTK-SPEC` workspace in the current or specified project directory.
|
|
56
|
-
|
|
78
|
+
|
|
57
79
|
```bash
|
|
58
80
|
sdtk-spec init --runtime <codex|claude> [--project-path <path>] [--force] [--runtime-scope <project|user>] [--skip-runtime-assets]
|
|
59
81
|
|
|
60
82
|
# Deprecated: --skip-skills (use --skip-runtime-assets instead)
|
|
61
83
|
```
|
|
62
|
-
|
|
63
|
-
Creates:
|
|
64
|
-
- `AGENTS.md` -- project-level agent guidance
|
|
65
|
-
- `sdtk-spec.config.json` -- project configuration
|
|
66
|
-
- `sdtk-spec.config.profiles.example.json` -- stack profile examples
|
|
67
|
-
- `CODEX.md` or `CLAUDE.md` -- runtime adapter
|
|
68
|
-
- for `--runtime claude`, skill files are installed into `.claude/skills/` (project scope, default) or `~/.claude/skills/` (user scope) unless `--skip-runtime-assets` is used
|
|
69
|
-
- for `--runtime codex`, skill files
|
|
70
|
-
- `--skip-skills` is deprecated; use `--skip-runtime-assets` instead
|
|
71
|
-
|
|
84
|
+
|
|
85
|
+
Creates:
|
|
86
|
+
- `AGENTS.md` -- project-level agent guidance
|
|
87
|
+
- `sdtk-spec.config.json` -- project configuration
|
|
88
|
+
- `sdtk-spec.config.profiles.example.json` -- stack profile examples
|
|
89
|
+
- `CODEX.md` or `CLAUDE.md` -- runtime adapter
|
|
90
|
+
- for `--runtime claude`, skill files are installed into `.claude/skills/` (project scope, default) or `~/.claude/skills/` (user scope) unless `--skip-runtime-assets` is used
|
|
91
|
+
- for `--runtime codex`, skill files install into `$CODEX_HOME/skills/` or `~/.codex/skills/` by default, and into `<project>/.codex/skills/` only when you intentionally launch with the explicit local `CODEX_HOME=<project>/.codex` contract, unless `--skip-runtime-assets` is used
|
|
92
|
+
- `--skip-skills` is deprecated; use `--skip-runtime-assets` instead
|
|
93
|
+
|
|
72
94
|
### `sdtk-spec auth`
|
|
73
|
-
|
|
74
|
-
Manage GitHub authentication and verify entitlement.
|
|
75
|
-
|
|
95
|
+
|
|
96
|
+
Manage GitHub authentication and verify entitlement.
|
|
97
|
+
|
|
76
98
|
```bash
|
|
77
99
|
sdtk-spec auth --token <value> # store PAT
|
|
78
100
|
sdtk-spec auth --verify # check repo access
|
|
79
101
|
sdtk-spec auth --status # show auth state
|
|
80
102
|
sdtk-spec auth --logout # clear credentials
|
|
81
103
|
```
|
|
82
|
-
|
|
83
|
-
#### Entitlement repo override
|
|
84
|
-
|
|
104
|
+
|
|
105
|
+
#### Entitlement repo override
|
|
106
|
+
|
|
85
107
|
By default, `sdtk-spec auth --verify` checks access against the built-in private repo. You can override this with the `SDTK_ENTITLEMENT_REPO` environment variable:
|
|
86
|
-
|
|
87
|
-
```bash
|
|
88
|
-
# bash / zsh
|
|
89
|
-
export SDTK_ENTITLEMENT_REPO=owner/repo
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
# bash / zsh
|
|
111
|
+
export SDTK_ENTITLEMENT_REPO=owner/repo
|
|
90
112
|
sdtk-spec auth --verify
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
```powershell
|
|
94
|
-
# PowerShell
|
|
95
|
-
$env:SDTK_ENTITLEMENT_REPO="owner/repo"
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
```powershell
|
|
116
|
+
# PowerShell
|
|
117
|
+
$env:SDTK_ENTITLEMENT_REPO="owner/repo"
|
|
96
118
|
sdtk-spec auth --verify
|
|
97
|
-
```
|
|
98
|
-
|
|
119
|
+
```
|
|
120
|
+
|
|
99
121
|
### `sdtk-spec generate`
|
|
100
|
-
|
|
122
|
+
|
|
101
123
|
Generate feature documentation from templates. Produces 17 files matching the `SDTK-SPEC` toolkit contract.
|
|
102
|
-
|
|
124
|
+
|
|
103
125
|
```bash
|
|
104
126
|
sdtk-spec generate --feature-key <UPPER_SNAKE_CASE> --feature-name "<text>" [--project-path <path>] [--force] [--validate-only]
|
|
105
127
|
```
|
|
106
|
-
|
|
107
|
-
Output files include: project initiation, BA spec, flow-action spec, PRD, backlog, architecture design, database spec, API specs (OpenAPI + endpoints + design detail + flow list), UI design layout, implementation plan, test cases, and QA release report.
|
|
108
|
-
|
|
128
|
+
|
|
129
|
+
Output files include: project initiation, BA spec, flow-action spec, PRD, backlog, architecture design, database spec, API specs (OpenAPI + endpoints + design detail + flow list), UI design layout, implementation plan, test cases, and QA release report.
|
|
130
|
+
|
|
109
131
|
### `sdtk-spec runtime`
|
|
110
132
|
|
|
111
133
|
Manage runtime skill assets independently of `sdtk-spec init`.
|
|
112
|
-
|
|
134
|
+
|
|
113
135
|
```bash
|
|
114
136
|
sdtk-spec runtime install --runtime <codex|claude> [--scope <project|user>]
|
|
115
137
|
sdtk-spec runtime uninstall --runtime <codex|claude> [--scope <project|user>]
|
|
116
138
|
sdtk-spec runtime status --runtime <codex|claude>
|
|
117
139
|
```
|
|
118
|
-
|
|
119
|
-
Scope defaults:
|
|
120
|
-
- `claude`: `project` (installs to `.claude/skills/`); `user` installs to `~/.claude/skills/`
|
|
121
|
-
- `codex`: `user`
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
140
|
+
|
|
141
|
+
Scope defaults:
|
|
142
|
+
- `claude`: `project` (installs to `.claude/skills/`); `user` installs to `~/.claude/skills/`
|
|
143
|
+
- `codex`: defaults to `user` scope (installs to `$CODEX_HOME/skills/` or `~/.codex/skills/`) and supports `project` scope only through the explicit local `CODEX_HOME=<project>/.codex` contract
|
|
144
|
+
|
|
145
|
+
Important uninstall truth:
|
|
146
|
+
- `sdtk-spec runtime uninstall` removes only SDTK-SPEC-managed skill folders for the selected runtime and scope
|
|
147
|
+
- it does **not** delete parent runtime roots such as `.claude/`, `.claude/skills/`, `$CODEX_HOME/`, or `$CODEX_HOME/skills/`
|
|
148
|
+
- `npm uninstall -g sdtk-spec-kit` removes the CLI package only and does not remove runtime assets that were already installed
|
|
149
|
+
|
|
150
|
+
Examples:
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
# Install Claude skills at project scope (default)
|
|
127
154
|
sdtk-spec runtime install --runtime claude
|
|
128
|
-
|
|
129
|
-
# Install Claude skills at user scope
|
|
155
|
+
|
|
156
|
+
# Install Claude skills at user scope
|
|
130
157
|
sdtk-spec runtime install --runtime claude --scope user
|
|
131
|
-
|
|
132
|
-
# Check installed runtime assets
|
|
158
|
+
|
|
159
|
+
# Check installed runtime assets
|
|
133
160
|
sdtk-spec runtime status --runtime claude
|
|
134
|
-
|
|
135
|
-
# Remove runtime assets
|
|
161
|
+
|
|
162
|
+
# Remove runtime assets
|
|
136
163
|
sdtk-spec runtime uninstall --runtime claude --scope project
|
|
137
|
-
|
|
138
|
-
|
|
164
|
+
|
|
165
|
+
# Remove the npm package after runtime cleanup
|
|
166
|
+
npm uninstall -g sdtk-spec-kit
|
|
167
|
+
```
|
|
168
|
+
|
|
139
169
|
### `sdtk-spec --help` / `sdtk-spec --version`
|
|
140
170
|
|
|
141
171
|
```bash
|
|
142
172
|
sdtk-spec --help
|
|
143
173
|
sdtk-spec --version
|
|
144
174
|
```
|
|
145
|
-
|
|
146
|
-
## Exit Codes
|
|
147
|
-
|
|
148
|
-
| Code | Meaning |
|
|
149
|
-
|------|---------|
|
|
150
|
-
| 0 | Success |
|
|
151
|
-
| 1 | Validation or user error (bad args, missing auth) |
|
|
152
|
-
| 2 | Dependency error (PowerShell not found) |
|
|
153
|
-
| 3 | Integrity error (payload hash mismatch) |
|
|
154
|
-
| 4 | Unexpected internal error |
|
|
155
|
-
|
|
156
|
-
## Requirements
|
|
157
|
-
|
|
158
|
-
- Node.js >= 18.13.0
|
|
159
|
-
- PowerShell (Windows PowerShell 5.1+ or PowerShell Core)
|
|
160
|
-
|
|
161
|
-
## Troubleshooting
|
|
162
|
-
|
|
163
|
-
**PowerShell not found**
|
|
164
|
-
- Ensure `powershell.exe` (Windows) or `pwsh` (macOS/Linux) is in your PATH.
|
|
165
|
-
|
|
166
|
-
**Invalid or expired token**
|
|
175
|
+
|
|
176
|
+
## Exit Codes
|
|
177
|
+
|
|
178
|
+
| Code | Meaning |
|
|
179
|
+
|------|---------|
|
|
180
|
+
| 0 | Success |
|
|
181
|
+
| 1 | Validation or user error (bad args, missing auth) |
|
|
182
|
+
| 2 | Dependency error (PowerShell not found) |
|
|
183
|
+
| 3 | Integrity error (payload hash mismatch) |
|
|
184
|
+
| 4 | Unexpected internal error |
|
|
185
|
+
|
|
186
|
+
## Requirements
|
|
187
|
+
|
|
188
|
+
- Node.js >= 18.13.0
|
|
189
|
+
- PowerShell (Windows PowerShell 5.1+ or PowerShell Core)
|
|
190
|
+
|
|
191
|
+
## Troubleshooting
|
|
192
|
+
|
|
193
|
+
**PowerShell not found**
|
|
194
|
+
- Ensure `powershell.exe` (Windows) or `pwsh` (macOS/Linux) is in your PATH.
|
|
195
|
+
|
|
196
|
+
**Invalid or expired token**
|
|
167
197
|
- Run `sdtk-spec auth --token <new-token>` with a valid GitHub PAT.
|
|
168
|
-
|
|
169
|
-
**No repository access**
|
|
198
|
+
|
|
199
|
+
**No repository access**
|
|
170
200
|
- Verify your token has access to the private distribution repo with `sdtk-spec auth --verify`.
|
|
171
|
-
- If your organization uses a custom entitlement repo, set `SDTK_ENTITLEMENT_REPO=owner/repo` before running `--verify`.
|
|
172
|
-
|
|
173
|
-
**Payload hash mismatch**
|
|
174
|
-
- The bundled toolkit payload may be corrupted. Reinstall the package.
|
|
175
|
-
|
|
176
|
-
## Development
|
|
177
|
-
|
|
178
|
-
```bash
|
|
179
|
-
# Sync toolkit payload from repo root
|
|
180
|
-
npm run build:payload
|
|
181
|
-
|
|
182
|
-
# Verify payload integrity
|
|
183
|
-
npm run verify:payload
|
|
184
|
-
|
|
185
|
-
# Smoke test npm pack
|
|
186
|
-
npm run pack:smoke
|
|
187
|
-
```
|
|
188
|
-
|
|
189
|
-
Run `tests/skill_triggering/` to validate skill routing behavior.
|
|
190
|
-
|
|
201
|
+
- If your organization uses a custom entitlement repo, set `SDTK_ENTITLEMENT_REPO=owner/repo` before running `--verify`.
|
|
202
|
+
|
|
203
|
+
**Payload hash mismatch**
|
|
204
|
+
- The bundled toolkit payload may be corrupted. Reinstall the package.
|
|
205
|
+
|
|
206
|
+
## Development
|
|
207
|
+
|
|
208
|
+
```bash
|
|
209
|
+
# Sync toolkit payload from repo root
|
|
210
|
+
npm run build:payload
|
|
211
|
+
|
|
212
|
+
# Verify payload integrity
|
|
213
|
+
npm run verify:payload
|
|
214
|
+
|
|
215
|
+
# Smoke test npm pack
|
|
216
|
+
npm run pack:smoke
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
Run `tests/skill_triggering/` to validate skill routing behavior.
|
|
220
|
+
|