sdtk-code-kit 0.1.0 → 0.1.2
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 +140 -91
- package/assets/manifest/toolkit-bundle.manifest.json +47 -47
- package/assets/manifest/toolkit-bundle.sha256.txt +23 -23
- package/assets/toolkit/toolkit/AGENTS.md +219 -210
- 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 +34 -34
- package/src/commands/help.js +218 -169
- 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/commands/update.js +11 -0
- package/src/commands/verify.js +9 -0
- package/src/index.js +73 -70
- package/src/lib/scope.js +19 -2
- package/src/lib/update.js +337 -0
- package/src/lib/workflow-artifact.js +57 -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-review-packet.js +561 -0
- package/src/lib/workflow-ship.js +53 -3
- package/src/lib/workflow-verify.js +356 -212
|
@@ -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
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sdtk-code-kit",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Workflow-first coding process toolkit: start, plan, build, verify, ship, and runtime setup.",
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "Workflow-first coding process toolkit: start, plan, build, verify, ship, and runtime setup.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"sdtk-code": "./bin/sdtk-code.js"
|
|
7
7
|
},
|
|
8
8
|
"main": "src/index.js",
|
|
9
9
|
"type": "commonjs",
|
|
10
|
-
"files": [
|
|
11
|
-
"bin/",
|
|
12
|
-
"src/",
|
|
13
|
-
"assets/"
|
|
14
|
-
],
|
|
15
|
-
"scripts": {
|
|
16
|
-
"test": "powershell -ExecutionPolicy Bypass -Command \"$ErrorActionPreference = 'Stop'; Set-Location '..\\..\\..\\..'; python -m unittest tests.test_sdtk_code_cli tests.test_sdtk_code_product tests.test_sdtk_code_workflow_regressions\"",
|
|
17
|
-
"build:payload": "powershell -ExecutionPolicy Bypass -Command \"$ErrorActionPreference = 'Stop'; & 'scripts/sync-toolkit-assets.ps1'; & 'scripts/build-toolkit-manifest.ps1'\"",
|
|
18
|
-
"verify:payload": "node -e \"require('./src/lib/toolkit-payload').verify()\"",
|
|
19
|
-
"pack:smoke": "npm pack --dry-run",
|
|
20
|
-
"pack:release": "npm pack",
|
|
21
|
-
"prepublishOnly": "node -e \"require('./src/lib/toolkit-payload').verify()\""
|
|
22
|
-
},
|
|
10
|
+
"files": [
|
|
11
|
+
"bin/",
|
|
12
|
+
"src/",
|
|
13
|
+
"assets/"
|
|
14
|
+
],
|
|
15
|
+
"scripts": {
|
|
16
|
+
"test": "powershell -ExecutionPolicy Bypass -Command \"$ErrorActionPreference = 'Stop'; Set-Location '..\\..\\..\\..'; python -m unittest tests.test_sdtk_code_cli tests.test_sdtk_code_product tests.test_sdtk_code_workflow_regressions\"",
|
|
17
|
+
"build:payload": "powershell -ExecutionPolicy Bypass -Command \"$ErrorActionPreference = 'Stop'; & 'scripts/sync-toolkit-assets.ps1'; & 'scripts/build-toolkit-manifest.ps1'\"",
|
|
18
|
+
"verify:payload": "node -e \"require('./src/lib/toolkit-payload').verify()\"",
|
|
19
|
+
"pack:smoke": "npm pack --dry-run",
|
|
20
|
+
"pack:release": "npm pack",
|
|
21
|
+
"prepublishOnly": "node -e \"require('./src/lib/toolkit-payload').verify()\""
|
|
22
|
+
},
|
|
23
23
|
"engines": {
|
|
24
24
|
"node": ">=18.13.0"
|
|
25
25
|
},
|
|
26
|
-
"keywords": [
|
|
27
|
-
"sdtk-code",
|
|
28
|
-
"cli",
|
|
29
|
-
"toolkit"
|
|
30
|
-
],
|
|
31
|
-
"license": "MIT",
|
|
32
|
-
"repository": {
|
|
33
|
-
"type": "git",
|
|
34
|
-
"url": "https://github.com/codexsdtk/sdtk-toolkit.git",
|
|
35
|
-
"directory": "products/sdtk-code/distribution/sdtk-code-kit"
|
|
36
|
-
},
|
|
37
|
-
"homepage": "https://github.com/codexsdtk/sdtk-toolkit/tree/main/products/sdtk-code/distribution/sdtk-code-kit",
|
|
38
|
-
"bugs": {
|
|
39
|
-
"url": "https://github.com/codexsdtk/sdtk-toolkit/issues"
|
|
40
|
-
},
|
|
41
|
-
"publishConfig": {
|
|
42
|
-
"access": "public"
|
|
43
|
-
}
|
|
44
|
-
}
|
|
26
|
+
"keywords": [
|
|
27
|
+
"sdtk-code",
|
|
28
|
+
"cli",
|
|
29
|
+
"toolkit"
|
|
30
|
+
],
|
|
31
|
+
"license": "MIT",
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "https://github.com/codexsdtk/sdtk-toolkit.git",
|
|
35
|
+
"directory": "products/sdtk-code/distribution/sdtk-code-kit"
|
|
36
|
+
},
|
|
37
|
+
"homepage": "https://github.com/codexsdtk/sdtk-toolkit/tree/main/products/sdtk-code/distribution/sdtk-code-kit",
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "https://github.com/codexsdtk/sdtk-toolkit/issues"
|
|
40
|
+
},
|
|
41
|
+
"publishConfig": {
|
|
42
|
+
"access": "public"
|
|
43
|
+
}
|
|
44
|
+
}
|