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.
- package/README.md +138 -130
- package/assets/manifest/toolkit-bundle.manifest.json +47 -47
- package/assets/manifest/toolkit-bundle.sha256.txt +23 -23
- package/assets/toolkit/toolkit/AGENTS.md +8 -1
- package/assets/toolkit/toolkit/install.ps1 +1 -8
- package/assets/toolkit/toolkit/scripts/install-codex-skills.ps1 +30 -7
- package/assets/toolkit/toolkit/scripts/uninstall-codex-skills.ps1 +31 -2
- package/assets/toolkit/toolkit/sdtk-spec.config.json +1 -1
- package/assets/toolkit/toolkit/skills/code-brainstorm/SKILL.md +0 -1
- package/assets/toolkit/toolkit/skills/code-debug/SKILL.md +1 -2
- package/assets/toolkit/toolkit/skills/code-debug/references/root-cause-tracing.md +0 -1
- package/assets/toolkit/toolkit/skills/code-execute/SKILL.md +0 -1
- package/assets/toolkit/toolkit/skills/code-finish/SKILL.md +0 -1
- package/assets/toolkit/toolkit/skills/code-parallel/SKILL.md +0 -1
- package/assets/toolkit/toolkit/skills/code-parallel/references/code-quality-reviewer-prompt.md +0 -1
- package/assets/toolkit/toolkit/skills/code-parallel/references/implementer-prompt.md +0 -1
- package/assets/toolkit/toolkit/skills/code-parallel/references/spec-reviewer-prompt.md +0 -1
- package/assets/toolkit/toolkit/skills/code-plan/SKILL.md +0 -1
- package/assets/toolkit/toolkit/skills/code-review/SKILL.md +0 -1
- package/assets/toolkit/toolkit/skills/code-review/references/checklist.md +0 -1
- package/assets/toolkit/toolkit/skills/code-review/references/code-reviewer.md +0 -1
- package/assets/toolkit/toolkit/skills/code-ship/SKILL.md +0 -1
- package/assets/toolkit/toolkit/skills/code-tdd/SKILL.md +1 -2
- package/assets/toolkit/toolkit/skills/code-tdd/references/testing-anti-patterns.md +0 -1
- package/assets/toolkit/toolkit/skills/code-verify/SKILL.md +0 -1
- package/assets/toolkit/toolkit/skills/code-worktree/SKILL.md +13 -14
- package/package.json +1 -1
- package/src/commands/help.js +163 -145
- package/src/commands/init.js +10 -1
- package/src/commands/plan.js +1 -0
- package/src/commands/runtime.js +27 -8
- package/src/commands/ship.js +5 -0
- package/src/lib/scope.js +19 -2
- package/src/lib/workflow-artifact.js +51 -14
- package/src/lib/workflow-handoff.js +510 -0
- package/src/lib/workflow-intake.js +2 -1
- package/src/lib/workflow-plan.js +102 -5
- package/src/lib/workflow-ship.js +53 -3
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
param(
|
|
2
|
+
[ValidateSet('project', 'user')]
|
|
3
|
+
[string]$Scope = 'user',
|
|
4
|
+
[string]$ProjectPath,
|
|
2
5
|
[switch]$All,
|
|
3
6
|
[switch]$Quiet
|
|
4
7
|
)
|
|
@@ -6,6 +9,29 @@ param(
|
|
|
6
9
|
$ErrorActionPreference = 'Stop'
|
|
7
10
|
Set-StrictMode -Version Latest
|
|
8
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 uninstall 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
|
+
|
|
9
35
|
$toolkitRoot = (Resolve-Path (Join-Path $PSScriptRoot '..')).Path
|
|
10
36
|
$skillsSource = Join-Path $toolkitRoot 'skills'
|
|
11
37
|
if (-not (Test-Path -LiteralPath $skillsSource)) {
|
|
@@ -21,7 +47,7 @@ if ($managedSkillNames.Count -ne 12) {
|
|
|
21
47
|
throw "Expected 12 managed SDTK-CODE skills but found $($managedSkillNames.Count)."
|
|
22
48
|
}
|
|
23
49
|
|
|
24
|
-
$codexHome =
|
|
50
|
+
$codexHome = Resolve-CodexHome -TargetScope $Scope -TargetProjectPath $ProjectPath
|
|
25
51
|
$skillsDest = Join-Path $codexHome 'skills'
|
|
26
52
|
if (-not (Test-Path -LiteralPath $skillsDest)) {
|
|
27
53
|
if (-not $Quiet) {
|
|
@@ -46,8 +72,11 @@ foreach ($name in $managedSkillNames) {
|
|
|
46
72
|
if (-not $Quiet) {
|
|
47
73
|
Write-Host ""
|
|
48
74
|
Write-Host "Uninstall summary:"
|
|
49
|
-
Write-Host "- Scope:
|
|
75
|
+
Write-Host "- Scope: $Scope"
|
|
50
76
|
Write-Host "- Destination: $skillsDest"
|
|
51
77
|
Write-Host "- Removed: $($removed.Count)"
|
|
52
78
|
Write-Host "- Missing/Skipped: $($missing.Count)"
|
|
79
|
+
if ($Scope -eq 'project') {
|
|
80
|
+
Write-Host "- Project-local Codex uninstall touched only SDTK-CODE-managed assets under <project>/.codex/skills."
|
|
81
|
+
}
|
|
53
82
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
<!-- Based on superpowers by Jesse Vincent (MIT License, 2025). Adapted for SDTK-CODE. See ../../THIRD_PARTY_NOTICES.md for details. -->
|
|
2
1
|
---
|
|
3
2
|
name: code-brainstorm
|
|
4
3
|
description: Brainstorming designs before code. Use before any creative work -- creating features, building components, modifying behavior. Explores intent, requirements, and design before implementation.
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
---
|
|
1
|
+
---
|
|
3
2
|
name: code-debug
|
|
4
3
|
description: Systematic debugging. Use when encountering any bug, test failure, or unexpected behavior -- binary search to root cause, evidence-first, no guessing fixes.
|
|
5
4
|
---
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
<!-- Based on superpowers by Jesse Vincent (MIT License, 2025). Adapted for SDTK-CODE. See ../../THIRD_PARTY_NOTICES.md for details. -->
|
|
2
1
|
---
|
|
3
2
|
name: code-execute
|
|
4
3
|
description: Executing implementation plans. Use when you have a written plan and need to execute it step by step with review checkpoints.
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
<!-- Based on superpowers by Jesse Vincent (MIT License, 2025). Adapted for SDTK-CODE. See ../../THIRD_PARTY_NOTICES.md for details. -->
|
|
2
1
|
---
|
|
3
2
|
name: code-finish
|
|
4
3
|
description: Finishing a development branch. Use when implementation is complete and tests pass -- guides merge, PR creation, or cleanup options.
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
<!-- Based on superpowers by Jesse Vincent (MIT License, 2025). Adapted for SDTK-CODE. See ../../THIRD_PARTY_NOTICES.md for details. -->
|
|
2
1
|
---
|
|
3
2
|
name: code-parallel
|
|
4
3
|
description: Parallel development with subagents. Use when facing 2+ independent tasks -- dispatch agents in parallel with context isolation, controller curates results.
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
<!-- Based on superpowers by Jesse Vincent (MIT License, 2025), gstack by Garry Tan (MIT License, 2026), and agency-agents by AgentLand Contributors (MIT License, 2025). Adapted for SDTK-CODE. See ../../THIRD_PARTY_NOTICES.md for details. -->
|
|
2
1
|
---
|
|
3
2
|
name: code-plan
|
|
4
3
|
description: Implementation planning. Use when you have requirements or a spec and need to create a step-by-step implementation plan before writing code.
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
<!-- Based on superpowers by Jesse Vincent (MIT License, 2025) and gstack by Garry Tan (MIT License, 2026). Adapted for SDTK-CODE. See ../../THIRD_PARTY_NOTICES.md for details. -->
|
|
2
1
|
---
|
|
3
2
|
name: code-review
|
|
4
3
|
description: Code review -- requesting and receiving. Use when completing a feature, before merging, or when receiving review feedback.
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
<!-- Based on gstack by Garry Tan (MIT License, 2026). Adapted for SDTK-CODE. See ../../THIRD_PARTY_NOTICES.md for details. -->
|
|
2
1
|
---
|
|
3
2
|
name: code-ship
|
|
4
3
|
description: Ship and release. Use when implementation is complete, tests pass, and you need to prepare for merge or release -- pre-flight checks, version bump, CHANGELOG, bisectable commits.
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
---
|
|
1
|
+
---
|
|
3
2
|
name: code-tdd
|
|
4
3
|
description: Test-driven development. Use before writing any implementation code -- write a failing test first, make it pass, then refactor.
|
|
5
4
|
---
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
<!-- Based on superpowers by Jesse Vincent (MIT License, 2025). Adapted for SDTK-CODE. See ../../../THIRD_PARTY_NOTICES.md for details. -->
|
|
2
1
|
# Testing Anti-Patterns
|
|
3
2
|
|
|
4
3
|
**Load this reference when:** writing or changing tests, adding mocks, or tempted to add test-only methods to production code.
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
<!-- Based on superpowers by Jesse Vincent (MIT License, 2025). Adapted for SDTK-CODE. See ../../THIRD_PARTY_NOTICES.md for details. -->
|
|
2
1
|
---
|
|
3
2
|
name: code-verify
|
|
4
3
|
description: Verification before completion. Use before claiming any work is done -- run verification commands and confirm output, evidence before assertions.
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
---
|
|
1
|
+
---
|
|
3
2
|
name: code-worktree
|
|
4
3
|
description: Git worktrees for feature isolation. Use when starting feature work that needs isolation -- creates isolated worktrees with safety verification.
|
|
5
4
|
---
|
|
@@ -38,17 +37,17 @@ ls -d worktrees 2>/dev/null # Alternative
|
|
|
38
37
|
|
|
39
38
|
**If found:** Use that directory. If both exist, `.worktrees` wins.
|
|
40
39
|
|
|
41
|
-
### 2. Check
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
|
|
45
|
-
```
|
|
40
|
+
### 2. Check Repository Guidance
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
rg -n -i "worktree|worktrees|\\.worktrees" AGENTS.md 2>/dev/null
|
|
44
|
+
```
|
|
46
45
|
|
|
47
46
|
**If preference specified:** Use it without asking.
|
|
48
47
|
|
|
49
48
|
### 3. Ask User
|
|
50
49
|
|
|
51
|
-
If no directory exists and no
|
|
50
|
+
If no directory exists and no repository guidance preference:
|
|
52
51
|
|
|
53
52
|
```
|
|
54
53
|
No worktree directory found. Where should I create worktrees?
|
|
@@ -72,7 +71,7 @@ git check-ignore -q .worktrees 2>/dev/null || git check-ignore -q worktrees 2>/d
|
|
|
72
71
|
|
|
73
72
|
**If NOT ignored:**
|
|
74
73
|
|
|
75
|
-
Per
|
|
74
|
+
Per SDTK repository hygiene:
|
|
76
75
|
1. Add appropriate line to .gitignore
|
|
77
76
|
2. Commit the change
|
|
78
77
|
3. Proceed with worktree creation
|
|
@@ -159,7 +158,7 @@ Ready to implement <feature-name>
|
|
|
159
158
|
| `.worktrees/` exists | Use it (verify ignored) |
|
|
160
159
|
| `worktrees/` exists | Use it (verify ignored) |
|
|
161
160
|
| Both exist | Use `.worktrees/` |
|
|
162
|
-
| Neither exists | Check
|
|
161
|
+
| Neither exists | Check AGENTS.md -> Ask user |
|
|
163
162
|
| Directory not ignored | Add to .gitignore + commit |
|
|
164
163
|
| Tests fail during baseline | Report failures + ask |
|
|
165
164
|
| No package.json/Cargo.toml | Skip dependency install |
|
|
@@ -174,7 +173,7 @@ Ready to implement <feature-name>
|
|
|
174
173
|
### Assuming directory location
|
|
175
174
|
|
|
176
175
|
- **Problem:** Creates inconsistency, violates project conventions
|
|
177
|
-
- **Fix:** Follow priority: existing >
|
|
176
|
+
- **Fix:** Follow priority: existing > AGENTS.md > ask
|
|
178
177
|
|
|
179
178
|
### Proceeding with failing tests
|
|
180
179
|
|
|
@@ -197,7 +196,7 @@ You: I'm using the code-worktree skill to set up an isolated workspace.
|
|
|
197
196
|
[Run npm install]
|
|
198
197
|
[Run npm test - 47 passing]
|
|
199
198
|
|
|
200
|
-
Worktree ready at /Users/
|
|
199
|
+
Worktree ready at /Users/example/myproject/.worktrees/auth
|
|
201
200
|
Tests passing (47 tests, 0 failures)
|
|
202
201
|
Ready to implement auth feature
|
|
203
202
|
```
|
|
@@ -209,10 +208,10 @@ Ready to implement auth feature
|
|
|
209
208
|
- Skip baseline test verification
|
|
210
209
|
- Proceed with failing tests without asking
|
|
211
210
|
- Assume directory location when ambiguous
|
|
212
|
-
- Skip
|
|
211
|
+
- Skip repository guidance check
|
|
213
212
|
|
|
214
213
|
**Always:**
|
|
215
|
-
- Follow directory priority: existing >
|
|
214
|
+
- Follow directory priority: existing > AGENTS.md > ask
|
|
216
215
|
- Verify directory is ignored for project-local
|
|
217
216
|
- Auto-detect and run project setup
|
|
218
217
|
- Verify clean test baseline
|
package/package.json
CHANGED
package/src/commands/help.js
CHANGED
|
@@ -1,169 +1,187 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function cmdHelp() {
|
|
4
|
-
const text = [
|
|
5
|
-
"SDTK-CODE CLI -- coding process discipline toolkit",
|
|
6
|
-
"",
|
|
7
|
-
"Usage:",
|
|
8
|
-
" sdtk-code <command> [options]",
|
|
9
|
-
"",
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function cmdHelp() {
|
|
4
|
+
const text = [
|
|
5
|
+
"SDTK-CODE CLI -- coding process discipline toolkit",
|
|
6
|
+
"",
|
|
7
|
+
"Usage:",
|
|
8
|
+
" sdtk-code <command> [options]",
|
|
9
|
+
"",
|
|
10
10
|
"Commands:",
|
|
11
11
|
" start Create or refresh CODE_WORKFLOW from formal handoff or compatibility inputs",
|
|
12
|
-
" plan Refine
|
|
12
|
+
" plan Refine downstream execution slices inside the approved handoff scope",
|
|
13
13
|
" build Record build progress and route the next coding engine step",
|
|
14
14
|
" verify Record summarized evidence and ordered review gate status",
|
|
15
|
-
" ship Record final ship or finish decision
|
|
16
|
-
" init Initialize SDTK-CODE workspace",
|
|
17
|
-
" runtime Manage runtime asset installation (install, uninstall, status)",
|
|
18
|
-
"",
|
|
19
|
-
"Workflow status:",
|
|
20
|
-
" Implemented now: start, plan, build, verify, ship",
|
|
21
|
-
"",
|
|
22
|
-
"Package status:",
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"",
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
" --
|
|
33
|
-
" --
|
|
34
|
-
" --
|
|
35
|
-
"",
|
|
15
|
+
" ship Record final ship or finish decision and emit OPS_HANDOFF on formal closeout",
|
|
16
|
+
" init Initialize SDTK-CODE workspace",
|
|
17
|
+
" runtime Manage runtime asset installation (install, uninstall, status)",
|
|
18
|
+
"",
|
|
19
|
+
"Workflow status:",
|
|
20
|
+
" Implemented now: start, plan, build, verify, ship",
|
|
21
|
+
"",
|
|
22
|
+
"Package status:",
|
|
23
|
+
" Public package: sdtk-code-kit",
|
|
24
|
+
" Check latest published version: npm view sdtk-code-kit version",
|
|
25
|
+
" Canonical command: sdtk-code",
|
|
26
|
+
" Real workflow execution still expects upstream SDTK-SPEC artifacts",
|
|
27
|
+
" Current public workflow surface is live on npm",
|
|
28
|
+
" CI/tag-publish parity remains follow-up hardening, not a blocker for the current public package line",
|
|
29
|
+
" Payload stays intentionally narrow and ships runtime assets plus CODE_WORKFLOW_TEMPLATE.md",
|
|
30
|
+
"",
|
|
31
|
+
"Start options:",
|
|
32
|
+
" --feature-key <KEY> Feature key in UPPER_SNAKE_CASE (required)",
|
|
33
|
+
" --lane <feature|bugfix> Explicit workflow lane (required)",
|
|
34
|
+
" --project-path <path> Target project directory (default: cwd)",
|
|
35
|
+
" --force Reinitialize an existing workflow artifact",
|
|
36
|
+
"",
|
|
36
37
|
"Start intake truth:",
|
|
37
38
|
" Prefers docs/dev/CODE_HANDOFF_[FEATURE_KEY].json when present",
|
|
38
39
|
" Falls back to FEATURE_IMPL_PLAN + sdtk-spec.config.json only when the formal handoff file is missing",
|
|
39
40
|
" Feature lane expects formal handoff by default; bugfix may use compatibility fallback when missing",
|
|
40
41
|
" Invalid or blocked formal handoff stops start and writes a blocked workflow artifact",
|
|
41
|
-
"",
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
" --
|
|
45
|
-
" --
|
|
46
|
-
" --
|
|
47
|
-
" --
|
|
48
|
-
" --
|
|
49
|
-
" --
|
|
50
|
-
" --
|
|
51
|
-
"",
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
" --
|
|
56
|
-
" --
|
|
57
|
-
" --
|
|
58
|
-
" --
|
|
59
|
-
" --
|
|
60
|
-
" --
|
|
61
|
-
"",
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
" --
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
" --spec-
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
" --quality-
|
|
74
|
-
"
|
|
75
|
-
" --
|
|
76
|
-
" --
|
|
77
|
-
"",
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
" --
|
|
82
|
-
" --
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
42
|
+
" FEATURE_IMPL_PLAN remains the upstream /dev implementation-readiness plan; CODE plan only refines execution slices after intake",
|
|
43
|
+
"",
|
|
44
|
+
"Plan options:",
|
|
45
|
+
" --feature-key <KEY> Feature key in UPPER_SNAKE_CASE (required)",
|
|
46
|
+
" --project-path <path> Target project directory (default: cwd)",
|
|
47
|
+
" --in-scope <text> Record an in-scope item (repeatable)",
|
|
48
|
+
" --out-scope <text> Record an out-of-scope item (repeatable)",
|
|
49
|
+
" --slice <text> Record a planning slice (repeatable; explicit refinement path for feature lane)",
|
|
50
|
+
" --use-seeded-candidates Confirm the seeded feature-lane slice set from the formal handoff",
|
|
51
|
+
" --assumption <text> Record a planning assumption (repeatable)",
|
|
52
|
+
" --risk <text> Record a planning risk (repeatable)",
|
|
53
|
+
" --note <text> Record an additional planning note (repeatable)",
|
|
54
|
+
"",
|
|
55
|
+
"Build options:",
|
|
56
|
+
" --feature-key <KEY> Feature key in UPPER_SNAKE_CASE (required)",
|
|
57
|
+
" --project-path <path> Target project directory (default: cwd)",
|
|
58
|
+
" --active-slice <text> Record an active build slice (repeatable)",
|
|
59
|
+
" --note <text> Record a build note (repeatable)",
|
|
60
|
+
" --debug-note <text> Record a reactive debug note (repeatable)",
|
|
61
|
+
" --parallel-reason <text> Explicit justification for code-parallel in feature lane",
|
|
62
|
+
" --complete Mark the current build pass complete and route to verify",
|
|
63
|
+
" --blocked Mark the current build pass blocked and keep routing on build",
|
|
64
|
+
"",
|
|
65
|
+
"Verify options:",
|
|
66
|
+
" --feature-key <KEY> Feature key in UPPER_SNAKE_CASE (required)",
|
|
67
|
+
" --project-path <path> Target project directory (default: cwd)",
|
|
68
|
+
" --evidence <text> Summarized evidence entry in the form",
|
|
69
|
+
" \"check|summary|pass|docs/dev/evidence/FEATURE_KEY/file.txt\"",
|
|
70
|
+
" (repeatable; at least one required)",
|
|
71
|
+
" --spec-status <pending|pass|partial|fail>",
|
|
72
|
+
" Current spec/compliance review gate status",
|
|
73
|
+
" --spec-note <text> Record a spec/compliance review note (repeatable)",
|
|
74
|
+
" --quality-status <pending|pass|partial|fail>",
|
|
75
|
+
" Current quality review gate status",
|
|
76
|
+
" --quality-note <text> Record a quality review note (repeatable)",
|
|
77
|
+
" --debug-note <text> Record reactive debug follow-up from verification (repeatable)",
|
|
78
|
+
" --complete Mark verify complete and route to ship",
|
|
79
|
+
" --blocked Keep verify blocked and route back to verification work",
|
|
80
|
+
"",
|
|
81
|
+
"Ship options:",
|
|
82
|
+
" --feature-key <KEY> Feature key in UPPER_SNAKE_CASE (required)",
|
|
83
|
+
" --project-path <path> Target project directory (default: cwd)",
|
|
84
|
+
" --decision <ship|finish> Final decision to record (required)",
|
|
85
|
+
" --preflight <text> Preflight entry in the form",
|
|
86
|
+
" \"check|summary|pass|docs/dev/evidence/FEATURE_KEY/file.txt\"",
|
|
87
|
+
" (repeatable; at least one required)",
|
|
88
|
+
" --follow-up <text> Record a deferred follow-up item (repeatable)",
|
|
89
|
+
" --note <text> Record a ship/finalization note (repeatable)",
|
|
87
90
|
" --debug-note <text> Record reactive debug follow-up from preflight (repeatable)",
|
|
88
91
|
" --blocked Keep ship blocked and route back to code-debug/code-ship",
|
|
89
92
|
"",
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
" --
|
|
96
|
-
" --
|
|
97
|
-
" --
|
|
98
|
-
"",
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"",
|
|
104
|
-
"
|
|
105
|
-
" --runtime <codex|claude>
|
|
106
|
-
" --
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
" --
|
|
110
|
-
" --
|
|
111
|
-
"",
|
|
112
|
-
"
|
|
93
|
+
"Ship closeout truth:",
|
|
94
|
+
" Completed closeout backed by docs/dev/CODE_HANDOFF_[FEATURE_KEY].json writes docs/dev/OPS_HANDOFF_[FEATURE_KEY].json",
|
|
95
|
+
" Compatibility fallback workflows do not emit a fake OPS handoff without the current formal CODE_HANDOFF",
|
|
96
|
+
"",
|
|
97
|
+
"Init options:",
|
|
98
|
+
" --runtime <codex|claude> Runtime adapter (default: codex)",
|
|
99
|
+
" --runtime-scope <project|user> Install scope (default: project for claude, user for codex)",
|
|
100
|
+
" --project-path <path> Target project directory (default: cwd)",
|
|
101
|
+
" --force Overwrite existing files",
|
|
102
|
+
" --skip-runtime-assets Skip runtime skill installation",
|
|
103
|
+
" --skip-skills Deprecated alias for --skip-runtime-assets",
|
|
104
|
+
" --verbose Show detailed PowerShell script output",
|
|
105
|
+
"",
|
|
106
|
+
"Runtime subcommands:",
|
|
107
|
+
" sdtk-code runtime install --runtime <codex|claude> [--scope <project|user>]",
|
|
108
|
+
" sdtk-code runtime uninstall --runtime <codex|claude> [--scope <project|user>] [--all]",
|
|
109
|
+
" sdtk-code runtime status --runtime <codex|claude> [--project-path <path>]",
|
|
110
|
+
"",
|
|
111
|
+
"Runtime options:",
|
|
112
|
+
" --runtime <codex|claude> Target runtime (required)",
|
|
113
|
+
" --scope <project|user> Install scope (default: project for claude, user for codex)",
|
|
114
|
+
" --project-path <path> Target project directory (default: cwd)",
|
|
115
|
+
" --force Overwrite existing managed skills",
|
|
116
|
+
" --all Explicit alias for uninstalling all managed skills",
|
|
117
|
+
" --verbose Show detailed script output",
|
|
118
|
+
"",
|
|
119
|
+
"Scope behavior:",
|
|
113
120
|
" claude/project -> <project>/.claude/skills",
|
|
114
121
|
" claude/user -> ~/.claude/skills",
|
|
122
|
+
" codex/project -> <project>/.codex/skills",
|
|
115
123
|
" codex/user -> $CODEX_HOME/skills or ~/.codex/skills",
|
|
116
|
-
" Note: Codex
|
|
117
|
-
"",
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
"",
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"",
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
"
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
"",
|
|
133
|
-
"
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
"
|
|
140
|
-
" sdtk-code
|
|
141
|
-
" sdtk-code
|
|
142
|
-
" sdtk-code
|
|
124
|
+
" Note: Codex project scope is supported only via the explicit local CODEX_HOME=<project>/.codex contract.",
|
|
125
|
+
" Note: This CLI does not claim native .codex/skills auto-discovery.",
|
|
126
|
+
"",
|
|
127
|
+
"Uninstall behavior:",
|
|
128
|
+
" runtime uninstall removes only SDTK-CODE-managed skill folders for the selected runtime/scope.",
|
|
129
|
+
" It does not delete parent runtime roots such as .claude/, .claude/skills/, $CODEX_HOME/, or $CODEX_HOME/skills/.",
|
|
130
|
+
" npm uninstall -g sdtk-code-kit removes the CLI package only. Runtime assets remain until runtime uninstall or manual cleanup.",
|
|
131
|
+
"",
|
|
132
|
+
"Skill naming:",
|
|
133
|
+
" Claude installs: code-*",
|
|
134
|
+
" Codex installs: sdtk-code-*",
|
|
135
|
+
"",
|
|
136
|
+
"Global options:",
|
|
137
|
+
" -h, --help Show this help",
|
|
138
|
+
" -v, --version Show version",
|
|
139
|
+
"",
|
|
140
|
+
"Exit codes:",
|
|
141
|
+
" 0 Success",
|
|
142
|
+
" 1 Validation or user error",
|
|
143
|
+
" 2 Dependency error",
|
|
144
|
+
" 3 Integrity error",
|
|
145
|
+
" 4 Unexpected internal error",
|
|
146
|
+
"",
|
|
147
|
+
"Examples:",
|
|
148
|
+
" sdtk-code start --feature-key ORDER_MGMT --lane feature --project-path ./my-project",
|
|
149
|
+
" sdtk-code start --feature-key LOGIN_FIX --lane bugfix --project-path ./my-project",
|
|
150
|
+
" sdtk-code plan --feature-key ORDER_MGMT --use-seeded-candidates",
|
|
151
|
+
" sdtk-code plan --feature-key ORDER_MGMT --slice \"API contract updates\" --slice \"UI register flow\"",
|
|
152
|
+
" sdtk-code plan --feature-key LOGIN_FIX --note \"Bugfix planning override\"",
|
|
153
|
+
" sdtk-code build --feature-key ORDER_MGMT --active-slice \"API contract updates\" --parallel-reason \"Backend and UI are isolated\"",
|
|
154
|
+
" sdtk-code build --feature-key LOGIN_FIX --debug-note \"Failure reproduced in session timeout flow\" --complete",
|
|
155
|
+
" sdtk-code verify --feature-key ORDER_MGMT --evidence \"pytest -q|Regression suite passed|pass|docs/dev/evidence/ORDER_MGMT/pytest.txt\" --spec-status pass --quality-status partial",
|
|
156
|
+
" sdtk-code verify --feature-key LOGIN_FIX --evidence \"npm test|Bugfix regression passes|pass|docs/dev/evidence/LOGIN_FIX/regression.txt\" --spec-status pass --quality-status pass --complete",
|
|
157
|
+
" sdtk-code ship --feature-key ORDER_MGMT --decision ship --preflight \"npm pack --dry-run|Package smoke passed|pass|docs/dev/evidence/ORDER_MGMT/pack.txt\" --preflight \"release checklist|Operator handoff reviewed|pass|docs/dev/evidence/ORDER_MGMT/release-checklist.txt\" --follow-up \"Monitor first-release support tickets\"",
|
|
143
158
|
" sdtk-code ship --feature-key LOGIN_FIX --decision finish --preflight \"git diff --check|No whitespace issues remain|pass|docs/dev/evidence/LOGIN_FIX/diff-check.txt\"",
|
|
144
159
|
" sdtk-code init",
|
|
160
|
+
" sdtk-code init --runtime codex --runtime-scope project --project-path ./my-project",
|
|
145
161
|
" sdtk-code init --runtime claude --project-path ./my-project",
|
|
146
|
-
" sdtk-code init --runtime claude --runtime-scope user",
|
|
162
|
+
" sdtk-code init --runtime claude --runtime-scope user",
|
|
147
163
|
" sdtk-code runtime install --runtime claude --scope project --project-path ./my-project",
|
|
148
164
|
" sdtk-code runtime install --runtime codex --scope user",
|
|
149
|
-
" sdtk-code runtime
|
|
150
|
-
" sdtk-code runtime
|
|
151
|
-
"",
|
|
152
|
-
"
|
|
153
|
-
"
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
"
|
|
165
|
+
" sdtk-code runtime install --runtime codex --scope project --project-path ./my-project",
|
|
166
|
+
" sdtk-code runtime status --runtime claude --project-path ./my-project",
|
|
167
|
+
" sdtk-code runtime uninstall --runtime codex --all",
|
|
168
|
+
" npm uninstall -g sdtk-code-kit",
|
|
169
|
+
"",
|
|
170
|
+
"Next steps after init:",
|
|
171
|
+
" 1. Review and customize sdtk-spec.config.json for your project.",
|
|
172
|
+
" 2. Create or refresh CODE_WORKFLOW with sdtk-code start once the upstream SDTK-SPEC handoff exists.",
|
|
173
|
+
" Preferred input: CODE_HANDOFF_[FEATURE_KEY].json; compatibility fallback is bounded to missing-handoff cases.",
|
|
174
|
+
" 3. For feature work, either confirm seeded handoff slices with --use-seeded-candidates or refine them with explicit --slice entries.",
|
|
157
175
|
" 4. Record build progress with sdtk-code build while execution is in motion.",
|
|
158
176
|
" 5. Capture summarized evidence and review gates with sdtk-code verify before closure.",
|
|
159
|
-
" 6. Record final ship or finish decision with sdtk-code ship.",
|
|
177
|
+
" 6. Record final ship or finish decision with sdtk-code ship; completed formal closeout writes OPS_HANDOFF for DEV-Run intake.",
|
|
160
178
|
" 7. Use raw code-* skills directly when you intentionally choose expert mode.",
|
|
161
179
|
];
|
|
162
|
-
|
|
163
|
-
console.log(text.join("\n"));
|
|
164
|
-
return 0;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
module.exports = {
|
|
168
|
-
cmdHelp,
|
|
169
|
-
};
|
|
180
|
+
|
|
181
|
+
console.log(text.join("\n"));
|
|
182
|
+
return 0;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
module.exports = {
|
|
186
|
+
cmdHelp,
|
|
187
|
+
};
|