@captain_z/zsk-skills 1.8.2 → 1.8.4

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 (388) hide show
  1. package/README.md +33 -27
  2. package/acceptance/SKILL.md +5 -1
  3. package/acceptance/harness/THIS_SKILL.md +78 -0
  4. package/acceptance/harness/constraints/filesystem-boundaries.md +23 -1
  5. package/acceptance/harness/constraints/issue-taxonomy.md +16 -0
  6. package/acceptance/harness/constraints/skill-role-contract.md +162 -11
  7. package/acceptance/harness/constraints/source-of-truth.md +2 -0
  8. package/acceptance/harness/constraints/stage-gates.md +65 -0
  9. package/acceptance/harness/profiles/enterprise.yaml +5 -0
  10. package/acceptance/harness/profiles/frontend.yaml +7 -3
  11. package/acceptance/harness/profiles/sdlc.yaml +5 -0
  12. package/acceptance/harness/workflow/completion-contract.yaml +41 -7
  13. package/acceptance/harness/workflow/skill-io-contract.yaml +21 -0
  14. package/acceptance/harness/workflow/skill-quality-standards.yaml +154 -13
  15. package/acceptance/harness/workflow/stage-contracts.yaml +16 -7
  16. package/acceptance/harness/workflow/state-machine.yaml +14 -5
  17. package/archive/SKILL.md +5 -1
  18. package/archive/harness/THIS_SKILL.md +78 -0
  19. package/archive/harness/constraints/filesystem-boundaries.md +23 -1
  20. package/archive/harness/constraints/issue-taxonomy.md +16 -0
  21. package/archive/harness/constraints/skill-role-contract.md +162 -11
  22. package/archive/harness/constraints/source-of-truth.md +2 -0
  23. package/archive/harness/constraints/stage-gates.md +65 -0
  24. package/archive/harness/profiles/enterprise.yaml +5 -0
  25. package/archive/harness/profiles/frontend.yaml +7 -3
  26. package/archive/harness/profiles/sdlc.yaml +5 -0
  27. package/archive/harness/workflow/completion-contract.yaml +41 -7
  28. package/archive/harness/workflow/skill-io-contract.yaml +21 -0
  29. package/archive/harness/workflow/skill-quality-standards.yaml +154 -13
  30. package/archive/harness/workflow/stage-contracts.yaml +16 -7
  31. package/archive/harness/workflow/state-machine.yaml +14 -5
  32. package/bundles.yaml +17 -3
  33. package/coding/SKILL.md +28 -3
  34. package/coding/harness/THIS_SKILL.md +90 -3
  35. package/coding/harness/constraints/filesystem-boundaries.md +23 -1
  36. package/coding/harness/constraints/issue-taxonomy.md +16 -0
  37. package/coding/harness/constraints/skill-role-contract.md +162 -11
  38. package/coding/harness/constraints/source-of-truth.md +2 -0
  39. package/coding/harness/constraints/stage-gates.md +65 -0
  40. package/coding/harness/profiles/enterprise.yaml +5 -0
  41. package/coding/harness/profiles/frontend.yaml +7 -3
  42. package/coding/harness/profiles/sdlc.yaml +5 -0
  43. package/coding/harness/workflow/completion-contract.yaml +41 -7
  44. package/coding/harness/workflow/skill-io-contract.yaml +26 -0
  45. package/coding/harness/workflow/skill-quality-standards.yaml +175 -14
  46. package/coding/harness/workflow/stage-contracts.yaml +16 -7
  47. package/coding/harness/workflow/state-machine.yaml +14 -5
  48. package/commit/SKILL.md +5 -1
  49. package/commit/harness/THIS_SKILL.md +78 -0
  50. package/commit/harness/constraints/filesystem-boundaries.md +23 -1
  51. package/commit/harness/constraints/issue-taxonomy.md +16 -0
  52. package/commit/harness/constraints/skill-role-contract.md +162 -11
  53. package/commit/harness/constraints/source-of-truth.md +2 -0
  54. package/commit/harness/constraints/stage-gates.md +65 -0
  55. package/commit/harness/profiles/enterprise.yaml +5 -0
  56. package/commit/harness/profiles/frontend.yaml +7 -3
  57. package/commit/harness/profiles/sdlc.yaml +5 -0
  58. package/commit/harness/workflow/completion-contract.yaml +41 -7
  59. package/commit/harness/workflow/skill-io-contract.yaml +21 -0
  60. package/commit/harness/workflow/skill-quality-standards.yaml +153 -13
  61. package/commit/harness/workflow/stage-contracts.yaml +16 -7
  62. package/commit/harness/workflow/state-machine.yaml +14 -5
  63. package/defect/SKILL.md +5 -1
  64. package/defect/harness/THIS_SKILL.md +78 -0
  65. package/defect/harness/best-practices/frontend.md +2 -3
  66. package/defect/harness/constraints/filesystem-boundaries.md +23 -1
  67. package/defect/harness/constraints/issue-taxonomy.md +16 -0
  68. package/defect/harness/constraints/skill-role-contract.md +162 -11
  69. package/defect/harness/constraints/source-of-truth.md +2 -0
  70. package/defect/harness/constraints/stage-gates.md +65 -0
  71. package/defect/harness/profiles/enterprise.yaml +5 -0
  72. package/defect/harness/profiles/frontend.yaml +7 -3
  73. package/defect/harness/profiles/sdlc.yaml +5 -0
  74. package/defect/harness/workflow/completion-contract.yaml +41 -7
  75. package/defect/harness/workflow/skill-io-contract.yaml +21 -0
  76. package/defect/harness/workflow/skill-quality-standards.yaml +153 -13
  77. package/defect/harness/workflow/stage-contracts.yaml +16 -7
  78. package/defect/harness/workflow/state-machine.yaml +14 -5
  79. package/demo/SKILL.md +5 -1
  80. package/demo/harness/THIS_SKILL.md +78 -0
  81. package/demo/harness/best-practices/design-handoff.md +81 -3
  82. package/demo/harness/best-practices/frontend.md +2 -3
  83. package/demo/harness/constraints/filesystem-boundaries.md +23 -1
  84. package/demo/harness/constraints/issue-taxonomy.md +16 -0
  85. package/demo/harness/constraints/skill-role-contract.md +162 -11
  86. package/demo/harness/constraints/source-of-truth.md +2 -0
  87. package/demo/harness/constraints/stage-gates.md +65 -0
  88. package/demo/harness/profiles/enterprise.yaml +5 -0
  89. package/demo/harness/profiles/frontend.yaml +7 -3
  90. package/demo/harness/profiles/sdlc.yaml +5 -0
  91. package/demo/harness/workflow/completion-contract.yaml +41 -7
  92. package/demo/harness/workflow/skill-io-contract.yaml +21 -0
  93. package/demo/harness/workflow/skill-quality-standards.yaml +153 -13
  94. package/demo/harness/workflow/stage-contracts.yaml +16 -7
  95. package/demo/harness/workflow/state-machine.yaml +14 -5
  96. package/deploy/SKILL.md +5 -1
  97. package/deploy/harness/THIS_SKILL.md +78 -0
  98. package/deploy/harness/constraints/filesystem-boundaries.md +23 -1
  99. package/deploy/harness/constraints/issue-taxonomy.md +16 -0
  100. package/deploy/harness/constraints/skill-role-contract.md +162 -11
  101. package/deploy/harness/constraints/source-of-truth.md +2 -0
  102. package/deploy/harness/constraints/stage-gates.md +65 -0
  103. package/deploy/harness/profiles/enterprise.yaml +5 -0
  104. package/deploy/harness/profiles/frontend.yaml +7 -3
  105. package/deploy/harness/profiles/sdlc.yaml +5 -0
  106. package/deploy/harness/workflow/completion-contract.yaml +41 -7
  107. package/deploy/harness/workflow/skill-io-contract.yaml +21 -0
  108. package/deploy/harness/workflow/skill-quality-standards.yaml +154 -13
  109. package/deploy/harness/workflow/stage-contracts.yaml +16 -7
  110. package/deploy/harness/workflow/state-machine.yaml +14 -5
  111. package/design/SKILL.md +47 -4
  112. package/design/harness/THIS_SKILL.md +90 -9
  113. package/design/harness/best-practices/README.md +0 -1
  114. package/design/harness/best-practices/frontend.md +2 -3
  115. package/design/harness/constraints/filesystem-boundaries.md +23 -1
  116. package/design/harness/constraints/issue-taxonomy.md +16 -0
  117. package/design/harness/constraints/skill-role-contract.md +162 -11
  118. package/design/harness/constraints/source-of-truth.md +2 -0
  119. package/design/harness/constraints/stage-gates.md +65 -0
  120. package/design/harness/profiles/enterprise.yaml +5 -0
  121. package/design/harness/profiles/frontend.yaml +7 -3
  122. package/design/harness/profiles/sdlc.yaml +5 -0
  123. package/design/harness/workflow/completion-contract.yaml +41 -7
  124. package/design/harness/workflow/skill-io-contract.yaml +27 -4
  125. package/design/harness/workflow/skill-quality-standards.yaml +173 -14
  126. package/design/harness/workflow/stage-contracts.yaml +16 -7
  127. package/design/harness/workflow/state-machine.yaml +14 -5
  128. package/dispatch/SKILL.md +5 -1
  129. package/dispatch/harness/THIS_SKILL.md +78 -0
  130. package/dispatch/harness/constraints/filesystem-boundaries.md +23 -1
  131. package/dispatch/harness/constraints/issue-taxonomy.md +16 -0
  132. package/dispatch/harness/constraints/skill-role-contract.md +162 -11
  133. package/dispatch/harness/constraints/source-of-truth.md +2 -0
  134. package/dispatch/harness/constraints/stage-gates.md +65 -0
  135. package/dispatch/harness/profiles/enterprise.yaml +5 -0
  136. package/dispatch/harness/profiles/frontend.yaml +7 -3
  137. package/dispatch/harness/profiles/sdlc.yaml +5 -0
  138. package/dispatch/harness/workflow/completion-contract.yaml +41 -7
  139. package/dispatch/harness/workflow/skill-io-contract.yaml +21 -0
  140. package/dispatch/harness/workflow/skill-quality-standards.yaml +154 -13
  141. package/dispatch/harness/workflow/stage-contracts.yaml +16 -7
  142. package/dispatch/harness/workflow/state-machine.yaml +14 -5
  143. package/fix/SKILL.md +115 -0
  144. package/fix/harness/README.md +15 -0
  145. package/fix/harness/THIS_SKILL.md +243 -0
  146. package/fix/harness/best-practices/README.md +13 -0
  147. package/fix/harness/best-practices/agent-orchestration.md +45 -0
  148. package/fix/harness/best-practices/quality.md +41 -0
  149. package/fix/harness/best-practices/sdlc.md +49 -0
  150. package/fix/harness/constraints/evidence-rules.md +33 -0
  151. package/fix/harness/constraints/filesystem-boundaries.md +65 -0
  152. package/fix/harness/constraints/issue-taxonomy.md +114 -0
  153. package/fix/harness/constraints/skill-role-contract.md +346 -0
  154. package/fix/harness/constraints/source-of-truth.md +35 -0
  155. package/fix/harness/constraints/stage-gates.md +120 -0
  156. package/fix/harness/profiles/enterprise.yaml +94 -0
  157. package/fix/harness/profiles/frontend.yaml +97 -0
  158. package/fix/harness/profiles/lite.yaml +55 -0
  159. package/fix/harness/profiles/sdlc.yaml +88 -0
  160. package/fix/harness/workflow/completion-contract.yaml +183 -0
  161. package/fix/harness/workflow/skill-io-contract.yaml +214 -0
  162. package/fix/harness/workflow/skill-quality-standards.yaml +254 -0
  163. package/fix/harness/workflow/stage-contracts.yaml +64 -0
  164. package/fix/harness/workflow/state-machine.yaml +74 -0
  165. package/flow/SKILL.md +17 -5
  166. package/flow/harness/THIS_SKILL.md +86 -1
  167. package/flow/harness/constraints/filesystem-boundaries.md +23 -1
  168. package/flow/harness/constraints/issue-taxonomy.md +16 -0
  169. package/flow/harness/constraints/skill-role-contract.md +162 -11
  170. package/flow/harness/constraints/source-of-truth.md +2 -0
  171. package/flow/harness/constraints/stage-gates.md +65 -0
  172. package/flow/harness/profiles/enterprise.yaml +5 -0
  173. package/flow/harness/profiles/frontend.yaml +7 -3
  174. package/flow/harness/profiles/sdlc.yaml +5 -0
  175. package/flow/harness/workflow/completion-contract.yaml +41 -7
  176. package/flow/harness/workflow/skill-io-contract.yaml +24 -0
  177. package/flow/harness/workflow/skill-quality-standards.yaml +164 -13
  178. package/flow/harness/workflow/stage-contracts.yaml +16 -7
  179. package/flow/harness/workflow/state-machine.yaml +14 -5
  180. package/issue/SKILL.md +19 -1
  181. package/issue/harness/THIS_SKILL.md +82 -1
  182. package/issue/harness/constraints/filesystem-boundaries.md +23 -1
  183. package/issue/harness/constraints/issue-taxonomy.md +16 -0
  184. package/issue/harness/constraints/skill-role-contract.md +162 -11
  185. package/issue/harness/constraints/source-of-truth.md +2 -0
  186. package/issue/harness/constraints/stage-gates.md +65 -0
  187. package/issue/harness/profiles/enterprise.yaml +5 -0
  188. package/issue/harness/profiles/frontend.yaml +7 -3
  189. package/issue/harness/profiles/sdlc.yaml +5 -0
  190. package/issue/harness/workflow/completion-contract.yaml +41 -7
  191. package/issue/harness/workflow/skill-io-contract.yaml +24 -0
  192. package/issue/harness/workflow/skill-quality-standards.yaml +156 -13
  193. package/issue/harness/workflow/stage-contracts.yaml +16 -7
  194. package/issue/harness/workflow/state-machine.yaml +14 -5
  195. package/learn/SKILL.md +10 -2
  196. package/learn/harness/THIS_SKILL.md +81 -0
  197. package/learn/harness/constraints/filesystem-boundaries.md +23 -1
  198. package/learn/harness/constraints/issue-taxonomy.md +16 -0
  199. package/learn/harness/constraints/skill-role-contract.md +162 -11
  200. package/learn/harness/constraints/source-of-truth.md +2 -0
  201. package/learn/harness/constraints/stage-gates.md +65 -0
  202. package/learn/harness/profiles/enterprise.yaml +5 -0
  203. package/learn/harness/profiles/frontend.yaml +7 -3
  204. package/learn/harness/profiles/sdlc.yaml +5 -0
  205. package/learn/harness/workflow/completion-contract.yaml +41 -7
  206. package/learn/harness/workflow/skill-io-contract.yaml +23 -0
  207. package/learn/harness/workflow/skill-quality-standards.yaml +158 -13
  208. package/learn/harness/workflow/stage-contracts.yaml +16 -7
  209. package/learn/harness/workflow/state-machine.yaml +14 -5
  210. package/package.json +1 -1
  211. package/prepare/SKILL.md +5 -1
  212. package/prepare/harness/THIS_SKILL.md +78 -0
  213. package/prepare/harness/constraints/filesystem-boundaries.md +23 -1
  214. package/prepare/harness/constraints/issue-taxonomy.md +16 -0
  215. package/prepare/harness/constraints/skill-role-contract.md +162 -11
  216. package/prepare/harness/constraints/source-of-truth.md +2 -0
  217. package/prepare/harness/constraints/stage-gates.md +65 -0
  218. package/prepare/harness/profiles/enterprise.yaml +5 -0
  219. package/prepare/harness/profiles/frontend.yaml +7 -3
  220. package/prepare/harness/profiles/sdlc.yaml +5 -0
  221. package/prepare/harness/workflow/completion-contract.yaml +41 -7
  222. package/prepare/harness/workflow/skill-io-contract.yaml +21 -0
  223. package/prepare/harness/workflow/skill-quality-standards.yaml +154 -13
  224. package/prepare/harness/workflow/stage-contracts.yaml +16 -7
  225. package/prepare/harness/workflow/state-machine.yaml +14 -5
  226. package/preproposal/SKILL.md +250 -0
  227. package/preproposal/harness/README.md +15 -0
  228. package/preproposal/harness/THIS_SKILL.md +292 -0
  229. package/preproposal/harness/best-practices/README.md +14 -0
  230. package/preproposal/harness/best-practices/design-handoff.md +119 -0
  231. package/preproposal/harness/best-practices/project-constraints-template.md +66 -0
  232. package/preproposal/harness/best-practices/quality.md +41 -0
  233. package/preproposal/harness/best-practices/sdlc.md +49 -0
  234. package/preproposal/harness/constraints/evidence-rules.md +33 -0
  235. package/preproposal/harness/constraints/filesystem-boundaries.md +65 -0
  236. package/preproposal/harness/constraints/issue-taxonomy.md +114 -0
  237. package/preproposal/harness/constraints/skill-role-contract.md +346 -0
  238. package/preproposal/harness/constraints/source-of-truth.md +35 -0
  239. package/preproposal/harness/constraints/stage-gates.md +120 -0
  240. package/preproposal/harness/profiles/enterprise.yaml +94 -0
  241. package/preproposal/harness/profiles/frontend.yaml +97 -0
  242. package/preproposal/harness/profiles/lite.yaml +55 -0
  243. package/preproposal/harness/profiles/sdlc.yaml +88 -0
  244. package/preproposal/harness/workflow/completion-contract.yaml +183 -0
  245. package/preproposal/harness/workflow/skill-io-contract.yaml +240 -0
  246. package/preproposal/harness/workflow/skill-quality-standards.yaml +312 -0
  247. package/preproposal/harness/workflow/stage-contracts.yaml +64 -0
  248. package/preproposal/harness/workflow/state-machine.yaml +74 -0
  249. package/preproposal/templates/interaction-handoff.md +88 -0
  250. package/proposal/SKILL.md +24 -7
  251. package/proposal/harness/THIS_SKILL.md +79 -0
  252. package/proposal/harness/constraints/filesystem-boundaries.md +23 -1
  253. package/proposal/harness/constraints/issue-taxonomy.md +16 -0
  254. package/proposal/harness/constraints/skill-role-contract.md +162 -11
  255. package/proposal/harness/constraints/source-of-truth.md +2 -0
  256. package/proposal/harness/constraints/stage-gates.md +65 -0
  257. package/proposal/harness/profiles/enterprise.yaml +5 -0
  258. package/proposal/harness/profiles/frontend.yaml +7 -3
  259. package/proposal/harness/profiles/sdlc.yaml +5 -0
  260. package/proposal/harness/workflow/completion-contract.yaml +41 -7
  261. package/proposal/harness/workflow/skill-io-contract.yaml +22 -0
  262. package/proposal/harness/workflow/skill-quality-standards.yaml +154 -13
  263. package/proposal/harness/workflow/stage-contracts.yaml +16 -7
  264. package/proposal/harness/workflow/state-machine.yaml +14 -5
  265. package/ready/SKILL.md +8 -1
  266. package/ready/harness/THIS_SKILL.md +79 -0
  267. package/ready/harness/constraints/filesystem-boundaries.md +23 -1
  268. package/ready/harness/constraints/issue-taxonomy.md +16 -0
  269. package/ready/harness/constraints/skill-role-contract.md +162 -11
  270. package/ready/harness/constraints/source-of-truth.md +2 -0
  271. package/ready/harness/constraints/stage-gates.md +65 -0
  272. package/ready/harness/profiles/enterprise.yaml +5 -0
  273. package/ready/harness/profiles/frontend.yaml +7 -3
  274. package/ready/harness/profiles/sdlc.yaml +5 -0
  275. package/ready/harness/workflow/completion-contract.yaml +41 -7
  276. package/ready/harness/workflow/skill-io-contract.yaml +22 -0
  277. package/ready/harness/workflow/skill-quality-standards.yaml +154 -13
  278. package/ready/harness/workflow/stage-contracts.yaml +16 -7
  279. package/ready/harness/workflow/state-machine.yaml +14 -5
  280. package/review/SKILL.md +36 -9
  281. package/review/harness/THIS_SKILL.md +98 -5
  282. package/review/harness/best-practices/frontend.md +2 -3
  283. package/review/harness/constraints/filesystem-boundaries.md +23 -1
  284. package/review/harness/constraints/issue-taxonomy.md +16 -0
  285. package/review/harness/constraints/skill-role-contract.md +162 -11
  286. package/review/harness/constraints/source-of-truth.md +2 -0
  287. package/review/harness/constraints/stage-gates.md +65 -0
  288. package/review/harness/profiles/enterprise.yaml +5 -0
  289. package/review/harness/profiles/frontend.yaml +7 -3
  290. package/review/harness/profiles/sdlc.yaml +5 -0
  291. package/review/harness/workflow/completion-contract.yaml +41 -7
  292. package/review/harness/workflow/skill-io-contract.yaml +36 -1
  293. package/review/harness/workflow/skill-quality-standards.yaml +180 -15
  294. package/review/harness/workflow/stage-contracts.yaml +16 -7
  295. package/review/harness/workflow/state-machine.yaml +14 -5
  296. package/smoke/SKILL.md +8 -1
  297. package/smoke/harness/THIS_SKILL.md +79 -0
  298. package/smoke/harness/best-practices/frontend.md +2 -3
  299. package/smoke/harness/constraints/filesystem-boundaries.md +23 -1
  300. package/smoke/harness/constraints/issue-taxonomy.md +16 -0
  301. package/smoke/harness/constraints/skill-role-contract.md +162 -11
  302. package/smoke/harness/constraints/source-of-truth.md +2 -0
  303. package/smoke/harness/constraints/stage-gates.md +65 -0
  304. package/smoke/harness/profiles/enterprise.yaml +5 -0
  305. package/smoke/harness/profiles/frontend.yaml +7 -3
  306. package/smoke/harness/profiles/sdlc.yaml +5 -0
  307. package/smoke/harness/workflow/completion-contract.yaml +41 -7
  308. package/smoke/harness/workflow/skill-io-contract.yaml +21 -0
  309. package/smoke/harness/workflow/skill-quality-standards.yaml +157 -13
  310. package/smoke/harness/workflow/stage-contracts.yaml +16 -7
  311. package/smoke/harness/workflow/state-machine.yaml +14 -5
  312. package/spec/SKILL.md +19 -1
  313. package/spec/harness/THIS_SKILL.md +81 -1
  314. package/spec/harness/constraints/filesystem-boundaries.md +23 -1
  315. package/spec/harness/constraints/issue-taxonomy.md +16 -0
  316. package/spec/harness/constraints/skill-role-contract.md +162 -11
  317. package/spec/harness/constraints/source-of-truth.md +2 -0
  318. package/spec/harness/constraints/stage-gates.md +65 -0
  319. package/spec/harness/profiles/enterprise.yaml +5 -0
  320. package/spec/harness/profiles/frontend.yaml +7 -3
  321. package/spec/harness/profiles/sdlc.yaml +5 -0
  322. package/spec/harness/workflow/completion-contract.yaml +41 -7
  323. package/spec/harness/workflow/skill-io-contract.yaml +23 -0
  324. package/spec/harness/workflow/skill-quality-standards.yaml +159 -13
  325. package/spec/harness/workflow/stage-contracts.yaml +16 -7
  326. package/spec/harness/workflow/state-machine.yaml +14 -5
  327. package/task/SKILL.md +22 -4
  328. package/task/harness/THIS_SKILL.md +84 -4
  329. package/task/harness/constraints/filesystem-boundaries.md +23 -1
  330. package/task/harness/constraints/issue-taxonomy.md +16 -0
  331. package/task/harness/constraints/skill-role-contract.md +162 -11
  332. package/task/harness/constraints/source-of-truth.md +2 -0
  333. package/task/harness/constraints/stage-gates.md +65 -0
  334. package/task/harness/profiles/enterprise.yaml +5 -0
  335. package/task/harness/profiles/frontend.yaml +7 -3
  336. package/task/harness/profiles/sdlc.yaml +5 -0
  337. package/task/harness/workflow/completion-contract.yaml +41 -7
  338. package/task/harness/workflow/skill-io-contract.yaml +24 -1
  339. package/task/harness/workflow/skill-quality-standards.yaml +160 -17
  340. package/task/harness/workflow/stage-contracts.yaml +16 -7
  341. package/task/harness/workflow/state-machine.yaml +14 -5
  342. package/verify/SKILL.md +8 -1
  343. package/verify/harness/THIS_SKILL.md +79 -0
  344. package/verify/harness/best-practices/frontend.md +2 -3
  345. package/verify/harness/constraints/filesystem-boundaries.md +23 -1
  346. package/verify/harness/constraints/issue-taxonomy.md +16 -0
  347. package/verify/harness/constraints/skill-role-contract.md +162 -11
  348. package/verify/harness/constraints/source-of-truth.md +2 -0
  349. package/verify/harness/constraints/stage-gates.md +65 -0
  350. package/verify/harness/profiles/enterprise.yaml +5 -0
  351. package/verify/harness/profiles/frontend.yaml +7 -3
  352. package/verify/harness/profiles/sdlc.yaml +5 -0
  353. package/verify/harness/workflow/completion-contract.yaml +41 -7
  354. package/verify/harness/workflow/skill-io-contract.yaml +22 -0
  355. package/verify/harness/workflow/skill-quality-standards.yaml +153 -13
  356. package/verify/harness/workflow/stage-contracts.yaml +16 -7
  357. package/verify/harness/workflow/state-machine.yaml +14 -5
  358. package/zsk/SKILL.md +30 -12
  359. package/zsk/harness/THIS_SKILL.md +88 -1
  360. package/zsk/harness/constraints/filesystem-boundaries.md +23 -1
  361. package/zsk/harness/constraints/issue-taxonomy.md +16 -0
  362. package/zsk/harness/constraints/skill-role-contract.md +162 -11
  363. package/zsk/harness/constraints/source-of-truth.md +2 -0
  364. package/zsk/harness/constraints/stage-gates.md +65 -0
  365. package/zsk/harness/profiles/enterprise.yaml +5 -0
  366. package/zsk/harness/profiles/frontend.yaml +7 -3
  367. package/zsk/harness/profiles/sdlc.yaml +5 -0
  368. package/zsk/harness/workflow/completion-contract.yaml +41 -7
  369. package/zsk/harness/workflow/skill-io-contract.yaml +26 -0
  370. package/zsk/harness/workflow/skill-quality-standards.yaml +168 -13
  371. package/zsk/harness/workflow/stage-contracts.yaml +16 -7
  372. package/zsk/harness/workflow/state-machine.yaml +14 -5
  373. package/zskplan/SKILL.md +68 -15
  374. package/zskplan/harness/THIS_SKILL.md +117 -6
  375. package/zskplan/harness/constraints/filesystem-boundaries.md +23 -1
  376. package/zskplan/harness/constraints/issue-taxonomy.md +16 -0
  377. package/zskplan/harness/constraints/skill-role-contract.md +162 -11
  378. package/zskplan/harness/constraints/source-of-truth.md +2 -0
  379. package/zskplan/harness/constraints/stage-gates.md +65 -0
  380. package/zskplan/harness/profiles/enterprise.yaml +5 -0
  381. package/zskplan/harness/profiles/frontend.yaml +7 -3
  382. package/zskplan/harness/profiles/sdlc.yaml +5 -0
  383. package/zskplan/harness/workflow/completion-contract.yaml +41 -7
  384. package/zskplan/harness/workflow/skill-io-contract.yaml +38 -0
  385. package/zskplan/harness/workflow/skill-quality-standards.yaml +213 -19
  386. package/zskplan/harness/workflow/stage-contracts.yaml +16 -7
  387. package/zskplan/harness/workflow/state-machine.yaml +14 -5
  388. package/design/harness/best-practices/design-handoff.md +0 -41
@@ -15,6 +15,8 @@ When sources conflict, the stage artifact must record the conflict instead of si
15
15
  - Requirements, behavior, scenario order, acceptance criteria, and test expectations must trace back to PRD/SRS, spec, design, task, raw source, code, runtime evidence, or user clarification.
16
16
  - Do not invent missing requirements, UI behavior, business rules, edge cases, or test expectations from preference or convention.
17
17
  - If the facts are incomplete, ambiguous, conflicting, or insufficient to decide, stop the stage decision and ask for clarification after summarizing the known sources and tradeoffs.
18
+ - For vague intake, ask only after checking local and configured sources; ask one blocking question at a time and include the recommended answer plus tradeoff.
19
+ - If an existing stage artifact is unclear, preserve it as a source instead of discarding it. The owning stage must run its own Stage Challenge Gate, derive the challenge focus from its active skill contract, and classify each important claim as sourced, accepted, assumed, conflicting, or missing before repairing or blocking.
18
20
  - If asking is blocked, record a resource gap or issue instead of silently choosing a path.
19
21
  - Best practices may shape implementation, but they cannot override project facts or accepted design documents.
20
22
  - Before applying a role, run dynamic state awareness: identify the current stage, role, project type, domain, language, framework, SDKs, runtime tools, target market, and freshness-sensitive decisions from local config, module docs, manifests, lockfiles, imports, raw sources, and existing evidence.
@@ -14,6 +14,8 @@ The harness computes gate status. Skills may propose outputs and record evidence
14
14
 
15
15
  - For testable behavior changes, `task` should define the test/scenario hook before `coding`.
16
16
  - `coding` should start by creating or updating the targeted test/scenario when one does not already cover the behavior.
17
+ - `coding` must run vertical TDD cycles: one behavior -> one failing test or changed test expectation -> minimal implementation -> passing evidence -> next behavior. Do not batch all tests first or all implementation first.
18
+ - Each cycle records behavior id, source task/AC/issue, RED evidence or an explicit reason RED cannot be observed, GREEN evidence, changed files, and refactor evidence when a refactor occurs.
17
19
  - `smoke`, `review`, and `verify` must reject tests that cannot be traced to PRD/SRS, spec/design, task, issue, or accepted user clarification.
18
20
  - If the test contract is unclear, the stage is `blocked` until the uncertainty is clarified or recorded as a resource gap.
19
21
 
@@ -21,10 +23,60 @@ The harness computes gate status. Skills may propose outputs and record evidence
21
23
 
22
24
  - Before a downstream stage starts, the harness must assess the required upstream artifacts for that stage with `zsk gate assess --stage <stage>`.
23
25
  - The assessment must write a score, PASS/FAIL criteria, blockers, gaps, and next action under `.zsk/evidence/gates/`.
26
+ - Gate criteria follow the harness constraint levels: hard requirements and triggered conditional requirements are blockers; advisory gaps may require confirmation but cannot be counted as satisfied evidence.
24
27
  - A score below the configured threshold is not an infinite hard stop by itself. If all required artifacts exist and only quality gaps remain, the stage may continue only after an explicit human risk acceptance is recorded with `--accept-risk`.
25
28
  - Missing required artifacts, placeholder-only upstream docs, missing project/system rules for governed stages, or missing mandatory test basis remain `BLOCKED`; a risk waiver must not convert those into PASS. Very short but non-placeholder artifacts are quality gaps, not hard blockers.
26
29
  - Thresholds are project policy. When no project threshold is configured, the CLI default is an advisory 9/10 gate; documents must still record unsupplied numeric thresholds as `未指定` instead of inventing policy.
27
30
 
31
+ ## Stage Artifact Clarity Gate
32
+
33
+ - This gate applies to every stage-owned artifact: preproposal raw pack, proposal, spec, design, tasks, implementation handoff, smoke/demo/review/ready/verify reports, acceptance, archive, issue, and learning outputs.
34
+ - When the artifact already exists but is unclear, incomplete, contradictory, placeholder-like, or too weak for its downstream consumer, the workflow must route to the owning stage for that skill's Stage Challenge Gate instead of skipping ahead, discarding the artifact, running a generic grill, or silently rewriting it from another stage.
35
+ - The clarity pass must derive its challenge focus from the active skill contract: responsibility, required inputs, required outputs, must-answer questions, quality checkpoints, current artifact, upstream sources, and downstream consumer.
36
+ - The clarity pass must apply the active skill's bundled related best-practice
37
+ files and quality standards when their domain is touched. If the bundled
38
+ references are missing, stale, too generic, version-sensitive, or not matched
39
+ to the current stack/domain, record the gap and retrieve official/current
40
+ references before issuing a best-practice challenge.
41
+ - The clarity pass must align terminology against project sources before asking
42
+ or repairing: `CONTEXT.md` / `CONTEXT-MAP.md` when present, `SYSTEM-SPEC.md`,
43
+ configured raw sources, current stage artifact identifiers, and existing
44
+ code/component/API names when the skill touches implementation-facing work.
45
+ Conflicting or overloaded terms must be classified as conflicting/missing and
46
+ routed to the owning stage instead of silently renaming them.
47
+ - The clarity pass must classify important claims as sourced, accepted, assumed, conflicting, missing, or N/A; it must name the skill-local challenge focus, downstream consumer, required outputs, source links, blockers, and next action.
48
+ - The owning stage may patch or split its own artifact when local/configured sources support the repair. If the missing fact belongs to an upstream stage, record upstream feedback or route to that stage; if only one answer blocks direction, ask one blocking question with a recommended answer and tradeoff.
49
+ - Durable terminology, naming, decomposition rationale, and load-bearing clarification decisions found during the clarity pass must update the nearest `CONTEXT.md`, or the handoff must record `Context update: N/A` with rationale.
50
+ - Clarity status is `PASS`, `NEEDS_REPAIR`, `BLOCKED`, or `WAIVED`. `NEEDS_REPAIR` cannot progress downstream without an explicit risk acceptance; `BLOCKED` must include owner, missing input, impact, and next action.
51
+
52
+ ## Preproposal Checkpoint Gate
53
+
54
+ - Use `preproposal` when a brief request lacks reviewed product direction, roadmap/decomposition, UX/design-readiness, or source-readiness material for `proposal`.
55
+ - Intake clarity runs before product work. It must inspect available sources first, separate known facts from inferred assumptions and gaps, and ask at most one blocking question with a recommended answer when the answer would materially change direction.
56
+ - Product checkpoint must pass before roadmap/decomposition starts. It reviews target users, problem, outcome, scope options, non-goals, risks, assumptions, and source gaps.
57
+ - Roadmap/decomposition checkpoint must pass before UX/detail work starts. It reviews MVP/1.0/2.0 or equivalent phase split, module boundaries, dependencies, deferred work, and merge/split/block rationale.
58
+ - UX/design-readiness checkpoint must pass before readiness handoff. It reviews user journey, IA/navigation seeds, interaction handoff when triggered, interaction states, accessibility/usability risks, source maps, and design-source needs.
59
+ - Readiness checkpoint must pass before formal `proposal`. It verifies that `.zsk/raws/prepare/**` and `.zsk/evidence/preproposal/{run}/` contain enough reviewed raw material for proposal without chat memory.
60
+ - A checkpoint failure loops only while the missing input is actionable. Repeated failures beyond the configured retry limit, or default 2 when no project policy exists, become a tracked blocker/issue with owner, missing source, impact, and next action.
61
+ - Preproposal checkpoint reviews use the target-aware `review` skill. They must not require module `spec`, `design`, `tasks`, or `smoke` artifacts unless the explicit review target is an implementation/code-diff review.
62
+
63
+ ## Cross-Cutting Control Gate
64
+
65
+ - Auth, permissions, privacy, roles, tenancy, data access, audit, compliance, public API, payment, migration, or security behavior triggers conditional hard requirements.
66
+ - `spec` must describe triggered control behavior at product/contract level: subject/actor, action/capability, resource/data, scope, expected outcome, source rule, and AC/scenario.
67
+ - `design` must map triggered controls to implementation surfaces: UI/API/state behavior, enforcement point, data flow, failure state, and test/evidence path.
68
+ - `task` must map every triggered control row to implementation, test/scenario, docs/issue, and evidence tasks.
69
+ - `review`, `ready`, and `verify` must reject missing or stale triggered control rows when the touched scope depends on them.
70
+ - N/A is acceptable only when the artifact cites the source rule or scope decision proving the control is out of scope.
71
+
72
+ ## ADR / Decision Record Gate
73
+
74
+ - Design-significant decisions require ADR/decision-record entries before task planning.
75
+ - Triggering decisions include architecture, interface contracts, data/state flow, storage, migration, dependency choice, rollback, cross-system integration, cross-team ownership, security, permission enforcement, privacy, and public API behavior.
76
+ - Each ADR/decision-record entry must include context, linked requirements/AC/NFR, options considered, decision, consequences, risks, rollback or migration notes, and verification/evidence path.
77
+ - `task` must preserve ADR IDs or decision-record references in the proposal/spec/design/ADR alignment matrix and in affected task groups.
78
+ - N/A is acceptable only when the design proves no design-significant decision was made beyond directly implementing the approved spec.
79
+
28
80
  ## Test Correctness Gate
29
81
 
30
82
  - A passing test suite is not sufficient evidence when the tests do not prove the intended behavior.
@@ -34,6 +86,19 @@ The harness computes gate status. Skills may propose outputs and record evidence
34
86
  - `smoke`, `review`, and `verify` must reject fake passes: skipped tests, tests with no assertions, tests that only assert mocks were called while ignoring user-visible behavior, tests that assert implementation details instead of contract behavior, or tests that pass because expected data is hardcoded to the implementation.
35
87
  - Every test report must distinguish passed, failed, skipped, flaky, unrun, and not-applicable checks. Skipped or unrun checks are not PASS.
36
88
 
89
+ ## Static Problems Gate
90
+
91
+ - `coding` and `review` must not pass with ESLint or TypeScript diagnostics at either error or warning severity.
92
+ - Treat VS Code Problems-equivalent diagnostics as blocking when they come from ESLint, TypeScript, or the configured project linter/typechecker for touched files.
93
+ - If the project exposes lint/typecheck commands, run or cite fresh results before claiming `coding` ready-for-smoke or `review` pass. If the commands are unavailable, record `BLOCKED` or an explicit tool gap instead of downgrading warnings to nits.
94
+
95
+ ## Source Migration Sync Gate
96
+
97
+ - When configured source origins move, source lanes are retired, or legacy/provenance raw paths are removed, the same pass must refresh current authority artifacts: `.zsk/config.yaml`, `.zsk/raws/manifest.json`, raw indexes, `.zsk/docs/PROJECT-CONFIG.md`, `.zsk/docs/SYSTEM-SPEC.md`, and affected source docs.
98
+ - Run a stale-reference scan over current authority files for retired source keys, raw paths, module ids, and obsolete provenance wording. Immutable evidence snapshots may retain historical terms, but current docs and indexes need either an update or an explicit no-update rationale.
99
+ - Current authority artifacts must not reference root `.raws/`, `.issues/`, or `.playwright/` paths unless the reference is explicitly waived with a rationale.
100
+ - `zsk check` diagnostics should point to the intended migration target path instead of only saying a legacy path is invalid.
101
+
37
102
  ## Durable Dispatch Gate
38
103
 
39
104
  - Every dispatched role/subagent lane must have a durable emit packet with `runId`, `packetId`, write scope, evidence obligation, stop condition, status path, and fallback route.
@@ -25,6 +25,7 @@ stages:
25
25
  - acceptance
26
26
  - archive
27
27
  optional:
28
+ - preproposal
28
29
  - demo
29
30
  - defect
30
31
  sideChannel:
@@ -49,6 +50,10 @@ flow:
49
50
  - acceptance
50
51
  - archive
51
52
  optionalInsertions:
53
+ preproposal:
54
+ after: prepare
55
+ before: proposal
56
+ when: Governance requires reviewed product, roadmap, UX, and readiness raw resources before formal proposal.
52
57
  demo:
53
58
  after: deploy
54
59
  before: ready
@@ -1,9 +1,9 @@
1
1
  name: zsk-frontend
2
- description: Frontend delivery profile with design, demo, and visual quality gates.
2
+ description: Frontend delivery profile with code design, demo, and visual quality gates.
3
3
  extends: zsk-sdlc
4
4
  purpose: >
5
5
  Use for UI, UX, visual, interaction, accessibility, and browser-facing work
6
- where design handoff, demo evidence, and frontend quality checks matter.
6
+ where preproposal readiness, demo evidence, and frontend quality checks matter.
7
7
 
8
8
  stages:
9
9
  required:
@@ -24,6 +24,7 @@ stages:
24
24
  - acceptance
25
25
  - archive
26
26
  optional:
27
+ - preproposal
27
28
  - deploy
28
29
  - defect
29
30
  sideChannel:
@@ -48,6 +49,10 @@ flow:
48
49
  - acceptance
49
50
  - archive
50
51
  optionalInsertions:
52
+ preproposal:
53
+ after: prepare
54
+ before: proposal
55
+ when: A UI/UX request lacks reviewed product direction, roadmap/decomposition, UX flows, or design-source readiness.
51
56
  deploy:
52
57
  after: commit
53
58
  before: ready
@@ -77,7 +82,6 @@ strictness:
77
82
 
78
83
  bestPractices:
79
84
  required:
80
- - design-handoff.md
81
85
  - frontend.md
82
86
  - quality.md
83
87
  recommended:
@@ -22,6 +22,7 @@ stages:
22
22
  - acceptance
23
23
  - archive
24
24
  optional:
25
+ - preproposal
25
26
  - deploy
26
27
  - demo
27
28
  - defect
@@ -46,6 +47,10 @@ flow:
46
47
  - acceptance
47
48
  - archive
48
49
  optionalInsertions:
50
+ preproposal:
51
+ after: prepare
52
+ before: proposal
53
+ when: A brief request lacks reviewed product direction, roadmap/decomposition, UX readiness, or source-readiness raw material.
49
54
  deploy:
50
55
  after: commit
51
56
  before: ready
@@ -1,16 +1,17 @@
1
1
  version: 1
2
2
  defaults:
3
- required: [artifact, evidence, issue_sync, documentation_feedback]
3
+ required: [artifact, evidence, issue_sync, documentation_feedback, context_record]
4
4
  rules:
5
5
  artifact: "Every skill run must declare produced artifacts and write them to project-template paths, not only to chat."
6
6
  evidence: "Every pass/fail or completion claim must link local evidence."
7
7
  issue_sync: "Actionable findings must classify scope, update the concrete issue in module-private or shared/global/public storage, and refresh module/global issue indexes."
8
8
  documentation_feedback: "Confirmed learnings must update spec/design/task docs or record a no-update rationale."
9
+ context_record: "Terminology, naming, decomposition, and load-bearing clarification decisions must update the nearest CONTEXT.md, or the handoff must record Context update: N/A with rationale."
9
10
  execution: "Completion work may be done by a skill-local script or by the agent's normal file-editing tools, but the harness contract decides the required outputs."
10
11
  stage_gate: "Downstream progression requires a recorded gate assessment or explicit N/A rationale; non-blocking quality gaps need risk acceptance before continuing."
11
12
  durable_dispatch: "Dispatched lanes must leave a durable ledger and packet statuses; stale or timed-out lanes require fallback evidence before completion."
12
13
  scopeRouting:
13
- moduleFinal: ".zsk/modules/{module}/{stage}.md"
14
+ 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
15
  modulePrivate:
15
16
  issues: ".zsk/modules/{module}/_issues/"
16
17
  evidence: ".zsk/modules/{module}/_evidence/"
@@ -23,6 +24,11 @@ defaults:
23
24
  issues: ".zsk/issues/global/"
24
25
  evidence: ".zsk/evidence/global/"
25
26
  playwright: ".zsk/playwright/global/"
27
+ context: ".zsk/docs/CONTEXT.md"
28
+ context:
29
+ module: ".zsk/modules/{module}/CONTEXT.md"
30
+ project: ".zsk/docs/CONTEXT.md"
31
+ zskCore: "CONTEXT.md in the canonical ZSK source checkout"
26
32
  public:
27
33
  issues: ".zsk/issues/public/"
28
34
  evidence: ".zsk/evidence/public/"
@@ -40,27 +46,53 @@ outputs:
40
46
  - ".zsk/raws/manifest.json"
41
47
  - ".zsk/docs/SYSTEM-SPEC.md"
42
48
  feedbackTargets: [".zsk/docs/SYSTEM-SPEC.md", ".zsk/config.yaml"]
49
+ preproposal:
50
+ artifacts:
51
+ - ".zsk/raws/prepare/product/{topic}/product-brief.md"
52
+ - ".zsk/raws/prepare/product/{topic}/roadmap.md"
53
+ - ".zsk/raws/prepare/ux/{topic}/ux-readiness.md"
54
+ - ".zsk/raws/prepare/ux/{topic}/interaction-handoff.md when UI, UX, or design-source interaction is triggered"
55
+ - ".zsk/raws/prepare/ux/{module}/interaction-handoff.md when a target module and UI, UX, or design-source interaction are triggered"
56
+ - ".zsk/raws/prepare/design/{topic}/design-source-needs.md"
57
+ - ".zsk/raws/prepare/design/{topic}/design-source-map.md when provider-backed design sources such as Figma are used"
58
+ - ".zsk/raws/prepare/design/{module}/design-source-map.md when a target module uses provider-backed design sources such as Figma"
59
+ - ".zsk/evidence/preproposal/{run}/checkpoint-product-review.md"
60
+ - ".zsk/evidence/preproposal/{run}/checkpoint-roadmap-review.md"
61
+ - ".zsk/evidence/preproposal/{run}/checkpoint-ux-review.md"
62
+ - ".zsk/evidence/preproposal/{run}/checkpoint-interaction-review.md when interaction handoff is triggered"
63
+ - ".zsk/evidence/preproposal/{run}/readiness-review.md"
64
+ feedbackTargets: [".zsk/raws/manifest.json", ".zsk/raws/index.md", ".zsk/evidence/preproposal/{run}/readiness-review.md"]
43
65
  proposal:
44
66
  artifacts:
45
67
  - ".zsk/modules/{module}/proposal.md"
46
- feedbackTargets: [".zsk/modules/{module}/proposal.md"]
68
+ - ".zsk/modules/{module}/proposal/index.md when split child docs are required"
69
+ feedbackTargets: [".zsk/modules/{module}/proposal.md", ".zsk/modules/{module}/proposal/index.md"]
47
70
  spec:
48
71
  artifacts:
49
72
  - ".zsk/modules/{module}/spec.md"
50
- feedbackTargets: [".zsk/modules/{module}/spec.md", ".zsk/docs/SYSTEM-SPEC.md"]
73
+ - ".zsk/modules/{module}/spec/index.md when split child docs are required"
74
+ feedbackTargets: [".zsk/modules/{module}/spec.md", ".zsk/modules/{module}/spec/index.md", ".zsk/docs/SYSTEM-SPEC.md"]
51
75
  design:
52
76
  artifacts:
53
77
  - ".zsk/modules/{module}/design.md"
54
- feedbackTargets: [".zsk/modules/{module}/design.md"]
78
+ - ".zsk/modules/{module}/design/index.md when split child docs are required"
79
+ feedbackTargets: [".zsk/modules/{module}/design.md", ".zsk/modules/{module}/design/index.md"]
55
80
  task:
56
81
  artifacts:
57
82
  - ".zsk/modules/{module}/tasks.md"
83
+ - ".zsk/modules/{module}/tasks/index.md when split child docs are required"
58
84
  - ".zsk/modules/{module}/_playwright/specs/"
59
- feedbackTargets: [".zsk/modules/{module}/tasks.md", ".zsk/modules/{module}/design.md"]
85
+ feedbackTargets: [".zsk/modules/{module}/tasks.md", ".zsk/modules/{module}/tasks/index.md", ".zsk/modules/{module}/design.md", ".zsk/modules/{module}/design/index.md"]
60
86
  coding:
61
87
  artifacts:
62
88
  - "implementation files"
63
89
  feedbackTargets: [".zsk/modules/{module}/tasks.md"]
90
+ fix:
91
+ artifacts:
92
+ - ".zsk/modules/{module}/_issues/"
93
+ - ".zsk/issues/{shared|global|public}/"
94
+ - "implementation files or no-code blocker rationale"
95
+ feedbackTargets: [".zsk/modules/{module}/tasks.md", ".zsk/modules/{module}/review.md", ".zsk/modules/{module}/verify.md"]
64
96
  smoke:
65
97
  artifacts:
66
98
  - ".zsk/modules/{module}/smoke.md"
@@ -70,7 +102,9 @@ outputs:
70
102
  artifacts:
71
103
  - ".zsk/modules/{module}/review.md"
72
104
  - ".zsk/modules/{module}/_issues/"
73
- feedbackTargets: [".zsk/modules/{module}/review.md", ".zsk/modules/{module}/design.md", ".zsk/modules/{module}/tasks.md"]
105
+ - ".zsk/evidence/preproposal/{run}/checkpoint-*.md when reviewing preproposal checkpoints"
106
+ - ".zsk/evidence/{shared|global|public}/review/{run}/ when reviewing explicit shared/global/public targets"
107
+ feedbackTargets: [".zsk/modules/{module}/review.md", ".zsk/modules/{module}/design.md", ".zsk/modules/{module}/tasks.md", ".zsk/evidence/preproposal/{run}/readiness-review.md"]
74
108
  commit:
75
109
  artifacts:
76
110
  - ".zsk/modules/{module}/commit.md"
@@ -28,8 +28,29 @@ principles:
28
28
  and how the evidence changes the recommendation.
29
29
  - "Do not decide from uncertainty: summarize conflicting or missing facts and
30
30
  ask, or record a resource gap."
31
+ - For vague intake, answer discoverable questions from local sources first,
32
+ then ask one blocking question at a time with a recommended answer and
33
+ tradeoff.
31
34
  - "TDD first for testable behavior: tests and scenarios must be accurate and
32
35
  traceable to PRD/SRS, spec/design, task, issue, or accepted clarification."
36
+ - When an existing stage artifact is unclear, incomplete, contradictory, or
37
+ too weak for its downstream consumer, route to the owning stage's
38
+ skill-local Stage Challenge Gate before downstream work; preserve the
39
+ artifact, derive challenge focus from the active skill's contract, classify
40
+ gaps, repair what sources support, and ask only one blocking question when
41
+ needed.
42
+ - "A Stage Challenge Gate is not a generic grill: proposal challenges problem
43
+ and scope, spec challenges behavior contracts, design challenges
44
+ implementation mapping, task challenges execution readiness, and later
45
+ evidence stages challenge the claim they own."
46
+ - When clarification, grilling, architecture review, stage repair, or task
47
+ decomposition creates or sharpens project/module terminology, naming,
48
+ decomposition rationale, or load-bearing decisions, update the nearest
49
+ `CONTEXT.md` or record an evidence-backed no-update rationale.
50
+ - "For coding, use vertical TDD cycles for testable behavior: one behavior,
51
+ one failing test or changed test expectation, minimal implementation,
52
+ passing evidence, then the next behavior. Do not write all tests first and
53
+ then all code."
33
54
  - Stage skills own their declared outputs and handoff quality; workflow skills
34
55
  own route selection. Every handoff must preserve upstream/downstream
35
56
  consistency instead of relying on chat memory.
@@ -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,83 @@ 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
+ - "When an existing stage artifact is present, the active skill must run its
89
+ own Stage Challenge Gate before downstream handoff: derive the challenge
90
+ focus from that skill's responsibility, required inputs, required outputs,
91
+ must-answer questions, quality checkpoints, current artifact, upstream
92
+ sources, and downstream consumer; classify sourced, accepted, assumed,
93
+ conflicting, missing, and N/A claims, then repair or block through the
94
+ owning stage."
95
+ - "Keep Stage Challenge Gates skill-local: ask, repair, or block only on
96
+ questions the active skill owns; route upstream or downstream findings to
97
+ the owning stage instead of absorbing another skill's responsibility."
98
+ - Every Stage Challenge Gate must align terminology against
99
+ CONTEXT.md/CONTEXT-MAP.md when present, SYSTEM-SPEC.md, configured raw
100
+ sources, current artifact identifiers, and code/component/API names when
101
+ implementation-facing work is touched.
102
+ - "Record durable terminology, naming, decomposition, and load-bearing
103
+ clarification decisions in the nearest CONTEXT.md, or write `Context
104
+ update: N/A` with rationale."
105
+ - Preserve upstream/downstream stage ownership; do not silently rewrite
106
+ another skill's artifact.
107
+ conditionalRequirements:
108
+ - When auth, permissions, privacy, security, tenancy, roles, data access,
109
+ compliance, payment, migration, public API, or audit behavior is touched,
110
+ produce the relevant control/traceability matrix or block with the missing
111
+ source.
112
+ - When architecture, interface, data-flow, storage, migration, dependency,
113
+ rollback, integration, or cross-team ownership decisions are made, record
114
+ ADR/decision-record entries with context, options, decision, consequences,
115
+ rollback/migration notes, and linked requirements.
116
+ - When UI-visible behavior is touched, include user-observable states,
117
+ accessibility/locator strategy, scenario evidence needs, and stable test
118
+ hooks.
119
+ - When behavior is testable, define or consume a traceable test basis before
120
+ claiming implementation, smoke, review, verify, or acceptance success.
121
+ - When external facts, SDKs, APIs, regulations, market context, or
122
+ dependency behavior are freshness-sensitive, retrieve current
123
+ authoritative references or record why local sources are sufficient.
124
+ - When an artifact becomes too large for one reviewable file, split it into
125
+ `{stage}/index.md` plus linked child Markdown files while preserving the
126
+ full stage contract.
127
+ - When clarification, grilling, architecture review, artifact repair, or
128
+ task decomposition introduces a term or naming decision future stages must
129
+ reuse, update module-local or project-level CONTEXT.md before handoff.
130
+ advisoryGuidance:
131
+ - Prefer the smallest artifact that lets the next reader decide and act
132
+ without chat memory.
133
+ - Use tables, matrices, diagrams, or checklists only when they clarify
134
+ ownership, traceability, risk, or execution.
135
+ - Use project terminology and source identifiers consistently across
136
+ proposal, spec, design, task, and evidence artifacts.
137
+ - When a skill challenges an artifact, name any overloaded, translated, or
138
+ conflicting term before asking the user or editing the artifact.
139
+ - Record suggestions separately from current project policy, especially for
140
+ thresholds that remain `未指定`.
36
141
  qualityCheckpoints:
37
142
  - Names the reader, stage, scope, and stop condition.
38
143
  - Separates facts, decisions, assumptions, open questions, and evidence.
@@ -51,14 +156,26 @@ defaults:
51
156
  evidence remains a failure, not an assumption.
52
157
  - Records numeric targets or thresholds as `未指定` when the project has not
53
158
  supplied them; never invents thresholds to make an output look complete.
159
+ - "Records `Context update: <path>` or `Context update: N/A` so later stages
160
+ do not depend on hidden chat terminology."
161
+ - "Names terminology alignment status for the active artifact:
162
+ source-consistent, repaired, conflicting, missing, or N/A."
54
163
  - Names owner, dependency, acceptance condition, and verification evidence
55
164
  for every required output or blocker.
165
+ - Names existing stage artifact clarity status as PASS, NEEDS_REPAIR,
166
+ BLOCKED, or WAIVED when a prior artifact is being consumed or improved.
167
+ - Names the Stage Challenge Gate focus and shows it came from the active
168
+ skill contract rather than a generic grill.
56
169
  - Runs or references the stage-entry quality gate before downstream handoff;
57
170
  below-threshold but non-blocking gaps require explicit risk acceptance
58
171
  instead of silent progression.
59
172
  - "For testable work, verifies test correctness, not only test execution:
60
173
  traceable test basis, meaningful assertions, negative/boundary/regression
61
174
  coverage, and skipped/unrun checks called out."
175
+ - When proposal, spec, design, or tasks become too large for one reviewable
176
+ file, the artifact may split to `{stage}/index.md` plus linked child
177
+ Markdown files; the index remains the entrypoint and the full stage
178
+ contract still applies.
62
179
  antiPatterns:
63
180
  - Template-shaped filler that does not resolve a decision.
64
181
  - Skipping PROJECT-CONFIG.md or SYSTEM-SPEC.md, or treating their project
@@ -77,6 +194,15 @@ defaults:
77
194
  behavior without configured evidence.
78
195
  - Treating missing evidence as low risk when the stage output depends on
79
196
  that evidence.
197
+ - Discarding or rewriting an unclear existing stage artifact before
198
+ classifying what is sourced, accepted, assumed, conflicting, or missing.
199
+ - Running a generic grill or cross-stage rewrite instead of the active
200
+ skill's own Stage Challenge Gate.
201
+ - Letting terminology, naming, or decomposition decisions live only in chat
202
+ instead of CONTEXT.md.
203
+ - Running stage-specific questioning without checking whether the artifact
204
+ uses the same terms as upstream sources, downstream consumers, and
205
+ implementation surfaces.
80
206
  - Letting a delayed subagent packet block indefinitely instead of marking it
81
207
  stale and falling back or re-emitting.
82
208
  - Claiming tests prove behavior when they have no traceable basis, no
@@ -85,6 +211,21 @@ stages:
85
211
  acceptance:
86
212
  documentMode: decisionRecord
87
213
  purpose: Record the accept/reject business decision and residual-risk ownership.
214
+ hardRequirements:
215
+ - Record accept, reject, or conditional acceptance decision with linked
216
+ verify/demo evidence.
217
+ - Name accepted criteria, residual risks, owners, and documentation
218
+ feedback or no-update rationale.
219
+ - Do not accept without verification evidence unless explicitly blocked
220
+ and risk-accepted.
221
+ conditionalRequirements:
222
+ - When residual risks affect security, privacy, permissions, data,
223
+ release, or compliance, require owner and follow-up issue.
224
+ - When business/user confirmation is missing, mark acceptance BLOCKED
225
+ instead of inferred.
226
+ advisoryGuidance:
227
+ - Keep acceptance focused on decision and risk, not implementation recap.
228
+ - Preserve rejection reasons in a form that can route back to issue/fix.
88
229
  mustAnswer:
89
230
  - Is the verified work accepted, rejected, or conditionally accepted?
90
231
  - 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: [target-module, module-docs, module-context, 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, module-scoped-raw-pack-when-targeted, intake-clarity-brief, accepted-clarifications, product-brief, roadmap-decomposition, ux-flow-seeds, interaction-handoff-when-triggered, module-scoped-interaction-handoff-when-targeted, design-source-needs, design-source-map-when-triggered, 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
- optionalResources: [api-contracts, design-sources, design-assets, user-personas, competitive-benchmarks]
18
- outputs: [project-rules-gate, design, design-views, locator-strategy, playwright-scenario-plan]
21
+ optionalResources: [api-contracts, reviewed-preproposal-raw-pack, user-personas, competitive-benchmarks]
22
+ outputs: [project-rules-gate, design, design-views, adr-decision-records, locator-strategy, ui-implementation-mapping-when-triggered, 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]