sdtk-code-kit 0.1.0 → 0.1.1

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 (38) hide show
  1. package/README.md +138 -130
  2. package/assets/manifest/toolkit-bundle.manifest.json +47 -47
  3. package/assets/manifest/toolkit-bundle.sha256.txt +23 -23
  4. package/assets/toolkit/toolkit/AGENTS.md +8 -1
  5. package/assets/toolkit/toolkit/install.ps1 +1 -8
  6. package/assets/toolkit/toolkit/scripts/install-codex-skills.ps1 +30 -7
  7. package/assets/toolkit/toolkit/scripts/uninstall-codex-skills.ps1 +31 -2
  8. package/assets/toolkit/toolkit/sdtk-spec.config.json +1 -1
  9. package/assets/toolkit/toolkit/skills/code-brainstorm/SKILL.md +0 -1
  10. package/assets/toolkit/toolkit/skills/code-debug/SKILL.md +1 -2
  11. package/assets/toolkit/toolkit/skills/code-debug/references/root-cause-tracing.md +0 -1
  12. package/assets/toolkit/toolkit/skills/code-execute/SKILL.md +0 -1
  13. package/assets/toolkit/toolkit/skills/code-finish/SKILL.md +0 -1
  14. package/assets/toolkit/toolkit/skills/code-parallel/SKILL.md +0 -1
  15. package/assets/toolkit/toolkit/skills/code-parallel/references/code-quality-reviewer-prompt.md +0 -1
  16. package/assets/toolkit/toolkit/skills/code-parallel/references/implementer-prompt.md +0 -1
  17. package/assets/toolkit/toolkit/skills/code-parallel/references/spec-reviewer-prompt.md +0 -1
  18. package/assets/toolkit/toolkit/skills/code-plan/SKILL.md +0 -1
  19. package/assets/toolkit/toolkit/skills/code-review/SKILL.md +0 -1
  20. package/assets/toolkit/toolkit/skills/code-review/references/checklist.md +0 -1
  21. package/assets/toolkit/toolkit/skills/code-review/references/code-reviewer.md +0 -1
  22. package/assets/toolkit/toolkit/skills/code-ship/SKILL.md +0 -1
  23. package/assets/toolkit/toolkit/skills/code-tdd/SKILL.md +1 -2
  24. package/assets/toolkit/toolkit/skills/code-tdd/references/testing-anti-patterns.md +0 -1
  25. package/assets/toolkit/toolkit/skills/code-verify/SKILL.md +0 -1
  26. package/assets/toolkit/toolkit/skills/code-worktree/SKILL.md +13 -14
  27. package/package.json +1 -1
  28. package/src/commands/help.js +163 -145
  29. package/src/commands/init.js +10 -1
  30. package/src/commands/plan.js +1 -0
  31. package/src/commands/runtime.js +27 -8
  32. package/src/commands/ship.js +5 -0
  33. package/src/lib/scope.js +19 -2
  34. package/src/lib/workflow-artifact.js +51 -14
  35. package/src/lib/workflow-handoff.js +510 -0
  36. package/src/lib/workflow-intake.js +2 -1
  37. package/src/lib/workflow-plan.js +102 -5
  38. package/src/lib/workflow-ship.js +53 -3
package/README.md CHANGED
@@ -1,138 +1,146 @@
1
- # sdtk-code-kit
2
-
3
- `SDTK-CODE` is the coding-process toolkit in the `SDTK-SPEC -> SDTK-CODE -> SDTK-OPS` family.
4
-
5
- Public package truth:
6
- - install via `npm install -g sdtk-code-kit@0.1.0`
7
- - use the `sdtk-code` command
8
- - workflow-first commands are implemented:
9
- - `start`
10
- - `plan`
11
- - `build`
12
- - `verify`
13
- - `ship`
14
- - support commands are implemented:
15
- - `init`
16
- - `runtime install|uninstall|status`
17
- - `help`
18
- - `--version`
19
- - package payload intentionally stays narrow:
20
- - ships runtime assets needed by `init` and `runtime`
21
- - ships `toolkit/templates/CODE_WORKFLOW_TEMPLATE.md` because `start` depends on it
22
- - does not bulk-sync `toolkit/templates/**`
23
- - the package is publicly installable, but real workflow execution still expects upstream `SDTK-SPEC` artifacts to already exist in the working project
24
-
25
- ## Command surface
26
-
27
- ```text
28
- sdtk-code <command> [options]
29
-
30
- Commands:
31
- start
32
- plan
33
- build
34
- verify
35
- ship
36
- init
37
- runtime
38
- help
39
- --version
40
- ```
41
-
42
- `generate` is not part of the SDTK-CODE v1 public command surface.
43
-
44
- ## Runtime behavior
45
-
46
- | Runtime | Project scope | User scope | Notes |
47
- |---|:---:|:---:|---|
48
- | Claude | Yes | Yes | installs `code-*` skills |
49
- | Codex | No | Yes | installs `sdtk-code-*` skills; Gate C0 blocks project scope |
50
-
51
- Notes:
52
- - `sdtk-code init` defaults to `codex`
53
- - `sdtk-code runtime` requires `--runtime`
54
- - init/runtime install shared files only: `AGENTS.md`, `sdtk-spec.config.json`, `sdtk-spec.config.profiles.example.json`
55
- - SDTK-CODE does not install `CLAUDE.md` or `CODEX.md` in v1
56
-
57
- ## Upstream boundary
58
-
59
- Use this workflow surface only after upstream `SDTK-SPEC` handoff inputs already exist.
1
+ # sdtk-code-kit
2
+
3
+ `SDTK-CODE` is the coding-process product in the `SDTK-SPEC -> SDTK-CODE -> SDTK-OPS` family.
4
+
5
+ ## Document Role
6
+ This README is the npm package landing page for `sdtk-code-kit`.
7
+
8
+ Use it to confirm:
9
+ - package name and install command
10
+ - canonical command surface
11
+ - runtime scope truth
12
+ - upstream dependency boundary
13
+
14
+ For the full end-user guide, use:
15
+ - `products/sdtk-code/governance/SDTKCODE_TOOLKIT_USAGE_GUIDE.md`
16
+
17
+ ## Public Package Truth
18
+
19
+ - package: `sdtk-code-kit`
20
+ - command: `sdtk-code`
21
+ - latest published version lookup: `npm view sdtk-code-kit version`
22
+ - primary workflow-first surface:
23
+ - `start`
24
+ - `plan`
25
+ - `build`
26
+ - `verify`
27
+ - `ship`
28
+ - support commands:
29
+ - `init`
30
+ - `runtime install`
31
+ - `runtime status`
32
+ - `runtime uninstall`
33
+ - `help`
34
+ - `--version`
35
+
36
+ Not part of the v1 public surface:
37
+ - `generate`
38
+
39
+ ## Install
40
+
41
+ ```powershell
42
+ npm install -g sdtk-code-kit
43
+ sdtk-code --version
44
+ sdtk-code --help
45
+ ```
46
+
47
+ If you need the exact latest published version number, run:
48
+
49
+ ```powershell
50
+ npm view sdtk-code-kit version
51
+ ```
52
+
53
+ ## First Quick Start
54
+
55
+ Initialize the workspace first:
56
+
57
+ ```powershell
58
+ sdtk-code init --runtime codex --project-path ./my-project
59
+ ```
60
+
61
+ After upstream `SDTK-SPEC` inputs already exist, start the workflow:
62
+ - preferred: `docs/dev/CODE_HANDOFF_[FEATURE_KEY].json`
63
+ - bounded fallback when the formal handoff file is missing:
64
+ - `docs/dev/FEATURE_IMPL_PLAN_[FEATURE_KEY].md`
65
+ - `sdtk-spec.config.json`
66
+
67
+ ```powershell
68
+ sdtk-code start --feature-key ORDER_MGMT --lane feature --project-path ./my-project
69
+ ```
70
+
71
+ Use Claude instead when you want project-scope runtime assets:
72
+
73
+ ```powershell
74
+ sdtk-code init --runtime claude --project-path ./my-project
75
+ ```
76
+
77
+ ## Runtime Truth
78
+
79
+ | Runtime | Project scope | User scope | Current truth |
80
+ |---|:---:|:---:|---|
81
+ | Claude | Yes | Yes | installs `code-*` skills |
82
+ | Codex | No | Yes | installs `sdtk-code-*` skills; project scope is blocked by Gate C0 |
83
+
84
+ ## Remove Runtime Assets vs Remove the Package
85
+
86
+ Use:
87
+
88
+ ```powershell
89
+ sdtk-code runtime uninstall --runtime claude --scope project --project-path ./my-project
90
+ sdtk-code runtime uninstall --runtime codex --all
91
+ ```
92
+
93
+ when you want to remove only SDTK-CODE-managed runtime skill folders.
94
+
95
+ Important truth:
96
+ - `runtime uninstall` removes only SDTK-CODE-managed skill folders for the selected runtime and scope
97
+ - it does **not** delete parent runtime roots such as `.claude/`, `.claude/skills/`, `$CODEX_HOME/`, or `$CODEX_HOME/skills/`
98
+
99
+ Use:
100
+
101
+ ```powershell
102
+ npm uninstall -g sdtk-code-kit
103
+ ```
104
+
105
+ when you want to remove the global npm package and CLI shim only.
106
+
107
+ That npm command does **not** remove runtime assets that were already copied into Claude or Codex skill folders.
108
+
109
+ ## Upstream Dependency
110
+
111
+ `SDTK-CODE` is publicly installable, but real workflow execution still expects upstream `SDTK-SPEC` artifacts.
112
+
113
+ Task-breakdown truth:
114
+ - upstream `SDTK-SPEC` `/dev` still owns implementation-readiness planning and formal handoff scope
115
+ - `FEATURE_IMPL_PLAN_[FEATURE_KEY].md` remains the upstream readiness plan
116
+ - `sdtk-code plan` refines downstream execution slices only after intake succeeds
60
117
 
61
118
  Preferred intake artifact:
62
119
  - `docs/dev/CODE_HANDOFF_[FEATURE_KEY].json`
120
+
121
+ Bounded fallback when the formal handoff file is missing:
122
+ - `docs/dev/FEATURE_IMPL_PLAN_[FEATURE_KEY].md`
123
+ - `sdtk-spec.config.json`
124
+ - relevant architecture, API, database, and flow/screen specs for the current slice when applicable
125
+
126
+ Blocking truth:
127
+ - invalid or upstream-blocked formal handoff must stop `sdtk-code start`
128
+ - no silent fallback is allowed when the formal handoff file already exists but is invalid
63
129
 
64
- Compatibility fallback when the formal handoff file is missing:
65
- - `docs/dev/FEATURE_IMPL_PLAN_[FEATURE_KEY].md`
66
- - relevant API / DB / ARCH / FLOW_ACTION specs for the current slice
67
- - `sdtk-spec.config.json`
68
-
69
- This package does not replace `SDTK-SPEC` for upstream planning, architecture, or handoff generation.
70
-
71
- ## Workflow-first package truth
72
-
73
- Normal mode is workflow-first:
74
- - feature lane: `start -> plan -> build -> verify -> ship`
75
- - bugfix lane: `start -> build -> verify -> ship`
130
+ ## Downstream OPS Bridge
76
131
 
77
- Canonical workflow artifact:
78
- - `docs/dev/CODE_WORKFLOW_[FEATURE_KEY].md`
132
+ Completed closeout from a formal-handoff-backed workflow writes the canonical downstream bridge:
133
+ - `docs/dev/OPS_HANDOFF_[FEATURE_KEY].json`
79
134
 
80
- Canonical workflow template shipped with the package:
81
- - `products/sdtk-code/toolkit/templates/CODE_WORKFLOW_TEMPLATE.md`
82
-
83
- Expert mode remains direct raw `code-*` usage inside Claude or Codex.
84
-
85
- ## Install and first smoke
86
-
87
- ```powershell
88
- npm install -g sdtk-code-kit@0.1.0
89
- sdtk-code --help
90
- sdtk-code init --runtime codex --project-path ./my-project
91
- sdtk-code runtime status --runtime codex
92
- ```
93
-
94
- If you want Claude project-scope install behavior instead:
95
-
96
- ```powershell
97
- sdtk-code init --runtime claude --project-path ./my-project
98
- sdtk-code runtime status --runtime claude --project-path ./my-project
99
- ```
100
-
101
- ## Maintainer packaging smoke
102
-
103
- From this package directory:
104
-
105
- ```powershell
106
- npm run build:payload
107
- npm run verify:payload
108
- npm pack --dry-run
109
- node bin/sdtk-code.js --help
110
- node bin/sdtk-code.js init --runtime claude --project-path ..\..\..\..\tmp-sdtk-code
111
- node bin/sdtk-code.js start --feature-key ORDER_MGMT --lane feature --project-path ..\..\..\..\tmp-sdtk-code
112
- node bin/sdtk-code.js plan --feature-key ORDER_MGMT --project-path ..\..\..\..\tmp-sdtk-code --slice "API contract updates"
113
- node bin/sdtk-code.js build --feature-key ORDER_MGMT --project-path ..\..\..\..\tmp-sdtk-code --active-slice "API contract updates" --complete
114
- node bin/sdtk-code.js verify --feature-key ORDER_MGMT --project-path ..\..\..\..\tmp-sdtk-code --evidence "pytest -q|Regression suite passed|pass|docs/dev/evidence/ORDER_MGMT/pytest.txt" --spec-status pass --quality-status pass --complete
115
- node bin/sdtk-code.js ship --feature-key ORDER_MGMT --project-path ..\..\..\..\tmp-sdtk-code --decision ship --preflight "npm pack --dry-run|Package smoke passed|pass|docs/dev/evidence/ORDER_MGMT/pack.txt"
116
- ```
117
-
118
- ## Release truth
119
-
120
- First public release target:
121
- - `sdtk-code-kit@0.1.0`
122
-
123
- Release model:
124
- - maintainer-driven local publish
125
- - public npm metadata is part of the shipped package truth
126
- - CI/tag-publish parity is follow-up hardening, not a blocker for the first public release
127
-
128
- Historical note:
129
- - older publishability planning assumed no workflow template belonged in the package payload
130
- - that assumption is superseded by the implemented workflow-first rollout
131
- - the package now intentionally ships only `CODE_WORKFLOW_TEMPLATE.md` from `toolkit/templates/`, not the full templates tree
135
+ Important boundary:
136
+ - this bridge is produced by `SDTK-CODE` for downstream `SDTK-OPS`
137
+ - compatibility fallback workflows do not invent a fake `OPS_HANDOFF` without the current `CODE_HANDOFF_[FEATURE_KEY].json`
132
138
 
133
139
  ## References
134
-
135
- - `products/sdtk-code/governance/usage-guide.md`
136
- - `products/sdtk-code/governance/installation-runbook.md`
137
- - `products/sdtk-code/governance/parity-matrix.md`
138
- - `products/sdtk-code/governance/release-packaging.md`
140
+
141
+ - Canonical end-user guide:
142
+ - `products/sdtk-code/governance/SDTKCODE_TOOLKIT_USAGE_GUIDE.md`
143
+ - Install and smoke appendix:
144
+ - `products/sdtk-code/governance/installation-runbook.md`
145
+ - Product boundary and architecture:
146
+ - `products/sdtk-code/toolkit/SDTKCODE_TOOLKIT.md`
@@ -1,17 +1,17 @@
1
1
  {
2
- "version": "0.1.0",
3
- "sourceCommit": "6bd50240df4da671347f44fbea93d34bfae5f258",
2
+ "version": "0.1.1",
3
+ "sourceCommit": "5b21b7376fcf11a9138f486921de5e07e0c88ac7",
4
4
  "fileCount": 28,
5
5
  "files": [
6
6
  {
7
7
  "path": "toolkit/AGENTS.md",
8
- "sha256": "04642d178219f03fb3922239df297ae91d81326046c153cf28f07f8a7db582ec",
9
- "size": 8012
8
+ "sha256": "ae15216dbefd773d3c46e0a892cd495dfe4afb9fb89560d87c402158e4449297",
9
+ "size": 8453
10
10
  },
11
11
  {
12
12
  "path": "toolkit/install.ps1",
13
- "sha256": "3fdb6c7f077004971a3f24ccdd2072ade36a3e9bc0f2a29309b2fa2a9fd585c7",
14
- "size": 2950
13
+ "sha256": "4500fee93ba7f50f66d599f9b1ca63066698d129ea3639f699e9ea3b4255e15d",
14
+ "size": 2755
15
15
  },
16
16
  {
17
17
  "path": "toolkit/scripts/install-claude-skills.ps1",
@@ -20,8 +20,8 @@
20
20
  },
21
21
  {
22
22
  "path": "toolkit/scripts/install-codex-skills.ps1",
23
- "sha256": "e47096d77f789fac6b9bc389b4f5fcb594db2f9530cde2c4f7708afd972d95ad",
24
- "size": 3981
23
+ "sha256": "7d61249db7eee6185e5454f7427b808c79d5e564e0d2214ee5f92fa105effb04",
24
+ "size": 4762
25
25
  },
26
26
  {
27
27
  "path": "toolkit/scripts/uninstall-claude-skills.ps1",
@@ -30,12 +30,12 @@
30
30
  },
31
31
  {
32
32
  "path": "toolkit/scripts/uninstall-codex-skills.ps1",
33
- "sha256": "180125067b655790305a855c0f13a00abf94521a3c7d4cf47207c7d27776d5d5",
34
- "size": 1518
33
+ "sha256": "0fd11650bd445fad37c728471872b99bfb8bd17dfb95e62431ceccfad7f0852f",
34
+ "size": 2430
35
35
  },
36
36
  {
37
37
  "path": "toolkit/sdtk-spec.config.json",
38
- "sha256": "dce4f2fd00ba5bd6b15ee09b83a17b878814fff9f63e12c01921820df93605e9",
38
+ "sha256": "6b56e5d0b46aa527d7fbe56ec270d3d01218e668c32ba30a45674a9390eca2cd",
39
39
  "size": 113
40
40
  },
41
41
  {
@@ -45,18 +45,18 @@
45
45
  },
46
46
  {
47
47
  "path": "toolkit/skills/code-brainstorm/SKILL.md",
48
- "sha256": "8d6914cc4de12c5db57bd97f7b297db3fd0b35b1522f61eb936080221bd85759",
49
- "size": 2352
48
+ "sha256": "d797d707dc34d299dbac13f09f3bc8cc42759cb69a9fa5b2cb2269e4c246061e",
49
+ "size": 2215
50
50
  },
51
51
  {
52
52
  "path": "toolkit/skills/code-debug/references/root-cause-tracing.md",
53
- "sha256": "81bd8b131ec3d2740e9675e2fa4891584b448d52ef1e90a5484fabfa9b5f7a40",
54
- "size": 2346
53
+ "sha256": "698c89de9a0586e83ee52147adf345fa2ab813a06b454ca50e9c69e423f0a910",
54
+ "size": 2206
55
55
  },
56
56
  {
57
57
  "path": "toolkit/skills/code-debug/SKILL.md",
58
- "sha256": "a12da4370d3079055a4eb09fe4db7fe2fc611be440d3c7d89d527149a8888ae0",
59
- "size": 10422
58
+ "sha256": "0eaffea2cb755c6f2598c46bd937dcec82f2727160fac9a4beb36ff79560418e",
59
+ "size": 10283
60
60
  },
61
61
  {
62
62
  "path": "toolkit/skills/code-discover/SKILL.md",
@@ -65,78 +65,78 @@
65
65
  },
66
66
  {
67
67
  "path": "toolkit/skills/code-execute/SKILL.md",
68
- "sha256": "44c017b15463b033c6b815a88c65b9d028b99334484929e2eb6dc709420a3a35",
69
- "size": 2455
68
+ "sha256": "8627a8c33cd170cc8009feb2b6ab7bf2bc4be91daa3609dc331a554ba41b1b3d",
69
+ "size": 2318
70
70
  },
71
71
  {
72
72
  "path": "toolkit/skills/code-finish/SKILL.md",
73
- "sha256": "f6cfc9c86e80afe0f83d7789f076f07e18aab1d3b650aad1da416eb4fcaf9929",
74
- "size": 4397
73
+ "sha256": "5e352fb1739cf0b9297f34e49ae01d8b0c0ed57448c3c8f3b286d12e1177a130",
74
+ "size": 4260
75
75
  },
76
76
  {
77
77
  "path": "toolkit/skills/code-parallel/references/code-quality-reviewer-prompt.md",
78
- "sha256": "6e464c96353c8bc249f041b0b4d18afb115ac673b9665ab3bfc6948606a2abc3",
79
- "size": 1241
78
+ "sha256": "5fec663aa52b7fd2b942f71a0755f0cd109d2273a5cd21c7c24eeed7684a4cc9",
79
+ "size": 1101
80
80
  },
81
81
  {
82
82
  "path": "toolkit/skills/code-parallel/references/implementer-prompt.md",
83
- "sha256": "602d216ba4909b99f7b495e248dbf42944034e30087dad266035f3559446bbff",
84
- "size": 4397
83
+ "sha256": "10bc07e6498e6a1e54805cce4d964545f2c1614e6679b0c1c4eb7d17b894e3a6",
84
+ "size": 4257
85
85
  },
86
86
  {
87
87
  "path": "toolkit/skills/code-parallel/references/spec-reviewer-prompt.md",
88
- "sha256": "8e9b6f346d230915c34cee24725b23a9744474d4e0ba63ce5328ced592cd584d",
89
- "size": 2133
88
+ "sha256": "b22d3262f252f7cc994d13bfe16c7103f3afe1e66c255090d88e53fbd68a0f82",
89
+ "size": 1993
90
90
  },
91
91
  {
92
92
  "path": "toolkit/skills/code-parallel/SKILL.md",
93
- "sha256": "23220c3b14a9e7aade1e6fb7834bc2aa8baab3ae273c3d6504bc6cea7d2318dd",
94
- "size": 2828
93
+ "sha256": "393edd1c3ef6ff936c5ec6e2e739d3c02f1e6370e5a72872f186b5d2971d37b7",
94
+ "size": 2691
95
95
  },
96
96
  {
97
97
  "path": "toolkit/skills/code-plan/SKILL.md",
98
- "sha256": "0cb2e0f802fa4f356783d03cd6ef9b8067e7ef4ee034bca00e24d328c7b21b2c",
99
- "size": 3634
98
+ "sha256": "7fe115e27a83d04243401bb628ae4246a323246c972fd54890fe4a7e97926bbf",
99
+ "size": 3391
100
100
  },
101
101
  {
102
102
  "path": "toolkit/skills/code-review/references/checklist.md",
103
- "sha256": "f6bf2391bf2b52952192ebaa3d9509137ea565fc584a620b2a1e055b8aef5a64",
104
- "size": 6928
103
+ "sha256": "4612b4e40992f594b577146ac14f1ff13c1812e8e9da64b07eb1e2de5363af5d",
104
+ "size": 6797
105
105
  },
106
106
  {
107
107
  "path": "toolkit/skills/code-review/references/code-reviewer.md",
108
- "sha256": "320cf457223033789edb7ed7f1ce39f44aa26def5036fb665bce2c94d0633961",
109
- "size": 3525
108
+ "sha256": "7f5328dca12cb200005ae9d4386f63a9b0acb735ece57f82db206b4a3189ccae",
109
+ "size": 3385
110
110
  },
111
111
  {
112
112
  "path": "toolkit/skills/code-review/SKILL.md",
113
- "sha256": "59b75e3a8d90f0afc6759874dedefc4322905b38faf7b6dbccfceff88c178a02",
114
- "size": 2904
113
+ "sha256": "4d10ec40ae8ca87de03b2724b90c91053bf756c880a67d8f9a79aabd948f49b5",
114
+ "size": 2723
115
115
  },
116
116
  {
117
117
  "path": "toolkit/skills/code-ship/SKILL.md",
118
- "sha256": "d511664ebc817d31f8c28b8e01053d807f3c83d293ff07a52e4ec274df0ce10f",
119
- "size": 2251
118
+ "sha256": "c8dbbae4f8ed65b00e38a386cb9adba340c90dc7fd0dd8257f3c1fea37322558",
119
+ "size": 2123
120
120
  },
121
121
  {
122
122
  "path": "toolkit/skills/code-tdd/references/testing-anti-patterns.md",
123
- "sha256": "cff45b7dd0fc5b4c78086bc36532b73054333212881df5b56a8eef5b459991ef",
124
- "size": 8334
123
+ "sha256": "a85c93883197eef41f5392875b41a19b8cdeb3b14b3c6fb5a6dbfb6f21a1b825",
124
+ "size": 8194
125
125
  },
126
126
  {
127
127
  "path": "toolkit/skills/code-tdd/SKILL.md",
128
- "sha256": "2bdb79fe471aa76dc6939eb5bd90d1ae2739c68553cdb64b91f2cfafb083c1c3",
129
- "size": 10842
128
+ "sha256": "adc09aae75a67705cfa69122b1496e0f8f64a56f5ed8e31c3f18bbed9c8238ed",
129
+ "size": 10703
130
130
  },
131
131
  {
132
132
  "path": "toolkit/skills/code-verify/SKILL.md",
133
- "sha256": "17a6b73ec64d96162cdee22ec58c53ece93ea0f6a60b2fc02fbe03e194346438",
134
- "size": 4334
133
+ "sha256": "6df69cf2db69d13672b3e73a2c25aca48791e9ea912c1e1fbc3ce7734399c346",
134
+ "size": 4197
135
135
  },
136
136
  {
137
137
  "path": "toolkit/skills/code-worktree/SKILL.md",
138
- "sha256": "d6a1f2baf4540a504a5951f36f53dee64ba62a1dc38021c347576c1d230b29b2",
139
- "size": 6357
138
+ "sha256": "c715716c3e2599fa2e5376c68c0496d5b631085ecdb31709df91f0e69aafe74b",
139
+ "size": 6231
140
140
  },
141
141
  {
142
142
  "path": "toolkit/templates/CODE_WORKFLOW_TEMPLATE.md",
@@ -1,28 +1,28 @@
1
- 04642d178219f03fb3922239df297ae91d81326046c153cf28f07f8a7db582ec toolkit/AGENTS.md
2
- 3fdb6c7f077004971a3f24ccdd2072ade36a3e9bc0f2a29309b2fa2a9fd585c7 toolkit/install.ps1
1
+ ae15216dbefd773d3c46e0a892cd495dfe4afb9fb89560d87c402158e4449297 toolkit/AGENTS.md
2
+ 4500fee93ba7f50f66d599f9b1ca63066698d129ea3639f699e9ea3b4255e15d toolkit/install.ps1
3
3
  720990cc979cdbca776bbe21eaeee0a73c5dd698ac6c8df430c7f22826ec9219 toolkit/scripts/install-claude-skills.ps1
4
- e47096d77f789fac6b9bc389b4f5fcb594db2f9530cde2c4f7708afd972d95ad toolkit/scripts/install-codex-skills.ps1
4
+ 7d61249db7eee6185e5454f7427b808c79d5e564e0d2214ee5f92fa105effb04 toolkit/scripts/install-codex-skills.ps1
5
5
  148ddfc5a79a9dd6d7fa5b926c5511a5e4d458fa31003217cdc2eefcbe966cc2 toolkit/scripts/uninstall-claude-skills.ps1
6
- 180125067b655790305a855c0f13a00abf94521a3c7d4cf47207c7d27776d5d5 toolkit/scripts/uninstall-codex-skills.ps1
7
- dce4f2fd00ba5bd6b15ee09b83a17b878814fff9f63e12c01921820df93605e9 toolkit/sdtk-spec.config.json
6
+ 0fd11650bd445fad37c728471872b99bfb8bd17dfb95e62431ceccfad7f0852f toolkit/scripts/uninstall-codex-skills.ps1
7
+ 6b56e5d0b46aa527d7fbe56ec270d3d01218e668c32ba30a45674a9390eca2cd toolkit/sdtk-spec.config.json
8
8
  e690255217a8b276c1d9bd3714e2cda9d92c0fac703bc955b9280e1b698e2d04 toolkit/sdtk-spec.config.profiles.example.json
9
- 8d6914cc4de12c5db57bd97f7b297db3fd0b35b1522f61eb936080221bd85759 toolkit/skills/code-brainstorm/SKILL.md
10
- 81bd8b131ec3d2740e9675e2fa4891584b448d52ef1e90a5484fabfa9b5f7a40 toolkit/skills/code-debug/references/root-cause-tracing.md
11
- a12da4370d3079055a4eb09fe4db7fe2fc611be440d3c7d89d527149a8888ae0 toolkit/skills/code-debug/SKILL.md
9
+ d797d707dc34d299dbac13f09f3bc8cc42759cb69a9fa5b2cb2269e4c246061e toolkit/skills/code-brainstorm/SKILL.md
10
+ 698c89de9a0586e83ee52147adf345fa2ab813a06b454ca50e9c69e423f0a910 toolkit/skills/code-debug/references/root-cause-tracing.md
11
+ 0eaffea2cb755c6f2598c46bd937dcec82f2727160fac9a4beb36ff79560418e toolkit/skills/code-debug/SKILL.md
12
12
  de71c2ae31b28e6591e9045e940aa2c1e58b598145d2fb4fe77883ffafe56187 toolkit/skills/code-discover/SKILL.md
13
- 44c017b15463b033c6b815a88c65b9d028b99334484929e2eb6dc709420a3a35 toolkit/skills/code-execute/SKILL.md
14
- f6cfc9c86e80afe0f83d7789f076f07e18aab1d3b650aad1da416eb4fcaf9929 toolkit/skills/code-finish/SKILL.md
15
- 6e464c96353c8bc249f041b0b4d18afb115ac673b9665ab3bfc6948606a2abc3 toolkit/skills/code-parallel/references/code-quality-reviewer-prompt.md
16
- 602d216ba4909b99f7b495e248dbf42944034e30087dad266035f3559446bbff toolkit/skills/code-parallel/references/implementer-prompt.md
17
- 8e9b6f346d230915c34cee24725b23a9744474d4e0ba63ce5328ced592cd584d toolkit/skills/code-parallel/references/spec-reviewer-prompt.md
18
- 23220c3b14a9e7aade1e6fb7834bc2aa8baab3ae273c3d6504bc6cea7d2318dd toolkit/skills/code-parallel/SKILL.md
19
- 0cb2e0f802fa4f356783d03cd6ef9b8067e7ef4ee034bca00e24d328c7b21b2c toolkit/skills/code-plan/SKILL.md
20
- f6bf2391bf2b52952192ebaa3d9509137ea565fc584a620b2a1e055b8aef5a64 toolkit/skills/code-review/references/checklist.md
21
- 320cf457223033789edb7ed7f1ce39f44aa26def5036fb665bce2c94d0633961 toolkit/skills/code-review/references/code-reviewer.md
22
- 59b75e3a8d90f0afc6759874dedefc4322905b38faf7b6dbccfceff88c178a02 toolkit/skills/code-review/SKILL.md
23
- d511664ebc817d31f8c28b8e01053d807f3c83d293ff07a52e4ec274df0ce10f toolkit/skills/code-ship/SKILL.md
24
- cff45b7dd0fc5b4c78086bc36532b73054333212881df5b56a8eef5b459991ef toolkit/skills/code-tdd/references/testing-anti-patterns.md
25
- 2bdb79fe471aa76dc6939eb5bd90d1ae2739c68553cdb64b91f2cfafb083c1c3 toolkit/skills/code-tdd/SKILL.md
26
- 17a6b73ec64d96162cdee22ec58c53ece93ea0f6a60b2fc02fbe03e194346438 toolkit/skills/code-verify/SKILL.md
27
- d6a1f2baf4540a504a5951f36f53dee64ba62a1dc38021c347576c1d230b29b2 toolkit/skills/code-worktree/SKILL.md
13
+ 8627a8c33cd170cc8009feb2b6ab7bf2bc4be91daa3609dc331a554ba41b1b3d toolkit/skills/code-execute/SKILL.md
14
+ 5e352fb1739cf0b9297f34e49ae01d8b0c0ed57448c3c8f3b286d12e1177a130 toolkit/skills/code-finish/SKILL.md
15
+ 5fec663aa52b7fd2b942f71a0755f0cd109d2273a5cd21c7c24eeed7684a4cc9 toolkit/skills/code-parallel/references/code-quality-reviewer-prompt.md
16
+ 10bc07e6498e6a1e54805cce4d964545f2c1614e6679b0c1c4eb7d17b894e3a6 toolkit/skills/code-parallel/references/implementer-prompt.md
17
+ b22d3262f252f7cc994d13bfe16c7103f3afe1e66c255090d88e53fbd68a0f82 toolkit/skills/code-parallel/references/spec-reviewer-prompt.md
18
+ 393edd1c3ef6ff936c5ec6e2e739d3c02f1e6370e5a72872f186b5d2971d37b7 toolkit/skills/code-parallel/SKILL.md
19
+ 7fe115e27a83d04243401bb628ae4246a323246c972fd54890fe4a7e97926bbf toolkit/skills/code-plan/SKILL.md
20
+ 4612b4e40992f594b577146ac14f1ff13c1812e8e9da64b07eb1e2de5363af5d toolkit/skills/code-review/references/checklist.md
21
+ 7f5328dca12cb200005ae9d4386f63a9b0acb735ece57f82db206b4a3189ccae toolkit/skills/code-review/references/code-reviewer.md
22
+ 4d10ec40ae8ca87de03b2724b90c91053bf756c880a67d8f9a79aabd948f49b5 toolkit/skills/code-review/SKILL.md
23
+ c8dbbae4f8ed65b00e38a386cb9adba340c90dc7fd0dd8257f3c1fea37322558 toolkit/skills/code-ship/SKILL.md
24
+ a85c93883197eef41f5392875b41a19b8cdeb3b14b3c6fb5a6dbfb6f21a1b825 toolkit/skills/code-tdd/references/testing-anti-patterns.md
25
+ adc09aae75a67705cfa69122b1496e0f8f64a56f5ed8e31c3f18bbed9c8238ed toolkit/skills/code-tdd/SKILL.md
26
+ 6df69cf2db69d13672b3e73a2c25aca48791e9ea912c1e1fbc3ce7734399c346 toolkit/skills/code-verify/SKILL.md
27
+ c715716c3e2599fa2e5376c68c0496d5b631085ecdb31709df91f0e69aafe74b toolkit/skills/code-worktree/SKILL.md
28
28
  2e48444886c8a38ec0ec2cb0c73f7b8a7e5f273767d1fe3010dbff0f3ff8a60b toolkit/templates/CODE_WORKFLOW_TEMPLATE.md
@@ -6,7 +6,7 @@
6
6
  It is a separate product from `SDTK-SPEC`, not a sub-phase inside `SDTK-SPEC`.
7
7
 
8
8
  `SDTK-CODE` exists to enforce disciplined implementation work:
9
- - implementation planning refinement
9
+ - execution-planning refinement after valid intake
10
10
  - TDD-first execution
11
11
  - systematic debugging
12
12
  - evidence-first verification
@@ -14,6 +14,7 @@ It is a separate product from `SDTK-SPEC`, not a sub-phase inside `SDTK-SPEC`.
14
14
  - ship and finish discipline
15
15
 
16
16
  It does not own PM, BA, ARCH, or QA artifact generation.
17
+ It also does not own upstream implementation-readiness planning.
17
18
 
18
19
  ## 2. Upstream Boundary With SDTK-SPEC
19
20
  `SDTK-SPEC` is the upstream docs-first system.
@@ -34,12 +35,18 @@ Compatibility fallback when the formal handoff file is missing:
34
35
  - `sdtk-spec.config.json`
35
36
  - relevant architecture, API, DB, and flow/screen specs for the current slice when applicable
36
37
 
38
+ Task-breakdown truth:
39
+ - upstream `SDTK-SPEC` `/dev` owns implementation-readiness planning and formal handoff scope
40
+ - `FEATURE_IMPL_PLAN_[FEATURE_KEY].md` remains the upstream readiness plan
41
+ - `sdtk-code plan` refines downstream execution slices only after intake succeeds
42
+
37
43
  Expected outputs from `SDTK-CODE`:
38
44
  - code changes
39
45
  - test changes
40
46
  - summarized verification evidence
41
47
  - review findings
42
48
  - ship or finish decisions
49
+ - `docs/dev/OPS_HANDOFF_[FEATURE_KEY].json` on completed formal-handoff-backed closeout
43
50
 
44
51
  ## 3. Default Operating Model
45
52
  The default product direction is workflow-first.
@@ -53,11 +53,6 @@ if (-not $Scope) {
53
53
  $Scope = if ($Runtime -eq 'claude') { 'project' } else { 'user' }
54
54
  }
55
55
 
56
- if ($Runtime -eq 'codex' -and $Scope -eq 'project') {
57
- Write-Error "Codex does not support project-local skills. Use -Scope user instead."
58
- exit 1
59
- }
60
-
61
56
  if ($SkipSkills) {
62
57
  if (-not $Quiet) {
63
58
  Write-Warning "-SkipSkills is deprecated. Use -SkipRuntimeAssets instead."
@@ -108,11 +103,9 @@ if (-not $SkipRuntimeAssets) {
108
103
 
109
104
  $params = @{
110
105
  Scope = $Scope
106
+ ProjectPath = $projectRoot
111
107
  Quiet = [bool]$Quiet
112
108
  }
113
- if ($Runtime -eq 'claude') {
114
- $params.ProjectPath = $projectRoot
115
- }
116
109
  if ($Force) {
117
110
  $params.Force = $true
118
111
  }
@@ -1,18 +1,37 @@
1
1
  param(
2
2
  [ValidateSet('project', 'user')]
3
3
  [string]$Scope = 'user',
4
+ [string]$ProjectPath,
4
5
  [switch]$Force,
5
6
  [switch]$Quiet
6
7
  )
7
8
 
8
- if ($Scope -eq 'project') {
9
- Write-Error "Codex does not support project-local skills. Use -Scope user instead."
10
- exit 1
11
- }
12
-
13
9
  $ErrorActionPreference = 'Stop'
14
10
  Set-StrictMode -Version Latest
15
11
 
12
+ function Resolve-CodexHome {
13
+ param(
14
+ [Parameter(Mandatory = $true)][string]$TargetScope,
15
+ [string]$TargetProjectPath
16
+ )
17
+
18
+ if ($TargetScope -eq 'project') {
19
+ if (-not $TargetProjectPath -or $TargetProjectPath.Trim().Length -eq 0) {
20
+ throw "Project-local Codex install requires -ProjectPath."
21
+ }
22
+ if (-not (Test-Path -LiteralPath $TargetProjectPath)) {
23
+ New-Item -ItemType Directory -Force -Path $TargetProjectPath | Out-Null
24
+ }
25
+ $projectRoot = (Resolve-Path -LiteralPath $TargetProjectPath).Path
26
+ return (Join-Path $projectRoot '.codex')
27
+ }
28
+
29
+ if ($env:CODEX_HOME) {
30
+ return $env:CODEX_HOME
31
+ }
32
+ return (Join-Path $HOME '.codex')
33
+ }
34
+
16
35
  function Write-Utf8NoBomFile {
17
36
  param(
18
37
  [Parameter(Mandatory = $true)][string]$Path,
@@ -66,7 +85,7 @@ if ($managedSkills.Count -ne 12) {
66
85
  throw "Expected 12 managed SDTK-CODE skills but found $($managedSkills.Count)."
67
86
  }
68
87
 
69
- $codexHome = if ($env:CODEX_HOME) { $env:CODEX_HOME } else { Join-Path $HOME '.codex' }
88
+ $codexHome = Resolve-CodexHome -TargetScope $Scope -TargetProjectPath $ProjectPath
70
89
  $skillsDest = Join-Path $codexHome 'skills'
71
90
  New-Item -ItemType Directory -Force -Path $skillsDest | Out-Null
72
91
 
@@ -120,8 +139,12 @@ if ($installedNow.Count -ne 12) {
120
139
  if (-not $Quiet) {
121
140
  Write-Host ""
122
141
  Write-Host "Install summary:"
123
- Write-Host "- Scope: user"
142
+ Write-Host "- Scope: $Scope"
124
143
  Write-Host "- Destination: $skillsDest"
125
144
  Write-Host "- Copied: $copied"
126
145
  Write-Host "- Skipped: $skipped"
146
+ if ($Scope -eq 'project') {
147
+ Write-Host "- Project-local Codex support requires launching Codex with CODEX_HOME=<project>/.codex."
148
+ Write-Host "- Native .codex/skills auto-discovery is not claimed."
149
+ }
127
150
  }