@captain_z/zsk-skills 1.8.2 → 1.8.3

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 (347) hide show
  1. package/README.md +33 -27
  2. package/acceptance/SKILL.md +2 -0
  3. package/acceptance/harness/THIS_SKILL.md +64 -0
  4. package/acceptance/harness/constraints/filesystem-boundaries.md +6 -1
  5. package/acceptance/harness/constraints/issue-taxonomy.md +16 -0
  6. package/acceptance/harness/constraints/skill-role-contract.md +58 -10
  7. package/acceptance/harness/constraints/stage-gates.md +41 -0
  8. package/acceptance/harness/profiles/enterprise.yaml +5 -0
  9. package/acceptance/harness/profiles/frontend.yaml +5 -0
  10. package/acceptance/harness/profiles/sdlc.yaml +5 -0
  11. package/acceptance/harness/workflow/completion-contract.yaml +29 -6
  12. package/acceptance/harness/workflow/skill-quality-standards.yaml +115 -13
  13. package/acceptance/harness/workflow/stage-contracts.yaml +15 -6
  14. package/acceptance/harness/workflow/state-machine.yaml +14 -5
  15. package/archive/SKILL.md +2 -0
  16. package/archive/harness/THIS_SKILL.md +64 -0
  17. package/archive/harness/constraints/filesystem-boundaries.md +6 -1
  18. package/archive/harness/constraints/issue-taxonomy.md +16 -0
  19. package/archive/harness/constraints/skill-role-contract.md +58 -10
  20. package/archive/harness/constraints/stage-gates.md +41 -0
  21. package/archive/harness/profiles/enterprise.yaml +5 -0
  22. package/archive/harness/profiles/frontend.yaml +5 -0
  23. package/archive/harness/profiles/sdlc.yaml +5 -0
  24. package/archive/harness/workflow/completion-contract.yaml +29 -6
  25. package/archive/harness/workflow/skill-quality-standards.yaml +115 -13
  26. package/archive/harness/workflow/stage-contracts.yaml +15 -6
  27. package/archive/harness/workflow/state-machine.yaml +14 -5
  28. package/bundles.yaml +14 -1
  29. package/coding/SKILL.md +9 -1
  30. package/coding/harness/THIS_SKILL.md +71 -2
  31. package/coding/harness/constraints/filesystem-boundaries.md +6 -1
  32. package/coding/harness/constraints/issue-taxonomy.md +16 -0
  33. package/coding/harness/constraints/skill-role-contract.md +58 -10
  34. package/coding/harness/constraints/stage-gates.md +41 -0
  35. package/coding/harness/profiles/enterprise.yaml +5 -0
  36. package/coding/harness/profiles/frontend.yaml +5 -0
  37. package/coding/harness/profiles/sdlc.yaml +5 -0
  38. package/coding/harness/workflow/completion-contract.yaml +29 -6
  39. package/coding/harness/workflow/skill-io-contract.yaml +5 -0
  40. package/coding/harness/workflow/skill-quality-standards.yaml +124 -13
  41. package/coding/harness/workflow/stage-contracts.yaml +15 -6
  42. package/coding/harness/workflow/state-machine.yaml +14 -5
  43. package/commit/SKILL.md +2 -0
  44. package/commit/harness/THIS_SKILL.md +64 -0
  45. package/commit/harness/constraints/filesystem-boundaries.md +6 -1
  46. package/commit/harness/constraints/issue-taxonomy.md +16 -0
  47. package/commit/harness/constraints/skill-role-contract.md +58 -10
  48. package/commit/harness/constraints/stage-gates.md +41 -0
  49. package/commit/harness/profiles/enterprise.yaml +5 -0
  50. package/commit/harness/profiles/frontend.yaml +5 -0
  51. package/commit/harness/profiles/sdlc.yaml +5 -0
  52. package/commit/harness/workflow/completion-contract.yaml +29 -6
  53. package/commit/harness/workflow/skill-quality-standards.yaml +114 -13
  54. package/commit/harness/workflow/stage-contracts.yaml +15 -6
  55. package/commit/harness/workflow/state-machine.yaml +14 -5
  56. package/defect/SKILL.md +2 -0
  57. package/defect/harness/THIS_SKILL.md +64 -0
  58. package/defect/harness/constraints/filesystem-boundaries.md +6 -1
  59. package/defect/harness/constraints/issue-taxonomy.md +16 -0
  60. package/defect/harness/constraints/skill-role-contract.md +58 -10
  61. package/defect/harness/constraints/stage-gates.md +41 -0
  62. package/defect/harness/profiles/enterprise.yaml +5 -0
  63. package/defect/harness/profiles/frontend.yaml +5 -0
  64. package/defect/harness/profiles/sdlc.yaml +5 -0
  65. package/defect/harness/workflow/completion-contract.yaml +29 -6
  66. package/defect/harness/workflow/skill-quality-standards.yaml +114 -13
  67. package/defect/harness/workflow/stage-contracts.yaml +15 -6
  68. package/defect/harness/workflow/state-machine.yaml +14 -5
  69. package/demo/SKILL.md +2 -0
  70. package/demo/harness/THIS_SKILL.md +64 -0
  71. package/demo/harness/constraints/filesystem-boundaries.md +6 -1
  72. package/demo/harness/constraints/issue-taxonomy.md +16 -0
  73. package/demo/harness/constraints/skill-role-contract.md +58 -10
  74. package/demo/harness/constraints/stage-gates.md +41 -0
  75. package/demo/harness/profiles/enterprise.yaml +5 -0
  76. package/demo/harness/profiles/frontend.yaml +5 -0
  77. package/demo/harness/profiles/sdlc.yaml +5 -0
  78. package/demo/harness/workflow/completion-contract.yaml +29 -6
  79. package/demo/harness/workflow/skill-quality-standards.yaml +114 -13
  80. package/demo/harness/workflow/stage-contracts.yaml +15 -6
  81. package/demo/harness/workflow/state-machine.yaml +14 -5
  82. package/deploy/SKILL.md +2 -0
  83. package/deploy/harness/THIS_SKILL.md +64 -0
  84. package/deploy/harness/constraints/filesystem-boundaries.md +6 -1
  85. package/deploy/harness/constraints/issue-taxonomy.md +16 -0
  86. package/deploy/harness/constraints/skill-role-contract.md +58 -10
  87. package/deploy/harness/constraints/stage-gates.md +41 -0
  88. package/deploy/harness/profiles/enterprise.yaml +5 -0
  89. package/deploy/harness/profiles/frontend.yaml +5 -0
  90. package/deploy/harness/profiles/sdlc.yaml +5 -0
  91. package/deploy/harness/workflow/completion-contract.yaml +29 -6
  92. package/deploy/harness/workflow/skill-quality-standards.yaml +115 -13
  93. package/deploy/harness/workflow/stage-contracts.yaml +15 -6
  94. package/deploy/harness/workflow/state-machine.yaml +14 -5
  95. package/design/SKILL.md +29 -1
  96. package/design/harness/THIS_SKILL.md +68 -1
  97. package/design/harness/constraints/filesystem-boundaries.md +6 -1
  98. package/design/harness/constraints/issue-taxonomy.md +16 -0
  99. package/design/harness/constraints/skill-role-contract.md +58 -10
  100. package/design/harness/constraints/stage-gates.md +41 -0
  101. package/design/harness/profiles/enterprise.yaml +5 -0
  102. package/design/harness/profiles/frontend.yaml +5 -0
  103. package/design/harness/profiles/sdlc.yaml +5 -0
  104. package/design/harness/workflow/completion-contract.yaml +29 -6
  105. package/design/harness/workflow/skill-io-contract.yaml +3 -0
  106. package/design/harness/workflow/skill-quality-standards.yaml +125 -13
  107. package/design/harness/workflow/stage-contracts.yaml +15 -6
  108. package/design/harness/workflow/state-machine.yaml +14 -5
  109. package/dispatch/SKILL.md +2 -0
  110. package/dispatch/harness/THIS_SKILL.md +64 -0
  111. package/dispatch/harness/constraints/filesystem-boundaries.md +6 -1
  112. package/dispatch/harness/constraints/issue-taxonomy.md +16 -0
  113. package/dispatch/harness/constraints/skill-role-contract.md +58 -10
  114. package/dispatch/harness/constraints/stage-gates.md +41 -0
  115. package/dispatch/harness/profiles/enterprise.yaml +5 -0
  116. package/dispatch/harness/profiles/frontend.yaml +5 -0
  117. package/dispatch/harness/profiles/sdlc.yaml +5 -0
  118. package/dispatch/harness/workflow/completion-contract.yaml +29 -6
  119. package/dispatch/harness/workflow/skill-quality-standards.yaml +115 -13
  120. package/dispatch/harness/workflow/stage-contracts.yaml +15 -6
  121. package/dispatch/harness/workflow/state-machine.yaml +14 -5
  122. package/fix/SKILL.md +113 -0
  123. package/fix/harness/README.md +15 -0
  124. package/fix/harness/THIS_SKILL.md +229 -0
  125. package/fix/harness/best-practices/README.md +13 -0
  126. package/fix/harness/best-practices/agent-orchestration.md +45 -0
  127. package/fix/harness/best-practices/quality.md +41 -0
  128. package/fix/harness/best-practices/sdlc.md +49 -0
  129. package/fix/harness/constraints/evidence-rules.md +33 -0
  130. package/fix/harness/constraints/filesystem-boundaries.md +48 -0
  131. package/fix/harness/constraints/issue-taxonomy.md +114 -0
  132. package/fix/harness/constraints/skill-role-contract.md +243 -0
  133. package/fix/harness/constraints/source-of-truth.md +33 -0
  134. package/fix/harness/constraints/stage-gates.md +96 -0
  135. package/fix/harness/profiles/enterprise.yaml +94 -0
  136. package/fix/harness/profiles/frontend.yaml +98 -0
  137. package/fix/harness/profiles/lite.yaml +55 -0
  138. package/fix/harness/profiles/sdlc.yaml +88 -0
  139. package/fix/harness/workflow/completion-contract.yaml +172 -0
  140. package/fix/harness/workflow/skill-io-contract.yaml +193 -0
  141. package/fix/harness/workflow/skill-quality-standards.yaml +215 -0
  142. package/fix/harness/workflow/stage-contracts.yaml +64 -0
  143. package/fix/harness/workflow/state-machine.yaml +74 -0
  144. package/flow/SKILL.md +7 -4
  145. package/flow/harness/THIS_SKILL.md +70 -1
  146. package/flow/harness/constraints/filesystem-boundaries.md +6 -1
  147. package/flow/harness/constraints/issue-taxonomy.md +16 -0
  148. package/flow/harness/constraints/skill-role-contract.md +58 -10
  149. package/flow/harness/constraints/stage-gates.md +41 -0
  150. package/flow/harness/profiles/enterprise.yaml +5 -0
  151. package/flow/harness/profiles/frontend.yaml +5 -0
  152. package/flow/harness/profiles/sdlc.yaml +5 -0
  153. package/flow/harness/workflow/completion-contract.yaml +29 -6
  154. package/flow/harness/workflow/skill-io-contract.yaml +3 -0
  155. package/flow/harness/workflow/skill-quality-standards.yaml +121 -13
  156. package/flow/harness/workflow/stage-contracts.yaml +15 -6
  157. package/flow/harness/workflow/state-machine.yaml +14 -5
  158. package/issue/SKILL.md +16 -0
  159. package/issue/harness/THIS_SKILL.md +68 -1
  160. package/issue/harness/constraints/filesystem-boundaries.md +6 -1
  161. package/issue/harness/constraints/issue-taxonomy.md +16 -0
  162. package/issue/harness/constraints/skill-role-contract.md +58 -10
  163. package/issue/harness/constraints/stage-gates.md +41 -0
  164. package/issue/harness/profiles/enterprise.yaml +5 -0
  165. package/issue/harness/profiles/frontend.yaml +5 -0
  166. package/issue/harness/profiles/sdlc.yaml +5 -0
  167. package/issue/harness/workflow/completion-contract.yaml +29 -6
  168. package/issue/harness/workflow/skill-io-contract.yaml +3 -0
  169. package/issue/harness/workflow/skill-quality-standards.yaml +117 -13
  170. package/issue/harness/workflow/stage-contracts.yaml +15 -6
  171. package/issue/harness/workflow/state-machine.yaml +14 -5
  172. package/learn/SKILL.md +7 -1
  173. package/learn/harness/THIS_SKILL.md +67 -0
  174. package/learn/harness/constraints/filesystem-boundaries.md +6 -1
  175. package/learn/harness/constraints/issue-taxonomy.md +16 -0
  176. package/learn/harness/constraints/skill-role-contract.md +58 -10
  177. package/learn/harness/constraints/stage-gates.md +41 -0
  178. package/learn/harness/profiles/enterprise.yaml +5 -0
  179. package/learn/harness/profiles/frontend.yaml +5 -0
  180. package/learn/harness/profiles/sdlc.yaml +5 -0
  181. package/learn/harness/workflow/completion-contract.yaml +29 -6
  182. package/learn/harness/workflow/skill-io-contract.yaml +2 -0
  183. package/learn/harness/workflow/skill-quality-standards.yaml +119 -13
  184. package/learn/harness/workflow/stage-contracts.yaml +15 -6
  185. package/learn/harness/workflow/state-machine.yaml +14 -5
  186. package/package.json +1 -1
  187. package/prepare/SKILL.md +2 -0
  188. package/prepare/harness/THIS_SKILL.md +64 -0
  189. package/prepare/harness/constraints/filesystem-boundaries.md +6 -1
  190. package/prepare/harness/constraints/issue-taxonomy.md +16 -0
  191. package/prepare/harness/constraints/skill-role-contract.md +58 -10
  192. package/prepare/harness/constraints/stage-gates.md +41 -0
  193. package/prepare/harness/profiles/enterprise.yaml +5 -0
  194. package/prepare/harness/profiles/frontend.yaml +5 -0
  195. package/prepare/harness/profiles/sdlc.yaml +5 -0
  196. package/prepare/harness/workflow/completion-contract.yaml +29 -6
  197. package/prepare/harness/workflow/skill-quality-standards.yaml +115 -13
  198. package/prepare/harness/workflow/stage-contracts.yaml +15 -6
  199. package/prepare/harness/workflow/state-machine.yaml +14 -5
  200. package/preproposal/SKILL.md +183 -0
  201. package/preproposal/harness/README.md +15 -0
  202. package/preproposal/harness/THIS_SKILL.md +250 -0
  203. package/preproposal/harness/best-practices/README.md +14 -0
  204. package/preproposal/harness/best-practices/design-handoff.md +41 -0
  205. package/preproposal/harness/best-practices/project-constraints-template.md +66 -0
  206. package/preproposal/harness/best-practices/quality.md +41 -0
  207. package/preproposal/harness/best-practices/sdlc.md +49 -0
  208. package/preproposal/harness/constraints/evidence-rules.md +33 -0
  209. package/preproposal/harness/constraints/filesystem-boundaries.md +48 -0
  210. package/preproposal/harness/constraints/issue-taxonomy.md +114 -0
  211. package/preproposal/harness/constraints/skill-role-contract.md +243 -0
  212. package/preproposal/harness/constraints/source-of-truth.md +33 -0
  213. package/preproposal/harness/constraints/stage-gates.md +96 -0
  214. package/preproposal/harness/profiles/enterprise.yaml +94 -0
  215. package/preproposal/harness/profiles/frontend.yaml +98 -0
  216. package/preproposal/harness/profiles/lite.yaml +55 -0
  217. package/preproposal/harness/profiles/sdlc.yaml +88 -0
  218. package/preproposal/harness/workflow/completion-contract.yaml +172 -0
  219. package/preproposal/harness/workflow/skill-io-contract.yaml +200 -0
  220. package/preproposal/harness/workflow/skill-quality-standards.yaml +231 -0
  221. package/preproposal/harness/workflow/stage-contracts.yaml +64 -0
  222. package/preproposal/harness/workflow/state-machine.yaml +74 -0
  223. package/proposal/SKILL.md +21 -6
  224. package/proposal/harness/THIS_SKILL.md +65 -0
  225. package/proposal/harness/constraints/filesystem-boundaries.md +6 -1
  226. package/proposal/harness/constraints/issue-taxonomy.md +16 -0
  227. package/proposal/harness/constraints/skill-role-contract.md +58 -10
  228. package/proposal/harness/constraints/stage-gates.md +41 -0
  229. package/proposal/harness/profiles/enterprise.yaml +5 -0
  230. package/proposal/harness/profiles/frontend.yaml +5 -0
  231. package/proposal/harness/profiles/sdlc.yaml +5 -0
  232. package/proposal/harness/workflow/completion-contract.yaml +29 -6
  233. package/proposal/harness/workflow/skill-io-contract.yaml +1 -0
  234. package/proposal/harness/workflow/skill-quality-standards.yaml +115 -13
  235. package/proposal/harness/workflow/stage-contracts.yaml +15 -6
  236. package/proposal/harness/workflow/state-machine.yaml +14 -5
  237. package/ready/SKILL.md +5 -0
  238. package/ready/harness/THIS_SKILL.md +65 -0
  239. package/ready/harness/constraints/filesystem-boundaries.md +6 -1
  240. package/ready/harness/constraints/issue-taxonomy.md +16 -0
  241. package/ready/harness/constraints/skill-role-contract.md +58 -10
  242. package/ready/harness/constraints/stage-gates.md +41 -0
  243. package/ready/harness/profiles/enterprise.yaml +5 -0
  244. package/ready/harness/profiles/frontend.yaml +5 -0
  245. package/ready/harness/profiles/sdlc.yaml +5 -0
  246. package/ready/harness/workflow/completion-contract.yaml +29 -6
  247. package/ready/harness/workflow/skill-io-contract.yaml +1 -0
  248. package/ready/harness/workflow/skill-quality-standards.yaml +115 -13
  249. package/ready/harness/workflow/stage-contracts.yaml +15 -6
  250. package/ready/harness/workflow/state-machine.yaml +14 -5
  251. package/review/SKILL.md +33 -8
  252. package/review/harness/THIS_SKILL.md +84 -5
  253. package/review/harness/constraints/filesystem-boundaries.md +6 -1
  254. package/review/harness/constraints/issue-taxonomy.md +16 -0
  255. package/review/harness/constraints/skill-role-contract.md +58 -10
  256. package/review/harness/constraints/stage-gates.md +41 -0
  257. package/review/harness/profiles/enterprise.yaml +5 -0
  258. package/review/harness/profiles/frontend.yaml +5 -0
  259. package/review/harness/profiles/sdlc.yaml +5 -0
  260. package/review/harness/workflow/completion-contract.yaml +29 -6
  261. package/review/harness/workflow/skill-io-contract.yaml +15 -1
  262. package/review/harness/workflow/skill-quality-standards.yaml +141 -15
  263. package/review/harness/workflow/stage-contracts.yaml +15 -6
  264. package/review/harness/workflow/state-machine.yaml +14 -5
  265. package/smoke/SKILL.md +5 -0
  266. package/smoke/harness/THIS_SKILL.md +65 -0
  267. package/smoke/harness/constraints/filesystem-boundaries.md +6 -1
  268. package/smoke/harness/constraints/issue-taxonomy.md +16 -0
  269. package/smoke/harness/constraints/skill-role-contract.md +58 -10
  270. package/smoke/harness/constraints/stage-gates.md +41 -0
  271. package/smoke/harness/profiles/enterprise.yaml +5 -0
  272. package/smoke/harness/profiles/frontend.yaml +5 -0
  273. package/smoke/harness/profiles/sdlc.yaml +5 -0
  274. package/smoke/harness/workflow/completion-contract.yaml +29 -6
  275. package/smoke/harness/workflow/skill-quality-standards.yaml +118 -13
  276. package/smoke/harness/workflow/stage-contracts.yaml +15 -6
  277. package/smoke/harness/workflow/state-machine.yaml +14 -5
  278. package/spec/SKILL.md +16 -0
  279. package/spec/harness/THIS_SKILL.md +67 -1
  280. package/spec/harness/constraints/filesystem-boundaries.md +6 -1
  281. package/spec/harness/constraints/issue-taxonomy.md +16 -0
  282. package/spec/harness/constraints/skill-role-contract.md +58 -10
  283. package/spec/harness/constraints/stage-gates.md +41 -0
  284. package/spec/harness/profiles/enterprise.yaml +5 -0
  285. package/spec/harness/profiles/frontend.yaml +5 -0
  286. package/spec/harness/profiles/sdlc.yaml +5 -0
  287. package/spec/harness/workflow/completion-contract.yaml +29 -6
  288. package/spec/harness/workflow/skill-io-contract.yaml +2 -0
  289. package/spec/harness/workflow/skill-quality-standards.yaml +120 -13
  290. package/spec/harness/workflow/stage-contracts.yaml +15 -6
  291. package/spec/harness/workflow/state-machine.yaml +14 -5
  292. package/task/SKILL.md +19 -3
  293. package/task/harness/THIS_SKILL.md +70 -4
  294. package/task/harness/constraints/filesystem-boundaries.md +6 -1
  295. package/task/harness/constraints/issue-taxonomy.md +16 -0
  296. package/task/harness/constraints/skill-role-contract.md +58 -10
  297. package/task/harness/constraints/stage-gates.md +41 -0
  298. package/task/harness/profiles/enterprise.yaml +5 -0
  299. package/task/harness/profiles/frontend.yaml +5 -0
  300. package/task/harness/profiles/sdlc.yaml +5 -0
  301. package/task/harness/workflow/completion-contract.yaml +29 -6
  302. package/task/harness/workflow/skill-io-contract.yaml +3 -1
  303. package/task/harness/workflow/skill-quality-standards.yaml +121 -17
  304. package/task/harness/workflow/stage-contracts.yaml +15 -6
  305. package/task/harness/workflow/state-machine.yaml +14 -5
  306. package/verify/SKILL.md +5 -0
  307. package/verify/harness/THIS_SKILL.md +65 -0
  308. package/verify/harness/constraints/filesystem-boundaries.md +6 -1
  309. package/verify/harness/constraints/issue-taxonomy.md +16 -0
  310. package/verify/harness/constraints/skill-role-contract.md +58 -10
  311. package/verify/harness/constraints/stage-gates.md +41 -0
  312. package/verify/harness/profiles/enterprise.yaml +5 -0
  313. package/verify/harness/profiles/frontend.yaml +5 -0
  314. package/verify/harness/profiles/sdlc.yaml +5 -0
  315. package/verify/harness/workflow/completion-contract.yaml +29 -6
  316. package/verify/harness/workflow/skill-io-contract.yaml +1 -0
  317. package/verify/harness/workflow/skill-quality-standards.yaml +114 -13
  318. package/verify/harness/workflow/stage-contracts.yaml +15 -6
  319. package/verify/harness/workflow/state-machine.yaml +14 -5
  320. package/zsk/SKILL.md +19 -11
  321. package/zsk/harness/THIS_SKILL.md +74 -1
  322. package/zsk/harness/constraints/filesystem-boundaries.md +6 -1
  323. package/zsk/harness/constraints/issue-taxonomy.md +16 -0
  324. package/zsk/harness/constraints/skill-role-contract.md +58 -10
  325. package/zsk/harness/constraints/stage-gates.md +41 -0
  326. package/zsk/harness/profiles/enterprise.yaml +5 -0
  327. package/zsk/harness/profiles/frontend.yaml +5 -0
  328. package/zsk/harness/profiles/sdlc.yaml +5 -0
  329. package/zsk/harness/workflow/completion-contract.yaml +29 -6
  330. package/zsk/harness/workflow/skill-io-contract.yaml +5 -0
  331. package/zsk/harness/workflow/skill-quality-standards.yaml +129 -13
  332. package/zsk/harness/workflow/stage-contracts.yaml +15 -6
  333. package/zsk/harness/workflow/state-machine.yaml +14 -5
  334. package/zskplan/SKILL.md +45 -13
  335. package/zskplan/harness/THIS_SKILL.md +95 -6
  336. package/zskplan/harness/constraints/filesystem-boundaries.md +6 -1
  337. package/zskplan/harness/constraints/issue-taxonomy.md +16 -0
  338. package/zskplan/harness/constraints/skill-role-contract.md +58 -10
  339. package/zskplan/harness/constraints/stage-gates.md +41 -0
  340. package/zskplan/harness/profiles/enterprise.yaml +5 -0
  341. package/zskplan/harness/profiles/frontend.yaml +5 -0
  342. package/zskplan/harness/profiles/sdlc.yaml +5 -0
  343. package/zskplan/harness/workflow/completion-contract.yaml +29 -6
  344. package/zskplan/harness/workflow/skill-io-contract.yaml +14 -0
  345. package/zskplan/harness/workflow/skill-quality-standards.yaml +159 -19
  346. package/zskplan/harness/workflow/stage-contracts.yaml +15 -6
  347. package/zskplan/harness/workflow/state-machine.yaml +14 -5
@@ -10,7 +10,7 @@ defaults:
10
10
  stage_gate: "Downstream progression requires a recorded gate assessment or explicit N/A rationale; non-blocking quality gaps need risk acceptance before continuing."
11
11
  durable_dispatch: "Dispatched lanes must leave a durable ledger and packet statuses; stale or timed-out lanes require fallback evidence before completion."
12
12
  scopeRouting:
13
- moduleFinal: ".zsk/modules/{module}/{stage}.md"
13
+ moduleFinal: ".zsk/modules/{module}/{stage}.md; proposal/spec/design/tasks may upgrade to .zsk/modules/{module}/{stage}/index.md when the stage artifact needs split child docs"
14
14
  modulePrivate:
15
15
  issues: ".zsk/modules/{module}/_issues/"
16
16
  evidence: ".zsk/modules/{module}/_evidence/"
@@ -40,27 +40,48 @@ outputs:
40
40
  - ".zsk/raws/manifest.json"
41
41
  - ".zsk/docs/SYSTEM-SPEC.md"
42
42
  feedbackTargets: [".zsk/docs/SYSTEM-SPEC.md", ".zsk/config.yaml"]
43
+ preproposal:
44
+ artifacts:
45
+ - ".zsk/raws/prepare/product/{topic}/product-brief.md"
46
+ - ".zsk/raws/prepare/product/{topic}/roadmap.md"
47
+ - ".zsk/raws/prepare/ux/{topic}/ux-readiness.md"
48
+ - ".zsk/raws/prepare/design/{topic}/design-source-needs.md"
49
+ - ".zsk/evidence/preproposal/{run}/checkpoint-product-review.md"
50
+ - ".zsk/evidence/preproposal/{run}/checkpoint-roadmap-review.md"
51
+ - ".zsk/evidence/preproposal/{run}/checkpoint-ux-review.md"
52
+ - ".zsk/evidence/preproposal/{run}/readiness-review.md"
53
+ feedbackTargets: [".zsk/raws/manifest.json", ".zsk/raws/index.md", ".zsk/evidence/preproposal/{run}/readiness-review.md"]
43
54
  proposal:
44
55
  artifacts:
45
56
  - ".zsk/modules/{module}/proposal.md"
46
- feedbackTargets: [".zsk/modules/{module}/proposal.md"]
57
+ - ".zsk/modules/{module}/proposal/index.md when split child docs are required"
58
+ feedbackTargets: [".zsk/modules/{module}/proposal.md", ".zsk/modules/{module}/proposal/index.md"]
47
59
  spec:
48
60
  artifacts:
49
61
  - ".zsk/modules/{module}/spec.md"
50
- feedbackTargets: [".zsk/modules/{module}/spec.md", ".zsk/docs/SYSTEM-SPEC.md"]
62
+ - ".zsk/modules/{module}/spec/index.md when split child docs are required"
63
+ feedbackTargets: [".zsk/modules/{module}/spec.md", ".zsk/modules/{module}/spec/index.md", ".zsk/docs/SYSTEM-SPEC.md"]
51
64
  design:
52
65
  artifacts:
53
66
  - ".zsk/modules/{module}/design.md"
54
- feedbackTargets: [".zsk/modules/{module}/design.md"]
67
+ - ".zsk/modules/{module}/design/index.md when split child docs are required"
68
+ feedbackTargets: [".zsk/modules/{module}/design.md", ".zsk/modules/{module}/design/index.md"]
55
69
  task:
56
70
  artifacts:
57
71
  - ".zsk/modules/{module}/tasks.md"
72
+ - ".zsk/modules/{module}/tasks/index.md when split child docs are required"
58
73
  - ".zsk/modules/{module}/_playwright/specs/"
59
- feedbackTargets: [".zsk/modules/{module}/tasks.md", ".zsk/modules/{module}/design.md"]
74
+ feedbackTargets: [".zsk/modules/{module}/tasks.md", ".zsk/modules/{module}/tasks/index.md", ".zsk/modules/{module}/design.md", ".zsk/modules/{module}/design/index.md"]
60
75
  coding:
61
76
  artifacts:
62
77
  - "implementation files"
63
78
  feedbackTargets: [".zsk/modules/{module}/tasks.md"]
79
+ fix:
80
+ artifacts:
81
+ - ".zsk/modules/{module}/_issues/"
82
+ - ".zsk/issues/{shared|global|public}/"
83
+ - "implementation files or no-code blocker rationale"
84
+ feedbackTargets: [".zsk/modules/{module}/tasks.md", ".zsk/modules/{module}/review.md", ".zsk/modules/{module}/verify.md"]
64
85
  smoke:
65
86
  artifacts:
66
87
  - ".zsk/modules/{module}/smoke.md"
@@ -70,7 +91,9 @@ outputs:
70
91
  artifacts:
71
92
  - ".zsk/modules/{module}/review.md"
72
93
  - ".zsk/modules/{module}/_issues/"
73
- feedbackTargets: [".zsk/modules/{module}/review.md", ".zsk/modules/{module}/design.md", ".zsk/modules/{module}/tasks.md"]
94
+ - ".zsk/evidence/preproposal/{run}/checkpoint-*.md when reviewing preproposal checkpoints"
95
+ - ".zsk/evidence/{shared|global|public}/review/{run}/ when reviewing explicit shared/global/public targets"
96
+ feedbackTargets: [".zsk/modules/{module}/review.md", ".zsk/modules/{module}/design.md", ".zsk/modules/{module}/tasks.md", ".zsk/evidence/preproposal/{run}/readiness-review.md"]
74
97
  commit:
75
98
  artifacts:
76
99
  - ".zsk/modules/{module}/commit.md"
@@ -3,10 +3,11 @@ framework:
3
3
  intent: Make every ZSK stage produce a decision-grade document, not a chat
4
4
  summary or empty template.
5
5
  industryAnchors:
6
- - "Diataxis: choose the document mode by reader need: task guidance,
7
- reference, explanation, or learning."
8
- - "Developer documentation style guides: optimize for the reader, clarity,
9
- consistency, active language, and project-specific terminology."
6
+ - "Diataxis (https://diataxis.fr/): choose document mode by reader need:
7
+ task guidance, reference, explanation, or learning."
8
+ - "Google developer documentation style guide
9
+ (https://developers.google.com/style): optimize for reader clarity,
10
+ consistency, active language, examples, and project-specific terminology."
10
11
  - "Definition of Done: completion requires shared, visible, measurable
11
12
  quality criteria."
12
13
  - "Review workflows: a stage is not complete until another reader can
@@ -14,16 +15,44 @@ framework:
14
15
  - "ISO/IEC/IEEE 12207 and 15288: lifecycle coverage should be method-neutral
15
16
  and accepted by equivalent artifacts or control points only when evidence
16
17
  exists."
17
- - "ISO/IEC/IEEE 29148: requirements work must produce traceable, testable
18
- information items, not only narrative intent."
19
- - "ISO/IEC/IEEE 42010, C4, and ADR practice: architecture and design
20
- decisions need context, viewpoints or equivalent structure, rationale,
21
- tradeoffs, alternatives, and consequences."
22
- - "ISO/IEC/IEEE 29119 and ISTQB: testing needs test basis, traceability,
18
+ - "ISO/IEC/IEEE 29148:2018 (https://www.iso.org/standard/72089.html):
19
+ requirements work must produce traceable, testable information items, not
20
+ only narrative intent."
21
+ - "ISO/IEC/IEEE 42010:2022 (https://www.iso.org/standard/74393.html), C4
22
+ (https://c4model.com/), and MADR (https://github.com/adr/madr):
23
+ architecture/design work needs stakeholder concerns, viewpoints or
24
+ equivalent views, context, rationale, tradeoffs, alternatives,
25
+ consequences, and decision records."
26
+ - "ISO/IEC/IEEE 29119
27
+ (https://committee.iso.org/sites/jtc1sc7/home/projects/flagship-standards\
28
+ /isoiecieee-29119-series.html): testing needs test basis, traceability,
23
29
  coverage, entry/exit criteria, regression, defect closure, and reports."
24
- - "NIST SSDF, OWASP ASVS/SAMM, DORA, Scrum, and SAFe: security, release
25
- readiness, delivery metrics, and continuous improvement must remain part
26
- of the lifecycle."
30
+ - "Scrum Guide 2020 (https://scrumguides.org/scrum-guide.html): product work
31
+ needs transparent product goals/backlog items, ordered value, inspection,
32
+ and adaptation rather than one-shot requirements freezing."
33
+ - "ISO 9241-210:2019 (https://www.iso.org/standard/77520.html), confirmed
34
+ current in 2025: human-centred design needs user/context understanding and
35
+ design activities across the lifecycle of interactive systems."
36
+ - "GOV.UK Service Standard points 1 and 4
37
+ (https://www.gov.uk/service-manual/service-standard/point-1-understand-us\
38
+ er-needs,
39
+ https://www.gov.uk/service-manual/service-standard/point-4-make-the-servi\
40
+ ce-simple-to-use): understand user needs before solutioning and test
41
+ simplicity/usability with users."
42
+ - "Design Council Double Diamond / Framework for Innovation
43
+ (https://www.designcouncil.org.uk/resources/the-double-diamond/):
44
+ discovery, definition, development, and delivery may iterate when evidence
45
+ changes the problem framing."
46
+ - "NIST SSDF (https://csrc.nist.gov/pubs/sp/800/218/final) and OWASP
47
+ ASVS/SAMM
48
+ (https://owasp.org/www-project-application-security-verification-standard\
49
+ /, https://owaspsamm.org/model/): security requirements, secure design,
50
+ verification, and control evidence belong across the lifecycle."
51
+ - "DORA continuous delivery and metrics
52
+ (https://dora.dev/capabilities/continuous-delivery/,
53
+ https://dora.dev/guides/dora-metrics/): delivery design should preserve
54
+ automated tests, deployment safety, observability, small batches, and
55
+ measurable release outcomes."
27
56
  documentModes:
28
57
  decisionBrief: Frames a decision with context, options, recommendation, risks,
29
58
  and success criteria.
@@ -32,7 +61,61 @@ framework:
32
61
  executionPlan: Turns approved decisions into ordered, owned, verifiable work.
33
62
  evidenceReport: Records what was run, what happened, what failed, and what remains risky.
34
63
  decisionRecord: Preserves the reason for an irreversible or future-relevant choice.
64
+ constraintLevels:
65
+ hard: Mandatory stage contract. Missing, stale, contradictory, or
66
+ placeholder-only evidence is FAIL/BLOCKED and cannot be waived by wording.
67
+ conditional: Mandatory when the trigger condition is touched by scope, sources,
68
+ project rules, domain terms, or downstream evidence needs. If the
69
+ condition applies, omission is FAIL/BLOCKED.
70
+ advisory: Best-practice guidance that improves quality, reviewability, or
71
+ maintainability. It may be skipped only with a short rationale and no
72
+ broken hard or conditional requirement.
73
+ nA: Allowed only when the artifact explains why the level or view does not
74
+ apply, cites the evidence or project rule, and does not hide a missing
75
+ mandatory input.
35
76
  defaults:
77
+ hardRequirements:
78
+ - Read the required inputs for the active skill, or stop as BLOCKED with
79
+ owner, missing input, impact, and next action.
80
+ - Produce every required output from the skill I/O contract, or mark the
81
+ specific output BLOCKED with evidence.
82
+ - Expose the required output contract in the artifact or handoff so the next
83
+ skill can verify what was produced, blocked, or N/A.
84
+ - Separate facts, decisions, assumptions, open questions, risks, blockers,
85
+ and evidence.
86
+ - Trace required claims to source artifacts, accepted decisions, scenarios,
87
+ commands, issues, or human decisions.
88
+ - Preserve upstream/downstream stage ownership; do not silently rewrite
89
+ another skill's artifact.
90
+ conditionalRequirements:
91
+ - When auth, permissions, privacy, security, tenancy, roles, data access,
92
+ compliance, payment, migration, public API, or audit behavior is touched,
93
+ produce the relevant control/traceability matrix or block with the missing
94
+ source.
95
+ - When architecture, interface, data-flow, storage, migration, dependency,
96
+ rollback, integration, or cross-team ownership decisions are made, record
97
+ ADR/decision-record entries with context, options, decision, consequences,
98
+ rollback/migration notes, and linked requirements.
99
+ - When UI-visible behavior is touched, include user-observable states,
100
+ accessibility/locator strategy, scenario evidence needs, and stable test
101
+ hooks.
102
+ - When behavior is testable, define or consume a traceable test basis before
103
+ claiming implementation, smoke, review, verify, or acceptance success.
104
+ - When external facts, SDKs, APIs, regulations, market context, or
105
+ dependency behavior are freshness-sensitive, retrieve current
106
+ authoritative references or record why local sources are sufficient.
107
+ - When an artifact becomes too large for one reviewable file, split it into
108
+ `{stage}/index.md` plus linked child Markdown files while preserving the
109
+ full stage contract.
110
+ advisoryGuidance:
111
+ - Prefer the smallest artifact that lets the next reader decide and act
112
+ without chat memory.
113
+ - Use tables, matrices, diagrams, or checklists only when they clarify
114
+ ownership, traceability, risk, or execution.
115
+ - Use project terminology and source identifiers consistently across
116
+ proposal, spec, design, task, and evidence artifacts.
117
+ - Record suggestions separately from current project policy, especially for
118
+ thresholds that remain `未指定`.
36
119
  qualityCheckpoints:
37
120
  - Names the reader, stage, scope, and stop condition.
38
121
  - Separates facts, decisions, assumptions, open questions, and evidence.
@@ -59,6 +142,10 @@ defaults:
59
142
  - "For testable work, verifies test correctness, not only test execution:
60
143
  traceable test basis, meaningful assertions, negative/boundary/regression
61
144
  coverage, and skipped/unrun checks called out."
145
+ - When proposal, spec, design, or tasks become too large for one reviewable
146
+ file, the artifact may split to `{stage}/index.md` plus linked child
147
+ Markdown files; the index remains the entrypoint and the full stage
148
+ contract still applies.
62
149
  antiPatterns:
63
150
  - Template-shaped filler that does not resolve a decision.
64
151
  - Skipping PROJECT-CONFIG.md or SYSTEM-SPEC.md, or treating their project
@@ -85,6 +172,21 @@ stages:
85
172
  acceptance:
86
173
  documentMode: decisionRecord
87
174
  purpose: Record the accept/reject business decision and residual-risk ownership.
175
+ hardRequirements:
176
+ - Record accept, reject, or conditional acceptance decision with linked
177
+ verify/demo evidence.
178
+ - Name accepted criteria, residual risks, owners, and documentation
179
+ feedback or no-update rationale.
180
+ - Do not accept without verification evidence unless explicitly blocked
181
+ and risk-accepted.
182
+ conditionalRequirements:
183
+ - When residual risks affect security, privacy, permissions, data,
184
+ release, or compliance, require owner and follow-up issue.
185
+ - When business/user confirmation is missing, mark acceptance BLOCKED
186
+ instead of inferred.
187
+ advisoryGuidance:
188
+ - Keep acceptance focused on decision and risk, not implementation recap.
189
+ - Preserve rejection reasons in a form that can route back to issue/fix.
88
190
  mustAnswer:
89
191
  - Is the verified work accepted, rejected, or conditionally accepted?
90
192
  - Which evidence and issues support the decision?
@@ -4,30 +4,39 @@ contracts:
4
4
  requiredResources: [configured-sources, resource-manifest]
5
5
  optionalResources: [requirements, api-contracts, backend-repositories, design-sources, design-assets, test-cases, market-research, competitor-research, pricing-research, user-research]
6
6
  outputs: [resource-manifest, resource-gaps]
7
+ preproposal:
8
+ requiredResources: [brief-or-request, zsk-config]
9
+ optionalResources: [project-config, system-spec, existing-product-design, existing-roadmap, existing-ux-design, design-sources, market-research, user-research, stakeholder-notes, resource-manifest]
10
+ outputs: [preproposal-raw-pack, product-brief, roadmap-decomposition, ux-flow-seeds, design-source-needs, assumptions-ledger, risk-ledger, scenario-seeds, checkpoint-review-evidence, readiness-handoff]
7
11
  proposal:
8
12
  requiredResources: [project-config, system-spec, requirements]
9
- optionalResources: [market-research, competitor-research, pricing-research, user-personas, user-research, business-model, regulatory-sources]
13
+ optionalResources: [reviewed-preproposal-raw-pack, market-research, competitor-research, pricing-research, user-personas, user-research, business-model, regulatory-sources]
10
14
  outputs: [project-rules-gate, proposal]
11
15
  spec:
12
16
  requiredResources: [project-config, system-spec, requirements, proposal]
13
17
  optionalResources: [market-research, user-personas, pricing-research, competitor-research]
14
- outputs: [project-rules-gate, spec, scenario-contracts]
18
+ outputs: [project-rules-gate, spec, scenario-contracts, behavior-control-matrix-when-triggered]
15
19
  design:
16
20
  requiredResources: [project-config, system-spec, spec, code]
17
21
  optionalResources: [api-contracts, design-sources, design-assets, user-personas, competitive-benchmarks]
18
- outputs: [project-rules-gate, design, design-views, locator-strategy, playwright-scenario-plan]
22
+ outputs: [project-rules-gate, design, design-views, adr-decision-records, locator-strategy, control-traceability-matrix-when-triggered, playwright-scenario-plan]
19
23
  task:
20
24
  requiredResources: [project-config, system-spec, spec, design]
21
- outputs: [project-rules-gate, kiro-style-nested-checkbox-todo-list, proposal-spec-design-alignment-matrix, tasks, playwright-case-skeletons, scenario-synthesis-plan]
25
+ outputs: [project-rules-gate, kiro-style-nested-checkbox-todo-list, proposal-spec-design-adr-alignment-matrix, control-row-task-coverage-when-triggered, tasks, playwright-case-skeletons, scenario-synthesis-plan]
22
26
  coding:
23
27
  requiredResources: [tasks, code]
24
28
  outputs: [implementation]
29
+ fix:
30
+ requiredResources: [persisted-issue, expected-actual-evidence, code]
31
+ optionalResources: [spec, design, tasks, smoke-report, review-report, verify-report]
32
+ outputs: [root-cause-note, scoped-correction, regression-guard, updated-issue-record, verification-handoff]
25
33
  smoke:
26
34
  requiredResources: [implementation]
27
35
  outputs: [smoke-report, runtime-evidence]
28
36
  review:
29
- requiredResources: [implementation, smoke-report]
30
- outputs: [review-report, review-issues]
37
+ requiredResources: [review-target-or-implementation, review-context]
38
+ optionalResources: [smoke-report, spec, design, tasks, tests, preproposal-raw-pack, source-manifest, stage-doc, code-diff]
39
+ outputs: [review-report, review-issues, blocking-findings, target-mode-verdict]
31
40
  commit:
32
41
  requiredResources: [review-report]
33
42
  outputs: [commit-evidence]
@@ -1,11 +1,13 @@
1
1
  version: 1
2
2
  stages:
3
3
  - prepare
4
+ - preproposal
4
5
  - proposal
5
6
  - spec
6
7
  - design
7
8
  - task
8
9
  - coding
10
+ - fix
9
11
  - smoke
10
12
  - review
11
13
  - commit
@@ -18,8 +20,11 @@ stages:
18
20
  - archive
19
21
  transitions:
20
22
  prepare:
21
- pass: [proposal]
23
+ pass: [preproposal, proposal]
22
24
  fail: [prepare]
25
+ preproposal:
26
+ pass: [proposal]
27
+ fail: [preproposal, prepare]
23
28
  proposal:
24
29
  pass: [spec]
25
30
  spec:
@@ -33,12 +38,16 @@ transitions:
33
38
  fail: [design]
34
39
  coding:
35
40
  pass: [smoke]
41
+ fail: [fix]
42
+ fix:
43
+ pass: [smoke, review, ready]
44
+ fail: [coding]
36
45
  smoke:
37
46
  pass: [review]
38
- fail: [coding]
47
+ fail: [fix, coding]
39
48
  review:
40
- pass: [commit]
41
- fail: [coding]
49
+ pass: [commit, preproposal, proposal]
50
+ fail: [fix, coding, preproposal, proposal, spec, design, task]
42
51
  commit:
43
52
  pass: [deploy]
44
53
  fail: [coding]
@@ -57,7 +66,7 @@ transitions:
57
66
  pass: [verify]
58
67
  verify:
59
68
  pass: [acceptance]
60
- fail: [coding, defect]
69
+ fail: [fix, coding, defect]
61
70
  acceptance:
62
71
  pass: [archive]
63
72
  fail: [spec, design, coding]
package/archive/SKILL.md CHANGED
@@ -74,6 +74,8 @@ This core skill is governed by the ZSK harness. Enforce these rules even when on
74
74
  - Source of truth: read configured resources before inventing intent; record conflicts instead of choosing silently.
75
75
  - Issue taxonomy: route demo, smoke, review, test, verify, and acceptance findings to the correct issue type.
76
76
  - Skill role: execute the full expert role, including all relevant lanes; partial single-angle execution is a failing result.
77
+ - Constraint levels: hard requirements and triggered conditional requirements are blocking; advisory guidance may be skipped only with rationale and no broken hard/conditional gate.
78
+ - Required outputs: every output declared in the skill I/O contract is mandatory unless recorded as evidence-backed N/A or BLOCKED with owner, impact, and next action.
77
79
  - Collaboration: ordinary stage skills own their declared outputs and handoff quality; workflow skills own route selection. Do not hardcode the next stage inside a stage skill.
78
80
  - Dynamic state awareness: identify the active role/stage, project type, stack, runtime, domain, target users/market, and freshness-sensitive decisions before selecting practices or retrieval sources.
79
81
  - Filesystem boundaries: write ZSK-managed outputs only under the configured `.zsk` workspace paths.
@@ -21,6 +21,12 @@ This file is generated for the installed skill. Read it before executing this sk
21
21
  - `learning-proposals`
22
22
  - `release-notes`
23
23
 
24
+ ## Required Output Enforcement
25
+
26
+ - Every required output above is a hard requirement for this skill run.
27
+ - If an output is not applicable, record `N/A` with evidence from scope, source, or project rules.
28
+ - If an output cannot be produced, record `BLOCKED` with owner, missing input, impact, and next action.
29
+
24
30
  ## Allowed Tools And Capabilities
25
31
 
26
32
  - Tools: `filesystem`, `git`, `issue-index`
@@ -51,11 +57,67 @@ This file is generated for the installed skill. Read it before executing this sk
51
57
  - Classify learning authority before writing: project-local learning stays in the current project; reusable ZSK core learning targets the canonical ZSK source repo.
52
58
  - Resolve the ZSK core repo from `ZSK_LEARNING_REPO`, then `ZSK_CORE_REPO`, then the current checkout only if it contains `skills/`, `harness/`, and `packages/cli/`; otherwise report BLOCKED.
53
59
 
60
+ ## Industry Best-Practice Anchors
61
+
62
+ - Diataxis (https://diataxis.fr/): choose document mode by reader need: task guidance, reference, explanation, or learning.
63
+ - Google developer documentation style guide (https://developers.google.com/style): optimize for reader clarity, consistency, active language, examples, and project-specific terminology.
64
+ - Definition of Done: completion requires shared, visible, measurable quality criteria.
65
+ - Review workflows: a stage is not complete until another reader can inspect artifacts, evidence, decisions, and unresolved risks.
66
+ - ISO/IEC/IEEE 12207 and 15288: lifecycle coverage should be method-neutral and accepted by equivalent artifacts or control points only when evidence exists.
67
+ - ISO/IEC/IEEE 29148:2018 (https://www.iso.org/standard/72089.html): requirements work must produce traceable, testable information items, not only narrative intent.
68
+ - ISO/IEC/IEEE 42010:2022 (https://www.iso.org/standard/74393.html), C4 (https://c4model.com/), and MADR (https://github.com/adr/madr): architecture/design work needs stakeholder concerns, viewpoints or equivalent views, context, rationale, tradeoffs, alternatives, consequences, and decision records.
69
+ - ISO/IEC/IEEE 29119 (https://committee.iso.org/sites/jtc1sc7/home/projects/flagship-standards/isoiecieee-29119-series.html): testing needs test basis, traceability, coverage, entry/exit criteria, regression, defect closure, and reports.
70
+ - Scrum Guide 2020 (https://scrumguides.org/scrum-guide.html): product work needs transparent product goals/backlog items, ordered value, inspection, and adaptation rather than one-shot requirements freezing.
71
+ - ISO 9241-210:2019 (https://www.iso.org/standard/77520.html), confirmed current in 2025: human-centred design needs user/context understanding and design activities across the lifecycle of interactive systems.
72
+ - GOV.UK Service Standard points 1 and 4 (https://www.gov.uk/service-manual/service-standard/point-1-understand-user-needs, https://www.gov.uk/service-manual/service-standard/point-4-make-the-service-simple-to-use): understand user needs before solutioning and test simplicity/usability with users.
73
+ - Design Council Double Diamond / Framework for Innovation (https://www.designcouncil.org.uk/resources/the-double-diamond/): discovery, definition, development, and delivery may iterate when evidence changes the problem framing.
74
+ - NIST SSDF (https://csrc.nist.gov/pubs/sp/800/218/final) and OWASP ASVS/SAMM (https://owasp.org/www-project-application-security-verification-standard/, https://owaspsamm.org/model/): security requirements, secure design, verification, and control evidence belong across the lifecycle.
75
+ - DORA continuous delivery and metrics (https://dora.dev/capabilities/continuous-delivery/, https://dora.dev/guides/dora-metrics/): delivery design should preserve automated tests, deployment safety, observability, small batches, and measurable release outcomes.
76
+
77
+ ## Constraint Levels
78
+
79
+ - `hard`: Mandatory stage contract. Missing, stale, contradictory, or placeholder-only evidence is FAIL/BLOCKED and cannot be waived by wording.
80
+ - `conditional`: Mandatory when the trigger condition is touched by scope, sources, project rules, domain terms, or downstream evidence needs. If the condition applies, omission is FAIL/BLOCKED.
81
+ - `advisory`: Best-practice guidance that improves quality, reviewability, or maintainability. It may be skipped only with a short rationale and no broken hard or conditional requirement.
82
+ - `nA`: Allowed only when the artifact explains why the level or view does not apply, cites the evidence or project rule, and does not hide a missing mandatory input.
83
+
54
84
  ## Document Quality Standard
55
85
 
56
86
  - Document mode: `decisionRecord`
57
87
  - Purpose: Close the iteration by preserving artifacts, decisions, issues, and learning proposals.
58
88
 
89
+ ## Hard Requirements
90
+
91
+ - Read the required inputs for the active skill, or stop as BLOCKED with owner, missing input, impact, and next action.
92
+ - Produce every required output from the skill I/O contract, or mark the specific output BLOCKED with evidence.
93
+ - Expose the required output contract in the artifact or handoff so the next skill can verify what was produced, blocked, or N/A.
94
+ - Separate facts, decisions, assumptions, open questions, risks, blockers, and evidence.
95
+ - Trace required claims to source artifacts, accepted decisions, scenarios, commands, issues, or human decisions.
96
+ - Preserve upstream/downstream stage ownership; do not silently rewrite another skill's artifact.
97
+ - Index final artifacts, accepted/rejected decisions, closed/open issues, evidence, residual risks, and learning candidates.
98
+ - Preserve future-relevant decisions so later agents do not re-litigate them.
99
+ - Do not promote one-off preferences into reusable core rules without learn/review evidence.
100
+
101
+ ## Conditional Requirements
102
+
103
+ - When auth, permissions, privacy, security, tenancy, roles, data access, compliance, payment, migration, public API, or audit behavior is touched, produce the relevant control/traceability matrix or block with the missing source.
104
+ - When architecture, interface, data-flow, storage, migration, dependency, rollback, integration, or cross-team ownership decisions are made, record ADR/decision-record entries with context, options, decision, consequences, rollback/migration notes, and linked requirements.
105
+ - When UI-visible behavior is touched, include user-observable states, accessibility/locator strategy, scenario evidence needs, and stable test hooks.
106
+ - When behavior is testable, define or consume a traceable test basis before claiming implementation, smoke, review, verify, or acceptance success.
107
+ - When external facts, SDKs, APIs, regulations, market context, or dependency behavior are freshness-sensitive, retrieve current authoritative references or record why local sources are sufficient.
108
+ - When an artifact becomes too large for one reviewable file, split it into `{stage}/index.md` plus linked child Markdown files while preserving the full stage contract.
109
+ - When reusable ZSK gaps are confirmed, create learning proposals in the canonical ZSK source repo path or block with missing authority.
110
+ - When release notes are expected, separate delivered behavior from future improvements.
111
+
112
+ ## Advisory Guidance
113
+
114
+ - Prefer the smallest artifact that lets the next reader decide and act without chat memory.
115
+ - Use tables, matrices, diagrams, or checklists only when they clarify ownership, traceability, risk, or execution.
116
+ - Use project terminology and source identifiers consistently across proposal, spec, design, task, and evidence artifacts.
117
+ - Record suggestions separately from current project policy, especially for thresholds that remain `未指定`.
118
+ - Keep archive paths stable and easy to scan.
119
+ - Summarize enough for recovery without duplicating full artifacts.
120
+
59
121
  ## Must Answer
60
122
 
61
123
  - What was delivered, where are final artifacts, and which issues changed state?
@@ -77,6 +139,7 @@ This file is generated for the installed skill. Read it before executing this sk
77
139
  - Names owner, dependency, acceptance condition, and verification evidence for every required output or blocker.
78
140
  - Runs or references the stage-entry quality gate before downstream handoff; below-threshold but non-blocking gaps require explicit risk acceptance instead of silent progression.
79
141
  - For testable work, verifies test correctness, not only test execution: traceable test basis, meaningful assertions, negative/boundary/regression coverage, and skipped/unrun checks called out.
142
+ - When proposal, spec, design, or tasks become too large for one reviewable file, the artifact may split to `{stage}/index.md` plus linked child Markdown files; the index remains the entrypoint and the full stage contract still applies.
80
143
  - Indexes final artifacts, closed/open issues, evidence, decisions, and learning candidates.
81
144
  - Distinguishes accepted behavior from future improvement ideas.
82
145
 
@@ -138,6 +201,7 @@ This file is generated for the installed skill. Read it before executing this sk
138
201
  ## Hard Stops
139
202
 
140
203
  - Required input is missing, stale, or contradictory.
204
+ - A hard requirement or triggered conditional requirement cannot be satisfied with linked evidence.
141
205
  - The requested work belongs to an earlier or later ZSK stage.
142
206
  - Evidence cannot be linked to command output, artifact, issue, scenario, or human decision.
143
207
  - The fix would widen scope beyond this skill's responsibility.
@@ -6,11 +6,14 @@ Default project paths:
6
6
  - `.zsk/docs/`: project-level docs such as `SYSTEM-SPEC.md` and `PROJECT-CONFIG.md`.
7
7
  - `.zsk/modules/{module}/`: module config and stage artifacts.
8
8
  - `.zsk/raws/`: raw external source snapshots, manifests, imported test cases, market/product research sources, and design/API assets.
9
+ - `.zsk/raws/prepare/**`: reusable source lanes. `preproposal` may add generated or candidate product, roadmap, UX, and design-source readiness resources here only when they are labeled with provenance, review checkpoint status, assumptions, and blockers.
10
+ - `.zsk/evidence/preproposal/{run}/`: checkpoint review evidence for product direction, roadmap/decomposition, UX/design-readiness, and final readiness before formal proposal.
9
11
  - `.zsk/modules/{module}/_issues/`: module-private managed issue records and indexes, created on demand.
10
12
  - `.zsk/modules/{module}/_evidence/`: module-private reusable runtime or research evidence, created on demand.
11
13
  - `.zsk/modules/{module}/_playwright/`: module-specific Playwright specs, test plans, auth state, execution records, reports, and results, created on demand.
12
14
  - `.zsk/issues/`, `.zsk/evidence/`, `.zsk/playwright/`: shared/global artifacts only, created on demand when the asset is intentionally cross-module.
13
15
  - `.zsk/learning/proposals/`: reusable improvement proposals and learning records, created lazily only when learn/archive writes an actual proposal.
16
+ - `.zsk/plans/`: ZSK plan artifacts, created lazily only when `zskplan` or `zsk` freezes an executable route.
14
17
  - `skills/{slug}/`: zsk source skill directories.
15
18
  - `harness/`: zsk source governance contracts.
16
19
 
@@ -40,4 +43,6 @@ Before any skill writes an artifact, classify its scope:
40
43
 
41
44
  This rule applies to every underscore module directory, not only `_issues`. For example, module-local issues go to `_issues`, module-local runtime evidence goes to `_evidence`, and module-local Playwright specs/auth/results go to `_playwright`. Use outer `.zsk/issues`, `.zsk/evidence`, or `.zsk/playwright` only after deciding the artifact is shared, global, or public. When scope is ambiguous, prefer module-private and record the reason or blocker before promoting outward.
42
45
 
43
- The skill that produces the final artifact for a module stage writes the formal report to `.zsk/modules/{module}/{stage}.md`. Supporting artifacts stay in the appropriate `_issues`, `_evidence`, or `_playwright` directory unless they are deliberately shared/global/public.
46
+ The skill that produces the final artifact for a module stage writes the formal report to `.zsk/modules/{module}/{stage}.md`. For large `proposal`, `spec`, `design`, or `tasks` artifacts, the skill may upgrade the stage artifact to `.zsk/modules/{module}/{stage}/index.md` and split child Markdown files under the same stage directory. The `index.md` file remains the review entrypoint, must link every child document included in the logical artifact, and must preserve the same stage contract; splitting content does not weaken required gates. Supporting artifacts stay in the appropriate `_issues`, `_evidence`, or `_playwright` directory unless they are deliberately shared/global/public.
47
+
48
+ `preproposal` is not a module-final stage. Its outputs are proposal-prep raw resources under `.zsk/raws/prepare/**` plus checkpoint evidence under `.zsk/evidence/preproposal/{run}/`. It must not create `.zsk/modules/{module}/proposal.md`, `spec.md`, `design.md`, or `tasks.md`; those remain owned by their formal stage skills.
@@ -88,6 +88,22 @@ Every actionable issue should record:
88
88
  - whether a durable learning proposal is needed under `.zsk/learning/proposals`;
89
89
  - regression guard: test, scenario, lint rule, checklist, or explicit waiver.
90
90
 
91
+ ## Issue-Driven Fix Route
92
+
93
+ `fix` is the dedicated skill and route name for "persisted issue -> root cause -> minimal change -> regression guard -> verification handoff". It is not a shortcut around `coding`, `smoke`, `review`, `ready`, or `verify`.
94
+
95
+ Required fix-route ledger fields:
96
+
97
+ - issue path or id;
98
+ - reproduction/evidence basis;
99
+ - root-cause hypothesis and confidence;
100
+ - changed files or no-code rationale;
101
+ - regression guard or explicit blocker;
102
+ - documentation feedback target or no-update rationale;
103
+ - next verification route and evidence command.
104
+
105
+ Do not use `fix` for generic unanchored cleanup. If there is no persisted issue or accepted expected/actual clarification, create or update the issue first.
106
+
91
107
  ## Closure And Feedback Loop
92
108
 
93
109
  1. Create or update module-specific issues under `.zsk/modules/{module}/_issues/` as soon as the finding is actionable, using the type and prefix fields to preserve taxonomy.