@captain_z/zsk-skills 1.4.3 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (502) hide show
  1. package/README.md +133 -225
  2. package/acceptance/SKILL.md +70 -0
  3. package/acceptance/harness/README.md +104 -0
  4. package/acceptance/harness/THIS_SKILL.md +58 -0
  5. package/acceptance/harness/best-practices/README.md +52 -0
  6. package/acceptance/harness/best-practices/agent-orchestration.md +45 -0
  7. package/acceptance/harness/best-practices/design-handoff.md +41 -0
  8. package/acceptance/harness/best-practices/frontend.md +43 -0
  9. package/acceptance/harness/best-practices/project-constraints-template.md +66 -0
  10. package/acceptance/harness/best-practices/quality.md +41 -0
  11. package/acceptance/harness/best-practices/sdlc.md +49 -0
  12. package/acceptance/harness/best-practices/system.md +41 -0
  13. package/acceptance/harness/constraints/evidence-rules.md +33 -0
  14. package/acceptance/harness/constraints/issue-taxonomy.md +87 -0
  15. package/acceptance/harness/constraints/source-of-truth.md +19 -0
  16. package/acceptance/harness/constraints/stage-gates.md +27 -0
  17. package/acceptance/harness/profiles/enterprise.yaml +89 -0
  18. package/acceptance/harness/profiles/frontend.yaml +93 -0
  19. package/acceptance/harness/profiles/lite.yaml +55 -0
  20. package/acceptance/harness/profiles/sdlc.yaml +83 -0
  21. package/acceptance/harness/workflow/completion-contract.yaml +102 -0
  22. package/acceptance/harness/workflow/skill-io-contract.yaml +160 -0
  23. package/acceptance/harness/workflow/stage-contracts.yaml +53 -0
  24. package/acceptance/harness/workflow/state-machine.yaml +65 -0
  25. package/archive/SKILL.md +65 -0
  26. package/archive/harness/README.md +104 -0
  27. package/archive/harness/THIS_SKILL.md +59 -0
  28. package/archive/harness/best-practices/README.md +52 -0
  29. package/archive/harness/best-practices/agent-orchestration.md +45 -0
  30. package/archive/harness/best-practices/design-handoff.md +41 -0
  31. package/archive/harness/best-practices/frontend.md +43 -0
  32. package/archive/harness/best-practices/project-constraints-template.md +66 -0
  33. package/archive/harness/best-practices/quality.md +41 -0
  34. package/archive/harness/best-practices/sdlc.md +49 -0
  35. package/archive/harness/best-practices/system.md +41 -0
  36. package/archive/harness/constraints/evidence-rules.md +33 -0
  37. package/archive/harness/constraints/issue-taxonomy.md +87 -0
  38. package/archive/harness/constraints/source-of-truth.md +19 -0
  39. package/archive/harness/constraints/stage-gates.md +27 -0
  40. package/archive/harness/profiles/enterprise.yaml +89 -0
  41. package/archive/harness/profiles/frontend.yaml +93 -0
  42. package/archive/harness/profiles/lite.yaml +55 -0
  43. package/archive/harness/profiles/sdlc.yaml +83 -0
  44. package/archive/harness/workflow/completion-contract.yaml +102 -0
  45. package/archive/harness/workflow/skill-io-contract.yaml +160 -0
  46. package/archive/harness/workflow/stage-contracts.yaml +53 -0
  47. package/archive/harness/workflow/state-machine.yaml +65 -0
  48. package/bundles.yaml +122 -76
  49. package/coding/SKILL.md +66 -0
  50. package/coding/harness/README.md +104 -0
  51. package/coding/harness/THIS_SKILL.md +59 -0
  52. package/coding/harness/best-practices/README.md +52 -0
  53. package/coding/harness/best-practices/agent-orchestration.md +45 -0
  54. package/coding/harness/best-practices/design-handoff.md +41 -0
  55. package/coding/harness/best-practices/frontend.md +43 -0
  56. package/coding/harness/best-practices/project-constraints-template.md +66 -0
  57. package/coding/harness/best-practices/quality.md +41 -0
  58. package/coding/harness/best-practices/sdlc.md +49 -0
  59. package/coding/harness/best-practices/system.md +41 -0
  60. package/coding/harness/constraints/evidence-rules.md +33 -0
  61. package/coding/harness/constraints/issue-taxonomy.md +87 -0
  62. package/coding/harness/constraints/source-of-truth.md +19 -0
  63. package/coding/harness/constraints/stage-gates.md +27 -0
  64. package/coding/harness/profiles/enterprise.yaml +89 -0
  65. package/coding/harness/profiles/frontend.yaml +93 -0
  66. package/coding/harness/profiles/lite.yaml +55 -0
  67. package/coding/harness/profiles/sdlc.yaml +83 -0
  68. package/coding/harness/workflow/completion-contract.yaml +102 -0
  69. package/coding/harness/workflow/skill-io-contract.yaml +160 -0
  70. package/coding/harness/workflow/stage-contracts.yaml +53 -0
  71. package/coding/harness/workflow/state-machine.yaml +65 -0
  72. package/commit/SKILL.md +63 -0
  73. package/commit/harness/README.md +104 -0
  74. package/commit/harness/THIS_SKILL.md +57 -0
  75. package/commit/harness/best-practices/README.md +52 -0
  76. package/commit/harness/best-practices/agent-orchestration.md +45 -0
  77. package/commit/harness/best-practices/design-handoff.md +41 -0
  78. package/commit/harness/best-practices/frontend.md +43 -0
  79. package/commit/harness/best-practices/project-constraints-template.md +66 -0
  80. package/commit/harness/best-practices/quality.md +41 -0
  81. package/commit/harness/best-practices/sdlc.md +49 -0
  82. package/commit/harness/best-practices/system.md +41 -0
  83. package/commit/harness/constraints/evidence-rules.md +33 -0
  84. package/commit/harness/constraints/issue-taxonomy.md +87 -0
  85. package/commit/harness/constraints/source-of-truth.md +19 -0
  86. package/commit/harness/constraints/stage-gates.md +27 -0
  87. package/commit/harness/profiles/enterprise.yaml +89 -0
  88. package/commit/harness/profiles/frontend.yaml +93 -0
  89. package/commit/harness/profiles/lite.yaml +55 -0
  90. package/commit/harness/profiles/sdlc.yaml +83 -0
  91. package/commit/harness/workflow/completion-contract.yaml +102 -0
  92. package/commit/harness/workflow/skill-io-contract.yaml +160 -0
  93. package/commit/harness/workflow/stage-contracts.yaml +53 -0
  94. package/commit/harness/workflow/state-machine.yaml +65 -0
  95. package/defect/SKILL.md +68 -0
  96. package/defect/harness/README.md +104 -0
  97. package/defect/harness/THIS_SKILL.md +58 -0
  98. package/defect/harness/best-practices/README.md +52 -0
  99. package/defect/harness/best-practices/agent-orchestration.md +45 -0
  100. package/defect/harness/best-practices/design-handoff.md +41 -0
  101. package/defect/harness/best-practices/frontend.md +43 -0
  102. package/defect/harness/best-practices/project-constraints-template.md +66 -0
  103. package/defect/harness/best-practices/quality.md +41 -0
  104. package/defect/harness/best-practices/sdlc.md +49 -0
  105. package/defect/harness/best-practices/system.md +41 -0
  106. package/defect/harness/constraints/evidence-rules.md +33 -0
  107. package/defect/harness/constraints/issue-taxonomy.md +87 -0
  108. package/defect/harness/constraints/source-of-truth.md +19 -0
  109. package/defect/harness/constraints/stage-gates.md +27 -0
  110. package/defect/harness/profiles/enterprise.yaml +89 -0
  111. package/defect/harness/profiles/frontend.yaml +93 -0
  112. package/defect/harness/profiles/lite.yaml +55 -0
  113. package/defect/harness/profiles/sdlc.yaml +83 -0
  114. package/defect/harness/workflow/completion-contract.yaml +102 -0
  115. package/defect/harness/workflow/skill-io-contract.yaml +160 -0
  116. package/defect/harness/workflow/stage-contracts.yaml +53 -0
  117. package/defect/harness/workflow/state-machine.yaml +65 -0
  118. package/demo/SKILL.md +196 -0
  119. package/demo/harness/README.md +104 -0
  120. package/demo/harness/THIS_SKILL.md +65 -0
  121. package/demo/harness/best-practices/README.md +52 -0
  122. package/demo/harness/best-practices/agent-orchestration.md +45 -0
  123. package/demo/harness/best-practices/design-handoff.md +41 -0
  124. package/demo/harness/best-practices/frontend.md +43 -0
  125. package/demo/harness/best-practices/project-constraints-template.md +66 -0
  126. package/demo/harness/best-practices/quality.md +41 -0
  127. package/demo/harness/best-practices/sdlc.md +49 -0
  128. package/demo/harness/best-practices/system.md +41 -0
  129. package/demo/harness/constraints/evidence-rules.md +33 -0
  130. package/demo/harness/constraints/issue-taxonomy.md +87 -0
  131. package/demo/harness/constraints/source-of-truth.md +19 -0
  132. package/demo/harness/constraints/stage-gates.md +27 -0
  133. package/demo/harness/profiles/enterprise.yaml +89 -0
  134. package/demo/harness/profiles/frontend.yaml +93 -0
  135. package/demo/harness/profiles/lite.yaml +55 -0
  136. package/demo/harness/profiles/sdlc.yaml +83 -0
  137. package/demo/harness/workflow/completion-contract.yaml +102 -0
  138. package/demo/harness/workflow/skill-io-contract.yaml +160 -0
  139. package/demo/harness/workflow/stage-contracts.yaml +53 -0
  140. package/demo/harness/workflow/state-machine.yaml +65 -0
  141. package/demo/harness.yaml +41 -0
  142. package/demo/references/automation.md +155 -0
  143. package/demo/scenarios/happy-path.spec.ts +8 -0
  144. package/demo/scripts/playwright-bridge.mjs +64 -0
  145. package/demo/templates/demo-issue.md +26 -0
  146. package/demo/templates/demo-outline.md +54 -0
  147. package/demo/templates/operation-plan.json +37 -0
  148. package/demo/templates/playwright-execution.json +24 -0
  149. package/demo/templates/scenario-synthesis.json +21 -0
  150. package/deploy/SKILL.md +64 -0
  151. package/deploy/harness/README.md +104 -0
  152. package/deploy/harness/THIS_SKILL.md +57 -0
  153. package/deploy/harness/best-practices/README.md +52 -0
  154. package/deploy/harness/best-practices/agent-orchestration.md +45 -0
  155. package/deploy/harness/best-practices/design-handoff.md +41 -0
  156. package/deploy/harness/best-practices/frontend.md +43 -0
  157. package/deploy/harness/best-practices/project-constraints-template.md +66 -0
  158. package/deploy/harness/best-practices/quality.md +41 -0
  159. package/deploy/harness/best-practices/sdlc.md +49 -0
  160. package/deploy/harness/best-practices/system.md +41 -0
  161. package/deploy/harness/constraints/evidence-rules.md +33 -0
  162. package/deploy/harness/constraints/issue-taxonomy.md +87 -0
  163. package/deploy/harness/constraints/source-of-truth.md +19 -0
  164. package/deploy/harness/constraints/stage-gates.md +27 -0
  165. package/deploy/harness/profiles/enterprise.yaml +89 -0
  166. package/deploy/harness/profiles/frontend.yaml +93 -0
  167. package/deploy/harness/profiles/lite.yaml +55 -0
  168. package/deploy/harness/profiles/sdlc.yaml +83 -0
  169. package/deploy/harness/workflow/completion-contract.yaml +102 -0
  170. package/deploy/harness/workflow/skill-io-contract.yaml +160 -0
  171. package/deploy/harness/workflow/stage-contracts.yaml +53 -0
  172. package/deploy/harness/workflow/state-machine.yaml +65 -0
  173. package/design/SKILL.md +78 -0
  174. package/design/harness/README.md +104 -0
  175. package/design/harness/THIS_SKILL.md +62 -0
  176. package/design/harness/best-practices/README.md +52 -0
  177. package/design/harness/best-practices/agent-orchestration.md +45 -0
  178. package/design/harness/best-practices/design-handoff.md +41 -0
  179. package/design/harness/best-practices/frontend.md +43 -0
  180. package/design/harness/best-practices/project-constraints-template.md +66 -0
  181. package/design/harness/best-practices/quality.md +41 -0
  182. package/design/harness/best-practices/sdlc.md +49 -0
  183. package/design/harness/best-practices/system.md +41 -0
  184. package/design/harness/constraints/evidence-rules.md +33 -0
  185. package/design/harness/constraints/issue-taxonomy.md +87 -0
  186. package/design/harness/constraints/source-of-truth.md +19 -0
  187. package/design/harness/constraints/stage-gates.md +27 -0
  188. package/design/harness/profiles/enterprise.yaml +89 -0
  189. package/design/harness/profiles/frontend.yaml +93 -0
  190. package/design/harness/profiles/lite.yaml +55 -0
  191. package/design/harness/profiles/sdlc.yaml +83 -0
  192. package/design/harness/workflow/completion-contract.yaml +102 -0
  193. package/design/harness/workflow/skill-io-contract.yaml +160 -0
  194. package/design/harness/workflow/stage-contracts.yaml +53 -0
  195. package/design/harness/workflow/state-machine.yaml +65 -0
  196. package/dispatch/SKILL.md +147 -0
  197. package/dispatch/harness/README.md +104 -0
  198. package/dispatch/harness/THIS_SKILL.md +62 -0
  199. package/dispatch/harness/best-practices/README.md +52 -0
  200. package/dispatch/harness/best-practices/agent-orchestration.md +45 -0
  201. package/dispatch/harness/best-practices/design-handoff.md +41 -0
  202. package/dispatch/harness/best-practices/frontend.md +43 -0
  203. package/dispatch/harness/best-practices/project-constraints-template.md +66 -0
  204. package/dispatch/harness/best-practices/quality.md +41 -0
  205. package/dispatch/harness/best-practices/sdlc.md +49 -0
  206. package/dispatch/harness/best-practices/system.md +41 -0
  207. package/dispatch/harness/constraints/evidence-rules.md +33 -0
  208. package/dispatch/harness/constraints/issue-taxonomy.md +87 -0
  209. package/dispatch/harness/constraints/source-of-truth.md +19 -0
  210. package/dispatch/harness/constraints/stage-gates.md +27 -0
  211. package/dispatch/harness/profiles/enterprise.yaml +89 -0
  212. package/dispatch/harness/profiles/frontend.yaml +93 -0
  213. package/dispatch/harness/profiles/lite.yaml +55 -0
  214. package/dispatch/harness/profiles/sdlc.yaml +83 -0
  215. package/dispatch/harness/workflow/completion-contract.yaml +102 -0
  216. package/dispatch/harness/workflow/skill-io-contract.yaml +160 -0
  217. package/dispatch/harness/workflow/stage-contracts.yaml +53 -0
  218. package/dispatch/harness/workflow/state-machine.yaml +65 -0
  219. package/flow/SKILL.md +93 -0
  220. package/flow/harness/README.md +104 -0
  221. package/flow/harness/THIS_SKILL.md +58 -0
  222. package/flow/harness/best-practices/README.md +52 -0
  223. package/flow/harness/best-practices/agent-orchestration.md +45 -0
  224. package/flow/harness/best-practices/design-handoff.md +41 -0
  225. package/flow/harness/best-practices/frontend.md +43 -0
  226. package/flow/harness/best-practices/project-constraints-template.md +66 -0
  227. package/flow/harness/best-practices/quality.md +41 -0
  228. package/flow/harness/best-practices/sdlc.md +49 -0
  229. package/flow/harness/best-practices/system.md +41 -0
  230. package/flow/harness/constraints/evidence-rules.md +33 -0
  231. package/flow/harness/constraints/issue-taxonomy.md +87 -0
  232. package/flow/harness/constraints/source-of-truth.md +19 -0
  233. package/flow/harness/constraints/stage-gates.md +27 -0
  234. package/flow/harness/profiles/enterprise.yaml +89 -0
  235. package/flow/harness/profiles/frontend.yaml +93 -0
  236. package/flow/harness/profiles/lite.yaml +55 -0
  237. package/flow/harness/profiles/sdlc.yaml +83 -0
  238. package/flow/harness/workflow/completion-contract.yaml +102 -0
  239. package/flow/harness/workflow/skill-io-contract.yaml +160 -0
  240. package/flow/harness/workflow/stage-contracts.yaml +53 -0
  241. package/flow/harness/workflow/state-machine.yaml +65 -0
  242. package/issue/SKILL.md +89 -0
  243. package/issue/harness/README.md +104 -0
  244. package/issue/harness/THIS_SKILL.md +61 -0
  245. package/issue/harness/best-practices/README.md +52 -0
  246. package/issue/harness/best-practices/agent-orchestration.md +45 -0
  247. package/issue/harness/best-practices/design-handoff.md +41 -0
  248. package/issue/harness/best-practices/frontend.md +43 -0
  249. package/issue/harness/best-practices/project-constraints-template.md +66 -0
  250. package/issue/harness/best-practices/quality.md +41 -0
  251. package/issue/harness/best-practices/sdlc.md +49 -0
  252. package/issue/harness/best-practices/system.md +41 -0
  253. package/issue/harness/constraints/evidence-rules.md +33 -0
  254. package/issue/harness/constraints/issue-taxonomy.md +87 -0
  255. package/issue/harness/constraints/source-of-truth.md +19 -0
  256. package/issue/harness/constraints/stage-gates.md +27 -0
  257. package/issue/harness/profiles/enterprise.yaml +89 -0
  258. package/issue/harness/profiles/frontend.yaml +93 -0
  259. package/issue/harness/profiles/lite.yaml +55 -0
  260. package/issue/harness/profiles/sdlc.yaml +83 -0
  261. package/issue/harness/workflow/completion-contract.yaml +102 -0
  262. package/issue/harness/workflow/skill-io-contract.yaml +160 -0
  263. package/issue/harness/workflow/stage-contracts.yaml +53 -0
  264. package/issue/harness/workflow/state-machine.yaml +65 -0
  265. package/issue/harness.yaml +16 -0
  266. package/package.json +3 -8
  267. package/prepare/SKILL.md +87 -0
  268. package/prepare/harness/README.md +104 -0
  269. package/prepare/harness/THIS_SKILL.md +64 -0
  270. package/prepare/harness/best-practices/README.md +52 -0
  271. package/prepare/harness/best-practices/agent-orchestration.md +45 -0
  272. package/prepare/harness/best-practices/design-handoff.md +41 -0
  273. package/prepare/harness/best-practices/frontend.md +43 -0
  274. package/prepare/harness/best-practices/project-constraints-template.md +66 -0
  275. package/prepare/harness/best-practices/quality.md +41 -0
  276. package/prepare/harness/best-practices/sdlc.md +49 -0
  277. package/prepare/harness/best-practices/system.md +41 -0
  278. package/prepare/harness/constraints/evidence-rules.md +33 -0
  279. package/prepare/harness/constraints/issue-taxonomy.md +87 -0
  280. package/prepare/harness/constraints/source-of-truth.md +19 -0
  281. package/prepare/harness/constraints/stage-gates.md +27 -0
  282. package/prepare/harness/profiles/enterprise.yaml +89 -0
  283. package/prepare/harness/profiles/frontend.yaml +93 -0
  284. package/prepare/harness/profiles/lite.yaml +55 -0
  285. package/prepare/harness/profiles/sdlc.yaml +83 -0
  286. package/prepare/harness/workflow/completion-contract.yaml +102 -0
  287. package/prepare/harness/workflow/skill-io-contract.yaml +160 -0
  288. package/prepare/harness/workflow/stage-contracts.yaml +53 -0
  289. package/prepare/harness/workflow/state-machine.yaml +65 -0
  290. package/prepare/harness.yaml +26 -0
  291. package/proposal/SKILL.md +66 -0
  292. package/proposal/harness/README.md +104 -0
  293. package/proposal/harness/THIS_SKILL.md +58 -0
  294. package/proposal/harness/best-practices/README.md +52 -0
  295. package/proposal/harness/best-practices/agent-orchestration.md +45 -0
  296. package/proposal/harness/best-practices/design-handoff.md +41 -0
  297. package/proposal/harness/best-practices/frontend.md +43 -0
  298. package/proposal/harness/best-practices/project-constraints-template.md +66 -0
  299. package/proposal/harness/best-practices/quality.md +41 -0
  300. package/proposal/harness/best-practices/sdlc.md +49 -0
  301. package/proposal/harness/best-practices/system.md +41 -0
  302. package/proposal/harness/constraints/evidence-rules.md +33 -0
  303. package/proposal/harness/constraints/issue-taxonomy.md +87 -0
  304. package/proposal/harness/constraints/source-of-truth.md +19 -0
  305. package/proposal/harness/constraints/stage-gates.md +27 -0
  306. package/proposal/harness/profiles/enterprise.yaml +89 -0
  307. package/proposal/harness/profiles/frontend.yaml +93 -0
  308. package/proposal/harness/profiles/lite.yaml +55 -0
  309. package/proposal/harness/profiles/sdlc.yaml +83 -0
  310. package/proposal/harness/workflow/completion-contract.yaml +102 -0
  311. package/proposal/harness/workflow/skill-io-contract.yaml +160 -0
  312. package/proposal/harness/workflow/stage-contracts.yaml +53 -0
  313. package/proposal/harness/workflow/state-machine.yaml +65 -0
  314. package/ready/SKILL.md +64 -0
  315. package/ready/harness/README.md +104 -0
  316. package/ready/harness/THIS_SKILL.md +57 -0
  317. package/ready/harness/best-practices/README.md +52 -0
  318. package/ready/harness/best-practices/agent-orchestration.md +45 -0
  319. package/ready/harness/best-practices/design-handoff.md +41 -0
  320. package/ready/harness/best-practices/frontend.md +43 -0
  321. package/ready/harness/best-practices/project-constraints-template.md +66 -0
  322. package/ready/harness/best-practices/quality.md +41 -0
  323. package/ready/harness/best-practices/sdlc.md +49 -0
  324. package/ready/harness/best-practices/system.md +41 -0
  325. package/ready/harness/constraints/evidence-rules.md +33 -0
  326. package/ready/harness/constraints/issue-taxonomy.md +87 -0
  327. package/ready/harness/constraints/source-of-truth.md +19 -0
  328. package/ready/harness/constraints/stage-gates.md +27 -0
  329. package/ready/harness/profiles/enterprise.yaml +89 -0
  330. package/ready/harness/profiles/frontend.yaml +93 -0
  331. package/ready/harness/profiles/lite.yaml +55 -0
  332. package/ready/harness/profiles/sdlc.yaml +83 -0
  333. package/ready/harness/workflow/completion-contract.yaml +102 -0
  334. package/ready/harness/workflow/skill-io-contract.yaml +160 -0
  335. package/ready/harness/workflow/stage-contracts.yaml +53 -0
  336. package/ready/harness/workflow/state-machine.yaml +65 -0
  337. package/review/SKILL.md +213 -0
  338. package/review/harness/README.md +104 -0
  339. package/review/harness/THIS_SKILL.md +62 -0
  340. package/review/harness/best-practices/README.md +52 -0
  341. package/review/harness/best-practices/agent-orchestration.md +45 -0
  342. package/review/harness/best-practices/design-handoff.md +41 -0
  343. package/review/harness/best-practices/frontend.md +43 -0
  344. package/review/harness/best-practices/project-constraints-template.md +66 -0
  345. package/review/harness/best-practices/quality.md +41 -0
  346. package/review/harness/best-practices/sdlc.md +49 -0
  347. package/review/harness/best-practices/system.md +41 -0
  348. package/review/harness/constraints/evidence-rules.md +33 -0
  349. package/review/harness/constraints/issue-taxonomy.md +87 -0
  350. package/review/harness/constraints/source-of-truth.md +19 -0
  351. package/review/harness/constraints/stage-gates.md +27 -0
  352. package/review/harness/profiles/enterprise.yaml +89 -0
  353. package/review/harness/profiles/frontend.yaml +93 -0
  354. package/review/harness/profiles/lite.yaml +55 -0
  355. package/review/harness/profiles/sdlc.yaml +83 -0
  356. package/review/harness/workflow/completion-contract.yaml +102 -0
  357. package/review/harness/workflow/skill-io-contract.yaml +160 -0
  358. package/review/harness/workflow/stage-contracts.yaml +53 -0
  359. package/review/harness/workflow/state-machine.yaml +65 -0
  360. package/smoke/SKILL.md +70 -0
  361. package/smoke/harness/README.md +104 -0
  362. package/smoke/harness/THIS_SKILL.md +58 -0
  363. package/smoke/harness/best-practices/README.md +52 -0
  364. package/smoke/harness/best-practices/agent-orchestration.md +45 -0
  365. package/smoke/harness/best-practices/design-handoff.md +41 -0
  366. package/smoke/harness/best-practices/frontend.md +43 -0
  367. package/smoke/harness/best-practices/project-constraints-template.md +66 -0
  368. package/smoke/harness/best-practices/quality.md +41 -0
  369. package/smoke/harness/best-practices/sdlc.md +49 -0
  370. package/smoke/harness/best-practices/system.md +41 -0
  371. package/smoke/harness/constraints/evidence-rules.md +33 -0
  372. package/smoke/harness/constraints/issue-taxonomy.md +87 -0
  373. package/smoke/harness/constraints/source-of-truth.md +19 -0
  374. package/smoke/harness/constraints/stage-gates.md +27 -0
  375. package/smoke/harness/profiles/enterprise.yaml +89 -0
  376. package/smoke/harness/profiles/frontend.yaml +93 -0
  377. package/smoke/harness/profiles/lite.yaml +55 -0
  378. package/smoke/harness/profiles/sdlc.yaml +83 -0
  379. package/smoke/harness/workflow/completion-contract.yaml +102 -0
  380. package/smoke/harness/workflow/skill-io-contract.yaml +160 -0
  381. package/smoke/harness/workflow/stage-contracts.yaml +53 -0
  382. package/smoke/harness/workflow/state-machine.yaml +65 -0
  383. package/spec/SKILL.md +78 -0
  384. package/spec/harness/README.md +104 -0
  385. package/spec/harness/THIS_SKILL.md +60 -0
  386. package/spec/harness/best-practices/README.md +52 -0
  387. package/spec/harness/best-practices/agent-orchestration.md +45 -0
  388. package/spec/harness/best-practices/design-handoff.md +41 -0
  389. package/spec/harness/best-practices/frontend.md +43 -0
  390. package/spec/harness/best-practices/project-constraints-template.md +66 -0
  391. package/spec/harness/best-practices/quality.md +41 -0
  392. package/spec/harness/best-practices/sdlc.md +49 -0
  393. package/spec/harness/best-practices/system.md +41 -0
  394. package/spec/harness/constraints/evidence-rules.md +33 -0
  395. package/spec/harness/constraints/issue-taxonomy.md +87 -0
  396. package/spec/harness/constraints/source-of-truth.md +19 -0
  397. package/spec/harness/constraints/stage-gates.md +27 -0
  398. package/spec/harness/profiles/enterprise.yaml +89 -0
  399. package/spec/harness/profiles/frontend.yaml +93 -0
  400. package/spec/harness/profiles/lite.yaml +55 -0
  401. package/spec/harness/profiles/sdlc.yaml +83 -0
  402. package/spec/harness/workflow/completion-contract.yaml +102 -0
  403. package/spec/harness/workflow/skill-io-contract.yaml +160 -0
  404. package/spec/harness/workflow/stage-contracts.yaml +53 -0
  405. package/spec/harness/workflow/state-machine.yaml +65 -0
  406. package/task/SKILL.md +85 -0
  407. package/task/harness/README.md +104 -0
  408. package/task/harness/THIS_SKILL.md +60 -0
  409. package/task/harness/best-practices/README.md +52 -0
  410. package/task/harness/best-practices/agent-orchestration.md +45 -0
  411. package/task/harness/best-practices/design-handoff.md +41 -0
  412. package/task/harness/best-practices/frontend.md +43 -0
  413. package/task/harness/best-practices/project-constraints-template.md +66 -0
  414. package/task/harness/best-practices/quality.md +41 -0
  415. package/task/harness/best-practices/sdlc.md +49 -0
  416. package/task/harness/best-practices/system.md +41 -0
  417. package/task/harness/constraints/evidence-rules.md +33 -0
  418. package/task/harness/constraints/issue-taxonomy.md +87 -0
  419. package/task/harness/constraints/source-of-truth.md +19 -0
  420. package/task/harness/constraints/stage-gates.md +27 -0
  421. package/task/harness/profiles/enterprise.yaml +89 -0
  422. package/task/harness/profiles/frontend.yaml +93 -0
  423. package/task/harness/profiles/lite.yaml +55 -0
  424. package/task/harness/profiles/sdlc.yaml +83 -0
  425. package/task/harness/workflow/completion-contract.yaml +102 -0
  426. package/task/harness/workflow/skill-io-contract.yaml +160 -0
  427. package/task/harness/workflow/stage-contracts.yaml +53 -0
  428. package/task/harness/workflow/state-machine.yaml +65 -0
  429. package/verify/SKILL.md +70 -0
  430. package/verify/harness/README.md +104 -0
  431. package/verify/harness/THIS_SKILL.md +59 -0
  432. package/verify/harness/best-practices/README.md +52 -0
  433. package/verify/harness/best-practices/agent-orchestration.md +45 -0
  434. package/verify/harness/best-practices/design-handoff.md +41 -0
  435. package/verify/harness/best-practices/frontend.md +43 -0
  436. package/verify/harness/best-practices/project-constraints-template.md +66 -0
  437. package/verify/harness/best-practices/quality.md +41 -0
  438. package/verify/harness/best-practices/sdlc.md +49 -0
  439. package/verify/harness/best-practices/system.md +41 -0
  440. package/verify/harness/constraints/evidence-rules.md +33 -0
  441. package/verify/harness/constraints/issue-taxonomy.md +87 -0
  442. package/verify/harness/constraints/source-of-truth.md +19 -0
  443. package/verify/harness/constraints/stage-gates.md +27 -0
  444. package/verify/harness/profiles/enterprise.yaml +89 -0
  445. package/verify/harness/profiles/frontend.yaml +93 -0
  446. package/verify/harness/profiles/lite.yaml +55 -0
  447. package/verify/harness/profiles/sdlc.yaml +83 -0
  448. package/verify/harness/workflow/completion-contract.yaml +102 -0
  449. package/verify/harness/workflow/skill-io-contract.yaml +160 -0
  450. package/verify/harness/workflow/stage-contracts.yaml +53 -0
  451. package/verify/harness/workflow/state-machine.yaml +65 -0
  452. package/design-handoff/design-system/SKILL.md +0 -124
  453. package/design-handoff/figma-generate-hifi/SKILL.md +0 -131
  454. package/design-handoff/figma-to-code/SKILL.md +0 -266
  455. package/design-handoff/ue-mcp/SKILL.md +0 -185
  456. package/design-handoff/ux-wireframe/SKILL.md +0 -129
  457. package/frontend/a11y-web/SKILL.md +0 -170
  458. package/frontend/api-contract-ts/SKILL.md +0 -276
  459. package/frontend/design-frontend/SKILL.md +0 -184
  460. package/frontend/dor-dod-frontend/SKILL.md +0 -115
  461. package/frontend/feature-tasks-frontend/SKILL.md +0 -247
  462. package/frontend/i18n/SKILL.md +0 -297
  463. package/frontend/nfr-web/SKILL.md +0 -259
  464. package/frontend/performance-web/SKILL.md +0 -300
  465. package/frontend/react-components/SKILL.md +0 -212
  466. package/frontend/react-naming/SKILL.md +0 -225
  467. package/frontend/review-frontend/SKILL.md +0 -127
  468. package/frontend/security-web/SKILL.md +0 -287
  469. package/frontend/spec-frontend/SKILL.md +0 -142
  470. package/frontend/styling-system/SKILL.md +0 -275
  471. package/frontend/testing-web/SKILL.md +0 -253
  472. package/frontend/typescript/SKILL.md +0 -220
  473. package/meta/philosophy/SKILL.md +0 -237
  474. package/quality/a11y-principles/SKILL.md +0 -156
  475. package/quality/code-hygiene/SKILL.md +0 -137
  476. package/quality/release/SKILL.md +0 -210
  477. package/quality/security-owasp/SKILL.md +0 -158
  478. package/quality/testing-pyramid/SKILL.md +0 -194
  479. package/sdlc/archive/SKILL.md +0 -268
  480. package/sdlc/bugfix/SKILL.md +0 -183
  481. package/sdlc/bugfix-tasks/SKILL.md +0 -233
  482. package/sdlc/coding/SKILL.md +0 -219
  483. package/sdlc/design/SKILL.md +0 -280
  484. package/sdlc/dor-dod/SKILL.md +0 -121
  485. package/sdlc/feature/SKILL.md +0 -183
  486. package/sdlc/proposal/SKILL.md +0 -272
  487. package/sdlc/refactor/SKILL.md +0 -222
  488. package/sdlc/refactor-tasks/SKILL.md +0 -266
  489. package/sdlc/reviewing/SKILL.md +0 -163
  490. package/sdlc/spec/SKILL.md +0 -300
  491. package/sdlc/standard-dev-flow/SKILL.md +0 -115
  492. package/sdlc/task/SKILL.md +0 -117
  493. package/sdlc/task-evidence/SKILL.md +0 -221
  494. package/sdlc/task-structure/SKILL.md +0 -154
  495. package/sdlc/task-tracking/SKILL.md +0 -214
  496. package/sdlc/verify/SKILL.md +0 -180
  497. package/system/adr/SKILL.md +0 -170
  498. package/system/agent-orchestration/SKILL.md +0 -115
  499. package/system/architecture/SKILL.md +0 -183
  500. package/system/glossary/SKILL.md +0 -142
  501. package/system/nfr-baseline/SKILL.md +0 -157
  502. package/system/project-constraints-template/SKILL.md +0 -242
package/README.md CHANGED
@@ -1,285 +1,193 @@
1
1
  # @captain_z/zsk-skills
2
2
 
3
- ZNorth Standard Kit 的内容包:**51 颗原子 skill**,按领域分簇组织,通过 `npx @captain_z/zsk add` 可安装到 Claude / Codex / Gemini 等多 harness。
3
+ ZNorth Standard Kit 的可安装 skill 内容包。安装面现在只保留从根级 `skills/` 生成的 **core harness-first skills**;旧 `.best-practices/` 不再批量生成 installable skills,只作为扁平参考资料。
4
+
5
+ 包内共有 **19 颗 installable skills**,全部来自根级 `skills/`。
4
6
 
5
7
  ## 合规审查(ARCHITECTURE §4.4 硬指标)
6
8
 
7
9
  | 检查项 | 结果 | 说明 |
8
10
  | ---------------------------------------------------------------------------------------- | ------- | ----------------------------------------------------- |
9
- | frontmatter 完整(`name` / `description` / `category` / `domain` / `tier` / `triggers`) | ✓ 51/51 | 结构化 lint 通过 |
10
- | `name` `zsk:` 前缀,扁平 slug | ✓ 51/51 | 命名空间统一 |
11
- | `description` 使用直接陈述风格,触发词放入 `triggers` | ✓ 51/51 | 触发语义由 description + triggers 共同承担 |
12
- | `category` / `domain` / `tier` 枚举值合法 | ✓ 51/51 | stage/workflow/standard/resource/meta · core/optional |
13
- | `triggers` 数组非空 | ✓ 51/51 | 每颗至少 4 个关键词 |
11
+ | frontmatter 完整(`name` / `description` / `category` / `domain` / `tier` / `triggers`) | ✓ 19/19 | core root `skills/` 生成 |
12
+ | `name` 使用裸 slug,扁平且不含连字符 | ✓ 19/19 | LLM 原生 skill 入口保持简洁;CLI 选择层使用 `zsk:<slug>` |
13
+ | `description` 简洁表达职责和使用时机 | ✓ 19/19 | 面向索引阅读;triggers 留给机器使用 |
14
+ | `category` / `domain` / `tier` 枚举值合法 | ✓ 19/19 | stage/utility · core |
15
+ | `triggers` 数组非空 | ✓ 19/19 | 至少含裸 slug |
14
16
  | 无硬编码项目名 / 技术栈(统一 `{{config.*}}` 占位符) | ✓ | harness-neutral |
15
- | `related:` 相对路径合法(build 已重写) | ✓ | 无孤儿引用 |
16
- | 单文件 ≤ 300 行 | ✓ 51/51 | `lint-frontmatter` 作为 error 强制 |
17
+ | `related:` 相对路径合法 | ✓ | core 不依赖参考层生成物 |
18
+ | 单文件 ≤ 300 行 | ✓ 19/19 | core 由 `lint:harness` 强制 |
17
19
 
18
20
  当前 `max-lines` 已由 `tools/lint-frontmatter.ts` 作为 error 强制;新增或修改 skill 不应超过 300 行。
19
21
 
20
22
  ## 使用方法通则
21
23
 
22
- zsk skill 是 LLM **按需自动触发**的资产:
24
+ zsk skill 是 LLM **按需自动触发**的资产。用户通常只做两件事:先安装 skill,再在业务项目里用 `zsk init` 建知识工作区。
23
25
 
24
- 1. **安装**:`npx @captain_z/zsk add` → 选 bundle(或 custom 多选)+ 目标路径(`~/.claude/skills/` / `~/.codex/skills/` / 自定义)→ 落盘
26
+ 1. **安装**:`npx @captain_z/zsk add` → 选 profile bundle(或 custom 多选)+ 目标路径(`~/.claude/skills/` / `~/.codex/skills/` / 自定义)→ 落盘
25
27
  2. **自动发现**:LLM(Claude Code / Codex / Gemini CLI)会话启动时扫描 skill 目录,读取每份 `SKILL.md` 的 frontmatter
26
28
  3. **自动触发**:遇到匹配 `description` 或 `triggers` 的任务时,LLM 载入对应 SKILL.md 的完整内容
27
- 4. **手动触发**(可选):会话中显式说 "用 `zsk:spec`"、" `zsk:feature` 工作流",LLM 直接载入指定 skill
29
+ 4. **手动触发**(可选):会话中显式说 "用 `zsk:dispatch` 调度"、" `zsk:spec` 写规格",LLM 直接载入指定 skill
30
+
31
+ ## Profile 选择
32
+
33
+ Profile 是流程组合策略,不是新的 skill。Atomic skills 仍然平铺在 `skills/`,profile 只决定默认安装集合、阶段顺序、可选节点和严格度。
34
+
35
+ | profile | skills | 适用场景 |
36
+ | --- | ---: | --- |
37
+ | `zsk-lite` | 7 | 小修、小项目、脚本、低风险任务 |
38
+ | `zsk-sdlc` | 16 | 标准工程交付;需求、实现、审查、验证、验收、归档 |
39
+ | `zsk-frontend` | 17 | UI/UX/browser-facing 交付;强化 demo、视觉证据、前端质量门禁 |
40
+ | `zsk-enterprise` | 17 | 高治理交付;要求 deploy、验收、归档、审计证据 |
41
+ | `sdlc-only` | 19 | 旧入口兼容;安装全部 core skills |
42
+
43
+ ## Skill 搭配流程图
44
+
45
+ `dispatch` 是 ZSK 给 OMX 的调度适配入口;`flow` 是恢复下一合法阶段的状态机入口;profile 决定主线顺序、可选节点和严格度,其他 skill 按阶段负责一段明确产物。遇到缺资料、缺证据、缺 owner 或发现缺陷时,阶段不会静默跳过,而是写 issue 或回到前置阶段补齐。
46
+
47
+ ```mermaid
48
+ flowchart TD
49
+ Start([开始或恢复工作]) --> Dispatch[zsk:dispatch<br/>让 OMX 按 ZSK workflow 调度]
50
+ Dispatch --> Flow[zsk:flow<br/>读取状态与资源]
51
+ Flow --> Prepare[zsk:prepare<br/>收集 SRS/PRD/API/设计/测试来源]
52
+ Prepare --> Proposal[zsk:proposal<br/>定义 why / scope / non-goals]
53
+ Proposal --> Spec[zsk:spec<br/>写 FR/NFR/AC/场景]
54
+ Spec --> Design[zsk:design<br/>映射接口/数据流/风险]
55
+ Design --> Task[zsk:task<br/>拆任务与证据钩子]
56
+ Task --> Coding[zsk:coding<br/>小步实现]
57
+ Coding --> Smoke[zsk:smoke<br/>本地证明变更可运行]
58
+ Smoke --> Review[zsk:review<br/>阻塞式实现审查]
59
+ Review --> Commit[zsk:commit<br/>review 后 scoped commit]
60
+ Commit --> Ready[zsk:ready<br/>整理待验收证据]
61
+ Ready --> Verify[zsk:verify<br/>独立验证 claim]
62
+ Verify --> Acceptance[zsk:acceptance<br/>业务接受或拒绝]
63
+ Acceptance --> Archive[zsk:archive<br/>归档产物与学习反馈]
64
+
65
+ Coding -.发现问题.-> Issue[zsk:issue<br/>缺陷/阻塞/风险/问题]
66
+ Smoke -.失败.-> Issue
67
+ Review -.拒绝.-> Issue
68
+ Verify -.不通过.-> Issue
69
+ Issue --> Coding
70
+ Commit -.需要环境.-> Deploy[zsk:deploy<br/>部署到非生产/演示环境]
71
+ Deploy -.进入验证.-> Ready
72
+ Demo[zsk:demo<br/>正式测试前演示] --> Defect[zsk:defect<br/>QA 缺陷归类与复现]
73
+ Defect --> Coding
74
+ Commit -.需要演示.-> Demo
75
+ ```
76
+
77
+ ## 常见用法
78
+
79
+ | 目标 | 推荐说法或命令 | 结果 |
80
+ | --- | --- | --- |
81
+ | 安装默认 core skills | `npx @captain_z/zsk add` | 交互选择 target 和 bundle |
82
+ | CI 安装轻量 profile | `npx @captain_z/zsk add zsk-lite --target=~/.claude/skills --yes` | 非交互安装 7 颗常用 skills |
83
+ | CI 安装标准 SDLC profile | `npx @captain_z/zsk add zsk-sdlc --target=~/.claude/skills --yes` | 非交互安装 16 颗标准 workflow skills |
84
+ | Claude plugin 安装 | `/plugin marketplace add codeshareman/zsk` 后 `/plugin install zsk@zsk` | 使用 `/zsk:<slug>` 命令面 |
85
+ | GitHub skills 管理器安装 | `npx skills add codeshareman/zsk` | 从仓库根 `skills/` 安装;不要加 `@` |
86
+ | 不确定该用哪个 skill | "用 `zsk:dispatch` 调度" | 让 OMX 围绕 ZSK skills 分配 subagents |
87
+ | 恢复一个项目的下一步 | "用 `zsk:flow` 继续" | 读取配置、阶段文档和 blocker,选择合法下一阶段 |
88
+ | 明确进入某阶段 | "用 `zsk:spec` 写模块规格" | 只载入对应 stage contract |
28
89
 
29
90
  **典型消费路径**(production,安装后):
30
91
 
31
- - `~/.claude/skills/<domain>/<slug>/SKILL.md` — Claude Code
32
- - `~/.codex/skills/<domain>/<slug>/SKILL.md` — Codex
33
- - `@captain_z/zsk-skills/<domain>/<slug>/SKILL.md` — 通过 npm
92
+ - `~/.claude/skills/zsk-<slug>/SKILL.md` — Claude Code / flat target
93
+ - `~/.codex/skills/zsk-<slug>/SKILL.md` — Codex / flat target
94
+ - `./.claude-plugin/skills/<slug>/SKILL.md` + `commands/<slug>.md` Claude plugin local target
95
+ - `@captain_z/zsk-skills/<slug>/SKILL.md` — 通过 npm 读
96
+
97
+ 仓库根还发布 `.claude-plugin/plugin.json` 和 `.claude-plugin/marketplace.json`,用于 Claude Code `/plugin marketplace add codeshareman/zsk` + `/plugin install zsk@zsk`;根级 `skills/` 同时兼容 `npx skills add codeshareman/zsk`。
34
98
 
35
99
  ## 和项目知识工作区的关系
36
100
 
37
101
  `zsk init` 生成的 `.zsk/config.yaml`、`docs/SYSTEM-SPEC.md`、`.raws/`、`docs/` 和 `.issues/` 是默认项目上下文。CLI 负责创建最小骨架、使用 package-owned schema 校验、刷新 `{paths.raws}/manifest.json`,并通过 `zsk config check` / `zsk check` 做确定性校验。
38
102
 
39
- Skills 负责更需要判断的部分:理解 SRS、PRD、API 契约、Figma/Modao、测试资产和设计资产,发现模块边界,做跨事实源冲突分析,使用 Computer Use / Browser Use 验证运行时行为,并把问题写入配置的 issue 根。Skills 必须通过 `.zsk/config.yaml` 和 `docs/{module}/module.yaml` 解析路径,不能硬编码 `.raws`、`docs` 或 `.issues`。
103
+ Skills 负责更需要判断的部分:理解 SRS、PRD、API 契约、Figma/Modao、测试资产和设计资产,发现模块边界,做跨事实源冲突分析,并把问题写入配置的 issue 根。运行时验证默认用 Playwright 产生可复现 evidence;Browser Use 用于复用已登录浏览器/profile/SSO 状态;Computer Use 只用于结构化 Web 自动化不可达或需要视觉/系统级判断的场景。Skills 必须通过 `.zsk/config.yaml` 和 `docs/{module}/module.yaml` 解析路径,不能硬编码 `.raws`、`docs` 或 `.issues`。
40
104
 
41
- 每个阶段都要把确认过的决策、约束、例外和验证结果写回持久文件。缺少 Documentation Feedback 时,`zsk check` 可以把它作为阶段未收口的证据。
105
+ 每个 skill/stage 的输入、输出、工具/能力、脚本策略和 Browser Use 策略由 harness 的 `skill-io-contract.yaml` 约束;完成后的产物路径、issue 索引同步和确认后的文档反哺由 `completion-contract.yaml` 约束。缺少 Documentation Feedback 时,`zsk check` 可以把它作为阶段未收口的证据。
42
106
 
43
107
  ## 领域总览
44
108
 
109
+ 包内只保留默认可安装的 core 领域。Frontend、quality、design-handoff 等内容仍在 `.best-practices/`,按需读取,不进入默认安装面。
110
+
45
111
  | 领域 | skill 数 | 职责 |
46
112
  | ----------------- | -------- | ------------------------------------------ |
47
- | `sdlc/` | 18 | 7 阶段 SDLC + 3 变更工作流 + task 执行框架 |
48
- | `frontend/` | 16 | React + Web 层实现规范 |
49
- | `quality/` | 5 | 跨栈质量原则 |
50
- | `design-handoff/` | 5 | 设计交付方法论 |
51
- | `system/` | 6 | 工程宪法级资源 |
52
- | `meta/` | 1 | 元信息 |
53
- | **总计** | **51** | |
113
+ | `skills/` | 19 | harness-first 默认工作流入口 |
114
+ | **总计** | **19** | |
54
115
 
55
116
  ## 安装套件(bundles.yaml)
56
117
 
57
118
  | name | skills | 场景 |
58
119
  | ------------------------------ | ------ | --------------------------------------------- |
59
- | `sdlc-only` | 11 | 纯流程骨架(7 阶段 + 3 工作流 + Agent 编排),不涉及技术栈 |
60
- | `frontend-project`(推荐) | 30 | SDLC 10 + Agent 编排 + Frontend 16 + Quality 3 |
61
- | `frontend-with-design-handoff` | 35 | frontend-project + 设计交付 5 |
120
+ | `zsk-lite` | 7 | 小型低风险任务;coding smoke review commit |
121
+ | `zsk-sdlc`(推荐) | 16 | 标准工程交付;完整需求、实现、审查、验证、验收、归档链路 |
122
+ | `zsk-frontend` | 17 | 前端/视觉/browser-facing 任务;强化 demo 和前端质量门禁 |
123
+ | `zsk-enterprise` | 17 | 高治理交付;要求 deploy、验收、归档、审计证据 |
124
+ | `sdlc-only` | 19 | 旧入口兼容;安装全部 core skills |
125
+ | `frontend-project` | 19 | 旧入口兼容;推荐改用 `zsk-frontend` |
126
+ | `frontend-with-design-handoff` | 19 | 旧入口兼容;推荐改用 `zsk-frontend` |
62
127
  | `custom` | 交互 | 通过 `zsk add` 任意多选 |
63
128
 
64
- <!-- Auto-generated by tools/catalog.ts — do not edit manually. Total: 51 skills -->
65
-
66
- ## Skill 清单(按领域)
67
-
68
- > 内容由 `tools/catalog.ts` 从各 SKILL.md frontmatter 生成。重生成:`pnpm catalog`。
69
-
70
- ### `sdlc/` — SDLC · 7 阶段 + 3 变更工作流 + task 框架 (18)
71
-
72
- - **`zsk:proposal`** *[stage 1 · stage · core]*
73
- New-change framing (feature / bugfix / refactor) before spec work — why, success criteria, out-of-scope boundary, alternatives considered, and risks. Always the first stage of the 7-stage SDLC.
74
- 触发:`new feature proposal` · `bug report` · `refactor trigger` · `SMART goals`
75
-
76
- - **`zsk:spec`** *[stage 2 · stage · core]*
77
- Behavioral contract writing after proposal approval — scope, numbered functional and non-functional requirements, scenarios, acceptance criteria, edge cases, and impact boundaries. Stage 2 of the 7-stage SDLC.
78
- 触发:`writing spec` · `behavior contract` · `acceptance criteria` · `numbered requirements`
79
-
80
- - **`zsk:design`** *[stage 3 · stage · core]*
81
- Solution design after spec freeze — current-state scan, architectural decisions, implementation mapping, delivery slices, risks, rollback, and observability. Stage 3 of the 7-stage SDLC.
82
- 触发:`technical design` · `solution design` · `architecture decision` · `current state scan`
83
-
84
- - **`zsk:coding`** *[stage 4 · stage · core]*
85
- Implementation execution after design freeze — smallest viable change, auditable delivery batches, explicit TDD rules by change type, continuous evidence capture, and local quality gates before review. Stage 4 of the 7-stage SDLC.
86
- 触发:`implementing design` · `auditable delivery batches` · `local quality gates` · `smallest viable change`
87
-
88
- - **`zsk:reviewing`** *[stage 5 · stage · core]*
89
- PR 代码审查与 AI 多维审查核心规范。包含 Scope 偏移检测、多视角 Sub-Agent 审查、测试执行流分析、代码整洁/重构纪律、置信度校准以及按严重性排序的判定协议。
90
- 触发:`code review` · `PR review` · `审查合并请求` · `review this PR`
91
-
92
- - **`zsk:verify`** *[stage 6 · stage · core]*
93
- Acceptance verification before merge — independent contract check, FR/NFR coverage, AC evidence, gate records, and verdict with reproducible proof. Stage 6 of the 7-stage SDLC.
94
- 触发:`acceptance verification` · `evidence before assertion` · `FR coverage matrix` · `AC evidence`
95
-
96
- - **`zsk:archive`** *[stage 7 · stage · core]*
97
- Iteration closing / archive — move historical snapshots to docs/{module}/archive/, write postmortem (P0/P1 mandatory), update changelog (SemVer + Keep a Changelog), flush ADRs, update SYSTEM-SPEC if cross-module constraints emerged, feed back to standards/system docs. Stage 7 of the 7-stage SDLC.
98
- 触发:`archive iteration` · `postmortem` · `changelog` · `ADR flush`
99
-
100
- - **`zsk:bugfix-tasks`** *[core]*
101
- Bugfix task template with TDD enforcement — Step 1 Red (write failing reproduction test), Step 2 Green (minimal fix, no opportunistic refactor), Step 3 Regression (adjacent scenarios), Step 4 Evidence (before/after reproduction). Requires Superpowers' 3 confidence questions before starting.
102
- 触发:`bugfix task template` · `TDD bug fix` · `red green regression` · `bug confidence questions`
103
-
104
- - **`zsk:dor-dod`** *[core]*
105
- DoR/DoD gates between SDLC stages — generic DoR/DoD for all change types; frontend-specific rows (UE matrix / ue-mcp / 三语 i18n / 视觉回归 / axe) are in zsk:dor-dod-frontend.
106
- 触发:`definition of ready` · `definition of done` · `DoR DoD` · `task gate`
107
-
108
- - **`zsk:refactor-tasks`** *[core]*
109
- Refactor task template (characterization + small-step atomic) — Step 1 capture behavior baseline, Step 2 apply one Fowler technique per atomic commit (revert on red), Step 3 Parallel Change for large refactors (Expand → Migrate → Contract), Step 4 prepare behavior-unchanged evidence.
110
- 触发:`refactor task template` · `characterization baseline` · `Fowler techniques` · `Parallel Change tasks`
111
-
112
- - **`zsk:task`** *[core]*
113
- Cross-stage task execution mindset — what a task is, how it threads spec → verify, which template to pick by change type, cross-stage hard principles. Not for writing a specific task; use zsk:task-structure for that.
114
- 触发:`task framework` · `task execution overview` · `cross-stage tasks` · `which task template`
115
-
116
- - **`zsk:task-evidence`** *[core]*
117
- Task verification evidence discipline — FR coverage matrix (every FR/NFR from spec has coverage task + acceptance evidence), AC checklist with reproducible links, validation records per gate (lint/type-check/test/security/etc.). Enforces "evidence before assertion" — links must be clickable and reproducible.
118
- 触发:`FR coverage matrix` · `AC verification` · `validation record` · `evidence links`
119
-
120
- - **`zsk:task-structure`** *[core]*
121
- tasks.md authoring discipline — task granularity (0.5-2 person-days), two-level structure (parent/child, no deeper), estimation unit (T-shirt or Fibonacci), required fields per task (status/owner/covers-FR/deliverable/verification), FR coverage numbering rules.
122
- 触发:`task granularity` · `task estimation` · `T-shirt sizing` · `story points`
123
-
124
- - **`zsk:task-tracking`** *[core]*
125
- Task execution tracking — dependencies (Mermaid graph), blockers (dated log with severity H/M/L and escalation rules), milestones, auditable LLM execution batches, and task state transitions (TODO → DOING → DONE, with BLOCKED requiring log entry).
126
- 触发:`task dependency graph` · `blocker log` · `milestones` · `task state flow`
127
-
128
- - **`zsk:bugfix`** *[workflow · core]*
129
- Bugfix end-to-end orchestration — triage → reproduce → RCA (5 Whys with confidence questions) → TDD fix (red first) → regression coverage → postmortem (P0/P1 mandatory). Enforces Superpowers' bug confidence questioning discipline.
130
- 触发:`bug fix workflow` · `fix defect` · `RCA` · `5 whys`
131
-
132
- - **`zsk:feature`** *[workflow · core]*
133
- Feature end-to-end orchestration across 7 SDLC stages — brainstorming → writing-plans → plan-eng-review → executing-plans+TDD → requesting/receiving-code-review → verification-before-completion → finishing-a-development-branch.
134
- 触发:`new feature workflow` · `feature end to end` · `start feature` · `feature stages`
135
-
136
- - **`zsk:refactor`** *[workflow · core]*
137
- Behavior-preserving refactor discipline — Fowler catalog, characterization tests as baseline, small atomic commits, Parallel Change / Strangler Fig for large refactors. Enforces "behavior preserved" as a hard contract (any behavior change means it is not a refactor).
138
- 触发:`refactor workflow` · `Fowler refactoring` · `characterization test` · `Parallel Change`
139
-
140
- - **`zsk:standard-dev-flow`** *[workflow · core]*
141
- 交互式标准开发工作流,包含 Prepare 预检 + 7 阶段 SDLC(Proposal, Spec, Design, Coding, Reviewing, Verify, Archive)。通过强门禁、可审计批次和多视角审查,保障高质量开发落地。
142
- 触发:`standard dev flow` · `start a new feature workflow` · `execute enterprise workflow` · `7 stage development`
143
-
144
- ### `frontend/` — Frontend · React + Web 层实现规范 (16)
145
-
146
- - **`zsk:spec-frontend`** *[stage 2 · stage · optional]*
147
- Frontend component/page spec.md authoring — adds Component Public Contract (Props / Events / TS types), UE state matrix with a11y attributes, UE/MCP reference, and the 6-category Frontend NFR (performance / a11y / security / i18n / compat / observability). Extends the generic zsk:spec framework.
148
- 触发:`frontend spec` · `Component Public Contract` · `Props Event Contract` · `UE state matrix`
149
-
150
- - **`zsk:design-frontend`** *[stage 3 · stage · optional]*
151
- Frontend module design.md authoring — adds Props/state/event implementation mapping, UE-state-to-structure mapping, Figma-to-implementation mapping, performance budget (Core Web Vitals), ErrorBoundary placement. Extends the generic zsk:design framework.
152
- 触发:`frontend design` · `Props implementation mapping` · `UE state to structure` · `Figma to implementation`
153
-
154
- - **`zsk:review-frontend`** *[stage 5 · stage · optional]*
155
- Frontend PR code review — frontend-specific self-checklist and reviewer checklist covering TypeScript red lines (no any / @ts-ignore), React hooks rules, dangerouslySetInnerHTML, large-list performance hazards, visual regression, i18n three-language sync, jsx-a11y. Extends zsk:reviewing generic checklist.
156
- 触发:`frontend code review` · `React review checklist` · `TypeScript red lines` · `hooks review`
157
-
158
- - **`zsk:dor-dod-frontend`** *[optional]*
159
- Frontend-specific DoR/DoD for SDLC stage transitions — frontend-specific rows on top of the generic checklist. Covers UE state matrix completeness, ue-mcp.md registration, visual regression, three-language i18n sync, a11y (keyboard/aria/focus), frontend NFR (CWV) evidence.
160
- 触发:`frontend DoR DoD` · `frontend definition of ready done` · `UE matrix gate` · `visual regression gate`
161
-
162
- - **`zsk:feature-tasks-frontend`** *[optional]*
163
- Frontend component/page feature task template — 7-category mandatory (事实源对齐 / Props 契约 / UE-MCP 刷新 / UE 状态 / 测试 / 视觉回归 / 质量门禁). Enforces TDD-first, contract-driven, evidence-before-assertion.
164
- 触发:`frontend feature tasks` · `component tasks template` · `7 category tasks` · `Props UE state visual regression`
165
-
166
- - **`zsk:nfr-web`** *[optional]*
167
- Web-side NFR thresholds for the 7-category framework — Core Web Vitals (LCP/INP/CLS/TTFB/TTI targets), WCAG 2.1 AA itemized rules, Web security NFR items, i18n language list + baseline + entry + RTL, browser/OS/device compatibility matrix, responsive breakpoints, observability (web-vitals + error reporting), reliability (ErrorBoundary + timeout + retry). Inherits system/nfr-baseline; modules declare deviations only.
168
- 触发:`Web NFR` · `CWV thresholds` · `WCAG AA rules` · `browser matrix`
169
-
170
- - **`zsk:a11y-web`** *[standard · optional]*
171
- React/JSX accessibility implementation — label association (htmlFor/wrap), aria props usage, Modal focus trap (inert + initialFocus + restoreFocus), dialog role, live regions for async, skip link, axe-core + jsx-a11y toolchain, keyboard event handlers, prefers-reduced-motion. Implementation layer; principles (WCAG, POUR, contrast) live in quality/a11y-principles.
172
- 触发:`jsx a11y` · `focus trap` · `Modal accessibility` · `axe-core`
173
-
174
- - **`zsk:api-contract-ts`** *[standard · optional]*
175
- TypeScript frontend × backend API contract — never hand-write API types, always consume from the shared types package or generated codegen. Covers source-of-truth pattern (backend-owned types), codegen workflows (OpenAPI / GraphQL / tRPC / Protobuf), breaking-change handling, version discipline, runtime validation (Zod at boundary), and service-layer shape. Pairs with typescript.md red lines.
176
- 触发:`API type sync` · `do not hand-write API types` · `OpenAPI codegen` · `GraphQL codegen`
177
-
178
- - **`zsk:i18n`** *[standard · optional]*
179
- Frontend module i18n implementation — unified entry (i18n.t with mandatory fallback), key namespace structure (namespace.module.leaf_key), three-language sync rule (commit-atomic), ICU MessageFormat for plural/select, Intl.* for date/number/currency, RTL declaration, React Trans component for JSX interpolation. Replaces standards/i18n for frontend scope.
180
- 触发:`i18n implementation` · `key namespace` · `fallback baseline` · `ICU plural`
181
-
182
- - **`zsk:performance-web`** *[standard · optional]*
183
- React / Web frontend performance for Core Web Vitals — CWV thresholds (LCP/INP/CLS/TTFB/TTI), React memoization discipline (when to memo vs not), virtualization for lists ≥ 200, lazy loading via React.lazy + Suspense + IntersectionObserver, bundle splitting + tree-shaking, image srcset + loading="lazy", debounce/throttle, re-render diagnosis with React DevTools Profiler. Implementation layer; budget framework in system/nfr-baseline + frontend/nfr-web.
184
- 触发:`Core Web Vitals` · `LCP INP CLS` · `React memo` · `virtual scrolling`
185
-
186
- - **`zsk:react-components`** *[standard · optional]*
187
- React component API design — layering (UI/logic separation via hooks), composition vs configuration (compound components over flat-prop explosion), granularity (5-question checklist), controlled vs uncontrolled boundary, Props API design. React-specific implementation of generic component discipline.
188
- 触发:`React component design` · `compound components` · `component granularity` · `controlled uncontrolled`
189
-
190
- - **`zsk:react-naming`** *[standard · optional]*
191
- React + TypeScript naming conventions — components, files, folders, variables, booleans, event handlers, event props, hooks, TS types/interfaces, constants, and i18n keys. Principles transfer to Vue/Svelte with syntax adjustments.
192
- 触发:`React naming` · `component file naming` · `event handler naming` · `boolean naming`
193
-
194
- - **`zsk:security-web`** *[standard · optional]*
195
- Web frontend security — XSS (React default escape + dangerouslySetInnerHTML red line + DOMPurify exception), URL protocol whitelist, Storage red lines (no sensitive data in Local/SessionStorage), CSRF token integration, console log scrubbing for production, CSP meta/header consumption, SRI for third-party scripts, clickjacking (frame-ancestors awareness), postMessage origin checks. Frontend UI is the convenience defense; backend is final.
196
- 触发:`dangerouslySetInnerHTML` · `XSS React` · `DOMPurify` · `LocalStorage sensitive`
197
-
198
- - **`zsk:styling-system`** *[standard · optional]*
199
- Frontend styling system discipline — scheme detection, naming conventions, nesting depth (≤3 layers), token usage rules (no hardcoded color/spacing), scope isolation, responsive breakpoints, and !important prohibition across Less / Sass / CSS Modules / Tailwind / CSS-in-JS.
200
- 触发:`CSS scheme detection` · `BEM naming` · `Less nesting` · `design token`
201
-
202
- - **`zsk:testing-web`** *[standard · optional]*
203
- Frontend tests for React codebases — full toolchain (Jest/Vitest + React Testing Library + renderHook + user-event + MSW + Playwright + Chromatic + jest-axe), test structure (AAA/GWT), mock strategy (MSW for HTTP, manual for modules), coverage thresholds (new code / global), and the component test template. Implementation layer; cross-stack principles live in quality/testing-pyramid.
204
- 触发:`Jest Vitest` · `React Testing Library` · `MSW mock service worker` · `Playwright`
129
+ <!-- Auto-generated by tools/catalog.ts — do not edit manually. Total: 19 skills -->
205
130
 
206
- - **`zsk:typescript`** *[standard · optional]*
207
- TypeScript in frontend codebases — red lines (no any / as any / @ts-ignore / empty interface / Object type), must-do (explicit types for public boundaries, union literals, strict + noUncheckedIndexedAccess), API types from backend (not hand-written), type vs interface, generics discipline, unknown over any. Complements quality/code-hygiene for cross-language hygiene.
208
- 触发:`TypeScript red lines` · `no any` · `strict mode` · `noUncheckedIndexedAccess`
131
+ ## Skill 清单(core skills)
209
132
 
210
- ### `quality/` Quality · 跨栈质量原则 (5)
133
+ > 内容由 `tools/catalog.ts` `packages/skills/*/SKILL.md` frontmatter 生成。重生成:`pnpm catalog`。
211
134
 
212
- - **`zsk:a11y-principles`** *[standard · optional]*
213
- Accessibility principles at the concept level — WCAG 2.1 AA baseline, POUR principles, keyboard operation matrix, focus management, aria semantics, contrast ratios, don't-rely-on-color, reduced motion. For Web/JSX implementation (axe-core, jsx-a11y, focus traps in Modal, etc.) see frontend/a11y-web.md.
214
- 触发:`accessibility principles` · `WCAG AA` · `POUR` · `keyboard matrix`
135
+ ### `<slug>/` Core · harness-first 默认工作流入口 (19)
215
136
 
216
- - **`zsk:code-hygiene`** *[standard · optional]*
217
- Code hygiene for any language comment policy (WHY not WHAT), import ordering principle, formatter discipline, generic forbidden patterns (TODO comments, commented-out code, signature-like comments). Stack-specific rules (TypeScript red lines, React naming) are in frontend/*.
218
- 触发:`code hygiene` · `comment policy` · `import order` · `WHY not WHAT`
137
+ - **`dispatch`**
138
+ At task intake, asks OMX to assign subagents to the right zsk skill from request, state, evidence, and blockers.
219
139
 
220
- - **`zsk:release`** *[standard · optional]*
221
- Version release discipline SemVer numbering, Keep a Changelog, Conventional Changelog auto-generation, environment promotion (dev→test→pre→prod), feature flag lifecycle, rollback strategy, hotfix process, canary monitoring. Works across language stacks; tool names are stack-specific examples.
222
- 触发:`SemVer` · `changelog` · `conventional changelog` · `hotfix`
140
+ - **`flow`**
141
+ Starts or resumes delivery by reading state, resources, and blockers, then selecting the next legal stage.
223
142
 
224
- - **`zsk:security-owasp`** *[standard · optional]*
225
- Cross-stack security discipline — OWASP Top 10 overview, CVE response SLAs, dependency license whitelist, supply chain hygiene, common lint red lines (eval/dynamic execution), and the "frontend UI is not the final defense" principle. Web-specific XSS/CSRF/Storage red lines are in frontend/security-web.md.
226
- 触发:`OWASP Top 10` · `CVE response` · `license whitelist` · `supply chain security`
143
+ - **`prepare`**
144
+ After project init, collects resource origins, snapshots evidence, and updates config/manifests before proposal/spec.
227
145
 
228
- - **`zsk:testing-pyramid`** *[standard · optional]*
229
- Cross-language test strategy & discipline — test pyramid ratio (unit 70 / integration 20 / e2e 10), AAA/GWT structure, coverage targets, and the three hard principles (evidence before assertion, Red-Green-Refactor, bug confidence questioning). Stack-specific tooling (Jest/RTL/MSW/Playwright) is in frontend/testing-web.md.
230
- 触发:`test pyramid` · `TDD discipline` · `test coverage target` · `AAA GWT structure`
146
+ - **`proposal`**
147
+ Before spec, frames the problem, scope, non-goals, success criteria, stakeholders, risks, and resource gaps.
231
148
 
232
- ### `design-handoff/` — Design Handoff · 设计交付方法论 (5)
149
+ - **`spec`**
150
+ After proposal, defines sourced FR/NFR, acceptance criteria, scenarios, edge cases, and open gaps.
233
151
 
234
- - **`zsk:figma-to-code`** *[optional]*
235
- Figma design node production code via MCP 7-step workflow (locate → extract structure → extract annotations → naming conversion → layout decoding → states → tokens), plus the 4-dimension "100% fidelity" verification (visual / interaction / semantic / responsive). Styling specifics live in zsk:styling-system.
236
- 触发:`figma to code` · `100 percent fidelity` · `node naming conversion` · `design annotations`
152
+ - **`design`**
153
+ After spec freeze, maps behavior to interfaces, data flow, rollout plan, risks, and implementation surfaces.
237
154
 
238
- - **`zsk:ue-mcp`** *[optional]*
239
- Design Source capture & MCP readout for modules with Figma/design input — Design Source (URL/node-id), MCP readout status, module-specific UE deviations from system baselines, and implementation mapping. Produces docs/{module}/ue-mcp.md + structured description.md snapshot in design-assets. Only records deviations, not duplicated baseline rules.
240
- 触发:`UE MCP context` · `figma snapshot` · `design source reference` · `module UE deviation`
155
+ - **`task`**
156
+ After design approval, creates executable tasks with dependencies, FR/AC coverage, owners, and evidence hooks.
241
157
 
242
- - **`zsk:ux-wireframe`** *[optional]*
243
- UX wireframe workflow before high-fidelity design turns spec scenarios into task flows, information architecture, low-fidelity layouts, and state coverage. Supports Pencil, Excalidraw, Mermaid, or text wireframes when Figma is not ready.
244
- 触发:`wireframe` · `low fidelity design` · `Pencil design` · `UX flow`
158
+ - **`coding`**
159
+ For approved tasks, implements small scoped diffs with tests, evidence, and blocker reporting.
245
160
 
246
- - **`zsk:design-system`** *[standard · optional]*
247
- Design system governance for Figma and frontend alignment — records tokens, component states, naming, responsive rules, accessibility baselines, and anti-generic visual constraints before high-fidelity generation or implementation.
248
- 触发:`design system` · `design tokens` · `Figma variables` · `component variants`
161
+ - **`smoke`**
162
+ After coding, proves changed behavior locally with targeted tests and relevant lint/typecheck/build evidence.
249
163
 
250
- - **`zsk:figma-generate-hifi`** *[workflow · optional]*
251
- Figma high-fidelity generation workflow from spec, UX wireframes, and design-system rules — creates or updates production-oriented Figma pages with state matrices, responsive variants, annotations, and anti-generic visual checks.
252
- 触发:`generate Figma` · `high fidelity design` · `figma generate design` · `hifi UI`
164
+ - **`review`**
165
+ After smoke, reviews implementation against scope, specs, tasks, tests, security, maintainability, and evidence.
253
166
 
254
- ### `system/` — System · 工程宪法级资源 (6)
167
+ - **`commit`**
168
+ After smoke and review pass, prepares a scoped commit with intent, evidence, and clean staging.
255
169
 
256
- - **`zsk:adr`** *[optional]*
257
- Cross-module long-lived architectural decision record — context, decision, rationale, alternatives considered, and consequences. Produces docs/system/adrs/ADR-NNNN-{slug}.md. Not for single-module implementation choices.
258
- 触发:`architecture decision record` · `ADR template` · `MADR` · `cross-module decision`
170
+ - **`demo`**
171
+ Before formal testing, runs planned demos and captures evidence without making acceptance claims.
259
172
 
260
- - **`zsk:agent-orchestration`** *[core]*
261
- Agent orchestration protocol for all zsk skills assigns independent work to specialized Sub-Agents, defines main-agent ownership, role boundaries, review integration, and fallback behavior when delegation is unavailable.
262
- 触发:`sub agent orchestration` · `parallel agents` · `multi agent workflow` · `agent responsibilities`
173
+ - **`defect`**
174
+ After formal QA reports findings, normalizes defects with repro, evidence, FR/AC links, and fix routing.
263
175
 
264
- - **`zsk:architecture`** *[optional]*
265
- Project system architecture documentation — C4 context diagram, tech stack baseline, module boundaries, routing, auth flow, data flow (request/state/contract), deployment topology, related ADRs. Frontend micro-frontend topology is an optional add-on section.
266
- 触发:`system architecture` · `C4 model` · `tech stack baseline` · `module boundaries`
176
+ - **`ready`**
177
+ Before independent verification, prepares a handoff with issue mappings, evidence, version, and regression notes.
267
178
 
268
- - **`zsk:glossary`** *[optional]*
269
- Project Ubiquitous Language maintenance single source for business terms, domain entities, state names, technical terms, and acronyms. Eliminates same-concept-different-names confusion across modules and backend contracts.
270
- 触发:`glossary` · `ubiquitous language` · `DDD terms` · `business term`
179
+ - **`verify`**
180
+ Independently verifies fixes or acceptance criteria against a stated claim, target version, and linked evidence.
271
181
 
272
- - **`zsk:nfr-baseline`** *[optional]*
273
- Project NFR baseline (inherited or established) — 7-category framework (performance / a11y / security / i18n / compatibility / observability / reliability) and the deviation-declaration discipline. Web-specific values (CWV thresholds, WCAG AA, browser matrix, 三语) live in frontend/nfr-web.md.
274
- 触发:`NFR baseline` · `non functional requirements` · `quality attributes` · `ISO 25010`
182
+ - **`acceptance`**
183
+ After independent verify passes, records accept/reject decision, linked evidence, and residual-risk owner.
275
184
 
276
- - **`zsk:project-constraints-template`** *[optional]*
277
- Project constraints template for new-project bootstrap captures import origins, forbidden libraries/patterns, required wrappers, naming conventions, quality gates, branch/release conventions in one SYSTEM-SPEC chapter. The project-side constitutional constraint table, complementary to project-config.md (mechanical values).
278
- 触发:`project constraints` · `SYSTEM-SPEC` · `import origins` · `forbidden packages`
185
+ - **`deploy`**
186
+ After review, deploys to non-production or demo targets with version, smoke evidence, and rollback owner.
279
187
 
280
- ### `meta/` — Meta · 元信息 (1)
188
+ - **`archive`**
189
+ After acceptance, closes the iteration by preserving artifacts, decisions, issues, and learning proposals.
281
190
 
282
- - **`zsk:philosophy`** *[meta · optional]*
283
- Design rationale of the zsk skill set LLM Wiki × Superpowers × GSD × project-adaptation synthesis. For contributors needing to understand why zsk is organized the way it is.
284
- 触发:`zsk philosophy` · `why is zsk organized this way` · `design rationale` · `LLM wiki vs superpowers`
191
+ - **`issue`**
192
+ Tracks defects, blockers, questions, and risks with taxonomy, severity, owner, reproduction, and evidence.
285
193
 
@@ -0,0 +1,70 @@
1
+ ---
2
+ name: acceptance
3
+ description: After independent verify passes, records accept/reject decision,
4
+ linked evidence, and residual-risk owner.
5
+ kind: workflow-node
6
+ pack: core
7
+ stage: acceptance
8
+ requires:
9
+ - constraints.evidence-rules
10
+ - constraints.stage-gates
11
+ domain: core
12
+ category: stage
13
+ tier: core
14
+ triggers:
15
+ - acceptance
16
+ ---
17
+
18
+ # Acceptance
19
+
20
+ Use this stage after independent `verify` has passed and the product/business owner needs an acceptance decision. Acceptance is not another implementation review; it decides whether the delivered change is fit to close, reject, or archive with explicit residual risk.
21
+
22
+ ## Inputs
23
+
24
+ - `verify-report` with linked evidence and unresolved findings.
25
+ - `demo-report` when the change has user-visible behavior.
26
+ - Linked issue records, waivers, and regression notes.
27
+ - Proposal/spec/design/task artifacts for the accepted scope.
28
+
29
+ ## Procedure
30
+
31
+ 1. Re-check the accepted scope against proposal and spec, not against late wish-list items.
32
+ 2. Confirm P0/P1 acceptance criteria are verified or explicitly waived.
33
+ 3. Summarize residual risks, owners, and follow-up issues.
34
+ 4. Record one decision: `ACCEPT`, `ACCEPT_WITH_RISK`, `REJECT`, or `BLOCKED`.
35
+ 5. For `ACCEPT*`, apply documentation feedback from linked issues: update module spec/design/task docs and project specs for behavior that was missing, ambiguous, or under-described.
36
+ 6. Route `ACCEPT*` to `archive`; route rejection to the earliest invalidated stage.
37
+
38
+ ## Constraints
39
+
40
+ - Do not accept work with missing verify evidence.
41
+ - Do not hide product disagreement as a minor issue.
42
+ - Do not mutate implementation or test files from this stage.
43
+ - Do not leave confirmed issue learning only in `.issues`; accepted fixes must feed back into the relevant spec/design/task docs unless there is an explicit no-update rationale.
44
+ - Keep the decision short, dated, and evidence-linked.
45
+
46
+ ## Outputs
47
+
48
+ - `acceptance` decision artifact.
49
+ - Residual-risk list with owner and due date.
50
+ - Updated spec/design/task documentation feedback or explicit no-update rationale.
51
+ - Archive readiness or rejection route.
52
+
53
+ ## Installed Harness Contract
54
+
55
+ This core skill is generated from root `skills/acceptance/SKILL.md` and is governed by the zsk harness. Enforce these rules even when the full harness files are not present in the target:
56
+
57
+ - Stage gates: do not skip required inputs, illegal transitions, blockers, or evidence checks.
58
+ - Evidence rules: no PASS / DONE / READY claim without linked command, artifact, issue, scenario, or human decision evidence.
59
+ - Source of truth: read configured resources before inventing intent; record conflicts instead of choosing silently.
60
+ - Issue taxonomy: route demo, smoke, review, test, verify, and acceptance findings to the correct issue type.
61
+ - Learning loop: reusable gaps become learning proposals; never mutate core constraints, templates, packs, or skills automatically.
62
+
63
+ When a `harness/` directory is installed beside this file, treat it as the local contract source:
64
+
65
+ - Read `harness/workflow/skill-io-contract.yaml` for this skill's required inputs, outputs, tools, and capabilities.
66
+ - Read `harness/workflow/state-machine.yaml` and `harness/constraints/stage-gates.md` before moving between stages.
67
+ - Read `harness/constraints/evidence-rules.md` and `harness/workflow/completion-contract.yaml` before claiming READY / PASS / DONE.
68
+ - Read `harness/constraints/issue-taxonomy.md` before creating or updating blockers, risks, defects, or questions.
69
+ - Read the relevant file under `harness/best-practices/` when the task touches SDLC, quality, frontend, design handoff, system constraints, or agent orchestration.
70
+
@@ -0,0 +1,104 @@
1
+ # Installed ZSK Harness Contract
2
+
3
+ This harness bundle was embedded for `acceptance` so external installers such as `npx skills add codeshareman/zsk` install more than a bare `SKILL.md`.
4
+
5
+ The local `SKILL.md` is the execution entrypoint. These files are the supporting contract for stage gates, evidence, issue taxonomy, workflow transitions, and compact best-practice references.
6
+
7
+ ---
8
+ # zsk Harness
9
+
10
+ `harness/` is the source of truth for workflow governance. Skills are execution surfaces, but the harness owns constraints, resources, templates, state transitions, evidence, issue taxonomy, completion outputs, and learning promotion rules.
11
+
12
+ The harness should adapt best practices, not accumulate them. Prefer the smallest sufficient local design: no speculative abstractions, scripts, files, or workflow gates unless the current project need proves they are necessary.
13
+
14
+ The harness-first build path is now wired: root `skills/` generates `capabilities/skills/`, then `packages/skills/`. `.best-practices/` is only a slim reference layer and is not part of default installation.
15
+
16
+ ## Authority
17
+
18
+ Merge order:
19
+
20
+ ```text
21
+ root harness
22
+ -> selected pack overlays
23
+ -> skill-local harness contract
24
+ -> project .zsk/config.yaml bindings
25
+ ```
26
+
27
+ Root constraints can only be extended or tightened. Packs and skill-local contracts cannot weaken anti-patterns, stage gates, evidence rules, issue taxonomy, or filesystem boundaries.
28
+
29
+ ## Learning Loop
30
+
31
+ The harness owns self-learning. Skills and stage templates may surface `Documentation Feedback`, but they must not directly mutate core constraints, templates, packs, or root skills.
32
+
33
+ Flow:
34
+
35
+ 1. Stage work records reusable failures, template gaps, or skill gaps as documentation feedback.
36
+ 2. `archive` converts durable findings into learning proposals under `.zsk/learning/proposals`.
37
+ 3. Promotion follows `harness/learning/promotion-rules.yaml`.
38
+ 4. Accepted proposals patch the smallest target: constraint, template, resource map, root skill, optional pack, or project-only docs.
39
+ 5. Core promotion requires review plus regression evidence.
40
+
41
+ Project-specific experience stays in module archives or `docs/SYSTEM-SPEC.md`. General zsk changes must be proposed, reviewed, and verified before becoming default behavior.
42
+
43
+ ## Skill Completion Contract
44
+
45
+ `workflow/skill-io-contract.yaml` defines each skill's expected inputs, outputs, tools, capabilities, script policy, and Browser Use policy.
46
+
47
+ `workflow/completion-contract.yaml` defines what each skill/stage must leave behind after execution:
48
+
49
+ - produced artifacts and their project-template paths;
50
+ - evidence required for completion claims;
51
+ - issue persistence and module/global index refreshes;
52
+ - documentation feedback targets after verified and confirmed fixes;
53
+ - learning proposal handoff for reusable process improvements.
54
+
55
+ This contract is harness-owned. Individual skills may name their outputs, but they should not redefine where persistent project artifacts, issue indexes, or confirmed documentation feedback are managed.
56
+
57
+ File updates can be implemented in two ways:
58
+
59
+ - repeatable mechanical updates should use CLI commands or skill-local scripts declared by the skill;
60
+ - context-sensitive docs feedback can be written by the agent with normal file-editing tools.
61
+
62
+ Both paths must satisfy the same harness completion contract before the skill is considered done.
63
+
64
+ ## Runtime Flow
65
+
66
+ The harness treats skills as stage contracts, not free-form prompts. Profiles under `profiles/*.yaml` choose the stage sequence and strictness before optional gates are enforced:
67
+
68
+ ```text
69
+ zsk-lite small, low-risk changes
70
+ zsk-sdlc standard engineering delivery
71
+ zsk-frontend UI/UX/browser-facing delivery with demo and visual evidence
72
+ zsk-enterprise governed delivery with deploy, acceptance, and archive evidence
73
+ ```
74
+
75
+ The standard profile follows:
76
+
77
+ ```text
78
+ dispatch
79
+ -> flow
80
+ -> prepare -> proposal -> spec -> design -> task
81
+ -> coding -> smoke -> review -> commit
82
+ -> ready -> verify -> acceptance -> archive
83
+ ```
84
+
85
+ Supporting stages can branch from the main flow:
86
+
87
+ - `issue` records blockers, risks, questions, and defects without bypassing gates.
88
+ - `dispatch` tells OMX to schedule subagents around the active ZSK skill and harness gate.
89
+ - `demo` proves a changed flow before formal QA.
90
+ - `defect` turns QA findings into reproducible, FR/AC-linked work.
91
+ - `commit` is allowed only after smoke and review pass.
92
+ - `deploy` is optional in `zsk-sdlc`, required in `zsk-enterprise`, and usually sits between `commit` and `ready`.
93
+
94
+ Every branch must return with evidence, status, and index updates required by `workflow/completion-contract.yaml`.
95
+
96
+ ## Quality Bar
97
+
98
+ High-quality skill output means:
99
+
100
+ - source-linked: important claims trace to PRD/SRS, spec/design, task, issue, code/runtime evidence, or user clarification;
101
+ - accurate: tests and scenarios prove the intended behavior, not convenient implementation details;
102
+ - complete enough: missing resources, uncertainty, and conflicts are named with impact;
103
+ - concise: no generic filler, speculative abstraction, or extra structure beyond the smallest sufficient design;
104
+ - reviewed: review/verify/acceptance check traceability, test adequacy, scope creep, and unresolved uncertainty before pass.