sdtk-code-kit 0.2.0 → 0.3.0

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 (42) hide show
  1. package/README.md +3 -3
  2. package/assets/manifest/toolkit-bundle.manifest.json +57 -57
  3. package/assets/manifest/toolkit-bundle.sha256.txt +28 -28
  4. package/assets/toolkit/toolkit/AGENTS.md +219 -219
  5. package/assets/toolkit/toolkit/install.ps1 +156 -156
  6. package/assets/toolkit/toolkit/scripts/install-claude-skills.ps1 +78 -78
  7. package/assets/toolkit/toolkit/scripts/install-codex-skills.ps1 +150 -150
  8. package/assets/toolkit/toolkit/scripts/uninstall-claude-skills.ps1 +62 -62
  9. package/assets/toolkit/toolkit/scripts/uninstall-codex-skills.ps1 +82 -82
  10. package/assets/toolkit/toolkit/sdtk-spec.config.json +6 -6
  11. package/assets/toolkit/toolkit/sdtk-spec.config.profiles.example.json +12 -12
  12. package/assets/toolkit/toolkit/skills/code-brainstorm/SKILL.md +55 -55
  13. package/assets/toolkit/toolkit/skills/code-debug/SKILL.md +296 -296
  14. package/assets/toolkit/toolkit/skills/code-debug/references/root-cause-tracing.md +68 -68
  15. package/assets/toolkit/toolkit/skills/code-discover/SKILL.md +54 -54
  16. package/assets/toolkit/toolkit/skills/code-execute/SKILL.md +74 -74
  17. package/assets/toolkit/toolkit/skills/code-finish/SKILL.md +205 -205
  18. package/assets/toolkit/toolkit/skills/code-parallel/SKILL.md +64 -64
  19. package/assets/toolkit/toolkit/skills/code-parallel/references/code-quality-reviewer-prompt.md +26 -26
  20. package/assets/toolkit/toolkit/skills/code-parallel/references/implementer-prompt.md +113 -113
  21. package/assets/toolkit/toolkit/skills/code-parallel/references/spec-reviewer-prompt.md +61 -61
  22. package/assets/toolkit/toolkit/skills/code-plan/SKILL.md +85 -85
  23. package/assets/toolkit/toolkit/skills/code-review/SKILL.md +79 -79
  24. package/assets/toolkit/toolkit/skills/code-review/references/checklist.md +125 -125
  25. package/assets/toolkit/toolkit/skills/code-review/references/code-reviewer.md +146 -146
  26. package/assets/toolkit/toolkit/skills/code-ship/SKILL.md +52 -52
  27. package/assets/toolkit/toolkit/skills/code-tdd/SKILL.md +378 -378
  28. package/assets/toolkit/toolkit/skills/code-tdd/references/testing-anti-patterns.md +299 -299
  29. package/assets/toolkit/toolkit/skills/code-verify/SKILL.md +144 -144
  30. package/assets/toolkit/toolkit/skills/code-worktree/SKILL.md +228 -228
  31. package/assets/toolkit/toolkit/templates/CODE_WORKFLOW_TEMPLATE.md +140 -140
  32. package/package.json +2 -2
  33. package/src/commands/agent-team.js +174 -0
  34. package/src/commands/guardrails.js +94 -2
  35. package/src/commands/help.js +13 -0
  36. package/src/commands/sleep.js +132 -0
  37. package/src/index.js +8 -0
  38. package/src/lib/agent-team-export.js +409 -0
  39. package/src/lib/agent-team-plan.js +514 -0
  40. package/src/lib/sleep-plan.js +175 -0
  41. package/src/lib/sleep-report.js +229 -0
  42. package/src/lib/trust-events.js +20 -1
@@ -1,144 +1,144 @@
1
- ---
2
- name: code-verify
3
- description: Verification before completion. Use before claiming any work is done -- run verification commands and confirm output, evidence before assertions.
4
- ---
5
-
6
- # Code Verify
7
-
8
- ## Critical Constraints
9
- - I do not claim code is done, passing, or ready without fresh command evidence.
10
- - I do not substitute "should work" language for executed verification output.
11
-
12
-
13
- ## Overview
14
-
15
- Claiming work is complete without verification is dishonesty, not efficiency.
16
-
17
- **Core principle:** Evidence before claims, always.
18
-
19
- **Violating the letter of this rule is violating the spirit of this rule.**
20
-
21
- ## The Iron Law
22
-
23
- ```
24
- NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE
25
- ```
26
-
27
- If you haven't run the verification command in this message, you cannot claim it passes.
28
-
29
- ## Process
30
-
31
- ```
32
- BEFORE claiming any status or expressing satisfaction:
33
-
34
- 1. IDENTIFY: What command proves this claim?
35
- 2. RUN: Execute the FULL command (fresh, complete)
36
- 3. READ: Full output, check exit code, count failures
37
- 4. VERIFY: Does output confirm the claim?
38
- - If NO: State actual status with evidence
39
- - If YES: State claim WITH evidence
40
- 5. ONLY THEN: Make the claim
41
-
42
- Skip any step = lying, not verifying
43
- ```
44
-
45
- ## Common Failures
46
-
47
- | Claim | Requires | Not Sufficient |
48
- |-------|----------|----------------|
49
- | Tests pass | Test command output: 0 failures | Previous run, "should pass" |
50
- | Linter clean | Linter output: 0 errors | Partial check, extrapolation |
51
- | Build succeeds | Build command: exit 0 | Linter passing, logs look good |
52
- | Bug fixed | Test original symptom: passes | Code changed, assumed fixed |
53
- | Regression test works | Red-green cycle verified | Test passes once |
54
- | Agent completed | VCS diff shows changes | Agent reports "success" |
55
- | Requirements met | Line-by-line checklist | Tests passing |
56
-
57
- ## Red Flags - STOP
58
-
59
- - Using "should", "probably", "seems to"
60
- - Expressing satisfaction before verification ("Great!", "Perfect!", "Done!", etc.)
61
- - About to commit/push/PR without verification
62
- - Trusting agent success reports
63
- - Relying on partial verification
64
- - Thinking "just this once"
65
- - Tired and wanting work over
66
- - **ANY wording implying success without having run verification**
67
-
68
- ## Rationalization Prevention
69
-
70
- | Excuse | Reality |
71
- |--------|---------|
72
- | "Should work now" | RUN the verification |
73
- | "I'm confident" | Confidence evidence |
74
- | "Just this once" | No exceptions |
75
- | "Linter passed" | Linter compiler |
76
- | "Agent said success" | Verify independently |
77
- | "I'm tired" | Exhaustion excuse |
78
- | "Partial check is enough" | Partial proves nothing |
79
- | "Different words so rule doesn't apply" | Spirit over letter |
80
-
81
- ## Key Patterns
82
-
83
- **Tests:**
84
- ```
85
- [Run test command] [See: 34/34 pass] "All tests pass"
86
- "Should pass now" / "Looks correct"
87
- ```
88
-
89
- **Regression tests (TDD Red-Green):**
90
- ```
91
- Write -> Run (pass) -> Revert fix -> Run (MUST FAIL) -> Restore -> Run (pass)
92
- "I've written a regression test" (without red-green verification)
93
- ```
94
-
95
- **Build:**
96
- ```
97
- [Run build] [See: exit 0] "Build passes"
98
- "Linter passed" (linter doesn't check compilation)
99
- ```
100
-
101
- **Requirements:**
102
- ```
103
- Re-read plan -> Create checklist -> Verify each -> Report gaps or completion
104
- "Tests pass, phase complete"
105
- ```
106
-
107
- **Agent delegation:**
108
- ```
109
- Agent reports success -> Check VCS diff -> Verify changes -> Report actual state
110
- Trust agent report
111
- ```
112
-
113
- ## Why This Matters
114
-
115
- From 24 failure memories:
116
- - the user said "I don't believe you" - trust broken
117
- - Undefined functions shipped - would crash
118
- - Missing requirements shipped - incomplete features
119
- - Time wasted on false completion -> redirect -> rework
120
- - Violates: "Honesty is a core value. If you lie, you'll be replaced."
121
-
122
- ## When To Apply
123
-
124
- **ALWAYS before:**
125
- - ANY variation of success/completion claims
126
- - ANY expression of satisfaction
127
- - ANY positive statement about work state
128
- - Committing, PR creation, task completion
129
- - Moving to next task
130
- - Delegating to agents
131
-
132
- **Rule applies to:**
133
- - Exact phrases
134
- - Paraphrases and synonyms
135
- - Implications of success
136
- - ANY communication suggesting completion/correctness
137
-
138
- ## The Bottom Line
139
-
140
- **No shortcuts for verification.**
141
-
142
- Run the command. Read the output. THEN claim the result.
143
-
144
- This is non-negotiable.
1
+ ---
2
+ name: code-verify
3
+ description: Verification before completion. Use before claiming any work is done -- run verification commands and confirm output, evidence before assertions.
4
+ ---
5
+
6
+ # Code Verify
7
+
8
+ ## Critical Constraints
9
+ - I do not claim code is done, passing, or ready without fresh command evidence.
10
+ - I do not substitute "should work" language for executed verification output.
11
+
12
+
13
+ ## Overview
14
+
15
+ Claiming work is complete without verification is dishonesty, not efficiency.
16
+
17
+ **Core principle:** Evidence before claims, always.
18
+
19
+ **Violating the letter of this rule is violating the spirit of this rule.**
20
+
21
+ ## The Iron Law
22
+
23
+ ```
24
+ NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE
25
+ ```
26
+
27
+ If you haven't run the verification command in this message, you cannot claim it passes.
28
+
29
+ ## Process
30
+
31
+ ```
32
+ BEFORE claiming any status or expressing satisfaction:
33
+
34
+ 1. IDENTIFY: What command proves this claim?
35
+ 2. RUN: Execute the FULL command (fresh, complete)
36
+ 3. READ: Full output, check exit code, count failures
37
+ 4. VERIFY: Does output confirm the claim?
38
+ - If NO: State actual status with evidence
39
+ - If YES: State claim WITH evidence
40
+ 5. ONLY THEN: Make the claim
41
+
42
+ Skip any step = lying, not verifying
43
+ ```
44
+
45
+ ## Common Failures
46
+
47
+ | Claim | Requires | Not Sufficient |
48
+ |-------|----------|----------------|
49
+ | Tests pass | Test command output: 0 failures | Previous run, "should pass" |
50
+ | Linter clean | Linter output: 0 errors | Partial check, extrapolation |
51
+ | Build succeeds | Build command: exit 0 | Linter passing, logs look good |
52
+ | Bug fixed | Test original symptom: passes | Code changed, assumed fixed |
53
+ | Regression test works | Red-green cycle verified | Test passes once |
54
+ | Agent completed | VCS diff shows changes | Agent reports "success" |
55
+ | Requirements met | Line-by-line checklist | Tests passing |
56
+
57
+ ## Red Flags - STOP
58
+
59
+ - Using "should", "probably", "seems to"
60
+ - Expressing satisfaction before verification ("Great!", "Perfect!", "Done!", etc.)
61
+ - About to commit/push/PR without verification
62
+ - Trusting agent success reports
63
+ - Relying on partial verification
64
+ - Thinking "just this once"
65
+ - Tired and wanting work over
66
+ - **ANY wording implying success without having run verification**
67
+
68
+ ## Rationalization Prevention
69
+
70
+ | Excuse | Reality |
71
+ |--------|---------|
72
+ | "Should work now" | RUN the verification |
73
+ | "I'm confident" | Confidence evidence |
74
+ | "Just this once" | No exceptions |
75
+ | "Linter passed" | Linter compiler |
76
+ | "Agent said success" | Verify independently |
77
+ | "I'm tired" | Exhaustion excuse |
78
+ | "Partial check is enough" | Partial proves nothing |
79
+ | "Different words so rule doesn't apply" | Spirit over letter |
80
+
81
+ ## Key Patterns
82
+
83
+ **Tests:**
84
+ ```
85
+ [Run test command] [See: 34/34 pass] "All tests pass"
86
+ "Should pass now" / "Looks correct"
87
+ ```
88
+
89
+ **Regression tests (TDD Red-Green):**
90
+ ```
91
+ Write -> Run (pass) -> Revert fix -> Run (MUST FAIL) -> Restore -> Run (pass)
92
+ "I've written a regression test" (without red-green verification)
93
+ ```
94
+
95
+ **Build:**
96
+ ```
97
+ [Run build] [See: exit 0] "Build passes"
98
+ "Linter passed" (linter doesn't check compilation)
99
+ ```
100
+
101
+ **Requirements:**
102
+ ```
103
+ Re-read plan -> Create checklist -> Verify each -> Report gaps or completion
104
+ "Tests pass, phase complete"
105
+ ```
106
+
107
+ **Agent delegation:**
108
+ ```
109
+ Agent reports success -> Check VCS diff -> Verify changes -> Report actual state
110
+ Trust agent report
111
+ ```
112
+
113
+ ## Why This Matters
114
+
115
+ From 24 failure memories:
116
+ - the user said "I don't believe you" - trust broken
117
+ - Undefined functions shipped - would crash
118
+ - Missing requirements shipped - incomplete features
119
+ - Time wasted on false completion -> redirect -> rework
120
+ - Violates: "Honesty is a core value. If you lie, you'll be replaced."
121
+
122
+ ## When To Apply
123
+
124
+ **ALWAYS before:**
125
+ - ANY variation of success/completion claims
126
+ - ANY expression of satisfaction
127
+ - ANY positive statement about work state
128
+ - Committing, PR creation, task completion
129
+ - Moving to next task
130
+ - Delegating to agents
131
+
132
+ **Rule applies to:**
133
+ - Exact phrases
134
+ - Paraphrases and synonyms
135
+ - Implications of success
136
+ - ANY communication suggesting completion/correctness
137
+
138
+ ## The Bottom Line
139
+
140
+ **No shortcuts for verification.**
141
+
142
+ Run the command. Read the output. THEN claim the result.
143
+
144
+ This is non-negotiable.