@captain_z/zsk-skills 1.7.0 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (410) hide show
  1. package/README.md +44 -31
  2. package/acceptance/SKILL.md +28 -2
  3. package/acceptance/harness/README.md +8 -97
  4. package/acceptance/harness/THIS_SKILL.md +65 -3
  5. package/acceptance/harness/best-practices/README.md +7 -47
  6. package/acceptance/harness/constraints/evidence-rules.md +2 -2
  7. package/acceptance/harness/constraints/filesystem-boundaries.md +33 -0
  8. package/acceptance/harness/constraints/issue-taxonomy.md +23 -12
  9. package/acceptance/harness/constraints/skill-role-contract.md +89 -0
  10. package/acceptance/harness/constraints/source-of-truth.md +16 -2
  11. package/acceptance/harness/workflow/completion-contract.yaml +63 -43
  12. package/acceptance/harness/workflow/skill-io-contract.yaml +161 -150
  13. package/acceptance/harness/workflow/skill-quality-standards.yaml +55 -0
  14. package/acceptance/harness/workflow/stage-contracts.yaml +4 -2
  15. package/archive/SKILL.md +29 -3
  16. package/archive/harness/README.md +8 -97
  17. package/archive/harness/THIS_SKILL.md +68 -4
  18. package/archive/harness/best-practices/README.md +8 -47
  19. package/archive/harness/constraints/evidence-rules.md +2 -2
  20. package/archive/harness/constraints/filesystem-boundaries.md +33 -0
  21. package/archive/harness/constraints/issue-taxonomy.md +23 -12
  22. package/archive/harness/constraints/skill-role-contract.md +89 -0
  23. package/archive/harness/constraints/source-of-truth.md +16 -2
  24. package/archive/harness/workflow/completion-contract.yaml +63 -43
  25. package/archive/harness/workflow/skill-io-contract.yaml +162 -150
  26. package/archive/harness/workflow/skill-quality-standards.yaml +56 -0
  27. package/archive/harness/workflow/stage-contracts.yaml +4 -2
  28. package/bundles.yaml +30 -2
  29. package/coding/SKILL.md +33 -5
  30. package/coding/harness/README.md +8 -97
  31. package/coding/harness/THIS_SKILL.md +69 -4
  32. package/coding/harness/best-practices/README.md +8 -47
  33. package/coding/harness/best-practices/system.md +5 -5
  34. package/coding/harness/constraints/evidence-rules.md +2 -2
  35. package/coding/harness/constraints/filesystem-boundaries.md +33 -0
  36. package/coding/harness/constraints/issue-taxonomy.md +23 -12
  37. package/coding/harness/constraints/skill-role-contract.md +89 -0
  38. package/coding/harness/constraints/source-of-truth.md +16 -2
  39. package/coding/harness/workflow/completion-contract.yaml +63 -43
  40. package/coding/harness/workflow/skill-io-contract.yaml +164 -150
  41. package/coding/harness/workflow/skill-quality-standards.yaml +58 -0
  42. package/coding/harness/workflow/stage-contracts.yaml +4 -2
  43. package/commit/SKILL.md +27 -1
  44. package/commit/harness/README.md +8 -97
  45. package/commit/harness/THIS_SKILL.md +65 -3
  46. package/commit/harness/best-practices/README.md +7 -47
  47. package/commit/harness/constraints/evidence-rules.md +2 -2
  48. package/commit/harness/constraints/filesystem-boundaries.md +33 -0
  49. package/commit/harness/constraints/issue-taxonomy.md +23 -12
  50. package/commit/harness/constraints/skill-role-contract.md +89 -0
  51. package/commit/harness/constraints/source-of-truth.md +16 -2
  52. package/commit/harness/workflow/completion-contract.yaml +63 -43
  53. package/commit/harness/workflow/skill-io-contract.yaml +160 -150
  54. package/commit/harness/workflow/skill-quality-standards.yaml +57 -0
  55. package/commit/harness/workflow/stage-contracts.yaml +4 -2
  56. package/defect/SKILL.md +27 -1
  57. package/defect/harness/README.md +8 -97
  58. package/defect/harness/THIS_SKILL.md +66 -4
  59. package/defect/harness/best-practices/README.md +7 -47
  60. package/defect/harness/best-practices/frontend.md +21 -2
  61. package/defect/harness/constraints/evidence-rules.md +2 -2
  62. package/defect/harness/constraints/filesystem-boundaries.md +33 -0
  63. package/defect/harness/constraints/issue-taxonomy.md +23 -12
  64. package/defect/harness/constraints/skill-role-contract.md +89 -0
  65. package/defect/harness/constraints/source-of-truth.md +16 -2
  66. package/defect/harness/workflow/completion-contract.yaml +63 -43
  67. package/defect/harness/workflow/skill-io-contract.yaml +161 -150
  68. package/defect/harness/workflow/skill-quality-standards.yaml +55 -0
  69. package/defect/harness/workflow/stage-contracts.yaml +4 -2
  70. package/demo/SKILL.md +56 -29
  71. package/demo/harness/README.md +8 -97
  72. package/demo/harness/THIS_SKILL.md +71 -7
  73. package/demo/harness/best-practices/README.md +8 -47
  74. package/demo/harness/best-practices/design-handoff.md +5 -5
  75. package/demo/harness/best-practices/frontend.md +21 -2
  76. package/demo/harness/constraints/evidence-rules.md +2 -2
  77. package/demo/harness/constraints/filesystem-boundaries.md +33 -0
  78. package/demo/harness/constraints/issue-taxonomy.md +23 -12
  79. package/demo/harness/constraints/skill-role-contract.md +89 -0
  80. package/demo/harness/constraints/source-of-truth.md +16 -2
  81. package/demo/harness/workflow/completion-contract.yaml +63 -43
  82. package/demo/harness/workflow/skill-io-contract.yaml +171 -150
  83. package/demo/harness/workflow/skill-quality-standards.yaml +57 -0
  84. package/demo/harness/workflow/stage-contracts.yaml +4 -2
  85. package/demo/references/automation.md +31 -29
  86. package/demo/templates/demo-outline.md +2 -2
  87. package/demo/templates/operation-plan.json +5 -5
  88. package/demo/templates/scenario-synthesis.json +2 -2
  89. package/deploy/SKILL.md +27 -1
  90. package/deploy/harness/README.md +8 -97
  91. package/deploy/harness/THIS_SKILL.md +65 -3
  92. package/deploy/harness/best-practices/README.md +7 -47
  93. package/deploy/harness/best-practices/system.md +5 -5
  94. package/deploy/harness/constraints/evidence-rules.md +2 -2
  95. package/deploy/harness/constraints/filesystem-boundaries.md +33 -0
  96. package/deploy/harness/constraints/issue-taxonomy.md +23 -12
  97. package/deploy/harness/constraints/skill-role-contract.md +89 -0
  98. package/deploy/harness/constraints/source-of-truth.md +16 -2
  99. package/deploy/harness/workflow/completion-contract.yaml +63 -43
  100. package/deploy/harness/workflow/skill-io-contract.yaml +162 -150
  101. package/deploy/harness/workflow/skill-quality-standards.yaml +56 -0
  102. package/deploy/harness/workflow/stage-contracts.yaml +4 -2
  103. package/design/SKILL.md +28 -2
  104. package/design/harness/README.md +8 -97
  105. package/design/harness/THIS_SKILL.md +71 -5
  106. package/design/harness/best-practices/README.md +8 -47
  107. package/design/harness/best-practices/design-handoff.md +5 -5
  108. package/design/harness/best-practices/frontend.md +21 -2
  109. package/design/harness/best-practices/system.md +5 -5
  110. package/design/harness/constraints/evidence-rules.md +2 -2
  111. package/design/harness/constraints/filesystem-boundaries.md +33 -0
  112. package/design/harness/constraints/issue-taxonomy.md +23 -12
  113. package/design/harness/constraints/skill-role-contract.md +89 -0
  114. package/design/harness/constraints/source-of-truth.md +16 -2
  115. package/design/harness/workflow/completion-contract.yaml +63 -43
  116. package/design/harness/workflow/skill-io-contract.yaml +165 -150
  117. package/design/harness/workflow/skill-quality-standards.yaml +61 -0
  118. package/design/harness/workflow/stage-contracts.yaml +4 -2
  119. package/dispatch/SKILL.md +28 -2
  120. package/dispatch/harness/README.md +8 -97
  121. package/dispatch/harness/THIS_SKILL.md +59 -4
  122. package/dispatch/harness/best-practices/README.md +7 -47
  123. package/dispatch/harness/constraints/evidence-rules.md +2 -2
  124. package/dispatch/harness/constraints/filesystem-boundaries.md +33 -0
  125. package/dispatch/harness/constraints/issue-taxonomy.md +23 -12
  126. package/dispatch/harness/constraints/skill-role-contract.md +89 -0
  127. package/dispatch/harness/constraints/source-of-truth.md +16 -2
  128. package/dispatch/harness/workflow/completion-contract.yaml +63 -43
  129. package/dispatch/harness/workflow/skill-io-contract.yaml +167 -150
  130. package/dispatch/harness/workflow/skill-quality-standards.yaml +41 -0
  131. package/dispatch/harness/workflow/stage-contracts.yaml +4 -2
  132. package/flow/SKILL.md +30 -4
  133. package/flow/harness/README.md +8 -97
  134. package/flow/harness/THIS_SKILL.md +59 -4
  135. package/flow/harness/best-practices/README.md +7 -47
  136. package/flow/harness/constraints/evidence-rules.md +2 -2
  137. package/flow/harness/constraints/filesystem-boundaries.md +33 -0
  138. package/flow/harness/constraints/issue-taxonomy.md +23 -12
  139. package/flow/harness/constraints/skill-role-contract.md +89 -0
  140. package/flow/harness/constraints/source-of-truth.md +16 -2
  141. package/flow/harness/workflow/completion-contract.yaml +63 -43
  142. package/flow/harness/workflow/skill-io-contract.yaml +161 -150
  143. package/flow/harness/workflow/skill-quality-standards.yaml +41 -0
  144. package/flow/harness/workflow/stage-contracts.yaml +4 -2
  145. package/issue/SKILL.md +45 -13
  146. package/issue/harness/README.md +8 -97
  147. package/issue/harness/THIS_SKILL.md +60 -4
  148. package/issue/harness/best-practices/README.md +7 -47
  149. package/issue/harness/constraints/evidence-rules.md +2 -2
  150. package/issue/harness/constraints/filesystem-boundaries.md +33 -0
  151. package/issue/harness/constraints/issue-taxonomy.md +23 -12
  152. package/issue/harness/constraints/skill-role-contract.md +89 -0
  153. package/issue/harness/constraints/source-of-truth.md +16 -2
  154. package/issue/harness/workflow/completion-contract.yaml +63 -43
  155. package/issue/harness/workflow/skill-io-contract.yaml +166 -150
  156. package/issue/harness/workflow/skill-quality-standards.yaml +41 -0
  157. package/issue/harness/workflow/stage-contracts.yaml +4 -2
  158. package/learn/SKILL.md +124 -0
  159. package/learn/harness/README.md +15 -0
  160. package/learn/harness/THIS_SKILL.md +118 -0
  161. package/learn/harness/best-practices/README.md +12 -0
  162. package/learn/harness/constraints/evidence-rules.md +33 -0
  163. package/learn/harness/constraints/filesystem-boundaries.md +33 -0
  164. package/learn/harness/constraints/issue-taxonomy.md +98 -0
  165. package/learn/harness/constraints/skill-role-contract.md +89 -0
  166. package/learn/harness/constraints/source-of-truth.md +33 -0
  167. package/learn/harness/constraints/stage-gates.md +27 -0
  168. package/learn/harness/profiles/enterprise.yaml +89 -0
  169. package/learn/harness/profiles/frontend.yaml +93 -0
  170. package/learn/harness/profiles/lite.yaml +55 -0
  171. package/learn/harness/profiles/sdlc.yaml +83 -0
  172. package/learn/harness/workflow/completion-contract.yaml +122 -0
  173. package/learn/harness/workflow/skill-io-contract.yaml +178 -0
  174. package/learn/harness/workflow/skill-quality-standards.yaml +41 -0
  175. package/learn/harness/workflow/stage-contracts.yaml +55 -0
  176. package/learn/harness/workflow/state-machine.yaml +65 -0
  177. package/package.json +1 -1
  178. package/prepare/SKILL.md +42 -15
  179. package/prepare/harness/README.md +8 -97
  180. package/prepare/harness/THIS_SKILL.md +71 -5
  181. package/prepare/harness/best-practices/README.md +8 -47
  182. package/prepare/harness/constraints/evidence-rules.md +2 -2
  183. package/prepare/harness/constraints/filesystem-boundaries.md +33 -0
  184. package/prepare/harness/constraints/issue-taxonomy.md +23 -12
  185. package/prepare/harness/constraints/skill-role-contract.md +89 -0
  186. package/prepare/harness/constraints/source-of-truth.md +16 -2
  187. package/prepare/harness/workflow/completion-contract.yaml +63 -43
  188. package/prepare/harness/workflow/skill-io-contract.yaml +172 -150
  189. package/prepare/harness/workflow/skill-quality-standards.yaml +59 -0
  190. package/prepare/harness/workflow/stage-contracts.yaml +4 -2
  191. package/prepare/harness.yaml +2 -2
  192. package/proposal/SKILL.md +37 -5
  193. package/proposal/harness/README.md +8 -97
  194. package/proposal/harness/THIS_SKILL.md +68 -3
  195. package/proposal/harness/best-practices/README.md +7 -47
  196. package/proposal/harness/constraints/evidence-rules.md +2 -2
  197. package/proposal/harness/constraints/filesystem-boundaries.md +33 -0
  198. package/proposal/harness/constraints/issue-taxonomy.md +23 -12
  199. package/proposal/harness/constraints/skill-role-contract.md +89 -0
  200. package/proposal/harness/constraints/source-of-truth.md +16 -2
  201. package/proposal/harness/workflow/completion-contract.yaml +63 -43
  202. package/proposal/harness/workflow/skill-io-contract.yaml +161 -150
  203. package/proposal/harness/workflow/skill-quality-standards.yaml +60 -0
  204. package/proposal/harness/workflow/stage-contracts.yaml +4 -2
  205. package/ready/SKILL.md +27 -1
  206. package/ready/harness/README.md +8 -97
  207. package/ready/harness/THIS_SKILL.md +65 -3
  208. package/ready/harness/best-practices/README.md +7 -47
  209. package/ready/harness/constraints/evidence-rules.md +2 -2
  210. package/ready/harness/constraints/filesystem-boundaries.md +33 -0
  211. package/ready/harness/constraints/issue-taxonomy.md +23 -12
  212. package/ready/harness/constraints/skill-role-contract.md +89 -0
  213. package/ready/harness/constraints/source-of-truth.md +16 -2
  214. package/ready/harness/workflow/completion-contract.yaml +63 -43
  215. package/ready/harness/workflow/skill-io-contract.yaml +161 -150
  216. package/ready/harness/workflow/skill-quality-standards.yaml +56 -0
  217. package/ready/harness/workflow/stage-contracts.yaml +4 -2
  218. package/review/SKILL.md +63 -7
  219. package/review/harness/README.md +8 -97
  220. package/review/harness/THIS_SKILL.md +77 -5
  221. package/review/harness/best-practices/README.md +9 -47
  222. package/review/harness/best-practices/frontend.md +21 -2
  223. package/review/harness/best-practices/system.md +5 -5
  224. package/review/harness/constraints/evidence-rules.md +2 -2
  225. package/review/harness/constraints/filesystem-boundaries.md +33 -0
  226. package/review/harness/constraints/issue-taxonomy.md +23 -12
  227. package/review/harness/constraints/skill-role-contract.md +89 -0
  228. package/review/harness/constraints/source-of-truth.md +16 -2
  229. package/review/harness/workflow/completion-contract.yaml +63 -43
  230. package/review/harness/workflow/skill-io-contract.yaml +166 -150
  231. package/review/harness/workflow/skill-quality-standards.yaml +57 -0
  232. package/review/harness/workflow/stage-contracts.yaml +4 -2
  233. package/smoke/SKILL.md +27 -1
  234. package/smoke/harness/README.md +8 -97
  235. package/smoke/harness/THIS_SKILL.md +66 -4
  236. package/smoke/harness/best-practices/README.md +7 -47
  237. package/smoke/harness/best-practices/frontend.md +21 -2
  238. package/smoke/harness/constraints/evidence-rules.md +2 -2
  239. package/smoke/harness/constraints/filesystem-boundaries.md +33 -0
  240. package/smoke/harness/constraints/issue-taxonomy.md +23 -12
  241. package/smoke/harness/constraints/skill-role-contract.md +89 -0
  242. package/smoke/harness/constraints/source-of-truth.md +16 -2
  243. package/smoke/harness/workflow/completion-contract.yaml +63 -43
  244. package/smoke/harness/workflow/skill-io-contract.yaml +163 -150
  245. package/smoke/harness/workflow/skill-quality-standards.yaml +57 -0
  246. package/smoke/harness/workflow/stage-contracts.yaml +4 -2
  247. package/spec/SKILL.md +34 -5
  248. package/spec/harness/README.md +8 -97
  249. package/spec/harness/THIS_SKILL.md +70 -4
  250. package/spec/harness/best-practices/README.md +8 -47
  251. package/spec/harness/constraints/evidence-rules.md +2 -2
  252. package/spec/harness/constraints/filesystem-boundaries.md +33 -0
  253. package/spec/harness/constraints/issue-taxonomy.md +23 -12
  254. package/spec/harness/constraints/skill-role-contract.md +89 -0
  255. package/spec/harness/constraints/source-of-truth.md +16 -2
  256. package/spec/harness/workflow/completion-contract.yaml +63 -43
  257. package/spec/harness/workflow/skill-io-contract.yaml +162 -150
  258. package/spec/harness/workflow/skill-quality-standards.yaml +59 -0
  259. package/spec/harness/workflow/stage-contracts.yaml +4 -2
  260. package/task/SKILL.md +27 -1
  261. package/task/harness/README.md +8 -97
  262. package/task/harness/THIS_SKILL.md +69 -4
  263. package/task/harness/best-practices/README.md +8 -47
  264. package/task/harness/constraints/evidence-rules.md +2 -2
  265. package/task/harness/constraints/filesystem-boundaries.md +33 -0
  266. package/task/harness/constraints/issue-taxonomy.md +23 -12
  267. package/task/harness/constraints/skill-role-contract.md +89 -0
  268. package/task/harness/constraints/source-of-truth.md +16 -2
  269. package/task/harness/workflow/completion-contract.yaml +63 -43
  270. package/task/harness/workflow/skill-io-contract.yaml +162 -150
  271. package/task/harness/workflow/skill-quality-standards.yaml +61 -0
  272. package/task/harness/workflow/stage-contracts.yaml +4 -2
  273. package/verify/SKILL.md +27 -1
  274. package/verify/harness/README.md +8 -97
  275. package/verify/harness/THIS_SKILL.md +66 -4
  276. package/verify/harness/best-practices/README.md +7 -47
  277. package/verify/harness/best-practices/frontend.md +21 -2
  278. package/verify/harness/constraints/evidence-rules.md +2 -2
  279. package/verify/harness/constraints/filesystem-boundaries.md +33 -0
  280. package/verify/harness/constraints/issue-taxonomy.md +23 -12
  281. package/verify/harness/constraints/skill-role-contract.md +89 -0
  282. package/verify/harness/constraints/source-of-truth.md +16 -2
  283. package/verify/harness/workflow/completion-contract.yaml +63 -43
  284. package/verify/harness/workflow/skill-io-contract.yaml +163 -150
  285. package/verify/harness/workflow/skill-quality-standards.yaml +54 -0
  286. package/verify/harness/workflow/stage-contracts.yaml +4 -2
  287. package/zsk/SKILL.md +137 -0
  288. package/zsk/harness/README.md +15 -0
  289. package/zsk/harness/THIS_SKILL.md +122 -0
  290. package/zsk/harness/best-practices/README.md +13 -0
  291. package/zsk/harness/constraints/evidence-rules.md +33 -0
  292. package/zsk/harness/constraints/filesystem-boundaries.md +33 -0
  293. package/zsk/harness/constraints/issue-taxonomy.md +98 -0
  294. package/zsk/harness/constraints/skill-role-contract.md +89 -0
  295. package/zsk/harness/constraints/source-of-truth.md +33 -0
  296. package/zsk/harness/constraints/stage-gates.md +27 -0
  297. package/zsk/harness/profiles/enterprise.yaml +89 -0
  298. package/zsk/harness/profiles/frontend.yaml +93 -0
  299. package/zsk/harness/profiles/lite.yaml +55 -0
  300. package/zsk/harness/profiles/sdlc.yaml +83 -0
  301. package/zsk/harness/workflow/completion-contract.yaml +122 -0
  302. package/zsk/harness/workflow/skill-io-contract.yaml +182 -0
  303. package/zsk/harness/workflow/skill-quality-standards.yaml +41 -0
  304. package/zsk/harness/workflow/stage-contracts.yaml +55 -0
  305. package/zsk/harness/workflow/state-machine.yaml +65 -0
  306. package/zskplan/SKILL.md +131 -0
  307. package/zskplan/harness/README.md +15 -0
  308. package/zskplan/harness/THIS_SKILL.md +123 -0
  309. package/zskplan/harness/best-practices/README.md +13 -0
  310. package/zskplan/harness/constraints/evidence-rules.md +33 -0
  311. package/zskplan/harness/constraints/filesystem-boundaries.md +33 -0
  312. package/zskplan/harness/constraints/issue-taxonomy.md +98 -0
  313. package/zskplan/harness/constraints/skill-role-contract.md +89 -0
  314. package/zskplan/harness/constraints/source-of-truth.md +33 -0
  315. package/zskplan/harness/constraints/stage-gates.md +27 -0
  316. package/zskplan/harness/profiles/enterprise.yaml +89 -0
  317. package/zskplan/harness/profiles/frontend.yaml +93 -0
  318. package/zskplan/harness/profiles/lite.yaml +55 -0
  319. package/zskplan/harness/profiles/sdlc.yaml +83 -0
  320. package/zskplan/harness/workflow/completion-contract.yaml +122 -0
  321. package/zskplan/harness/workflow/skill-io-contract.yaml +180 -0
  322. package/zskplan/harness/workflow/skill-quality-standards.yaml +41 -0
  323. package/zskplan/harness/workflow/stage-contracts.yaml +55 -0
  324. package/zskplan/harness/workflow/state-machine.yaml +65 -0
  325. package/acceptance/harness/best-practices/design-handoff.md +0 -41
  326. package/acceptance/harness/best-practices/frontend.md +0 -43
  327. package/acceptance/harness/best-practices/project-constraints-template.md +0 -66
  328. package/acceptance/harness/best-practices/system.md +0 -41
  329. package/archive/harness/best-practices/design-handoff.md +0 -41
  330. package/archive/harness/best-practices/frontend.md +0 -43
  331. package/archive/harness/best-practices/project-constraints-template.md +0 -66
  332. package/archive/harness/best-practices/system.md +0 -41
  333. package/coding/harness/best-practices/design-handoff.md +0 -41
  334. package/coding/harness/best-practices/frontend.md +0 -43
  335. package/coding/harness/best-practices/project-constraints-template.md +0 -66
  336. package/commit/harness/best-practices/design-handoff.md +0 -41
  337. package/commit/harness/best-practices/frontend.md +0 -43
  338. package/commit/harness/best-practices/project-constraints-template.md +0 -66
  339. package/commit/harness/best-practices/system.md +0 -41
  340. package/defect/harness/best-practices/design-handoff.md +0 -41
  341. package/defect/harness/best-practices/project-constraints-template.md +0 -66
  342. package/defect/harness/best-practices/system.md +0 -41
  343. package/demo/harness/best-practices/agent-orchestration.md +0 -45
  344. package/demo/harness/best-practices/project-constraints-template.md +0 -66
  345. package/demo/harness/best-practices/sdlc.md +0 -49
  346. package/demo/harness/best-practices/system.md +0 -41
  347. package/deploy/harness/best-practices/agent-orchestration.md +0 -45
  348. package/deploy/harness/best-practices/design-handoff.md +0 -41
  349. package/deploy/harness/best-practices/frontend.md +0 -43
  350. package/deploy/harness/best-practices/project-constraints-template.md +0 -66
  351. package/deploy/harness/best-practices/sdlc.md +0 -49
  352. package/design/harness/best-practices/agent-orchestration.md +0 -45
  353. package/design/harness/best-practices/project-constraints-template.md +0 -66
  354. package/design/harness/best-practices/sdlc.md +0 -49
  355. package/dispatch/harness/best-practices/design-handoff.md +0 -41
  356. package/dispatch/harness/best-practices/frontend.md +0 -43
  357. package/dispatch/harness/best-practices/project-constraints-template.md +0 -66
  358. package/dispatch/harness/best-practices/system.md +0 -41
  359. package/flow/harness/best-practices/design-handoff.md +0 -41
  360. package/flow/harness/best-practices/frontend.md +0 -43
  361. package/flow/harness/best-practices/project-constraints-template.md +0 -66
  362. package/flow/harness/best-practices/system.md +0 -41
  363. package/issue/harness/best-practices/agent-orchestration.md +0 -45
  364. package/issue/harness/best-practices/design-handoff.md +0 -41
  365. package/issue/harness/best-practices/frontend.md +0 -43
  366. package/issue/harness/best-practices/project-constraints-template.md +0 -66
  367. package/issue/harness/best-practices/system.md +0 -41
  368. package/prepare/harness/best-practices/agent-orchestration.md +0 -45
  369. package/prepare/harness/best-practices/design-handoff.md +0 -41
  370. package/prepare/harness/best-practices/frontend.md +0 -43
  371. package/prepare/harness/best-practices/system.md +0 -41
  372. package/proposal/harness/best-practices/agent-orchestration.md +0 -45
  373. package/proposal/harness/best-practices/design-handoff.md +0 -41
  374. package/proposal/harness/best-practices/frontend.md +0 -43
  375. package/proposal/harness/best-practices/quality.md +0 -41
  376. package/proposal/harness/best-practices/system.md +0 -41
  377. package/ready/harness/best-practices/agent-orchestration.md +0 -45
  378. package/ready/harness/best-practices/design-handoff.md +0 -41
  379. package/ready/harness/best-practices/frontend.md +0 -43
  380. package/ready/harness/best-practices/project-constraints-template.md +0 -66
  381. package/ready/harness/best-practices/system.md +0 -41
  382. package/review/harness/best-practices/design-handoff.md +0 -41
  383. package/review/harness/best-practices/project-constraints-template.md +0 -66
  384. package/review/harness/best-practices/sdlc.md +0 -49
  385. package/smoke/harness/best-practices/agent-orchestration.md +0 -45
  386. package/smoke/harness/best-practices/design-handoff.md +0 -41
  387. package/smoke/harness/best-practices/project-constraints-template.md +0 -66
  388. package/smoke/harness/best-practices/sdlc.md +0 -49
  389. package/smoke/harness/best-practices/system.md +0 -41
  390. package/spec/harness/best-practices/agent-orchestration.md +0 -45
  391. package/spec/harness/best-practices/design-handoff.md +0 -41
  392. package/spec/harness/best-practices/frontend.md +0 -43
  393. package/spec/harness/best-practices/system.md +0 -41
  394. package/task/harness/best-practices/agent-orchestration.md +0 -45
  395. package/task/harness/best-practices/design-handoff.md +0 -41
  396. package/task/harness/best-practices/frontend.md +0 -43
  397. package/task/harness/best-practices/system.md +0 -41
  398. package/verify/harness/best-practices/agent-orchestration.md +0 -45
  399. package/verify/harness/best-practices/design-handoff.md +0 -41
  400. package/verify/harness/best-practices/project-constraints-template.md +0 -66
  401. package/verify/harness/best-practices/sdlc.md +0 -49
  402. package/verify/harness/best-practices/system.md +0 -41
  403. /package/{acceptance → learn}/harness/best-practices/agent-orchestration.md +0 -0
  404. /package/{design → learn}/harness/best-practices/quality.md +0 -0
  405. /package/{commit → zsk}/harness/best-practices/agent-orchestration.md +0 -0
  406. /package/{dispatch → zsk}/harness/best-practices/quality.md +0 -0
  407. /package/{coding → zsk}/harness/best-practices/sdlc.md +0 -0
  408. /package/{defect → zskplan}/harness/best-practices/agent-orchestration.md +0 -0
  409. /package/{flow → zskplan}/harness/best-practices/quality.md +0 -0
  410. /package/{defect → zskplan}/harness/best-practices/sdlc.md +0 -0
package/README.md CHANGED
@@ -1,21 +1,21 @@
1
1
  # @captain_z/zsk-skills
2
2
 
3
- ZNorth Standard Kit 的可安装 skill 内容包。安装面现在只保留从根级 `skills/` 生成的 **core harness-first skills**;旧 `.best-practices/` 不再批量生成 installable skills,只作为扁平参考资料。
3
+ ZNorth Standard Kit 的可安装 skill 内容包。安装面现在只保留从根级 `skills/` 生成的 **core harness-first skills**;旧 `.best-practices/` 不再批量生成独立 installable skills,而是作为参考源按 skill 携带相关子集。
4
4
 
5
- 包内共有 **19 颗 installable skills**,全部来自根级 `skills/`。
5
+ 包内共有 **22 颗 installable skills**,全部来自根级 `skills/`。
6
6
 
7
7
  ## 合规审查(ARCHITECTURE §4.4 硬指标)
8
8
 
9
9
  | 检查项 | 结果 | 说明 |
10
10
  | ---------------------------------------------------------------------------------------- | ------- | ----------------------------------------------------- |
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 |
11
+ | frontmatter 完整(`name` / `description` / `category` / `domain` / `tier` / `triggers`) | ✓ 22/22 | core 由 root `skills/` 生成 |
12
+ | `name` 使用裸 slug,扁平且不含连字符 | ✓ 22/22 | LLM 原生 skill 入口保持简洁;CLI 选择层使用 `zsk:<slug>` |
13
+ | `description` 简洁表达职责和使用时机 | ✓ 22/22 | 面向索引阅读;triggers 留给机器使用 |
14
+ | `category` / `domain` / `tier` 枚举值合法 | ✓ 22/22 | stage/utility · core |
15
+ | `triggers` 数组非空 | ✓ 22/22 | 至少含裸 slug |
16
16
  | 无硬编码项目名 / 技术栈(统一 `{{config.*}}` 占位符) | ✓ | harness-neutral |
17
17
  | `related:` 相对路径合法 | ✓ | core 不依赖参考层生成物 |
18
- | 单文件 ≤ 300 行 | ✓ 19/19 | core 由 `lint:harness` 强制 |
18
+ | 单文件 ≤ 300 行 | ✓ 22/22 | core 由 `lint:harness` 强制 |
19
19
 
20
20
  当前 `max-lines` 已由 `tools/lint-frontmatter.ts` 作为 error 强制;新增或修改 skill 不应超过 300 行。
21
21
 
@@ -34,11 +34,12 @@ Profile 是流程组合策略,不是新的 skill。Atomic skills 仍然平铺
34
34
 
35
35
  | profile | skills | 适用场景 |
36
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 |
37
+ | `zsk-entry` | 2 | 只装 `zskplan` / `zsk` 两个主入口,由它们按 harness 调度 |
38
+ | `zsk-lite` | 10 | 小修、小项目、脚本、低风险任务 |
39
+ | `zsk-sdlc` | 19 | 标准工程交付;需求、实现、审查、验证、验收、归档 |
40
+ | `zsk-frontend` | 20 | UI/UX/browser-facing 交付;强化 demo、视觉证据、前端质量门禁 |
41
+ | `zsk-enterprise` | 20 | 高治理交付;要求 deploy、验收、归档、审计证据 |
42
+ | `sdlc-only` | 22 | 旧入口兼容;安装全部 core skills |
42
43
 
43
44
  ## Skill 搭配流程图
44
45
 
@@ -79,11 +80,13 @@ flowchart TD
79
80
  | 目标 | 推荐说法或命令 | 结果 |
80
81
  | --- | --- | --- |
81
82
  | 安装默认 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 |
83
+ | CI 安装 ZSK 主入口 | `npx @captain_z/zsk add zsk-entry --target=~/.claude/skills --yes` | 非交互安装 `zskplan` / `zsk` 两个入口 |
84
+ | CI 安装轻量 profile | `npx @captain_z/zsk add zsk-lite --target=~/.claude/skills --yes` | 非交互安装 10 颗常用 skills |
85
+ | CI 安装标准 SDLC profile | `npx @captain_z/zsk add zsk-sdlc --target=~/.claude/skills --yes` | 非交互安装 19 颗标准 workflow skills |
84
86
  | Claude plugin 安装 | `/plugin marketplace add codeshareman/zsk` 后 `/plugin install zsk@zsk` | 使用 `/zsk:<slug>` 命令面 |
85
87
  | GitHub skills 管理器安装 | `npx skills add codeshareman/zsk` | 从仓库根 `skills/` 安装;不要加 `@` |
86
- | 不确定该用哪个 skill | "用 `zsk:dispatch` 调度" | OMX 围绕 ZSK skills 分配 subagents |
88
+ | 只想让 ZSK 自己规划和执行 | "用 `zsk:zskplan` 规划" / "用 `zsk:zsk` 继续" | 计划写入 `.zsk/plans/`,执行产物写入 `.zsk` |
89
+ | 不确定该用哪个阶段 skill | "用 `zsk:dispatch` 调度" | 让 OMX 围绕 ZSK skills 分配 subagents |
87
90
  | 恢复一个项目的下一步 | "用 `zsk:flow` 继续" | 读取配置、阶段文档和 blocker,选择合法下一阶段 |
88
91
  | 明确进入某阶段 | "用 `zsk:spec` 写模块规格" | 只载入对应 stage contract |
89
92
 
@@ -98,41 +101,48 @@ flowchart TD
98
101
 
99
102
  ## 和项目知识工作区的关系
100
103
 
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` 做确定性校验。
104
+ `zsk init` 生成的 `.zsk/config.yaml`、`.zsk/docs/SYSTEM-SPEC.md`、`.zsk/raws/`、`.zsk/modules/`、`.zsk/issues/`、`.zsk/evidence/`、`.zsk/playwright/` 和 `.zsk/plans/` 是默认项目上下文。CLI 负责创建最小骨架、使用 package-owned schema 校验、刷新 `.zsk/raws/manifest.json`,并通过 `zsk config check` / `zsk check` 做确定性校验。
102
105
 
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`。
106
+ Skills 负责更需要判断的部分:理解 SRS、PRD、API 契约、Figma/Modao、测试资产和设计资产,发现模块边界,做跨事实源冲突分析,并把问题写入配置的 issue 根。运行时验证默认用 Playwright 产生可复现 evidence;登录态优先转成 Playwright `storageState`;视觉/当前页面判断优先 Computer Use;没有 Computer Use 的运行时用 Playwright MCP/ARIA/CDP、手工证据或可用的 Browser Use 兼容处理。Skills 必须通过 `.zsk/config.yaml` 和 `.zsk/modules/{module}/module.yaml` 解析路径,不能硬编码 `.zsk/raws`、root `docs`、root `.issues`、root `.playwright` 或 root `plans`。
104
107
 
105
- 每个 skill/stage 的输入、输出、工具/能力、脚本策略和 Browser Use 策略由 harness 的 `skill-io-contract.yaml` 约束;完成后的产物路径、issue 索引同步和确认后的文档反哺由 `completion-contract.yaml` 约束。缺少 Documentation Feedback 时,`zsk check` 可以把它作为阶段未收口的证据。
108
+ 每个 skill/stage 的输入、输出、工具/能力、脚本策略和运行时 UI 观察策略由 harness 的 `skill-io-contract.yaml` 约束;完成后的产物路径、issue 索引同步和确认后的文档反哺由 `completion-contract.yaml` 约束。缺少 Documentation Feedback 时,`zsk check` 可以把它作为阶段未收口的证据。
106
109
 
107
110
  ## 领域总览
108
111
 
109
- 包内只保留默认可安装的 core 领域。Frontend、quality、design-handoff 等内容仍在 `.best-practices/`,按需读取,不进入默认安装面。
112
+ 包内只保留默认可安装的 core 领域。Frontend、quality、design-handoff 等内容仍由根级 `.best-practices/` 维护,但会按相关性复制到各 skill 的 `harness/best-practices/`;它们不是单独可触发的 installable skills。
110
113
 
111
114
  | 领域 | skill 数 | 职责 |
112
115
  | ----------------- | -------- | ------------------------------------------ |
113
- | `skills/` | 19 | harness-first 默认工作流入口 |
114
- | **总计** | **19** | |
116
+ | `skills/` | 22 | harness-first 默认工作流入口 |
117
+ | **总计** | **22** | |
115
118
 
116
119
  ## 安装套件(bundles.yaml)
117
120
 
118
121
  | name | skills | 场景 |
119
122
  | ------------------------------ | ------ | --------------------------------------------- |
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` |
123
+ | `zsk-entry` | 2 | 只安装 ZSK / ZSK Plan 两个主入口 |
124
+ | `zsk-lite` | 10 | 小型低风险任务;ZSK 入口 + coding → smoke → review → commit |
125
+ | `zsk-sdlc`(推荐) | 19 | 标准工程交付;完整需求、实现、审查、验证、验收、归档链路 |
126
+ | `zsk-frontend` | 20 | 前端/视觉/browser-facing 任务;强化 demo 和前端质量门禁 |
127
+ | `zsk-enterprise` | 20 | 高治理交付;要求 deploy、验收、归档、审计证据 |
128
+ | `sdlc-only` | 22 | 旧入口兼容;安装全部 core skills |
129
+ | `frontend-project` | 22 | 旧入口兼容;推荐改用 `zsk-frontend` |
130
+ | `frontend-with-design-handoff` | 22 | 旧入口兼容;推荐改用 `zsk-frontend` |
127
131
  | `custom` | 交互 | 通过 `zsk add` 任意多选 |
128
132
 
129
- <!-- Auto-generated by tools/catalog.ts — do not edit manually. Total: 19 skills -->
133
+ <!-- Auto-generated by tools/catalog.ts — do not edit manually. Total: 22 skills -->
130
134
 
131
135
  ## Skill 清单(core skills)
132
136
 
133
137
  > 内容由 `tools/catalog.ts` 从 `packages/skills/*/SKILL.md` frontmatter 生成。重生成:`pnpm catalog`。
134
138
 
135
- ### `<slug>/` — Core · harness-first 默认工作流入口 (19)
139
+ ### `<slug>/` — Core · harness-first 默认工作流入口 (22)
140
+
141
+ - **`zskplan`**
142
+ Use as the ZSK-aware RalphPlan-style planning entrypoint that freezes scope, skill route, expert lanes, Playwright/evidence paths, and stop conditions under .zsk.
143
+
144
+ - **`zsk`**
145
+ Use as the ZSK-aware Ralph-style execution loop that follows ZSK plans, dispatches expert lanes, verifies, fixes, and writes only .zsk outputs.
136
146
 
137
147
  - **`dispatch`**
138
148
  At task intake, asks OMX to assign subagents to the right zsk skill from request, state, evidence, and blockers.
@@ -188,6 +198,9 @@ Skills 负责更需要判断的部分:理解 SRS、PRD、API 契约、Figma/Mo
188
198
  - **`archive`**
189
199
  After acceptance, closes the iteration by preserving artifacts, decisions, issues, and learning proposals.
190
200
 
201
+ - **`learn`**
202
+ Use after repeated friction or supplied public skill/harness references to learn, compare, record gaps, and prepare one reviewed ZSK optimization batch.
203
+
191
204
  - **`issue`**
192
205
  Tracks defects, blockers, questions, and risks with taxonomy, severity, owner, reproduction, and evidence.
193
206
 
@@ -13,6 +13,26 @@ category: stage
13
13
  tier: core
14
14
  triggers:
15
15
  - acceptance
16
+ useWhen:
17
+ - "Use when the workflow is ready for this responsibility: After independent
18
+ verify passes, records accept/reject decision, linked evidence, and
19
+ residual-risk owner."
20
+ - Use when the user invokes zsk:acceptance or asks for acceptance outputs
21
+ after prerequisites are present.
22
+ doNotUseWhen:
23
+ - Do not use when required inputs, prior-stage evidence, or configured sources
24
+ for acceptance are missing.
25
+ - Do not use to bypass stage gates, perform another skill's responsibility, or
26
+ make unsupported completion claims.
27
+ positiveExamples:
28
+ - Run zsk:acceptance with the required inputs and produce the documented
29
+ acceptance artifacts.
30
+ - Continue the workflow at acceptance after the prerequisite evidence and
31
+ blockers are resolved.
32
+ negativeExamples:
33
+ - Use zsk:acceptance to skip missing prerequisites or hide unresolved blockers.
34
+ - Run acceptance for generic chat, unrelated implementation, or another ZSK
35
+ stage's work.
16
36
  ---
17
37
 
18
38
  # Acceptance
@@ -40,7 +60,7 @@ Use this stage after independent `verify` has passed and the product/business ow
40
60
  - Do not accept work with missing verify evidence.
41
61
  - Do not hide product disagreement as a minor issue.
42
62
  - 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.
63
+ - Do not leave confirmed issue learning only in `.zsk/issues`; accepted fixes must feed back into the relevant spec/design/task docs unless there is an explicit no-update rationale.
44
64
  - Keep the decision short, dated, and evidence-linked.
45
65
 
46
66
  ## Outputs
@@ -58,14 +78,20 @@ This core skill is governed by the ZSK harness. Enforce these rules even when on
58
78
  - Evidence rules: no PASS / DONE / READY claim without linked command, artifact, issue, scenario, or human decision evidence.
59
79
  - Source of truth: read configured resources before inventing intent; record conflicts instead of choosing silently.
60
80
  - Issue taxonomy: route demo, smoke, review, test, verify, and acceptance findings to the correct issue type.
81
+ - Skill role: execute the full expert role, including all relevant lanes; partial single-angle execution is a failing result.
82
+ - Dynamic state awareness: identify the active role/stage, project type, stack, runtime, domain, target users/market, and freshness-sensitive decisions before selecting practices or retrieval sources.
83
+ - Filesystem boundaries: write ZSK-managed outputs only under the configured `.zsk` workspace paths.
61
84
  - Learning loop: reusable gaps become learning proposals; never mutate core constraints, templates, packs, or skills automatically.
62
85
 
63
86
  When a `harness/` directory is installed beside this file, treat it as the local contract source:
64
87
 
65
88
  - Read `harness/THIS_SKILL.md` before executing this skill.
66
89
  - Read `harness/workflow/skill-io-contract.yaml` for this skill's required inputs, outputs, tools, and capabilities.
90
+ - Read `harness/workflow/skill-quality-standards.yaml` for this skill's document mode, must-answer questions, quality checkpoints, and anti-patterns.
67
91
  - Read `harness/workflow/state-machine.yaml` and `harness/constraints/stage-gates.md` before moving between stages.
92
+ - Read `harness/constraints/skill-role-contract.md` before planning or reviewing expert work.
93
+ - Read `harness/constraints/filesystem-boundaries.md` before creating any project artifact.
68
94
  - Read `harness/constraints/evidence-rules.md` and `harness/workflow/completion-contract.yaml` before claiming READY / PASS / DONE.
69
95
  - Read `harness/constraints/issue-taxonomy.md` before creating or updating blockers, risks, defects, or questions.
70
- - Read the relevant file under `harness/best-practices/` when the task touches SDLC, quality, frontend, design handoff, system constraints, or agent orchestration.
96
+ - Apply the related best-practice concerns listed in `harness/THIS_SKILL.md`; read bundled `harness/best-practices/` files first when they are listed for the current skill. Search Context7 or the web only when local guidance or local facts are missing, incomplete, stale, too generic, version-sensitive, market-sensitive, or role-incomplete. Record source links, source dates when relevant, and adaptation rationale in the evidence or learning proposal.
71
97
 
@@ -2,103 +2,14 @@
2
2
 
3
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
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.
5
+ The local `SKILL.md` is the execution entrypoint. This generated harness is an install artifact, not the source of truth.
6
6
 
7
- ---
8
- # zsk Harness
7
+ Roles:
9
8
 
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.
9
+ - Root `harness/` in the ZSK repository is the canonical source for constraints, workflow state, evidence, issue taxonomy, and promotion rules.
10
+ - `skills/<skill>/harness/THIS_SKILL.md` is the skill-specific contract: responsibility, inputs, outputs, expert lanes, related best-practice concerns, and hard stops.
11
+ - `skills/<skill>/harness/workflow/skill-io-contract.yaml` is filtered to this skill plus shared tool policy so installed standalone skills stay portable without carrying the whole catalog.
12
+ - `skills/<skill>/harness/best-practices/` contains only the related reference files this skill needs. It is intentionally not a full copy of `.best-practices/`.
13
+ - Root `.best-practices/` remains repository authoring/reference material. Durable runtime rules must be promoted into root `harness/` or `THIS_SKILL.md`.
11
14
 
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.
15
+ Read `THIS_SKILL.md` first, then only the constraint/workflow files it names for the current task.
@@ -28,18 +28,79 @@ This file is generated for the installed skill. Read it before executing this sk
28
28
  - Script policy: `optional`
29
29
  - Browser Use policy: `never`
30
30
 
31
+ ## Expert Lanes
32
+
33
+ - `business decision`
34
+ - `residual risk`
35
+ - `documentation feedback`
36
+ - `accept/reject evidence`
37
+
38
+ ## Document Quality Standard
39
+
40
+ - Document mode: `decisionRecord`
41
+ - Purpose: Record the accept/reject business decision and residual-risk ownership.
42
+
43
+ ## Must Answer
44
+
45
+ - Is the verified work accepted, rejected, or conditionally accepted?
46
+ - Which evidence and issues support the decision?
47
+ - Who owns residual risks and documentation feedback?
48
+
49
+ ## Quality Checkpoints
50
+
51
+ - Names the reader, stage, scope, and stop condition.
52
+ - Separates facts, decisions, assumptions, open questions, and evidence.
53
+ - Links each important claim to a source artifact, command output, issue, scenario, or human decision.
54
+ - States what is out of scope so later stages do not silently expand work.
55
+ - Makes the next stage executable without requiring hidden context from chat.
56
+ - Links verify report, demo evidence, accepted criteria, and residual risks.
57
+ - Records documentation feedback or no-update rationale for confirmed learnings.
58
+
59
+ ## Related Best-Practice Concerns
60
+
61
+ - `SDLC traceability`
62
+ - `quality evidence`
63
+ - `system constraints`
64
+ - `dynamic state awareness`
65
+
66
+ ## Bundled Related Reference Files
67
+
68
+ - `best-practices/sdlc.md`
69
+ - `best-practices/quality.md`
70
+
71
+ ## Forbidden Scope
72
+
73
+ - `creating ZSK-managed artifacts outside `.zsk` workspace paths`
74
+ - `claiming completion without evidence`
75
+ - `silently skipping required inputs or expert lanes`
76
+ - `mutating core harness/templates/skills without a learning proposal and review`
77
+
78
+ ## Document Anti-Patterns
79
+
80
+ - Template-shaped filler that does not resolve a decision.
81
+ - Untraceable claims such as 'should work', 'best practice', or 'user friendly' without evidence or criteria.
82
+ - Mixing raw source facts, decisions, runtime evidence, and tasks in one undifferentiated section.
83
+ - Skipping unresolved contradictions instead of recording a blocker, risk, or question.
84
+ - Optimizing wording while leaving acceptance, evidence, ownership, or next action ambiguous.
85
+ - Accepting without verification evidence.
86
+ - Letting residual risks remain ownerless.
87
+
31
88
  ## Must Read Before Acting
32
89
 
33
90
  - `profiles/*.yaml` to apply the active workflow profile before enforcing optional gates.
34
91
  - `workflow/skill-io-contract.yaml` for the full machine-readable contract.
35
92
  - `workflow/state-machine.yaml` before moving to another stage.
93
+ - `constraints/skill-role-contract.md` before planning or reviewing expert work.
94
+ - `constraints/filesystem-boundaries.md` before creating any project artifact.
36
95
  - `constraints/stage-gates.md` before accepting or skipping prerequisites.
37
96
  - `constraints/evidence-rules.md` before claiming READY / PASS / DONE.
38
97
  - `workflow/completion-contract.yaml` before final response or handoff.
39
98
  - `constraints/issue-taxonomy.md` before creating defects, blockers, risks, or questions.
40
- - `best-practices/sdlc.md`
41
- - `best-practices/quality.md`
42
- - `best-practices/system.md`
99
+ - `best-practices/sdlc.md` when its domain is touched by this task.
100
+ - `best-practices/quality.md` when its domain is touched by this task.
101
+ - Dynamic state awareness before role work: identify the stage, role, project type, stack, runtime tools, domain, target users/market, freshness-sensitive decisions, and missing evidence.
102
+ - Local-first best practices and facts: use configured sources, raw manifests, bundled references, local package docs/types, lockfiles, and existing project conventions when they are sufficient and current.
103
+ - Context7/web fallback only when local guidance or local facts are missing, incomplete, stale, too generic, version-sensitive, market-sensitive, or role-incomplete. Record source links, source dates when relevant, and adaptation rationale.
43
104
 
44
105
  ## Hard Stops
45
106
 
@@ -48,6 +109,7 @@ This file is generated for the installed skill. Read it before executing this sk
48
109
  - Evidence cannot be linked to command output, artifact, issue, scenario, or human decision.
49
110
  - The fix would widen scope beyond this skill's responsibility.
50
111
  - A blocker, risk, question, or defect needs persistent tracking.
112
+ - The skill can only complete one convenient lane while other required expert lanes remain unchecked.
51
113
 
52
114
  ## Completion Checklist
53
115
 
@@ -1,52 +1,12 @@
1
- # .best-practices/
1
+ # Scoped Best-Practice References
2
2
 
3
- 这里是旧内容库收敛后的扁平参考层,不是默认安装清单。当前只保留 7 个可 lint 的参考文件。
3
+ These references are bundled only for `acceptance` so standalone skill installs keep the related context this skill needs.
4
4
 
5
- ## 现在怎么分工
5
+ They are supporting guidance, not the source of truth. Runtime gates and hard constraints belong in `../THIS_SKILL.md` and `../constraints/`.
6
6
 
7
- | 路径 | 职责 | 维护规则 |
8
- | --- | --- | --- |
9
- | `skills/` | 默认安装的 core skills 源码 | 高频动作才放这里,`SKILL.md` 必须自带输入、流程、约束和输出 |
10
- | `harness/` | 状态机、门禁、资源、证据、issue taxonomy、自我学习提升规则 | 管全局约束,不复制每个 skill 的正文 |
11
- | `.best-practices/` | 少量可选参考资料 | 只保留领域总览和横切规则,分类写在 frontmatter |
12
- | `capabilities/skills/` | 生成缓存 | 只由脚本生成 core installable skills,不手改 |
13
- | `packages/skills/` | npm 发布包 | 由 `capabilities/skills/` 同步生成 |
7
+ Use these local references first when they are sufficient and current. If they are missing, incomplete, stale, too generic, version-sensitive, market-sensitive, or not matched to the active role/stage, use dynamic state awareness to choose the smallest useful retrieval path: Context7 MCP for library/framework guidance when available, official/current web references for technical facts, and authoritative current sources for product/market research. Record source links, source dates when relevant, and adaptation rationale in the evidence or learning proposal.
14
8
 
15
- ## 为什么不再分组
9
+ Bundled files:
16
10
 
17
- 物理分组会带来两套同步成本:文件在哪个目录、frontmatter 又写哪个 domain。现在只保留一层文件,Agent 通过 frontmatter 判断领域,通过 `INDEX.md` 查目录。这样移动和删减都更轻。
18
-
19
- ## 当前保留文件
20
-
21
- | 文件 | 职责 |
22
- | --- | --- |
23
- | `sdlc.md` | 交付阶段边界和门禁 |
24
- | `frontend.md` | 前端阶段补充和红线 |
25
- | `quality.md` | 跨栈质量原则和证据规则 |
26
- | `design-handoff.md` | SRS、低保真、高保真、测试用例等资源准备和设计还原 |
27
- | `system.md` | 项目宪法、ADR、配置和约束归属 |
28
- | `agent-orchestration.md` | 多 Agent 职责划分 |
29
- | `project-constraints-template.md` | 项目约束最小模板 |
30
-
31
- ## 什么应该留在这里
32
-
33
- - 多个项目都会用到,但不值得装成默认 skill 的参考。
34
- - 能用一个领域总览讲清楚的规则。
35
- - 还没提升为 `skills/` 或 `harness/` 的候选约束。
36
-
37
- 不再保留 `_legacy/`、领域子目录、大段参考归档和每个技术点一份文件。旧内容如果不能支撑当前 core skills、harness 或发布包,就删掉。
38
-
39
- ## 写新资料的规则
40
-
41
- 1. 先判断能否并入现有 7 个参考文件。
42
- 2. 文件确实必须新增时,放在 `.best-practices/{slug}.md`。
43
- 3. `name` 用 `zsk:{slug}`,必须和文件名一致。
44
- 4. `domain` 写领域,比如 `sdlc`、`frontend`、`quality`、`design-handoff`、`system`、`meta`。
45
- 5. 非 domain-index 文件必须在 `related` 里包含 `./agent-orchestration.md`。
46
- 6. 默认执行约束不要只写在这里;高频约束要提升到 `skills/` 或 `harness/`。
47
-
48
- 生成索引:
49
-
50
- ```bash
51
- pnpm build:index
52
- ```
11
+ - `sdlc.md`
12
+ - `quality.md`
@@ -9,14 +9,14 @@ Accepted evidence types:
9
9
  - lint/typecheck/build output
10
10
  - screenshot
11
11
  - Playwright trace
12
- - Browser Use session note
12
+ - UI observation note from Computer Use, Playwright MCP/ARIA/CDP, compatible Browser Use, or documented manual evidence
13
13
  - network log
14
14
  - console log
15
15
  - deploy URL
16
16
  - issue record
17
17
  - sign-off record
18
18
 
19
- Demo evidence produced by manual execution, Playwright, Browser Use, or Computer Use must be normalized into the same report and issue taxonomy.
19
+ Demo evidence produced by manual execution, Playwright, Computer Use, Playwright MCP/ARIA/CDP, or compatible Browser Use must be normalized into the same report and issue taxonomy.
20
20
 
21
21
  ## Test Evidence Discipline
22
22
 
@@ -0,0 +1,33 @@
1
+ # Filesystem Boundaries
2
+
3
+ Default project paths:
4
+
5
+ - `.zsk/`: the only default ZSK-managed workspace root.
6
+ - `.zsk/docs/`: project-level docs such as `SYSTEM-SPEC.md` and `PROJECT-CONFIG.md`.
7
+ - `.zsk/modules/{module}/`: module config and stage artifacts.
8
+ - `.zsk/raws/`: raw external source snapshots, manifests, imported test cases, market/product research sources, and design/API assets.
9
+ - `.zsk/modules/{module}/_issues/`: module-private managed issue records and indexes, created on demand.
10
+ - `.zsk/modules/{module}/_evidence/`: module-private reusable runtime or research evidence, created on demand.
11
+ - `.zsk/modules/{module}/_playwright/`: module-specific Playwright specs, test plans, auth state, execution records, reports, and results, created on demand.
12
+ - `.zsk/issues/`, `.zsk/evidence/`, `.zsk/playwright/`: shared/global artifacts only, created on demand when the asset is intentionally cross-module.
13
+ - `.zsk/learning/proposals/`: reusable improvement proposals and learning records, created lazily only when learn/archive writes an actual proposal.
14
+ - `skills/{slug}/`: zsk source skill directories.
15
+ - `harness/`: zsk source governance contracts.
16
+
17
+ Root `docs/`, `.raws/`, `.issues/`, `.playwright/`, and `plans/` are not default write targets for ZSK skills. Use explicit export, promote, import, or migration commands when project-facing root documentation is needed.
18
+
19
+ ## Scope Routing Rule
20
+
21
+ Before any skill writes an artifact, classify its scope:
22
+
23
+ | Scope | Meaning | Default target |
24
+ | --- | --- | --- |
25
+ | module-final | Formal stage output for one module | `.zsk/modules/{module}/` |
26
+ | module-private | Working, runtime, evidence, issue, or generated artifact for one module | `.zsk/modules/{module}/_{kind}/` |
27
+ | shared | Reused by multiple modules but not public-facing | `.zsk/{kind}/shared/` or the configured shared root |
28
+ | global | Project-wide artifact with no owning module | `.zsk/{kind}/global/` or `.zsk/docs/` for formal docs |
29
+ | public | Intentionally publishable/exportable artifact | `.zsk/{kind}/public/` until explicitly exported |
30
+
31
+ This rule applies to every underscore module directory, not only `_issues`. For example, module-local issues go to `_issues`, module-local runtime evidence goes to `_evidence`, and module-local Playwright specs/auth/results go to `_playwright`. Use outer `.zsk/issues`, `.zsk/evidence`, or `.zsk/playwright` only after deciding the artifact is shared, global, or public. When scope is ambiguous, prefer module-private and record the reason or blocker before promoting outward.
32
+
33
+ The skill that produces the final artifact for a module stage writes the formal report to `.zsk/modules/{module}/{stage}.md`. Supporting artifacts stay in the appropriate `_issues`, `_evidence`, or `_playwright` directory unless they are deliberately shared/global/public.
@@ -2,28 +2,39 @@
2
2
 
3
3
  `zsk:issue` is the cross-stage issue utility. Stage skills call it, but issue paths and fields are defined here.
4
4
 
5
- Issue records are persistent tracking artifacts. Use the configured issue root from `.zsk/config.yaml` `paths.issues`; the default is `.issues/`. Do not keep actionable findings only in chat, transient task notes, or demo reports.
5
+ Issue records are persistent tracking artifacts. Module-specific findings default to the module-private `.zsk/modules/{module}/_issues/` directory. Use the configured issue root from `.zsk/config.yaml` `paths.issues` only for shared/global or intentionally cross-module issues; the default shared root is `.zsk/issues/`. Do not keep actionable findings only in chat, transient task notes, or demo reports.
6
+
7
+ Issue placement must follow the same scope routing rule as every other underscore artifact:
8
+
9
+ | Issue scope | Use when | Directory |
10
+ | --- | --- | --- |
11
+ | module | One module owns the finding, fix, and verification | `.zsk/modules/{module}/_issues/{prefix}-0001-slug/` |
12
+ | shared | Multiple modules reuse the same issue, fixture, dependency, or evidence chain | `.zsk/issues/shared/{prefix}-0001-slug/` |
13
+ | global | Project/process/release/harness issue has no single owning module | `.zsk/issues/global/{prefix}-0001-slug/` |
14
+ | public | Issue is intentionally publishable or external-facing | `.zsk/issues/public/{prefix}-0001-slug/` |
15
+
16
+ When an issue starts shared/global/public and later gets assigned to one module, move or link it into that module's `_issues` directory and leave a backlink in the outer issue record. When a module issue becomes cross-module, promote it to the appropriate outer scope and leave a backlink in the original module issue.
6
17
 
7
18
  Indexes are part of the contract:
8
19
 
9
- - `{paths.issues}/{module}/index.md` tracks every issue for that module and its status.
10
- - `{paths.issues}/index.md` tracks each module and total/open/closed issue counts.
20
+ - `.zsk/modules/{module}/_issues/index.md` tracks every issue for that module and its status.
21
+ - `.zsk/issues/index.md` tracks each module and total/open/closed issue counts across module-private and shared issues.
11
22
  - Creating or updating an issue must refresh both indexes.
12
23
 
13
24
  ## Types
14
25
 
15
26
  | Type | Concrete Issue Directory | Prefix | Typical Source |
16
27
  | --- | --- | --- | --- |
17
- | Demo Issue | `.issues/{module}/{prefix}-0001-slug/` | `DEMO` | Development demo |
18
- | Smoke Issue | `.issues/{module}/{prefix}-0001-slug/` | `SMOKE` | Developer smoke |
19
- | Review Issue | `.issues/{module}/{prefix}-0001-slug/` | `REV` | Code/design review |
20
- | Defect | `.issues/{module}/{prefix}-0001-slug/` | `DEFECT` | Formal QA |
21
- | Verify Issue | `.issues/{module}/{prefix}-0001-slug/` | `VER` | Fix verification |
22
- | Acceptance Issue | `.issues/{module}/{prefix}-0001-slug/` | `ACC` | Business/product acceptance |
28
+ | Demo Issue | `.zsk/modules/{module}/_issues/{prefix}-0001-slug/` | `DEMO` | Development demo |
29
+ | Smoke Issue | `.zsk/modules/{module}/_issues/{prefix}-0001-slug/` | `SMOKE` | Developer smoke |
30
+ | Review Issue | `.zsk/modules/{module}/_issues/{prefix}-0001-slug/` | `REV` | Code/design review |
31
+ | Defect | `.zsk/modules/{module}/_issues/{prefix}-0001-slug/` | `DEFECT` | Formal QA |
32
+ | Verify Issue | `.zsk/modules/{module}/_issues/{prefix}-0001-slug/` | `VER` | Fix verification |
33
+ | Acceptance Issue | `.zsk/modules/{module}/_issues/{prefix}-0001-slug/` | `ACC` | Business/product acceptance |
23
34
 
24
- Stage directories such as `{paths.issues}/{module}/demo/index.md` may exist as stage views or evidence buckets. They are not the authoritative status indexes.
35
+ Stage directories such as `.zsk/modules/{module}/_issues/demo/index.md` may exist as stage views or evidence buckets. They are not the authoritative status indexes.
25
36
 
26
- If `paths.issues` is customized, replace `.issues` with that configured root while preserving the `{module}/{type}/` shape.
37
+ If `paths.issues` is customized, it must still stay under `.zsk/` and is reserved for shared/global or cross-module issue records. Module-private issue paths remain under `.zsk/modules/{module}/_issues/`.
27
38
 
28
39
  ## Required Fields
29
40
 
@@ -79,7 +90,7 @@ Every actionable issue should record:
79
90
 
80
91
  ## Closure And Feedback Loop
81
92
 
82
- 1. Create or update the issue under `{paths.issues}/{module}/` as soon as the finding is actionable, using the type and prefix fields to preserve taxonomy.
93
+ 1. Create or update module-specific issues under `.zsk/modules/{module}/_issues/` as soon as the finding is actionable, using the type and prefix fields to preserve taxonomy.
83
94
  2. Fix and verify the issue with linked evidence.
84
95
  3. Wait for user/product confirmation when the outcome changes behavior, business flow, or acceptance semantics.
85
96
  4. After confirmation, update the relevant spec/design/task docs for anything the original artifacts did not cover or described too weakly.