sdtk-code-kit 0.1.3 → 0.2.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 (39) hide show
  1. package/README.md +17 -0
  2. package/assets/manifest/toolkit-bundle.manifest.json +147 -147
  3. package/assets/manifest/toolkit-bundle.sha256.txt +10 -10
  4. package/assets/toolkit/toolkit/AGENTS.md +219 -219
  5. package/assets/toolkit/toolkit/install.ps1 +156 -156
  6. package/assets/toolkit/toolkit/sdtk-spec.config.json +6 -6
  7. package/assets/toolkit/toolkit/skills/code-debug/SKILL.md +295 -295
  8. package/assets/toolkit/toolkit/skills/code-discover/SKILL.md +54 -54
  9. package/assets/toolkit/toolkit/skills/code-tdd/SKILL.md +377 -377
  10. package/assets/toolkit/toolkit/skills/code-worktree/SKILL.md +215 -215
  11. package/assets/toolkit/toolkit/templates/CODE_WORKFLOW_TEMPLATE.md +28 -0
  12. package/package.json +44 -44
  13. package/src/commands/doctor.js +52 -0
  14. package/src/commands/guardrails.js +215 -0
  15. package/src/commands/help.js +244 -220
  16. package/src/commands/init.js +98 -98
  17. package/src/commands/readiness.js +77 -0
  18. package/src/commands/resume.js +62 -0
  19. package/src/commands/sleep.js +132 -0
  20. package/src/commands/status.js +78 -0
  21. package/src/commands/update.js +11 -11
  22. package/src/commands/verify.js +5 -0
  23. package/src/index.js +108 -73
  24. package/src/lib/project-target-guard.js +53 -53
  25. package/src/lib/ship-readiness.js +281 -0
  26. package/src/lib/sleep-plan.js +175 -0
  27. package/src/lib/sleep-report.js +229 -0
  28. package/src/lib/trust-events.js +166 -0
  29. package/src/lib/trust-file-scope.js +154 -0
  30. package/src/lib/trust-policy.js +212 -0
  31. package/src/lib/trust-redact.js +35 -0
  32. package/src/lib/trust-trace.js +179 -0
  33. package/src/lib/update.js +344 -344
  34. package/src/lib/workflow-artifact.js +9 -2
  35. package/src/lib/workflow-doctor.js +84 -0
  36. package/src/lib/workflow-handoff.js +111 -19
  37. package/src/lib/workflow-review-packet.js +650 -561
  38. package/src/lib/workflow-state.js +439 -0
  39. package/src/lib/workflow-verify.js +393 -356
@@ -1,54 +1,54 @@
1
- ---
2
- name: code-discover
3
- description: Discover SDTK-CODE skills. Use when starting a conversation or unsure which skill to use -- establishes skill discovery and invocation.
4
- ---
5
-
6
- # Code Discover
7
-
8
- ## Critical Constraints
9
- - I do not guess a workflow when a clearer skill match exists.
10
- - I do not route straight to implementation when planning, verification, or review should happen first.
11
-
12
- ## Overview
13
- Use this skill when you need to discover which SDTK-CODE skill should be used next.
14
-
15
- ## Skill Catalog
16
- | Skill | Trigger | Purpose |
17
- |---|---|---|
18
- | `code-tdd` | Before writing implementation code | Enforces failing-test-first discipline. |
19
- | `code-debug` | When a bug or failure appears | Finds root cause before any fix. |
20
- | `code-verify` | Before claiming work is complete | Requires fresh command evidence. |
21
- | `code-plan` | When requirements need an implementation plan | Produces executable task order and verification steps. |
22
- | `code-execute` | When an approved plan exists | Executes work sequentially with checkpoints. |
23
- | `code-review` | When code needs review or review feedback must be handled | Runs spec-first, quality-second review. |
24
- | `code-ship` | When the code is ready to prepare for merge or release | Handles pre-flight, versioning, and release prep. |
25
- | `code-parallel` | When 2+ independent tasks can run safely in parallel | Fans out task slices, then curates fan-in. |
26
- | `code-brainstorm` | Before creative or ambiguous coding work | Explores approaches before planning. |
27
- | `code-finish` | When branch work is complete | Presents merge, PR, keep, or discard options. |
28
- | `code-worktree` | When feature isolation is needed | Creates a safe isolated worktree. |
29
- | `code-discover` | When you are unsure where to start | Explains the toolkit and routing order. |
30
-
31
- ## Process
32
- 1. Read the request and determine whether the user needs planning, execution, verification, review, or shipping.
33
- 2. Choose the earliest skill in the workflow that closes the biggest risk.
34
- 3. Route to that skill and explain the handoff in one sentence.
35
- 4. If multiple skills apply, prefer the one that prevents irreversible mistakes first.
36
-
37
- ## Priority Order
38
- 1. Design and plan first: `code-brainstorm`, `code-plan`
39
- 2. Implementation discipline: `code-tdd`, `code-execute`, `code-parallel`
40
- 3. Verification and review: `code-debug`, `code-verify`, `code-review`
41
- 4. Shipping and closure: `code-ship`, `code-finish`, `code-worktree`
42
-
43
- ## Red Flags
44
- | Situation | Use Instead |
45
- |---|---|
46
- | Writing code without a failing test | `code-tdd` |
47
- | Fixing a bug by guessing | `code-debug` |
48
- | Saying "done" without proof | `code-verify` |
49
- | Jumping into execution without a plan | `code-plan` |
50
- | Reviewing quality before checking spec compliance | `code-review` |
51
- | Shipping before verification and review finish | `code-ship` |
52
-
53
- ## Routing Rule
54
- If more than one skill seems applicable, choose the earliest skill in the workflow chain that closes the biggest risk.
1
+ ---
2
+ name: code-discover
3
+ description: Discover SDTK-CODE skills. Use when starting a conversation or unsure which skill to use -- establishes skill discovery and invocation.
4
+ ---
5
+
6
+ # Code Discover
7
+
8
+ ## Critical Constraints
9
+ - I do not guess a workflow when a clearer skill match exists.
10
+ - I do not route straight to implementation when planning, verification, or review should happen first.
11
+
12
+ ## Overview
13
+ Use this skill when you need to discover which SDTK-CODE skill should be used next.
14
+
15
+ ## Skill Catalog
16
+ | Skill | Trigger | Purpose |
17
+ |---|---|---|
18
+ | `code-tdd` | Before writing implementation code | Enforces failing-test-first discipline. |
19
+ | `code-debug` | When a bug or failure appears | Finds root cause before any fix. |
20
+ | `code-verify` | Before claiming work is complete | Requires fresh command evidence. |
21
+ | `code-plan` | When requirements need an implementation plan | Produces executable task order and verification steps. |
22
+ | `code-execute` | When an approved plan exists | Executes work sequentially with checkpoints. |
23
+ | `code-review` | When code needs review or review feedback must be handled | Runs spec-first, quality-second review. |
24
+ | `code-ship` | When the code is ready to prepare for merge or release | Handles pre-flight, versioning, and release prep. |
25
+ | `code-parallel` | When 2+ independent tasks can run safely in parallel | Fans out task slices, then curates fan-in. |
26
+ | `code-brainstorm` | Before creative or ambiguous coding work | Explores approaches before planning. |
27
+ | `code-finish` | When branch work is complete | Presents merge, PR, keep, or discard options. |
28
+ | `code-worktree` | When feature isolation is needed | Creates a safe isolated worktree. |
29
+ | `code-discover` | When you are unsure where to start | Explains the toolkit and routing order. |
30
+
31
+ ## Process
32
+ 1. Read the request and determine whether the user needs planning, execution, verification, review, or shipping.
33
+ 2. Choose the earliest skill in the workflow that closes the biggest risk.
34
+ 3. Route to that skill and explain the handoff in one sentence.
35
+ 4. If multiple skills apply, prefer the one that prevents irreversible mistakes first.
36
+
37
+ ## Priority Order
38
+ 1. Design and plan first: `code-brainstorm`, `code-plan`
39
+ 2. Implementation discipline: `code-tdd`, `code-execute`, `code-parallel`
40
+ 3. Verification and review: `code-debug`, `code-verify`, `code-review`
41
+ 4. Shipping and closure: `code-ship`, `code-finish`, `code-worktree`
42
+
43
+ ## Red Flags
44
+ | Situation | Use Instead |
45
+ |---|---|
46
+ | Writing code without a failing test | `code-tdd` |
47
+ | Fixing a bug by guessing | `code-debug` |
48
+ | Saying "done" without proof | `code-verify` |
49
+ | Jumping into execution without a plan | `code-plan` |
50
+ | Reviewing quality before checking spec compliance | `code-review` |
51
+ | Shipping before verification and review finish | `code-ship` |
52
+
53
+ ## Routing Rule
54
+ If more than one skill seems applicable, choose the earliest skill in the workflow chain that closes the biggest risk.