sdtk-code-kit 0.5.0 → 0.6.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 (24) hide show
  1. package/README.md +1 -1
  2. package/assets/manifest/toolkit-bundle.manifest.json +69 -14
  3. package/assets/manifest/toolkit-bundle.sha256.txt +19 -8
  4. package/assets/toolkit/toolkit/AGENTS.md +2 -1
  5. package/assets/toolkit/toolkit/SDTKCODE_TOOLKIT.md +2 -2
  6. package/assets/toolkit/toolkit/scripts/install-claude-skills.ps1 +4 -4
  7. package/assets/toolkit/toolkit/scripts/install-codex-skills.ps1 +4 -4
  8. package/assets/toolkit/toolkit/scripts/uninstall-claude-skills.ps1 +2 -2
  9. package/assets/toolkit/toolkit/scripts/uninstall-codex-skills.ps1 +2 -2
  10. package/assets/toolkit/toolkit/skills/code-discover/SKILL.md +4 -1
  11. package/assets/toolkit/toolkit/skills/code-issue/SKILL.md +75 -0
  12. package/assets/toolkit/toolkit/skills/code-issue/references/MODE_FIX.md +31 -0
  13. package/assets/toolkit/toolkit/skills/code-issue/references/MODE_PICK.md +19 -0
  14. package/assets/toolkit/toolkit/skills/code-issue/references/MODE_PLAN.md +23 -0
  15. package/assets/toolkit/toolkit/skills/code-issue/references/MODE_REVIEW.md +21 -0
  16. package/assets/toolkit/toolkit/skills/code-issue/references/PROFILE_TEMPLATE.md +53 -0
  17. package/assets/toolkit/toolkit/skills/code-issue/references/RECORDS.md +39 -0
  18. package/assets/toolkit/toolkit/skills/code-issue/scripts/test_tracker.py +300 -0
  19. package/assets/toolkit/toolkit/skills/code-issue/scripts/tracker.py +470 -0
  20. package/assets/toolkit/toolkit/skills/code-review/SKILL.md +2 -1
  21. package/assets/toolkit/toolkit/skills/code-review/references/lead-review-lessons.md +30 -0
  22. package/assets/toolkit/toolkit/skills/code-review/references/lead-review.md +120 -0
  23. package/package.json +1 -1
  24. package/src/lib/scope.js +1 -0
package/README.md CHANGED
@@ -17,7 +17,7 @@ For the full end-user guide, use:
17
17
  ## Public Package Truth
18
18
 
19
19
  - package: `sdtk-code-kit`
20
- - version in this source snapshot: `0.5.0`
20
+ - version in this source snapshot: `0.6.1`
21
21
  - command: `sdtk-code`
22
22
  - latest published version lookup: `npm view sdtk-code-kit version`
23
23
  - primary workflow-first surface:
@@ -1,12 +1,12 @@
1
1
  {
2
- "version": "0.5.0",
3
- "sourceCommit": "0605ff82057174ea89e50ee727edea69da0045f3",
4
- "fileCount": 43,
2
+ "version": "0.6.1",
3
+ "sourceCommit": "6f433df20e20216d4d542250e8b375041b365015",
4
+ "fileCount": 54,
5
5
  "files": [
6
6
  {
7
7
  "path": "toolkit/AGENTS.md",
8
- "sha256": "92412732ee70a1e94a872d4c09d9817c1ebaa0089b6e17a6301d8d9209da12e0",
9
- "size": 16513
8
+ "sha256": "145f3614b7889f47480332e7c1a660244ff657f72e85437ed41be1c8a56d7fae",
9
+ "size": 16836
10
10
  },
11
11
  {
12
12
  "path": "toolkit/install.ps1",
@@ -15,22 +15,22 @@
15
15
  },
16
16
  {
17
17
  "path": "toolkit/scripts/install-claude-skills.ps1",
18
- "sha256": "43925c0f1f4bb9c3a41967a27c1b905d2f10b24b8d3a6abf209d5c9f523937eb",
18
+ "sha256": "9cc2475ab6de9b5466bb5de039ce4fd18ba60302c9b2a131a3d1cc1ed41e2933",
19
19
  "size": 2349
20
20
  },
21
21
  {
22
22
  "path": "toolkit/scripts/install-codex-skills.ps1",
23
- "sha256": "55f997165e341dd3d272b7d24f3fd59615ac2f8b714183a48d8b63398ddc508d",
23
+ "sha256": "09eafd2b1be108d0191f81a4db01c5513d98f18f21138c4faf06b15b16ebdb1c",
24
24
  "size": 4762
25
25
  },
26
26
  {
27
27
  "path": "toolkit/scripts/uninstall-claude-skills.ps1",
28
- "sha256": "ea8c0813bfde387039fb6d9d27789a6c1410ec79f7f6365d9e22d187b160d731",
28
+ "sha256": "7df15c35f63f83c6f3f00a5455bea84cea39248be2b868eb2be4ac9ff8f8fbd2",
29
29
  "size": 1776
30
30
  },
31
31
  {
32
32
  "path": "toolkit/scripts/uninstall-codex-skills.ps1",
33
- "sha256": "56f9bb5f2dc8cd878db84d9f2c1e1f800fcde7a7f0457950a8b2b8115cef8644",
33
+ "sha256": "6725661c821577f0b9ec3127c841b5fefd5193edf7100c33d5743781e2154ac6",
34
34
  "size": 2430
35
35
  },
36
36
  {
@@ -45,7 +45,7 @@
45
45
  },
46
46
  {
47
47
  "path": "toolkit/SDTKCODE_TOOLKIT.md",
48
- "sha256": "f18bb77f3ab475930b2d4aeafa63ca85f182a9863ebfcb400e72c2c1b7631d97",
48
+ "sha256": "0c52799bc76204bd0dc8cf5489a74c0211e1d62b5a3f605ee4ec64a19d40c25b",
49
49
  "size": 6945
50
50
  },
51
51
  {
@@ -65,8 +65,8 @@
65
65
  },
66
66
  {
67
67
  "path": "toolkit/skills/code-discover/SKILL.md",
68
- "sha256": "edaf6dab027cbf742c7d7e444802a1a3eb7174bb9efa5250782d1740d0992328",
69
- "size": 3303
68
+ "sha256": "3ce3446807861cc11981824f7da7f790d73b600416d97372fd4b72dc2a75921e",
69
+ "size": 3814
70
70
  },
71
71
  {
72
72
  "path": "toolkit/skills/code-execute/SKILL.md",
@@ -78,6 +78,51 @@
78
78
  "sha256": "5e352fb1739cf0b9297f34e49ae01d8b0c0ed57448c3c8f3b286d12e1177a130",
79
79
  "size": 4260
80
80
  },
81
+ {
82
+ "path": "toolkit/skills/code-issue/references/MODE_FIX.md",
83
+ "sha256": "a04068abd5a287f8ccc11f2953c561c7122cce348ba0087fbd075da2f6c54694",
84
+ "size": 2547
85
+ },
86
+ {
87
+ "path": "toolkit/skills/code-issue/references/MODE_PICK.md",
88
+ "sha256": "3c4898aec6e1af04833aaf5e0a171663f6588c9ed2d1f019ce542211c20479b4",
89
+ "size": 1133
90
+ },
91
+ {
92
+ "path": "toolkit/skills/code-issue/references/MODE_PLAN.md",
93
+ "sha256": "b77f92e57ea8a04b933d43268f3195ad86365f34c888925f6e5456deacbad023",
94
+ "size": 1507
95
+ },
96
+ {
97
+ "path": "toolkit/skills/code-issue/references/MODE_REVIEW.md",
98
+ "sha256": "aa0d7a843fbb8cb3978618c2bb70e16f49436cf69cc259f0fb2a6ce222f5bcdf",
99
+ "size": 1515
100
+ },
101
+ {
102
+ "path": "toolkit/skills/code-issue/references/PROFILE_TEMPLATE.md",
103
+ "sha256": "8f49cdf7b576ff8be444446ba04a3598ef1a3c7336067e1fbbef90b93287e663",
104
+ "size": 2572
105
+ },
106
+ {
107
+ "path": "toolkit/skills/code-issue/references/RECORDS.md",
108
+ "sha256": "6b2ffffdc40d5c17ff8aa0e8601facbd27db51b72aa60b60f89f669b82fb7c9e",
109
+ "size": 2004
110
+ },
111
+ {
112
+ "path": "toolkit/skills/code-issue/scripts/test_tracker.py",
113
+ "sha256": "7fb4c2bae9c20dc1555c4ebcf6a02b2279dab2208ac6479dc247efb949bbabca",
114
+ "size": 15241
115
+ },
116
+ {
117
+ "path": "toolkit/skills/code-issue/scripts/tracker.py",
118
+ "sha256": "f1b3beb83266127ba575d6cd9ba335eb0f71483d25ae4a76b46d715fb3947681",
119
+ "size": 22671
120
+ },
121
+ {
122
+ "path": "toolkit/skills/code-issue/SKILL.md",
123
+ "sha256": "8e4b4ce1918bbead512d9e975fe5cf39a05c4b7ce4c99f6c39124b1238be4356",
124
+ "size": 4917
125
+ },
81
126
  {
82
127
  "path": "toolkit/skills/code-parallel/references/code-quality-reviewer-prompt.md",
83
128
  "sha256": "5fec663aa52b7fd2b942f71a0755f0cd109d2273a5cd21c7c24eeed7684a4cc9",
@@ -113,10 +158,20 @@
113
158
  "sha256": "7f5328dca12cb200005ae9d4386f63a9b0acb735ece57f82db206b4a3189ccae",
114
159
  "size": 3385
115
160
  },
161
+ {
162
+ "path": "toolkit/skills/code-review/references/lead-review-lessons.md",
163
+ "sha256": "d88b92640b07ea7ffcd0cb5d166460854bd23be1f17da266b33bd8800a1824bd",
164
+ "size": 4003
165
+ },
166
+ {
167
+ "path": "toolkit/skills/code-review/references/lead-review.md",
168
+ "sha256": "d62b158c5edb97dd7e044e210440692f743b4dc3afe580f18ab07bb19a02193e",
169
+ "size": 6393
170
+ },
116
171
  {
117
172
  "path": "toolkit/skills/code-review/SKILL.md",
118
- "sha256": "4d10ec40ae8ca87de03b2724b90c91053bf756c880a67d8f9a79aabd948f49b5",
119
- "size": 2723
173
+ "sha256": "3e39a9d1bdd1c0417d8c562b9ac79cc3342b96045eeb764c17b0a14783fb5448",
174
+ "size": 3113
120
175
  },
121
176
  {
122
177
  "path": "toolkit/skills/code-ship/SKILL.md",
@@ -1,18 +1,27 @@
1
- 92412732ee70a1e94a872d4c09d9817c1ebaa0089b6e17a6301d8d9209da12e0 toolkit/AGENTS.md
1
+ 145f3614b7889f47480332e7c1a660244ff657f72e85437ed41be1c8a56d7fae toolkit/AGENTS.md
2
2
  dd7ffbd69c29f76d67f65c3e857ba241e92908931b2e93a9b9c503542e43f35c toolkit/install.ps1
3
- 43925c0f1f4bb9c3a41967a27c1b905d2f10b24b8d3a6abf209d5c9f523937eb toolkit/scripts/install-claude-skills.ps1
4
- 55f997165e341dd3d272b7d24f3fd59615ac2f8b714183a48d8b63398ddc508d toolkit/scripts/install-codex-skills.ps1
5
- ea8c0813bfde387039fb6d9d27789a6c1410ec79f7f6365d9e22d187b160d731 toolkit/scripts/uninstall-claude-skills.ps1
6
- 56f9bb5f2dc8cd878db84d9f2c1e1f800fcde7a7f0457950a8b2b8115cef8644 toolkit/scripts/uninstall-codex-skills.ps1
3
+ 9cc2475ab6de9b5466bb5de039ce4fd18ba60302c9b2a131a3d1cc1ed41e2933 toolkit/scripts/install-claude-skills.ps1
4
+ 09eafd2b1be108d0191f81a4db01c5513d98f18f21138c4faf06b15b16ebdb1c toolkit/scripts/install-codex-skills.ps1
5
+ 7df15c35f63f83c6f3f00a5455bea84cea39248be2b868eb2be4ac9ff8f8fbd2 toolkit/scripts/uninstall-claude-skills.ps1
6
+ 6725661c821577f0b9ec3127c841b5fefd5193edf7100c33d5743781e2154ac6 toolkit/scripts/uninstall-codex-skills.ps1
7
7
  712382d838a18b6cc6a5285b3c536fac74138c752a3fa1fd318828b19ece6b8f toolkit/sdtk-spec.config.json
8
8
  2a306c1609499fb4910b86d5ec6e8c796e0cdf72c5f97fe3df9c1388ac62b913 toolkit/sdtk-spec.config.profiles.example.json
9
- f18bb77f3ab475930b2d4aeafa63ca85f182a9863ebfcb400e72c2c1b7631d97 toolkit/SDTKCODE_TOOLKIT.md
9
+ 0c52799bc76204bd0dc8cf5489a74c0211e1d62b5a3f605ee4ec64a19d40c25b toolkit/SDTKCODE_TOOLKIT.md
10
10
  d797d707dc34d299dbac13f09f3bc8cc42759cb69a9fa5b2cb2269e4c246061e toolkit/skills/code-brainstorm/SKILL.md
11
11
  698c89de9a0586e83ee52147adf345fa2ab813a06b454ca50e9c69e423f0a910 toolkit/skills/code-debug/references/root-cause-tracing.md
12
12
  7e18869c8cd9ad1637bede13bc6449beec545eee115517a19d691817e5cda9cb toolkit/skills/code-debug/SKILL.md
13
- edaf6dab027cbf742c7d7e444802a1a3eb7174bb9efa5250782d1740d0992328 toolkit/skills/code-discover/SKILL.md
13
+ 3ce3446807861cc11981824f7da7f790d73b600416d97372fd4b72dc2a75921e toolkit/skills/code-discover/SKILL.md
14
14
  8627a8c33cd170cc8009feb2b6ab7bf2bc4be91daa3609dc331a554ba41b1b3d toolkit/skills/code-execute/SKILL.md
15
15
  5e352fb1739cf0b9297f34e49ae01d8b0c0ed57448c3c8f3b286d12e1177a130 toolkit/skills/code-finish/SKILL.md
16
+ a04068abd5a287f8ccc11f2953c561c7122cce348ba0087fbd075da2f6c54694 toolkit/skills/code-issue/references/MODE_FIX.md
17
+ 3c4898aec6e1af04833aaf5e0a171663f6588c9ed2d1f019ce542211c20479b4 toolkit/skills/code-issue/references/MODE_PICK.md
18
+ b77f92e57ea8a04b933d43268f3195ad86365f34c888925f6e5456deacbad023 toolkit/skills/code-issue/references/MODE_PLAN.md
19
+ aa0d7a843fbb8cb3978618c2bb70e16f49436cf69cc259f0fb2a6ce222f5bcdf toolkit/skills/code-issue/references/MODE_REVIEW.md
20
+ 8f49cdf7b576ff8be444446ba04a3598ef1a3c7336067e1fbbef90b93287e663 toolkit/skills/code-issue/references/PROFILE_TEMPLATE.md
21
+ 6b2ffffdc40d5c17ff8aa0e8601facbd27db51b72aa60b60f89f669b82fb7c9e toolkit/skills/code-issue/references/RECORDS.md
22
+ 7fb4c2bae9c20dc1555c4ebcf6a02b2279dab2208ac6479dc247efb949bbabca toolkit/skills/code-issue/scripts/test_tracker.py
23
+ f1b3beb83266127ba575d6cd9ba335eb0f71483d25ae4a76b46d715fb3947681 toolkit/skills/code-issue/scripts/tracker.py
24
+ 8e4b4ce1918bbead512d9e975fe5cf39a05c4b7ce4c99f6c39124b1238be4356 toolkit/skills/code-issue/SKILL.md
16
25
  5fec663aa52b7fd2b942f71a0755f0cd109d2273a5cd21c7c24eeed7684a4cc9 toolkit/skills/code-parallel/references/code-quality-reviewer-prompt.md
17
26
  10bc07e6498e6a1e54805cce4d964545f2c1614e6679b0c1c4eb7d17b894e3a6 toolkit/skills/code-parallel/references/implementer-prompt.md
18
27
  b22d3262f252f7cc994d13bfe16c7103f3afe1e66c255090d88e53fbd68a0f82 toolkit/skills/code-parallel/references/spec-reviewer-prompt.md
@@ -20,7 +29,9 @@ b22d3262f252f7cc994d13bfe16c7103f3afe1e66c255090d88e53fbd68a0f82 toolkit/skills
20
29
  7fe115e27a83d04243401bb628ae4246a323246c972fd54890fe4a7e97926bbf toolkit/skills/code-plan/SKILL.md
21
30
  4612b4e40992f594b577146ac14f1ff13c1812e8e9da64b07eb1e2de5363af5d toolkit/skills/code-review/references/checklist.md
22
31
  7f5328dca12cb200005ae9d4386f63a9b0acb735ece57f82db206b4a3189ccae toolkit/skills/code-review/references/code-reviewer.md
23
- 4d10ec40ae8ca87de03b2724b90c91053bf756c880a67d8f9a79aabd948f49b5 toolkit/skills/code-review/SKILL.md
32
+ d88b92640b07ea7ffcd0cb5d166460854bd23be1f17da266b33bd8800a1824bd toolkit/skills/code-review/references/lead-review-lessons.md
33
+ d62b158c5edb97dd7e044e210440692f743b4dc3afe580f18ab07bb19a02193e toolkit/skills/code-review/references/lead-review.md
34
+ 3e39a9d1bdd1c0417d8c562b9ac79cc3342b96045eeb764c17b0a14783fb5448 toolkit/skills/code-review/SKILL.md
24
35
  c8dbbae4f8ed65b00e38a386cb9adba340c90dc7fd0dd8257f3c1fea37322558 toolkit/skills/code-ship/SKILL.md
25
36
  a85c93883197eef41f5392875b41a19b8cdeb3b14b3c6fb5a6dbfb6f21a1b825 toolkit/skills/code-tdd/references/testing-anti-patterns.md
26
37
  967ec7e8a0a7951e3423c4e0f92c7471912e3a03ea23dc572c392e5a37edc266 toolkit/skills/code-tdd/SKILL.md
@@ -70,6 +70,7 @@ Use this compact matrix during intake so the agent picks the smallest sufficient
70
70
  | Formal feature delivery | `SDTK-SPEC` pipeline | PM -> BA -> ARCH -> DEV planning -> CODE handoff -> QA |
71
71
  | Build, fix, or refactor implementation | `SDTK-CODE` | code-brainstorm (when slice is ambiguous) -> start -> plan -> build -> verify -> ship |
72
72
  | Debug failure or unexpected behavior | `SDTK-CODE` debug | Root cause, bounded fix, regression verification |
73
+ | Work from an issue tracker: "pick my next issue", "fix issue #N" / a batch of tracker bugs, review a branch for an issue | `SDTK-CODE` `code-issue` | Ranked candidates (pick stops there), or plan / fix / review records per issue; tracker written only after the PR exists |
73
74
  | Screen/layout design, visual tokens, or prototype evidence before coding | `SDTK-DESIGN` | Reviewable screens/prototype plus a design handoff into SDTK-CODE |
74
75
  | Deployment, release, infra, or CI/CD work | `SDTK-OPS` | ops-plan -> ops-deploy/ops-incident/ops-monitor -> ops-verify |
75
76
  | Code review or spec review | Review / QA workflow | Findings, risks, blockers, acceptance signal |
@@ -159,7 +160,7 @@ Use the suite products according to task intent:
159
160
  - ship code changes
160
161
  - workflow: `start -> plan -> build -> verify -> ship`
161
162
  - entry point for ambiguous slices: `code-brainstorm`
162
- - specialist engine: `code-plan`, `code-execute`, `code-tdd`, `code-debug`, `code-verify`, `code-review`, `code-ship`, `code-finish`, `code-worktree`, `code-discover`, `code-ui-e2e` (desktop UI end-to-end runs), `code-parallel` (sequential fallback when parallel dispatch is unavailable)
163
+ - specialist engine: `code-plan`, `code-execute`, `code-tdd`, `code-debug`, `code-verify`, `code-review`, `code-ship`, `code-finish`, `code-worktree`, `code-discover`, `code-ui-e2e` (desktop UI end-to-end runs), `code-issue` (work driven by an issue tracker), `code-parallel` (sequential fallback when parallel dispatch is unavailable)
163
164
  - `SDTK-OPS`
164
165
  - deploy or release
165
166
  - infrastructure and environment setup
@@ -26,7 +26,7 @@ It is workflow-first:
26
26
  - `ship`
27
27
 
28
28
  It still keeps the existing specialist engine:
29
- - the 13 `code-*` skills remain intact
29
+ - the 14 `code-*` skills remain intact
30
30
  - expert mode remains direct raw `code-*` usage inside Claude or Codex
31
31
 
32
32
  `SDTK-OPS` now exists as a public downstream operations product via the `sdtk-ops-kit` package. Its install and usage truth is documented in the `products/sdtk-ops/` docs rather than in this file.
@@ -80,7 +80,7 @@ Its job is to:
80
80
  - keep execution traceable
81
81
 
82
82
  ### 3.2 Specialist engine
83
- The 13 existing `code-*` skills remain the internal execution engine.
83
+ The 14 existing `code-*` skills remain the internal execution engine.
84
84
 
85
85
  They remain:
86
86
  - the specialist building blocks behind the workflow layer
@@ -16,8 +16,8 @@ if (-not (Test-Path -LiteralPath $skillsSource)) {
16
16
  }
17
17
 
18
18
  $managedSkills = @(Get-ChildItem -LiteralPath $skillsSource -Directory | Sort-Object Name)
19
- if ($managedSkills.Count -ne 13) {
20
- throw "Expected 13 managed SDTK-CODE skills but found $($managedSkills.Count)."
19
+ if ($managedSkills.Count -ne 14) {
20
+ throw "Expected 14 managed SDTK-CODE skills but found $($managedSkills.Count)."
21
21
  }
22
22
 
23
23
  if ($Scope -eq 'user') {
@@ -64,8 +64,8 @@ $installedNow = @(
64
64
  Where-Object { $managedSkills.Name -contains $_.Name } |
65
65
  Select-Object -ExpandProperty Name
66
66
  )
67
- if ($installedNow.Count -ne 13) {
68
- throw "Claude skill install incomplete. Expected 13 managed skills at $skillsDest but found $($installedNow.Count)."
67
+ if ($installedNow.Count -ne 14) {
68
+ throw "Claude skill install incomplete. Expected 14 managed skills at $skillsDest but found $($installedNow.Count)."
69
69
  }
70
70
 
71
71
  if (-not $Quiet) {
@@ -81,8 +81,8 @@ if (-not (Test-Path -LiteralPath $skillsSource)) {
81
81
  }
82
82
 
83
83
  $managedSkills = @(Get-ChildItem -LiteralPath $skillsSource -Directory | Sort-Object Name)
84
- if ($managedSkills.Count -ne 13) {
85
- throw "Expected 13 managed SDTK-CODE skills but found $($managedSkills.Count)."
84
+ if ($managedSkills.Count -ne 14) {
85
+ throw "Expected 14 managed SDTK-CODE skills but found $($managedSkills.Count)."
86
86
  }
87
87
 
88
88
  $codexHome = Resolve-CodexHome -TargetScope $Scope -TargetProjectPath $ProjectPath
@@ -132,8 +132,8 @@ $installedNow = @(
132
132
  Where-Object { $expectedNames -contains $_.Name } |
133
133
  Select-Object -ExpandProperty Name
134
134
  )
135
- if ($installedNow.Count -ne 13) {
136
- throw "Codex skill install incomplete. Expected 13 managed skills at $skillsDest but found $($installedNow.Count)."
135
+ if ($installedNow.Count -ne 14) {
136
+ throw "Codex skill install incomplete. Expected 14 managed skills at $skillsDest but found $($installedNow.Count)."
137
137
  }
138
138
 
139
139
  if (-not $Quiet) {
@@ -18,8 +18,8 @@ if (-not (Test-Path -LiteralPath $skillsSource)) {
18
18
  $managedSkillNames = @(
19
19
  Get-ChildItem -LiteralPath $skillsSource -Directory | Sort-Object Name | Select-Object -ExpandProperty Name
20
20
  )
21
- if ($managedSkillNames.Count -ne 13) {
22
- throw "Expected 13 managed SDTK-CODE skills but found $($managedSkillNames.Count)."
21
+ if ($managedSkillNames.Count -ne 14) {
22
+ throw "Expected 14 managed SDTK-CODE skills but found $($managedSkillNames.Count)."
23
23
  }
24
24
 
25
25
  if ($Scope -eq 'user') {
@@ -43,8 +43,8 @@ $managedSkillNames = @(
43
43
  Sort-Object Name |
44
44
  ForEach-Object { "sdtk-$($_.Name)" }
45
45
  )
46
- if ($managedSkillNames.Count -ne 13) {
47
- throw "Expected 13 managed SDTK-CODE skills but found $($managedSkillNames.Count)."
46
+ if ($managedSkillNames.Count -ne 14) {
47
+ throw "Expected 14 managed SDTK-CODE skills but found $($managedSkillNames.Count)."
48
48
  }
49
49
 
50
50
  $codexHome = Resolve-CodexHome -TargetScope $Scope -TargetProjectPath $ProjectPath
@@ -20,13 +20,14 @@ Use this skill when you need to discover which SDTK-CODE skill should be used ne
20
20
  | `code-verify` | Before claiming work is complete | Requires fresh command evidence. |
21
21
  | `code-plan` | When requirements need an implementation plan | Produces executable task order and verification steps. |
22
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. |
23
+ | `code-review` | When code needs review or review feedback must be handled, or the lead reviews someone's PR | Runs spec-first, quality-second review; lead mode reviews a PR against spec, decisions and smoke cases. |
24
24
  | `code-ship` | When the code is ready to prepare for merge or release | Handles pre-flight, versioning, and release prep. |
25
25
  | `code-parallel` | When 2+ independent tasks can run safely in parallel | Fans out task slices, then curates fan-in. |
26
26
  | `code-brainstorm` | Before creative or ambiguous coding work | Explores approaches before planning. |
27
27
  | `code-finish` | When branch work is complete | Presents merge, PR, keep, or discard options. |
28
28
  | `code-worktree` | When feature isolation is needed | Creates a safe isolated worktree. |
29
29
  | `code-ui-e2e` | When a desktop app is tested end to end through its real UI | Runs smoke suites by case id without touching the owner's data, sync folders or a customer's repository. |
30
+ | `code-issue` | When work starts from an issue tracker (pick next, plan, fix a batch, review a branch for an issue) | Keeps the tracker read-only until the PR exists, batches questions, one branch per issue. |
30
31
  | `code-discover` | When you are unsure where to start | Explains the toolkit and routing order. |
31
32
 
32
33
  ## Process
@@ -40,6 +41,7 @@ Use this skill when you need to discover which SDTK-CODE skill should be used ne
40
41
  2. Implementation discipline: `code-tdd`, `code-execute`, `code-parallel`
41
42
  3. Verification and review: `code-debug`, `code-verify`, `code-review`, `code-ui-e2e` (desktop UI end-to-end runs)
42
43
  4. Shipping and closure: `code-ship`, `code-finish`, `code-worktree`
44
+ 5. Tracker-driven work: `code-issue` (wraps the chain above for one issue or a batch)
43
45
 
44
46
  ## Red Flags
45
47
  | Situation | Use Instead |
@@ -51,6 +53,7 @@ Use this skill when you need to discover which SDTK-CODE skill should be used ne
51
53
  | Reviewing quality before checking spec compliance | `code-review` |
52
54
  | Shipping before verification and review finish | `code-ship` |
53
55
  | Running UI tests where the app holds someone's data, or pushing test hooks to a customer's repository | `code-ui-e2e` |
56
+ | Starting on "my next issue" / tracker bugs, or commenting / moving an issue before the PR exists | `code-issue` |
54
57
 
55
58
  ## Routing Rule
56
59
  If more than one skill seems applicable, choose the earliest skill in the workflow chain that closes the biggest risk.
@@ -0,0 +1,75 @@
1
+ ---
2
+ name: code-issue
3
+ description: Use when work starts from an issue tracker (GitHub Issues, Redmine, Jira) - "pick my next issue", "plan issue #N", "fix these bugs from the tracker", "review the bot's branch for #N and push it" - including any comment, status change or reassignment on the tracker.
4
+ ---
5
+
6
+ # Issue tracker workflow
7
+
8
+ Four modes around one tracker profile. This skill owns the tracker part (profile, credentials, reading issues,
9
+ records, stop points, tracker writes); planning, debugging, TDD, review and worktrees are delegated to `code-plan`,
10
+ `code-debug`, `code-tdd`, `code-review` and `code-worktree`.
11
+
12
+ Paths below (`scripts/`, `references/`) are relative to this skill's folder.
13
+
14
+ ## Critical Constraints
15
+
16
+ 1. **The tracker is read-only except at two points**: fix mode G7 (comment + status after the PR exists) and review
17
+ mode step 6. Every write is first run without `--apply`, shown to the person, then sent. Pick and plan never write.
18
+ 2. **One issue = one branch / worktree = one line of work.** `issue/<id>-<slug>` from the latest base branch. Before
19
+ starting, look for an existing record, branch or worktree for that issue; never open a second one.
20
+ 3. **Batch the questions.** In fix mode the person is asked twice for the whole batch — stop point A (after
21
+ reading) and stop point B (after root causes) — never once per issue, and no code changes before B.
22
+ 4. **Reproduce on the latest code before fixing; never claim "fixed" without a run on the real app** (fix mode G6).
23
+ 5. **Network calls never wait for input.** `git` and tracker calls run with `GIT_TERMINAL_PROMPT=0` and a timeout
24
+ (`tracker.py` does both). A call that hangs is a credential problem — stop and report it.
25
+ 6. **Credentials only from the environment or a never-committed `.env`.** Never print, paste or commit them.
26
+ 7. **Review mode never pushes to the base branch.** After APPROVED ask the mandatory questions (target, PR or push,
27
+ squash, exclusions) and push to the issue branch + PR.
28
+
29
+ ## Modes
30
+
31
+ | Ask | Mode | Reference | Ends with |
32
+ |---|---|---|---|
33
+ | "what's next", "pick my next issue" | pick | `references/MODE_PICK.md` | ranked list printed — **stop**, nothing started |
34
+ | "plan / look into #N" | plan | `references/MODE_PLAN.md` | worktree + `PLAN.md`, no product code changed |
35
+ | "fix #N" / "fix these bugs" | fix | `references/MODE_FIX.md` | G1–G8 with stop points A and B, PR, tracker updated |
36
+ | "review the branch for #N" | review | `references/MODE_REVIEW.md` | `REVIEW.md`, verdict, PR after the mandatory questions |
37
+
38
+ A request that names no mode: an issue id with "fix" → fix; with "look / plan / estimate" → plan; none → pick.
39
+
40
+ ## Process
41
+
42
+ 1. **Profile.** `python scripts/tracker.py check`. No profile → create `issue_profile.json` from
43
+ `references/PROFILE_TEMPLATE.md` with the person (tracker, project, statuses, title convention) and stop until the
44
+ credential is set.
45
+ 2. **Read the mode's reference** and follow its stages in order. Each reference ends with "signs you are wrong";
46
+ when one applies, go back to the stage it names.
47
+ 3. **Records.** Write `PLAN.md` / `FIX.md` / `REVIEW.md` under `<records_dir>/<id>/` as you go
48
+ (`references/RECORDS.md`): goal, measurable done criteria, `file:line` facts, root cause, what was run.
49
+ 4. **Tracker writes** (fix G7, review step 6): draft → `tracker.py comment|transition … ` (dry run) → show → `--apply`.
50
+ 5. **Report** per issue: state, branch, PR, what the person still has to do.
51
+
52
+ ## Script
53
+
54
+ | Command | Does |
55
+ |---|---|
56
+ | `tracker.py check` | find + validate the profile, name a missing credential |
57
+ | `tracker.py pick [--json] [--limit N]` | my open issues, blocked dropped, feature from the title, ranked |
58
+ | `tracker.py list [--all] [--json]` / `show <id> [--json]` | read issues, comments, attachments, links |
59
+ | `tracker.py comment <id> --body-file F [--apply]` | dry run unless `--apply` |
60
+ | `tracker.py transition <id> --to <status key> [--assign U] [--apply]` | dry run unless `--apply` |
61
+
62
+ Stdlib only; github / redmine / jira over REST (`gh auth token` as a GitHub fallback). Tests:
63
+ `python -m unittest discover -s scripts -p "test_*.py"` (a local stub server, no network).
64
+
65
+ ## Common mistakes
66
+
67
+ | Mistake | Instead |
68
+ |---|---|
69
+ | Starting work on the first issue of a "what's next" request | Print the ranked list and stop |
70
+ | Asking about each bug as you reach it | Stop point A once for the batch, stop point B once |
71
+ | Moving the issue to "in progress" / commenting while planning | Tracker untouched until G7 |
72
+ | Fixing on an old checkout or the base branch | Fetch, worktree `issue/<id>-<slug>`, reproduce there |
73
+ | "Fixed" after unit tests only | G6: the issue's steps on the real app |
74
+ | Restoring a mutation check with `git checkout --` | Restore from a copy; `checkout --` also drops your fix |
75
+ | Pushing an approved review to the base branch | Mandatory questions, issue branch, PR |
@@ -0,0 +1,31 @@
1
+ # Mode fix — a batch of bug issues
2
+
3
+ Stages G1–G8. The person is asked **twice for the whole batch** (stop points A and B), not once per issue.
4
+ Tracker writes happen only at G7, each shown before sending.
5
+
6
+ | Stage | Do | Tracker |
7
+ |---|---|---|
8
+ | G1 understand | `tracker.py show` every issue; records; code paths. Group issues that share a cause or files. | read |
9
+ | **A** | **Stop point A** — one message for the batch: per issue, what you understood, how you will reproduce it, groups, questions. Wait. | — |
10
+ | G2 reproduce | On the **latest** `base_branch` (fetch first), in the issue's worktree. Record commit + steps + actual result. Cannot reproduce → stop for that issue and say what you tried. | — |
11
+ | G3 root cause | `code-debug` per issue: `file:line` and why. A symptom is not a cause. | — |
12
+ | **B** | **Stop point B** — one message: root cause per issue, fix approach per group, risk. Wait. | — |
13
+ | G4 fix | `code-tdd` per group: failing test that reproduces the issue first, then the fix. | — |
14
+ | G5 self-review | `code-review` against the diff, twice (second pass after fixing the first findings). | — |
15
+ | G6 smoke | Run the real app on the fixed build and walk the issue's steps (desktop apps: `code-ui-e2e` when installed). Confirm fixed. Clean the test data you created. | — |
16
+ | G7 publish | PR (`code-finish`), then for each issue: draft comment (cause, fix, PR, how to verify) → `tracker.py comment <id> --body-file … ` dry run → show → `--apply`; `tracker.py transition <id> --to resolved [--assign <reassign_on_fix>]` the same way. | **write** |
17
+ | G8 close | CI result as reported by the person (or read from CI) → merge as the person decides, build, remove worktrees, records → `DONE`. | — |
18
+
19
+ Records: one `FIX.md` per issue, updated at every stage.
20
+
21
+ ## Signs you are wrong — stop and go back
22
+
23
+ - You are editing code before stop point B → back to G3.
24
+ - You asked the person a question about one issue between A and B → batch it.
25
+ - The fix was written on an old checkout or on the base branch → G2 on the latest code, in the issue's worktree.
26
+ - "Fixed" without a G6 run on the real app → not fixed.
27
+ - A mutation check (break the code to see the test fail) undone with `git checkout --` → restore from a copy you made;
28
+ `checkout --` also throws away your fix.
29
+ - The tracker was commented or moved before the PR existed → G7 only.
30
+ - A `git` / tracker call waits for input → it must run with `GIT_TERMINAL_PROMPT=0` and a timeout; kill it and fix
31
+ the credential instead.
@@ -0,0 +1,19 @@
1
+ # Mode pick — "what should I work on next?"
2
+
3
+ Read-only. Ends with a printed list; it never starts work.
4
+
5
+ 1. `python scripts/tracker.py check` — profile and credentials. Missing → stop and say what to set.
6
+ 2. `python scripts/tracker.py pick` — my open issues; blocked ones dropped (listed apart), feature taken from the
7
+ title, ranked by priority then age.
8
+ 3. For titles marked `? title does not follow the convention`: `tracker.py show <id>`, map the issue to a feature from
9
+ the description and the code it names, and say it was assumed.
10
+ 4. Check dependencies the tracker does not know: an issue whose fix needs another open issue first goes after it.
11
+ Note it on the line.
12
+ 5. Print the list in the script's template (top 5 unless asked) and **stop**. Say which issue you would take and
13
+ why in one line; the person chooses.
14
+
15
+ ## Signs you are wrong
16
+
17
+ - You created a branch, a record or a worktree → that is plan mode; undo it and ask.
18
+ - You commented on or moved an issue → pick never writes to the tracker.
19
+ - You listed issues of other people without being asked (`--all`) → the question was "my next issue".
@@ -0,0 +1,23 @@
1
+ # Mode plan — one issue, before any code changes
2
+
3
+ Read-only on the tracker. Ends with `PLAN.md` and a worktree, no product code changed.
4
+
5
+ 1. `tracker.py check`; identify the issue (`#id`, or by title through `tracker.py list`).
6
+ 2. **One issue per lifecycle.** Look for an existing record (`<records_dir>/<id>/`), a branch `issue/<id>-*` (local and
7
+ remote) and a worktree. If one is in progress (state not `DONE` / `ABANDONED`), stop: continue it or ask — never
8
+ start a second line of work on the same issue.
9
+ 3. `tracker.py show <id>` — the whole issue: description, every comment, attachments (open logs and screenshots),
10
+ links. Read earlier records if it was handled before (reopened issues).
11
+ 4. Understand the problem and the code: find the code paths, write `file:line` facts. Bugs: reproduce path,
12
+ expected vs actual — reproduction itself happens in fix mode or with `code-debug`.
13
+ 5. **No tracker change at this step** (no status, no comment, no assignment).
14
+ 6. Worktree + branch with `code-worktree`: `issue/<id>-<slug>` from the latest `base_branch`
15
+ (`git fetch` first, with `GIT_TERMINAL_PROMPT=0` and a timeout).
16
+ 7. Split into tasks with `code-plan`; write `PLAN.md` (`references/RECORDS.md`). Present the plan and the open
17
+ questions; stop for approval.
18
+
19
+ ## Signs you are wrong
20
+
21
+ - You edited product code → plan mode writes only the record.
22
+ - "Done when" has no command or observable state → rewrite it.
23
+ - A fact without `file:line` → you have not read the code yet.
@@ -0,0 +1,21 @@
1
+ # Mode review — someone else's branch for an issue (bot or developer)
2
+
3
+ 1. `tracker.py check`; find the record (`<records_dir>/<id>/`) and the state; `tracker.py show <id>`.
4
+ 2. Collect the diff against the merge base (`git diff <base>...<branch>`); mechanical checks — build, lint, tests the
5
+ project has, files outside the issue's scope, debug code, secrets.
6
+ 3. **Run the tests yourself.** A pasted "all green" is not evidence.
7
+ 4. Review with `code-review` on nine points: issue understood · root cause fixed (not the symptom) · tests reproduce
8
+ the issue · edge cases · no regression in callers · data / migration safety · error handling · scope (nothing
9
+ unrelated) · readability.
10
+ 5. Write `REVIEW.md` (`references/RECORDS.md`): verified commands, root-cause check, findings F-n with severity,
11
+ what the person must run by hand, a copy-paste prompt for the author.
12
+ 6. Tracker: draft the status change and comment, dry run, show, then `--apply` (`tracker.py transition / comment`).
13
+ 7. **APPROVED → before any push, ask** (mandatory, in one message): target remote and branch? PR or direct push?
14
+ squash? anything to leave out? The **target branch is never the base branch** — push to the issue branch and open
15
+ a PR. Then push and open the PR.
16
+
17
+ ## Signs you are wrong
18
+
19
+ - You pushed or merged to the base branch → never; that is the person's decision through the PR.
20
+ - Findings without `file:line` or without a severity → rewrite.
21
+ - You approved without running anything → step 3.
@@ -0,0 +1,53 @@
1
+ # Issue profile — <project>
2
+
3
+ `issue_profile.json` is read by `scripts/tracker.py`. It is found from the working directory upward in `./`,
4
+ `docs/`, `docs/issues/` or `.sdtk/`, or given with `--profile`. It holds no secret and may be committed; when the
5
+ tracker belongs to a customer, keep it untracked (`.git/info/exclude`).
6
+
7
+ ## issue_profile.json
8
+
9
+ ```json
10
+ {
11
+ "tracker": "redmine",
12
+ "base_url": "https://tracker.example.com",
13
+ "project": "order-app",
14
+ "me": "me",
15
+ "credentials_env": {"token": "ISSUE_TRACKER_TOKEN", "user": "ISSUE_TRACKER_USER"},
16
+ "statuses": {"in_progress": 2, "resolved": 3, "review": 7, "feedback": 4},
17
+ "priority_order": ["Immediate", "Urgent", "High", "Normal", "Low"],
18
+ "title_pattern": "^\\[(?P<feature>[A-Z0-9-]+)\\]",
19
+ "features": {"ORD": "Order management", "INV": "Invoices"},
20
+ "records_dir": "docs/issues",
21
+ "base_branch": "develop",
22
+ "reassign_on_fix": "qa-lead"
23
+ }
24
+ ```
25
+
26
+ | Key | github | redmine | jira |
27
+ |---|---|---|---|
28
+ | `project` | `owner/repo` | project identifier | project key |
29
+ | `base_url` | optional (GitHub Enterprise API URL) | required | required |
30
+ | `me` | your login (used as `assignee`) | user id or `me` | ignored (`currentUser()`) |
31
+ | `statuses` values | `open` / `closed`, or a label to add | status id | transition name, id or target status name |
32
+ | priority | `priority_labels` (ordered) | issue priority name, ranked by `priority_order` | same |
33
+ | blocked | `blocked_labels` | a `blocks` relation pointing at the issue | an open `Blocks` inward link |
34
+ | credentials | `token` (or a signed-in `gh`) | `token` = API key | `user` + `token` (cloud) or `token` (PAT) |
35
+
36
+ Credentials live in environment variables or a `.env` next to the profile or at the repository root — never committed (add it to
37
+ `.gitignore` or `.git/info/exclude` first). `python scripts/tracker.py check` says which one is missing.
38
+
39
+ ## Title convention (give this to whoever files issues)
40
+
41
+ ```
42
+ [<FEATURE>] <what is wrong or wanted, in one line>
43
+ ```
44
+
45
+ `<FEATURE>` is a key of `features` (for example `[ORD] Total is wrong after a 10 % discount`). One issue = one
46
+ problem. Steps, expected and actual result in the description; screenshots / logs as attachments.
47
+ Titles that do not match are still picked, marked `? title does not follow the convention`: map them by reading the
48
+ description and the code they mention, and say which feature you assumed.
49
+
50
+ ## Markdown part (optional, for people)
51
+
52
+ Workflow of statuses (who moves what), who reviews, where the real app runs for smoke checks, test accounts
53
+ (labels only; credentials in `.env`).
@@ -0,0 +1,39 @@
1
+ # Issue records
2
+
3
+ One folder per issue: `<records_dir>/<id>/` (default `docs/issues/<id>/`). Records are how the next session — or
4
+ the person — knows what was done; they are written as the work happens, not at the end. Keep them out of the
5
+ product repository when it belongs to a customer (records dir in the team's own repository or untracked).
6
+
7
+ Every record starts with:
8
+
9
+ ```
10
+ # <PLAN|FIX|REVIEW> — #<id> <title>
11
+ State: PLANNED | REPRODUCED | ROOT_CAUSED | FIXING | IN_REVIEW | CHANGES_REQUESTED | APPROVED | DONE | ABANDONED
12
+ Branch: issue/<id>-<slug> · Worktree: <path> · Base: <base_branch> @ <sha7>
13
+ Updated: <date> by <session / person>
14
+ ```
15
+
16
+ ## PLAN.md (plan mode)
17
+
18
+ 1. **Goal** — one sentence.
19
+ 2. **Done when** — measurable criteria (a command, a screen state, a value), each checkable by someone else.
20
+ 3. **Facts from the code** — `file:line` and what it does today. No fact without a location.
21
+ 4. **Bugs: reproduction** — steps, expected, actual, on which commit. **Root cause** (or "not yet known" + how
22
+ you will find it).
23
+ 5. **Tasks** — ordered, each small enough for one TDD cycle; which test proves each.
24
+ 6. **Open questions** — for the person; nothing guessed.
25
+
26
+ ## FIX.md (fix mode, one per issue even in a batch)
27
+
28
+ Reproduction (commit, steps, result), root cause (`file:line`, why), fix (files, test that failed first and now
29
+ passes), self-review findings fixed, smoke run on the real app (build, steps, result, test data cleaned), PR link,
30
+ tracker comment as sent.
31
+
32
+ ## REVIEW.md (review mode)
33
+
34
+ 1. What was verified with real commands (command → result), and what was not.
35
+ 2. Root-cause check — does the change fix the cause or only the symptom?
36
+ 3. Findings `F-1 … F-n`, each `blocker | major | minor | nit`, with `file:line` and the fix wanted.
37
+ 4. What the person must run by hand (real app, real data, other platforms).
38
+ 5. A copy-paste prompt for the author (bot or developer) listing the blocker / major findings.
39
+ 6. Verdict: `APPROVED` or `CHANGES_REQUESTED`.