sdtk-code-kit 0.4.3 → 0.5.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 (27) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -1
  3. package/assets/manifest/toolkit-bundle.manifest.json +82 -12
  4. package/assets/manifest/toolkit-bundle.sha256.txt +21 -7
  5. package/assets/toolkit/toolkit/AGENTS.md +1 -1
  6. package/assets/toolkit/toolkit/SDTKCODE_TOOLKIT.md +2 -2
  7. package/assets/toolkit/toolkit/scripts/install-claude-skills.ps1 +4 -4
  8. package/assets/toolkit/toolkit/scripts/install-codex-skills.ps1 +4 -4
  9. package/assets/toolkit/toolkit/scripts/uninstall-claude-skills.ps1 +2 -2
  10. package/assets/toolkit/toolkit/scripts/uninstall-codex-skills.ps1 +2 -2
  11. package/assets/toolkit/toolkit/skills/code-discover/SKILL.md +3 -1
  12. package/assets/toolkit/toolkit/skills/code-ui-e2e/SKILL.md +97 -0
  13. package/assets/toolkit/toolkit/skills/code-ui-e2e/references/PROFILE_TEMPLATE.md +30 -0
  14. package/assets/toolkit/toolkit/skills/code-ui-e2e/references/SAFETY.md +17 -0
  15. package/assets/toolkit/toolkit/skills/code-ui-e2e/references/TEST_HOOKS.md +32 -0
  16. package/assets/toolkit/toolkit/skills/code-ui-e2e/scripts/app_profile.py +118 -0
  17. package/assets/toolkit/toolkit/skills/code-ui-e2e/scripts/build_test_app.py +140 -0
  18. package/assets/toolkit/toolkit/skills/code-ui-e2e/scripts/cli.py +46 -0
  19. package/assets/toolkit/toolkit/skills/code-ui-e2e/scripts/fault_proxy.py +381 -0
  20. package/assets/toolkit/toolkit/skills/code-ui-e2e/scripts/run_smoke.py +242 -0
  21. package/assets/toolkit/toolkit/skills/code-ui-e2e/scripts/test_app_profile.py +79 -0
  22. package/assets/toolkit/toolkit/skills/code-ui-e2e/scripts/test_fault_proxy.py +327 -0
  23. package/assets/toolkit/toolkit/skills/code-ui-e2e/scripts/test_run_smoke.py +79 -0
  24. package/assets/toolkit/toolkit/skills/code-ui-e2e/scripts/uia_base.py +127 -0
  25. package/assets/toolkit/toolkit/skills/code-ui-e2e/scripts/waits.py +40 -0
  26. package/package.json +1 -1
  27. package/src/lib/scope.js +1 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 SDTK
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
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.4.3`
20
+ - version in this source snapshot: `0.5.0`
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.4.3",
3
- "sourceCommit": "12c007b7b4588c7cf1bf13a34ebee83bb9d2e40b",
4
- "fileCount": 29,
2
+ "version": "0.5.0",
3
+ "sourceCommit": "0605ff82057174ea89e50ee727edea69da0045f3",
4
+ "fileCount": 43,
5
5
  "files": [
6
6
  {
7
7
  "path": "toolkit/AGENTS.md",
8
- "sha256": "5c76955ecabfae64759c11a3ee0fa777b1e0c0f78bdd177ae8f04340cd572e4b",
9
- "size": 16469
8
+ "sha256": "92412732ee70a1e94a872d4c09d9817c1ebaa0089b6e17a6301d8d9209da12e0",
9
+ "size": 16513
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": "720990cc979cdbca776bbe21eaeee0a73c5dd698ac6c8df430c7f22826ec9219",
18
+ "sha256": "43925c0f1f4bb9c3a41967a27c1b905d2f10b24b8d3a6abf209d5c9f523937eb",
19
19
  "size": 2349
20
20
  },
21
21
  {
22
22
  "path": "toolkit/scripts/install-codex-skills.ps1",
23
- "sha256": "7d61249db7eee6185e5454f7427b808c79d5e564e0d2214ee5f92fa105effb04",
23
+ "sha256": "55f997165e341dd3d272b7d24f3fd59615ac2f8b714183a48d8b63398ddc508d",
24
24
  "size": 4762
25
25
  },
26
26
  {
27
27
  "path": "toolkit/scripts/uninstall-claude-skills.ps1",
28
- "sha256": "148ddfc5a79a9dd6d7fa5b926c5511a5e4d458fa31003217cdc2eefcbe966cc2",
28
+ "sha256": "ea8c0813bfde387039fb6d9d27789a6c1410ec79f7f6365d9e22d187b160d731",
29
29
  "size": 1776
30
30
  },
31
31
  {
32
32
  "path": "toolkit/scripts/uninstall-codex-skills.ps1",
33
- "sha256": "0fd11650bd445fad37c728471872b99bfb8bd17dfb95e62431ceccfad7f0852f",
33
+ "sha256": "56f9bb5f2dc8cd878db84d9f2c1e1f800fcde7a7f0457950a8b2b8115cef8644",
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": "9269a5afe88ce97885d054f5a78d496c1aafa50097f581d070e34dceb597c8fe",
48
+ "sha256": "f18bb77f3ab475930b2d4aeafa63ca85f182a9863ebfcb400e72c2c1b7631d97",
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": "d871b5147e894b47fb5aeae43f5b677a3e61ecda94c74ff40a5a4c46092c3e6e",
69
- "size": 2950
68
+ "sha256": "edaf6dab027cbf742c7d7e444802a1a3eb7174bb9efa5250782d1740d0992328",
69
+ "size": 3303
70
70
  },
71
71
  {
72
72
  "path": "toolkit/skills/code-execute/SKILL.md",
@@ -133,6 +133,76 @@
133
133
  "sha256": "967ec7e8a0a7951e3423c4e0f92c7471912e3a03ea23dc572c392e5a37edc266",
134
134
  "size": 10326
135
135
  },
136
+ {
137
+ "path": "toolkit/skills/code-ui-e2e/references/PROFILE_TEMPLATE.md",
138
+ "sha256": "759d482a7ac95633c6de97a4440b13698976fc01c859577c148e2d6d03177514",
139
+ "size": 1417
140
+ },
141
+ {
142
+ "path": "toolkit/skills/code-ui-e2e/references/SAFETY.md",
143
+ "sha256": "63137cb11ada24eff0c4c1c95b7a58e9247ea77100da78f4957778b80474e525",
144
+ "size": 2213
145
+ },
146
+ {
147
+ "path": "toolkit/skills/code-ui-e2e/references/TEST_HOOKS.md",
148
+ "sha256": "e65269d07ac3c76bdb4f72a46f3b591ccf9e218c28a1296de4e88ce8caaab8cc",
149
+ "size": 1772
150
+ },
151
+ {
152
+ "path": "toolkit/skills/code-ui-e2e/scripts/app_profile.py",
153
+ "sha256": "832e965fefaaea3749283e011397abde585ca3216d7dc2402c74cb0d978e579f",
154
+ "size": 6158
155
+ },
156
+ {
157
+ "path": "toolkit/skills/code-ui-e2e/scripts/build_test_app.py",
158
+ "sha256": "58c34c0ad3126f133c8c6c0f8b7663449fca16f8f4a33984e36e6a0cdd13e669",
159
+ "size": 6555
160
+ },
161
+ {
162
+ "path": "toolkit/skills/code-ui-e2e/scripts/cli.py",
163
+ "sha256": "58603b8894ea78e8e81e03f68ec5c5c793c2d2686cf1f753ef3caf827d7434d0",
164
+ "size": 1642
165
+ },
166
+ {
167
+ "path": "toolkit/skills/code-ui-e2e/scripts/fault_proxy.py",
168
+ "sha256": "c3cbf33596b4c3000c680e2f6de12be26b9be9643af04b7f9c81847e7925b146",
169
+ "size": 14254
170
+ },
171
+ {
172
+ "path": "toolkit/skills/code-ui-e2e/scripts/run_smoke.py",
173
+ "sha256": "0e9462f3d5d418189f3c70653a92ed9f0bdf307f36ad5a75ad31378458d2c2fa",
174
+ "size": 10470
175
+ },
176
+ {
177
+ "path": "toolkit/skills/code-ui-e2e/scripts/test_app_profile.py",
178
+ "sha256": "681799b951a4bbe3bf35f173aaf3ba3a11c8df317bc94dc6d97921109c384067",
179
+ "size": 3467
180
+ },
181
+ {
182
+ "path": "toolkit/skills/code-ui-e2e/scripts/test_fault_proxy.py",
183
+ "sha256": "e6946b6e37c5f4fad4068a2509d92ea799647d413e9e7cc93bbcc46e56f2499b",
184
+ "size": 12484
185
+ },
186
+ {
187
+ "path": "toolkit/skills/code-ui-e2e/scripts/test_run_smoke.py",
188
+ "sha256": "a099b1d566d56071b53818efb17e1ef69454f890e1d5cf24e69cab2831db51e5",
189
+ "size": 3515
190
+ },
191
+ {
192
+ "path": "toolkit/skills/code-ui-e2e/scripts/uia_base.py",
193
+ "sha256": "c6f2e90f1609681fa2160d0803daedaa4ae355614a4da50cbe7d809c8ef3db4a",
194
+ "size": 5564
195
+ },
196
+ {
197
+ "path": "toolkit/skills/code-ui-e2e/scripts/waits.py",
198
+ "sha256": "bbacd5163b8bd12c0202cf3a2f7b410e5ee66f471da7d03d807011a6ef00e508",
199
+ "size": 1782
200
+ },
201
+ {
202
+ "path": "toolkit/skills/code-ui-e2e/SKILL.md",
203
+ "sha256": "8cf38056d0b296a976f4b086ee95c86ae3010b381f9b4f0d46750ab2b41c38ae",
204
+ "size": 7213
205
+ },
136
206
  {
137
207
  "path": "toolkit/skills/code-verify/SKILL.md",
138
208
  "sha256": "6df69cf2db69d13672b3e73a2c25aca48791e9ea912c1e1fbc3ce7734399c346",
@@ -1,16 +1,16 @@
1
- 5c76955ecabfae64759c11a3ee0fa777b1e0c0f78bdd177ae8f04340cd572e4b toolkit/AGENTS.md
1
+ 92412732ee70a1e94a872d4c09d9817c1ebaa0089b6e17a6301d8d9209da12e0 toolkit/AGENTS.md
2
2
  dd7ffbd69c29f76d67f65c3e857ba241e92908931b2e93a9b9c503542e43f35c toolkit/install.ps1
3
- 720990cc979cdbca776bbe21eaeee0a73c5dd698ac6c8df430c7f22826ec9219 toolkit/scripts/install-claude-skills.ps1
4
- 7d61249db7eee6185e5454f7427b808c79d5e564e0d2214ee5f92fa105effb04 toolkit/scripts/install-codex-skills.ps1
5
- 148ddfc5a79a9dd6d7fa5b926c5511a5e4d458fa31003217cdc2eefcbe966cc2 toolkit/scripts/uninstall-claude-skills.ps1
6
- 0fd11650bd445fad37c728471872b99bfb8bd17dfb95e62431ceccfad7f0852f toolkit/scripts/uninstall-codex-skills.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
7
7
  712382d838a18b6cc6a5285b3c536fac74138c752a3fa1fd318828b19ece6b8f toolkit/sdtk-spec.config.json
8
8
  2a306c1609499fb4910b86d5ec6e8c796e0cdf72c5f97fe3df9c1388ac62b913 toolkit/sdtk-spec.config.profiles.example.json
9
- 9269a5afe88ce97885d054f5a78d496c1aafa50097f581d070e34dceb597c8fe toolkit/SDTKCODE_TOOLKIT.md
9
+ f18bb77f3ab475930b2d4aeafa63ca85f182a9863ebfcb400e72c2c1b7631d97 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
- d871b5147e894b47fb5aeae43f5b677a3e61ecda94c74ff40a5a4c46092c3e6e toolkit/skills/code-discover/SKILL.md
13
+ edaf6dab027cbf742c7d7e444802a1a3eb7174bb9efa5250782d1740d0992328 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
16
  5fec663aa52b7fd2b942f71a0755f0cd109d2273a5cd21c7c24eeed7684a4cc9 toolkit/skills/code-parallel/references/code-quality-reviewer-prompt.md
@@ -24,6 +24,20 @@ b22d3262f252f7cc994d13bfe16c7103f3afe1e66c255090d88e53fbd68a0f82 toolkit/skills
24
24
  c8dbbae4f8ed65b00e38a386cb9adba340c90dc7fd0dd8257f3c1fea37322558 toolkit/skills/code-ship/SKILL.md
25
25
  a85c93883197eef41f5392875b41a19b8cdeb3b14b3c6fb5a6dbfb6f21a1b825 toolkit/skills/code-tdd/references/testing-anti-patterns.md
26
26
  967ec7e8a0a7951e3423c4e0f92c7471912e3a03ea23dc572c392e5a37edc266 toolkit/skills/code-tdd/SKILL.md
27
+ 759d482a7ac95633c6de97a4440b13698976fc01c859577c148e2d6d03177514 toolkit/skills/code-ui-e2e/references/PROFILE_TEMPLATE.md
28
+ 63137cb11ada24eff0c4c1c95b7a58e9247ea77100da78f4957778b80474e525 toolkit/skills/code-ui-e2e/references/SAFETY.md
29
+ e65269d07ac3c76bdb4f72a46f3b591ccf9e218c28a1296de4e88ce8caaab8cc toolkit/skills/code-ui-e2e/references/TEST_HOOKS.md
30
+ 832e965fefaaea3749283e011397abde585ca3216d7dc2402c74cb0d978e579f toolkit/skills/code-ui-e2e/scripts/app_profile.py
31
+ 58c34c0ad3126f133c8c6c0f8b7663449fca16f8f4a33984e36e6a0cdd13e669 toolkit/skills/code-ui-e2e/scripts/build_test_app.py
32
+ 58603b8894ea78e8e81e03f68ec5c5c793c2d2686cf1f753ef3caf827d7434d0 toolkit/skills/code-ui-e2e/scripts/cli.py
33
+ c3cbf33596b4c3000c680e2f6de12be26b9be9643af04b7f9c81847e7925b146 toolkit/skills/code-ui-e2e/scripts/fault_proxy.py
34
+ 0e9462f3d5d418189f3c70653a92ed9f0bdf307f36ad5a75ad31378458d2c2fa toolkit/skills/code-ui-e2e/scripts/run_smoke.py
35
+ 681799b951a4bbe3bf35f173aaf3ba3a11c8df317bc94dc6d97921109c384067 toolkit/skills/code-ui-e2e/scripts/test_app_profile.py
36
+ e6946b6e37c5f4fad4068a2509d92ea799647d413e9e7cc93bbcc46e56f2499b toolkit/skills/code-ui-e2e/scripts/test_fault_proxy.py
37
+ a099b1d566d56071b53818efb17e1ef69454f890e1d5cf24e69cab2831db51e5 toolkit/skills/code-ui-e2e/scripts/test_run_smoke.py
38
+ c6f2e90f1609681fa2160d0803daedaa4ae355614a4da50cbe7d809c8ef3db4a toolkit/skills/code-ui-e2e/scripts/uia_base.py
39
+ bbacd5163b8bd12c0202cf3a2f7b410e5ee66f471da7d03d807011a6ef00e508 toolkit/skills/code-ui-e2e/scripts/waits.py
40
+ 8cf38056d0b296a976f4b086ee95c86ae3010b381f9b4f0d46750ab2b41c38ae toolkit/skills/code-ui-e2e/SKILL.md
27
41
  6df69cf2db69d13672b3e73a2c25aca48791e9ea912c1e1fbc3ce7734399c346 toolkit/skills/code-verify/SKILL.md
28
42
  194cf6ec70eae013c03d06f397d4bbaca73256ad69be681ad14812493a3d1962 toolkit/skills/code-worktree/SKILL.md
29
43
  7b3e27b56153160b44b5813e63ee8f762ee6f4338157480934ec4860f4914884 toolkit/templates/CODE_WORKFLOW_TEMPLATE.md
@@ -159,7 +159,7 @@ Use the suite products according to task intent:
159
159
  - ship code changes
160
160
  - workflow: `start -> plan -> build -> verify -> ship`
161
161
  - 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-parallel` (sequential fallback when parallel dispatch is unavailable)
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
163
  - `SDTK-OPS`
164
164
  - deploy or release
165
165
  - 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 12 `code-*` skills remain intact
29
+ - the 13 `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 12 existing `code-*` skills remain the internal execution engine.
83
+ The 13 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 12) {
20
- throw "Expected 12 managed SDTK-CODE skills but found $($managedSkills.Count)."
19
+ if ($managedSkills.Count -ne 13) {
20
+ throw "Expected 13 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 12) {
68
- throw "Claude skill install incomplete. Expected 12 managed skills at $skillsDest but found $($installedNow.Count)."
67
+ if ($installedNow.Count -ne 13) {
68
+ throw "Claude skill install incomplete. Expected 13 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 12) {
85
- throw "Expected 12 managed SDTK-CODE skills but found $($managedSkills.Count)."
84
+ if ($managedSkills.Count -ne 13) {
85
+ throw "Expected 13 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 12) {
136
- throw "Codex skill install incomplete. Expected 12 managed skills at $skillsDest but found $($installedNow.Count)."
135
+ if ($installedNow.Count -ne 13) {
136
+ throw "Codex skill install incomplete. Expected 13 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 12) {
22
- throw "Expected 12 managed SDTK-CODE skills but found $($managedSkillNames.Count)."
21
+ if ($managedSkillNames.Count -ne 13) {
22
+ throw "Expected 13 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 12) {
47
- throw "Expected 12 managed SDTK-CODE skills but found $($managedSkillNames.Count)."
46
+ if ($managedSkillNames.Count -ne 13) {
47
+ throw "Expected 13 managed SDTK-CODE skills but found $($managedSkillNames.Count)."
48
48
  }
49
49
 
50
50
  $codexHome = Resolve-CodexHome -TargetScope $Scope -TargetProjectPath $ProjectPath
@@ -26,6 +26,7 @@ Use this skill when you need to discover which SDTK-CODE skill should be used ne
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
+ | `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. |
29
30
  | `code-discover` | When you are unsure where to start | Explains the toolkit and routing order. |
30
31
 
31
32
  ## Process
@@ -37,7 +38,7 @@ Use this skill when you need to discover which SDTK-CODE skill should be used ne
37
38
  ## Priority Order
38
39
  1. Design and plan first: `code-brainstorm`, `code-plan`
39
40
  2. Implementation discipline: `code-tdd`, `code-execute`, `code-parallel`
40
- 3. Verification and review: `code-debug`, `code-verify`, `code-review`
41
+ 3. Verification and review: `code-debug`, `code-verify`, `code-review`, `code-ui-e2e` (desktop UI end-to-end runs)
41
42
  4. Shipping and closure: `code-ship`, `code-finish`, `code-worktree`
42
43
 
43
44
  ## Red Flags
@@ -49,6 +50,7 @@ Use this skill when you need to discover which SDTK-CODE skill should be used ne
49
50
  | Jumping into execution without a plan | `code-plan` |
50
51
  | Reviewing quality before checking spec compliance | `code-review` |
51
52
  | Shipping before verification and review finish | `code-ship` |
53
+ | Running UI tests where the app holds someone's data, or pushing test hooks to a customer's repository | `code-ui-e2e` |
52
54
 
53
55
  ## Routing Rule
54
56
  If more than one skill seems applicable, choose the earliest skill in the workflow chain that closes the biggest risk.
@@ -0,0 +1,97 @@
1
+ ---
2
+ name: code-ui-e2e
3
+ description: Use when automating end-to-end or smoke tests of a Windows desktop application through its real UI (UI Automation / pywinauto); when asked to push, share or get CI to build a branch with test hooks (UI Automation names) in a product repository that belongs to a customer or another team; when tests run on a machine where the same app holds someone's real data; or when cleaning up test folders, network faults, command-line integrations or long background cycles are involved.
4
+ ---
5
+
6
+ # Desktop UI end-to-end tests
7
+
8
+ Drive the real app, read the screen as text through UI Automation, check what a tester would see, and never damage
9
+ the machine it runs on. The test cases come from a smoke-test markdown (`sdtk-smoke-test-spec`); the runner keys every
10
+ result by that file's case ids.
11
+
12
+ **REQUIRED BACKGROUND:** read `references/SAFETY.md` before the first run on any machine. Every rule there comes from
13
+ an incident (lost server data, a hidden user window, a password typed into a browser). Paths below (`scripts/`,
14
+ `references/`) are relative to this skill's folder.
15
+
16
+ ## Critical Constraints
17
+
18
+ 1. **Never start any build of the app on a machine where the owner's copy holds data** (saved session, database,
19
+ settings) before it is parked. Check first; if there is owner data, say what you found and **ask the owner before
20
+ parking**, then `app_profile.OwnerState.park()` before the first case and `restore()` after the last — also after a
21
+ crash. A test build with the same identity signs in with the owner's session and writes their database.
22
+ 2. **Never kill the owner's app or close their windows.** If the app is running, stop and ask them to exit it. Never
23
+ attach to their Office / tools (`Dispatch`); private instances only (`DispatchEx`).
24
+ 3. **Never delete a folder that is, or is under, a sync root / watched folder of the app** — not in cleanup, not
25
+ "just the test folder". Compare with the app's registered roots first; clean test data up through the server API.
26
+ If you cannot prove a folder is outside every root, leave it and report it.
27
+ 4. **Test-only code never reaches a repository that is not the team's own — not even as a branch pushed "only to
28
+ build" or "only for CI".** Keep the hooks as a patch in the team's tool repository and build from `git archive`
29
+ with `scripts/build_test_app.py`. If CI must build it, it builds from the team's repository, not the product's.
30
+ 5. **Cases are identified by the ids in section 4 of the smoke markdown**, never by position or by counting rows.
31
+ 6. **Check the foreground window before every keystroke or coordinate click** (`uia_base.ensure_foreground`); match
32
+ controls by exact name, never by prefix or position alone.
33
+ 7. **A script with side effects is never "tried" on the owner's machine**; run it on a copy or in a sandbox first.
34
+
35
+ ## Process
36
+
37
+ 1. **Read** `references/SAFETY.md` and the project profile (`docs/qa/e2e_profile.json` + `.md`). No profile → set
38
+ one up first (below).
39
+ 2. **Check the machine** (read-only): is the app running, does the owner's copy hold data, which folders are sync
40
+ roots. Report what you found and ask before parking anything (constraint 1).
41
+ 3. **Build** the test app from a ref with `scripts/build_test_app.py` (patch applied outside every repository).
42
+ 4. **Run** the suite with `scripts/run_smoke.py` — owner state parked before, restored after.
43
+ 5. **Clean up** through the server API only (constraint 3); restore the owner's state; confirm the app's data folder
44
+ and registry values are back.
45
+ 6. **Report** `results/<time>_<suite>/report.md`. A tester confirms before anything is written back into the test
46
+ document.
47
+
48
+ ## Set up (once per project)
49
+
50
+ 1. **Profile** — `docs/qa/e2e_profile.json` + `.md` from `references/PROFILE_TEMPLATE.md`: app generations (exe, data
51
+ folder, registry key, data files), per-account values, the app's background cycle, smoke suites to automate.
52
+ 2. **Test hooks** — owner-drawn controls need UI Automation names. When the product repository belongs to a customer
53
+ or another team, keep the hooks as a patch in the team's own tool repository (`references/TEST_HOOKS.md`).
54
+ 3. **Build** — `scripts/build_test_app.py --repo … --project … --ref … --patch …` exports the ref with `git archive`,
55
+ applies the patch outside every repository and builds into `<out-root>/<ref>-<sha7>/out` with `build_info.json`.
56
+ A patch that no longer applies reports the files to refresh. Test on the latest commit of the target branch. The
57
+ build step is `dotnet build`; for another stack replace `build()` (one function).
58
+
59
+ ## Write a suite
60
+
61
+ `smoke/<suite>.py`: `SOURCE` (the smoke markdown), `CASES = {"ABC-FN-01": fn}`, `MANUAL = {"ABC-ER-06": reason}`,
62
+ optional `setup` / `teardown` / `make_driver(env)` / `make_api(env)`. A case function gets `ctx`:
63
+ `ctx.check(ok, what)`, `ctx.shot()`, `ctx.visual(what to look at)`, `ctx.hold(reason)`, `ctx.note(text)`, `ctx.d`
64
+ (the project's driver), `ctx.api` (its web API client), `ctx.state` (shared by the run).
65
+
66
+ Build the project driver on `scripts/uia_base.py` (wait_until, exact-name find_control, invoke-then-click, foreground
67
+ check, folder dialog, screenshots). Prepare server data through the web API, not through the web UI. Other helpers:
68
+ `scripts/cli.py` (command-line entry points, exit codes), `scripts/waits.py` (cycles, files appearing),
69
+ `scripts/fault_proxy.py` (503 / hang / drop / 407 / redirect, per-path rules, WebSocket-only and CONNECT rules).
70
+
71
+ ## Run
72
+
73
+ ```
74
+ python scripts/run_smoke.py smoke/<suite>.py --list # coverage of the markdown: auto / 手動 / 未実装
75
+ python scripts/run_smoke.py smoke/<suite>.py [--only ABC-FN-01]
76
+ ```
77
+
78
+ Before the first case: owner's state parked (`app_profile.OwnerState.park`), app not running. After the last:
79
+ `restore()` — also after a crash (`--restore` in the project's wrapper). Results: `results/<time>_<suite>/report.md`,
80
+ `results.json`, `<id>.png`.
81
+
82
+ ## Common mistakes
83
+
84
+ | Mistake | Effect | Instead |
85
+ |---|---|---|
86
+ | Starting the test build directly on a machine where the app is used | It signs in with the owner's session and runs on the owner's database | Check, ask, park / restore with `app_profile` |
87
+ | Deleting a test folder in cleanup | It had become a sync folder: the app deleted the items on the server | Never delete under a sync root; clean up through the API |
88
+ | Hard-coding the exe / data folder / registry key | Every test breaks at a product rename | Generations in the profile |
89
+ | Pushing the hook branch "only to build" | The customer sees test code in their repository | Patch in the team's repository, `git archive` build |
90
+ | Counting or matching cases by position | Renumbered documents pair the wrong cases | Case ids from section 4 of the markdown |
91
+ | Sleeping instead of waiting for a condition | Flaky or slow runs | `wait_until` / `waits.until` with a timeout |
92
+ | `fetch` / `push` / API calls that hang | Run stalls waiting for a credential prompt | `GIT_TERMINAL_PROMPT=0`, timeouts everywhere |
93
+
94
+ ## Tests of the scripts
95
+
96
+ `python -m unittest discover -s scripts -p "test_*.py"` — uses temp folders and its own registry key only; the
97
+ registry tests skip outside Windows.
@@ -0,0 +1,30 @@
1
+ # E2E profile — <project>
2
+
3
+ Two files in the project repository (or in the team's tool repository when the product repository is a customer's):
4
+ `docs/qa/e2e_profile.json` (read by the scripts) and this markdown (read by people and agents).
5
+
6
+ ## e2e_profile.json
7
+
8
+ ```json
9
+ {
10
+ "generations": [
11
+ {"exe_name": "OldName.exe", "data_dir": "%LOCALAPPDATA%\\OldName", "registry_key": "Software\\OldName",
12
+ "data_files": ["app.db", "app.db-wal", "app.db-shm"]},
13
+ {"exe_name": "NewName.exe", "data_dir": "%LOCALAPPDATA%\\NewName", "registry_key": "Software\\NewName",
14
+ "data_files": ["app.db", "app.db-wal", "app.db-shm"]}
15
+ ],
16
+ "profile_values": {"BaseFolderPath": "{work}\\{label}"},
17
+ "clear_values": ["Session"],
18
+ "cycle_seconds": 300
19
+ }
20
+ ```
21
+
22
+ ## Markdown part
23
+
24
+ - **Product repository / build:** repository, project file, branches under test, patch location.
25
+ - **Accounts:** labels (TK-1 …) → role; credentials only in `.env` (never committed).
26
+ - **Pages and controls:** navigation names, dialog titles, buttons per product version (old / new names).
27
+ - **Sync roots / watched folders:** where the app keeps them (registry values, database table) — the cleanup guard.
28
+ - **Shared files:** files the app shares with other programs (and who owns them).
29
+ - **Fault expectations:** per `fault_proxy` mode, what the app must show.
30
+ - **Suites:** smoke markdown → `smoke/<suite>.py`, cases left manual and why.
@@ -0,0 +1,17 @@
1
+ # Safety rules for UI tests on a real machine
2
+
3
+ Each rule exists because breaking it caused damage once.
4
+
5
+ | Rule | Why |
6
+ |---|---|
7
+ | Before starting any build of the app, check whether the machine owner's copy has data (saved session, database). If so, park it (`app_profile.OwnerState`) and get the owner's agreement. | A test build with the same identity signs in with the owner's session and writes their database. |
8
+ | Never kill the owner's app or close their windows; refuse to start while it runs. | Their unsaved work and their uploads in progress. |
9
+ | Never delete a folder that is, or is under, a sync root / watched folder of the app — compare with the app's registered roots and settings first. Clean up test data through the server API. | A cleanup that removed a folder the app had adopted made the app delete the items on the server. |
10
+ | Files shared with another program (another app's database, a config both read): touch only your own rows / keys, snapshot them before, put them back after, keep a copy of the whole file, refuse while that program runs. | The file also holds the other program's queue and history. |
11
+ | Check the foreground window before every keystroke and coordinate click (`uia_base.ensure_foreground`). | Keys typed into a browser or editor that came to the front — a password included. |
12
+ | Match controls by exact name, never by prefix or position alone. | A prefix match ticked the wrong checkbox. |
13
+ | A script with side effects is never "tried" on the owner's machine; test it on a copy or in a sandbox first. | A cancel branch that did not work ran the real reset. |
14
+ | Never attach to the owner's running Office / tools (`Dispatch`); use private instances (`DispatchEx`). | Their window was hidden by the test. |
15
+ | Test-only code never reaches a repository that is not the team's own — not even as a pushed branch. | The repository owner sees every branch. |
16
+ | Commands given to a person: short, one per line, read-only parts run once before handing them over. | Long pasted lines wrapped and broke in the console. |
17
+ | Personal data in evidence screenshots (e-mail, tokens, user names) is pointed out before the evidence is shared. | Evidence travels to customers. |
@@ -0,0 +1,32 @@
1
+ # Test hooks kept out of the product repository
2
+
3
+ Owner-drawn controls (custom-painted lists, cards, chips, links) expose nothing to UI Automation unless the app gives
4
+ them a name. Adding those names is a small code change in the product — but when the product repository belongs to a
5
+ customer or another team, test-only code must not go there (every pushed branch is visible to its owner).
6
+
7
+ ## Layout
8
+
9
+ ```
10
+ <team tool repo>/
11
+ app_patch/uia-hooks.patch <- git format-patch of the hook commit, made on a local branch never pushed
12
+ .gitattributes <- "*.patch -text" (autocrlf would rewrite the patch and break it on another machine)
13
+ build_test_app.py <- or call the skill's scripts/build_test_app.py
14
+ ```
15
+
16
+ ## Making and refreshing the patch
17
+
18
+ 1. In a local worktree of the product repository: branch from the target ref, add the names, commit, never push.
19
+ 2. `git format-patch -1 <commit> --stdout > <tool repo>/app_patch/uia-hooks.patch`.
20
+ 3. `build_test_app.py` reports "refresh it for: <files>" when a later ref changed those files: rebase the local hook
21
+ branch onto the new ref, resolve, export the patch again. A feature branch that redesigns a control needs new names
22
+ for its new controls — refresh the patch when that branch merges, not before.
23
+
24
+ ## Naming convention for list rows (example)
25
+
26
+ One line per item: `title<TAB>subtitle<TAB>right text[<TAB>[x]|[ ]]` (the checkbox state when there is one). A
27
+ driver parses it into fields; keep the convention documented in the project profile.
28
+
29
+ ## Moving the hooks into the product
30
+
31
+ If the repository owner agrees, accessibility names are a real feature (screen readers): then write them as readable
32
+ text ("title, subtitle") rather than a test format, and adapt the driver's parser.