@captain_z/zsk-skills 1.8.7 → 1.8.8

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 (146) hide show
  1. package/README.md +36 -31
  2. package/acceptance/SKILL.md +171 -40
  3. package/acceptance/harness/POLICY.md +22 -0
  4. package/acceptance/harness/README.md +4 -3
  5. package/acceptance/harness/THIS_SKILL.md +1 -1
  6. package/acceptance/harness/contracts/quality-roles.yaml +281 -0
  7. package/acceptance/harness/contracts/skill-classification.yaml +44 -0
  8. package/archive/SKILL.md +171 -40
  9. package/archive/harness/POLICY.md +22 -0
  10. package/archive/harness/README.md +4 -3
  11. package/archive/harness/THIS_SKILL.md +1 -1
  12. package/archive/harness/contracts/quality-roles.yaml +281 -0
  13. package/archive/harness/contracts/skill-classification.yaml +44 -0
  14. package/coding/SKILL.md +224 -54
  15. package/coding/harness/POLICY.md +22 -0
  16. package/coding/harness/README.md +4 -3
  17. package/coding/harness/THIS_SKILL.md +1 -1
  18. package/coding/harness/contracts/quality-roles.yaml +281 -0
  19. package/coding/harness/contracts/skill-classification.yaml +44 -0
  20. package/commit/SKILL.md +174 -41
  21. package/commit/harness/POLICY.md +22 -0
  22. package/commit/harness/README.md +4 -3
  23. package/commit/harness/THIS_SKILL.md +1 -1
  24. package/commit/harness/contracts/quality-roles.yaml +281 -0
  25. package/commit/harness/contracts/skill-classification.yaml +44 -0
  26. package/defect/SKILL.md +176 -40
  27. package/defect/harness/POLICY.md +22 -0
  28. package/defect/harness/README.md +4 -3
  29. package/defect/harness/THIS_SKILL.md +1 -1
  30. package/defect/harness/contracts/quality-roles.yaml +281 -0
  31. package/defect/harness/contracts/skill-classification.yaml +44 -0
  32. package/demo/SKILL.md +178 -40
  33. package/demo/harness/POLICY.md +22 -0
  34. package/demo/harness/README.md +4 -3
  35. package/demo/harness/THIS_SKILL.md +1 -1
  36. package/demo/harness/contracts/quality-roles.yaml +281 -0
  37. package/demo/harness/contracts/skill-classification.yaml +44 -0
  38. package/deploy/SKILL.md +170 -40
  39. package/deploy/harness/POLICY.md +22 -0
  40. package/deploy/harness/README.md +4 -3
  41. package/deploy/harness/THIS_SKILL.md +1 -1
  42. package/deploy/harness/contracts/quality-roles.yaml +281 -0
  43. package/deploy/harness/contracts/skill-classification.yaml +44 -0
  44. package/design/SKILL.md +240 -58
  45. package/design/harness/POLICY.md +22 -0
  46. package/design/harness/README.md +4 -3
  47. package/design/harness/THIS_SKILL.md +1 -1
  48. package/design/harness/contracts/quality-roles.yaml +281 -0
  49. package/design/harness/contracts/skill-classification.yaml +44 -0
  50. package/dispatch/SKILL.md +185 -40
  51. package/dispatch/harness/POLICY.md +22 -0
  52. package/dispatch/harness/README.md +4 -3
  53. package/dispatch/harness/THIS_SKILL.md +1 -1
  54. package/dispatch/harness/contracts/quality-roles.yaml +281 -0
  55. package/dispatch/harness/contracts/skill-classification.yaml +44 -0
  56. package/fix/SKILL.md +188 -40
  57. package/fix/harness/POLICY.md +22 -0
  58. package/fix/harness/README.md +4 -3
  59. package/fix/harness/THIS_SKILL.md +1 -1
  60. package/fix/harness/contracts/quality-roles.yaml +281 -0
  61. package/fix/harness/contracts/skill-classification.yaml +44 -0
  62. package/flow/SKILL.md +186 -40
  63. package/flow/harness/POLICY.md +22 -0
  64. package/flow/harness/README.md +4 -3
  65. package/flow/harness/THIS_SKILL.md +1 -1
  66. package/flow/harness/contracts/quality-roles.yaml +281 -0
  67. package/flow/harness/contracts/skill-classification.yaml +44 -0
  68. package/issue/SKILL.md +182 -43
  69. package/issue/harness/POLICY.md +22 -0
  70. package/issue/harness/README.md +4 -3
  71. package/issue/harness/THIS_SKILL.md +1 -1
  72. package/issue/harness/contracts/quality-roles.yaml +281 -0
  73. package/issue/harness/contracts/skill-classification.yaml +44 -0
  74. package/learn/SKILL.md +182 -40
  75. package/learn/harness/POLICY.md +22 -0
  76. package/learn/harness/README.md +4 -3
  77. package/learn/harness/THIS_SKILL.md +1 -1
  78. package/learn/harness/contracts/quality-roles.yaml +281 -0
  79. package/learn/harness/contracts/skill-classification.yaml +44 -0
  80. package/package.json +1 -1
  81. package/prepare/SKILL.md +218 -57
  82. package/prepare/harness/POLICY.md +22 -0
  83. package/prepare/harness/README.md +4 -3
  84. package/prepare/harness/THIS_SKILL.md +1 -1
  85. package/prepare/harness/contracts/quality-roles.yaml +281 -0
  86. package/prepare/harness/contracts/skill-classification.yaml +44 -0
  87. package/preproposal/SKILL.md +268 -61
  88. package/preproposal/harness/POLICY.md +22 -0
  89. package/preproposal/harness/README.md +4 -3
  90. package/preproposal/harness/THIS_SKILL.md +1 -1
  91. package/preproposal/harness/contracts/quality-roles.yaml +281 -0
  92. package/preproposal/harness/contracts/skill-classification.yaml +44 -0
  93. package/proposal/SKILL.md +225 -61
  94. package/proposal/harness/POLICY.md +22 -0
  95. package/proposal/harness/README.md +4 -3
  96. package/proposal/harness/THIS_SKILL.md +1 -1
  97. package/proposal/harness/contracts/quality-roles.yaml +281 -0
  98. package/proposal/harness/contracts/skill-classification.yaml +44 -0
  99. package/ready/SKILL.md +171 -40
  100. package/ready/harness/POLICY.md +22 -0
  101. package/ready/harness/README.md +4 -3
  102. package/ready/harness/THIS_SKILL.md +1 -1
  103. package/ready/harness/contracts/quality-roles.yaml +281 -0
  104. package/ready/harness/contracts/skill-classification.yaml +44 -0
  105. package/review/SKILL.md +340 -84
  106. package/review/harness/POLICY.md +22 -0
  107. package/review/harness/README.md +4 -3
  108. package/review/harness/THIS_SKILL.md +1 -1
  109. package/review/harness/contracts/quality-roles.yaml +281 -0
  110. package/review/harness/contracts/skill-classification.yaml +44 -0
  111. package/smoke/SKILL.md +211 -55
  112. package/smoke/harness/POLICY.md +22 -0
  113. package/smoke/harness/README.md +4 -3
  114. package/smoke/harness/THIS_SKILL.md +1 -1
  115. package/smoke/harness/contracts/quality-roles.yaml +281 -0
  116. package/smoke/harness/contracts/skill-classification.yaml +44 -0
  117. package/spec/SKILL.md +222 -57
  118. package/spec/harness/POLICY.md +22 -0
  119. package/spec/harness/README.md +4 -3
  120. package/spec/harness/THIS_SKILL.md +1 -1
  121. package/spec/harness/contracts/quality-roles.yaml +281 -0
  122. package/spec/harness/contracts/skill-classification.yaml +44 -0
  123. package/task/SKILL.md +237 -58
  124. package/task/harness/POLICY.md +22 -0
  125. package/task/harness/README.md +4 -3
  126. package/task/harness/THIS_SKILL.md +1 -1
  127. package/task/harness/contracts/quality-roles.yaml +281 -0
  128. package/task/harness/contracts/skill-classification.yaml +44 -0
  129. package/verify/SKILL.md +216 -61
  130. package/verify/harness/POLICY.md +22 -0
  131. package/verify/harness/README.md +4 -3
  132. package/verify/harness/THIS_SKILL.md +1 -1
  133. package/verify/harness/contracts/quality-roles.yaml +281 -0
  134. package/verify/harness/contracts/skill-classification.yaml +44 -0
  135. package/zsk/SKILL.md +194 -40
  136. package/zsk/harness/POLICY.md +22 -0
  137. package/zsk/harness/README.md +4 -3
  138. package/zsk/harness/THIS_SKILL.md +1 -1
  139. package/zsk/harness/contracts/quality-roles.yaml +281 -0
  140. package/zsk/harness/contracts/skill-classification.yaml +44 -0
  141. package/zskplan/SKILL.md +201 -40
  142. package/zskplan/harness/POLICY.md +22 -0
  143. package/zskplan/harness/README.md +4 -3
  144. package/zskplan/harness/THIS_SKILL.md +1 -1
  145. package/zskplan/harness/contracts/quality-roles.yaml +281 -0
  146. package/zskplan/harness/contracts/skill-classification.yaml +44 -0
package/README.md CHANGED
@@ -30,7 +30,7 @@ zsk skill 是 LLM **按需自动触发**的资产。用户通常只做两件事
30
30
 
31
31
  ## Profile 选择
32
32
 
33
- Profile 是流程组合策略,不是新的 skill。Atomic skills 仍然平铺在 `skills/`,profile 只决定默认安装集合、阶段顺序、可选节点和严格度。
33
+ Profile 是流程组合策略,不是新的 skill。Atomic skills 仍然平铺在 `skills/`,profile 只决定默认安装集合、阶段顺序、可选节点和严格度。Workflow 负责编排、约束、签字、角色投入和多角度会诊;单个 skill 只负责自己的职责、非目标、输出质量、证据、风险和置信度。
34
34
 
35
35
  | profile | skills | 适用场景 |
36
36
  | --- | ---: | --- |
@@ -43,20 +43,20 @@ Profile 是流程组合策略,不是新的 skill。Atomic skills 仍然平铺
43
43
 
44
44
  ## Skill 搭配流程图
45
45
 
46
- `dispatch` 是 ZSK 给 OMX 的调度适配入口;`flow` 是恢复下一合法阶段的状态机入口;profile 决定主线顺序、可选节点和严格度,其他 skill 按阶段负责一段明确产物。遇到缺资料、缺证据、缺 owner 或发现缺陷时,阶段不会静默跳过,而是写 issue 或回到前置阶段补齐。
46
+ `dispatch` 是 ZSK 给 OMX 的调度适配入口;`flow` 是恢复下一合法阶段的状态机入口;profile 决定主线顺序、可选节点和严格度,其他 skill 按阶段负责一段明确产物。遇到缺资料、缺证据、缺 owner 或发现缺陷时,workflow 决定是否降级、补资源、回退或阻塞;skill 本身记录 gap、影响和下一步,不把 sibling skill 的产物当作缺一不可的硬前置。
47
47
 
48
48
  ```mermaid
49
49
  flowchart TD
50
50
  Start([开始或恢复工作]) --> Dispatch[zsk:dispatch<br/>让 OMX 按 ZSK workflow 调度]
51
51
  Dispatch --> Flow[zsk:flow<br/>读取状态与资源]
52
- Flow --> Prepare[zsk:prepare<br/>收集 SRS/PRD/API/设计/测试来源]
52
+ Flow --> Prepare[zsk:prepare<br/>计划并选择性同步资源]
53
53
  Prepare --> Proposal[zsk:proposal<br/>定义 why / scope / non-goals]
54
54
  Proposal --> Spec[zsk:spec<br/>写 FR/NFR/AC/场景]
55
55
  Spec --> Design[zsk:design<br/>映射接口/数据流/风险]
56
56
  Design --> Task[zsk:task<br/>拆任务与证据钩子]
57
57
  Task --> Coding[zsk:coding<br/>小步实现]
58
58
  Coding --> Smoke[zsk:smoke<br/>本地证明变更可运行]
59
- Smoke --> Review[zsk:review<br/>阻塞式实现审查]
59
+ Smoke --> Review[zsk:review<br/>目标审查/多角度可选]
60
60
  Review --> Commit[zsk:commit<br/>review 后 scoped commit]
61
61
  Commit --> Ready[zsk:ready<br/>整理待验收证据]
62
62
  Ready --> Verify[zsk:verify<br/>独立验证 claim]
@@ -75,6 +75,10 @@ flowchart TD
75
75
  Commit -.需要演示.-> Demo
76
76
  ```
77
77
 
78
+ Direct review 只需要明确 review target(代码 diff、本地路径、stage 文档或可检测变更)。缺少 spec/design/tasks/smoke/signoff/专家面板时,`review` 应记录为 N/A、风险或 confidence gap,并继续做目标审查;只有 workflow profile 明确启用 strict gate 时,才由 workflow 把这些缺口升级为阻塞。
79
+
80
+ 每个 stage 输出都应包含 `Output Quality Check`:质量分、置信度、证据、缺口/不确定性、漂移信号、下一步。若缺口属于本 skill 职责内,应先做 bounded ReAct 修复;若属于 workflow 编排、资源准备或外部决策,则交给 workflow 路由。
81
+
78
82
  ## 常见用法
79
83
 
80
84
  | 目标 | 推荐说法或命令 | 结果 |
@@ -85,6 +89,7 @@ flowchart TD
85
89
  | CI 安装标准 SDLC profile | `npx @captain_z/zsk add zsk-sdlc --target=~/.claude/skills --yes` | 非交互安装 21 颗标准 workflow skills |
86
90
  | Claude plugin 安装 | `/plugin marketplace add codeshareman/zsk` 后 `/plugin install zsk@zsk` | 使用 `/zsk:<slug>` 命令面 |
87
91
  | GitHub skills 管理器安装 | `npx skills add codeshareman/zsk` | 从仓库根 `skills/` 安装;不要加 `@` |
92
+ | 准备项目资源 | `npx @captain_z/zsk prepare draft && npx @captain_z/zsk prepare plan && npx @captain_z/zsk prepare sync --all` | 先审查建议,再同步确认后的 `.zsk/raws/**` snapshot |
88
93
  | 只想让 ZSK 自己规划和执行 | "用 `zsk:zskplan` 规划" / "用 `zsk:zsk` 继续" | 计划写入 `.zsk/plans/`,执行产物写入 `.zsk` |
89
94
  | 不确定该用哪个阶段 skill | "用 `zsk:dispatch` 调度" | 让 OMX 围绕 ZSK skills 分配 subagents |
90
95
  | 恢复一个项目的下一步 | "用 `zsk:flow` 继续" | 读取配置、阶段文档和 blocker,选择合法下一阶段 |
@@ -101,11 +106,11 @@ flowchart TD
101
106
 
102
107
  ## 和项目知识工作区的关系
103
108
 
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` 做确定性校验。
109
+ `zsk init` 生成的 `.zsk/config.yaml`、`.zsk/CONTEXT.md`、`.zsk/docs/SYSTEM-SPEC.md`、`.zsk/raws/`、`.zsk/modules/`、`.zsk/issues/`、`.zsk/evidence/`、`.zsk/playwright/` 和 `.zsk/plans/` 是默认项目上下文。CLI 负责创建最小骨架、使用 package-owned schema 校验、通过 `zsk prepare draft` / `zsk prepare plan` 生成可审查建议,并通过 `zsk prepare sync` 选择性刷新 `.zsk/raws/manifest.json`、snapshot 和 readiness evidence。`zsk config check` / `zsk check` 做确定性校验。
105
110
 
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`。
111
+ 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`。
107
112
 
108
- 每个 skill/stage 的输入、输出、工具/能力、脚本策略和运行时 UI 观察策略由 harness 的 `skill-io-contract.yaml` 约束;完成后的产物路径、issue 索引同步和确认后的文档反哺由 `completion-contract.yaml` 约束。缺少 Documentation Feedback 时,`zsk check` 可以把它作为阶段未收口的证据。
113
+ 每个 skill/stage 的输入、输出、工具/能力、脚本策略和运行时 UI 观察策略由 harness 的 `skill-io-contract.yaml` 约束;完成后的产物路径、issue 索引同步和确认后的文档反哺由 `completion-contract.yaml` 约束;质量评分、角色/人员建议和 direct review 降级规则由 `quality-roles.yaml`、`skill-classification.yaml` 和 `workflow-orchestration-policy.yaml` 共同说明。缺少 Documentation Feedback 时,`zsk check` 可以把它作为阶段未收口的证据。
109
114
 
110
115
  ## 领域总览
111
116
 
@@ -141,91 +146,91 @@ Skills 负责更需要判断的部分:理解 SRS、PRD、API 契约、Figma/Mo
141
146
 
142
147
  用户默认只需要理解的入口。
143
148
 
144
- - **`zskplan`** · keep-entry
149
+ - **`zskplan`** · type: workflow · keep-entry
145
150
  Use as the ZSK-aware RalphPlan-style planning entrypoint that clarifies vague intake, then freezes scope, module decomposition, skill route, expert lanes, Playwright/evidence paths, and stop conditions under .zsk.
146
151
 
147
- - **`zsk`** · keep-entry
152
+ - **`zsk`** · type: workflow · keep-entry
148
153
  Use as the ZSK-aware Ralph-style execution loop that follows ZSK plans, dispatches expert lanes, verifies, fixes, and writes only .zsk outputs.
149
154
 
150
155
  ### Stage Skills (11)
151
156
 
152
157
  有独立产物边界、质量门禁和下游消费关系的一等阶段。
153
158
 
154
- - **`prepare`** · keep-stage
159
+ - **`prepare`** · type: capability · keep-stage
155
160
  After project init, collects resource origins, snapshots evidence, and updates config/manifests before proposal/spec.
156
161
 
157
- - **`preproposal`** · keep-stage
162
+ - **`preproposal`** · type: capability · keep-stage
158
163
  Before proposal, turns a one-sentence or vague intake brief into a clear, reviewed product, roadmap, UX, and readiness raw resource pack.
159
164
 
160
- - **`proposal`** · keep-stage
165
+ - **`proposal`** · type: capability · keep-stage
161
166
  Before spec, frames the problem, scope, non-goals, success criteria, stakeholders, risks, and resource gaps.
162
167
 
163
- - **`spec`** · keep-stage
168
+ - **`spec`** · type: capability · keep-stage
164
169
  After proposal, defines sourced FR/NFR, acceptance criteria, scenarios, edge cases, and open gaps.
165
170
 
166
- - **`design`** · keep-stage
171
+ - **`design`** · type: capability · keep-stage
167
172
  After spec freeze, maps behavior to interfaces, data flow, rollout plan, risks, and implementation surfaces.
168
173
 
169
- - **`task`** · keep-stage
174
+ - **`task`** · type: capability · keep-stage
170
175
  After design approval, creates executable tasks with dependencies, FR/AC coverage, owners, and evidence hooks.
171
176
 
172
- - **`coding`** · keep-stage
177
+ - **`coding`** · type: capability · keep-stage
173
178
  For approved tasks, implements small scoped diffs with tests, evidence, and blocker reporting.
174
179
 
175
- - **`demo`** · keep-stage
180
+ - **`demo`** · type: capability · keep-stage
176
181
  Before formal testing, runs planned demos and captures evidence without making acceptance claims.
177
182
 
178
- - **`verify`** · keep-stage
183
+ - **`verify`** · type: capability · keep-stage
179
184
  Independently verifies fixes or acceptance criteria against a stated claim, target version, and linked evidence.
180
185
 
181
- - **`acceptance`** · keep-stage
186
+ - **`acceptance`** · type: capability · keep-stage
182
187
  After independent verify passes, records accept/reject decision, linked evidence, and residual-risk owner.
183
188
 
184
- - **`archive`** · keep-stage
189
+ - **`archive`** · type: capability · keep-stage
185
190
  After acceptance, closes the iteration by preserving artifacts, decisions, issues, and learning proposals.
186
191
 
187
192
  ### Capabilities (6)
188
193
 
189
194
  可被多个阶段复用的内部能力;默认由入口或阶段调度。
190
195
 
191
- - **`dispatch`** · downshift-to-capability
196
+ - **`dispatch`** · type: workflow · downshift-to-capability
192
197
  At task intake, asks OMX to assign subagents to the right zsk skill from request, state, evidence, and blockers.
193
198
 
194
- - **`review`** · downshift-to-capability
199
+ - **`review`** · type: capability · downshift-to-capability
195
200
  After smoke or explicit path targeting, reviews implementation or local targets against scope, contracts, evidence, security, maintainability, and ZSK boundaries.
196
201
 
197
- - **`defect`** · downshift-to-capability
202
+ - **`defect`** · type: capability · downshift-to-capability
198
203
  After formal QA reports findings, normalizes defects with repro, evidence, FR/AC links, and fix routing.
199
204
 
200
- - **`deploy`** · downshift-to-capability
205
+ - **`deploy`** · type: capability · downshift-to-capability
201
206
  After review, deploys to non-production or demo targets with version, smoke evidence, and rollback owner.
202
207
 
203
- - **`learn`** · downshift-to-capability
208
+ - **`learn`** · type: capability · downshift-to-capability
204
209
  Use after repeated friction or supplied public skill/harness references to learn, compare, record gaps, and prepare one reviewed ZSK optimization batch.
205
210
 
206
- - **`issue`** · keep-capability
211
+ - **`issue`** · type: utility · keep-capability
207
212
  Tracks defects, blockers, questions, and risks with taxonomy, severity, owner, reproduction, and evidence.
208
213
 
209
214
  ### Gates (3)
210
215
 
211
216
  阶段内部的质量检查点或发布检查点。
212
217
 
213
- - **`smoke`** · downshift-to-gate
218
+ - **`smoke`** · type: capability · downshift-to-gate
214
219
  After coding, proves changed behavior locally with targeted tests and relevant lint/typecheck/build evidence.
215
220
 
216
- - **`commit`** · downshift-to-gate
221
+ - **`commit`** · type: capability · downshift-to-gate
217
222
  After smoke and review pass, prepares a scoped commit with intent, evidence, and clean staging.
218
223
 
219
- - **`ready`** · downshift-to-gate
224
+ - **`ready`** · type: capability · downshift-to-gate
220
225
  Before independent verification, prepares a handoff with issue mappings, evidence, version, and regression notes.
221
226
 
222
227
  ### Modes (2)
223
228
 
224
229
  入口或阶段内部的执行模式。
225
230
 
226
- - **`flow`** · downshift-to-mode
231
+ - **`flow`** · type: workflow · downshift-to-mode
227
232
  Starts or resumes delivery by reading state, resources, and blockers, then selecting the next legal stage.
228
233
 
229
- - **`fix`** · downshift-to-mode
234
+ - **`fix`** · type: workflow · downshift-to-mode
230
235
  For persisted issues, diagnoses root cause, applies the smallest scoped correction, adds a regression guard, updates the issue, and hands off verification.
231
236
 
@@ -3,6 +3,7 @@ name: acceptance
3
3
  description: After independent verify passes, records accept/reject decision,
4
4
  linked evidence, and residual-risk owner.
5
5
  kind: workflow-node
6
+ skillType: capability
6
7
  pack: core
7
8
  stage: acceptance
8
9
  requires:
@@ -70,46 +71,176 @@ Use this stage after independent `verify` has passed and the product/business ow
70
71
  - Updated spec/design/task documentation feedback or explicit no-update rationale.
71
72
  - Archive readiness or rejection route.
72
73
 
73
- ## Harness Contract
74
-
75
- This core skill is governed by the ZSK harness. Enforce these rules even when only this `SKILL.md` is visible:
76
-
77
- - Stage gates: do not skip required inputs, illegal transitions, blockers, or evidence checks.
78
- - Evidence rules: no PASS / DONE / READY claim without linked command, artifact, issue, scenario, or human decision evidence.
79
- - Source of truth: read configured resources before inventing intent; record conflicts instead of choosing silently.
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
- - Constraint levels: hard requirements and triggered conditional requirements are blocking; advisory guidance may be skipped only with rationale and no broken hard/conditional gate.
83
- - Required outputs: every output declared in the skill I/O contract is mandatory unless recorded as evidence-backed N/A or BLOCKED with owner, impact, and next action.
84
- - Collaboration: ordinary stage skills own their declared outputs and handoff quality; workflow skills own route selection. Do not hardcode the next stage inside a stage skill.
85
- - Output Quality Check: every stage output must expose status, owner, source basis, blocking item links, and next action near the top of the artifact; route cross-stage gaps to their owning stage instead of running a generic grill.
86
- - Clarification Prelude: ask exactly one load-bearing question with a separate recommendation only after local sources cannot produce a safe expression; persist confirmed expressions through CLAR, the owning artifact, and required CONTEXT.md updates.
87
- - Requirements Grilling Readiness: for preproposal/proposal clarification, follow `harness/contracts/requirements-grilling.yaml`; high-impact ambiguity asks one question and may block, medium ambiguity may proceed with accepted recommendation, and low-impact ambiguity is recorded without blocking.
88
- - Stage Output Readiness: for spec/design output quality, follow `harness/contracts/stage-output-readiness.yaml`; spec protects observable behavior contracts, design protects task-ready implementation decisions, and accepted reusable consensus must persist to Context Records.
89
- - Clarification quality: before asking, name source basis, unresolved decision, impact tier, downstream consumer, why sources cannot answer, recommended answer, accepted tradeoff, and Context update target or N/A rationale.
90
- - Readiness Packs: follow `harness/contracts/readiness-packs.yaml` when source lanes, product packs, UX supplements, QA case packs, defect packs, or readiness handoffs are produced or consumed; keep provider metadata under `providerRefs` and local evidence under `sourceRefs`.
91
- - Dispatch Runtime: follow `harness/contracts/dispatch-runtime.yaml` when planning subagent, OMX, provider-lane, or sequential dispatch; every emitted packet needs durable status, heartbeat/timeout policy, and fallback evidence.
92
- - 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.
93
- - Filesystem boundaries: write ZSK-managed outputs only under the configured `.zsk` workspace paths.
94
- - Path privacy: do not write personal home-directory absolute paths such as `/Users/<name>/...`, `/home/<name>/...`, `C:\Users\<name>\...`, or `/private/var/...` into reusable project docs; use repo-relative, `.zsk/...`, `$HOME/...`, or `<workspace>/...` references instead.
95
- - Repository layout: edit canonical source roots first, regenerate derived surfaces, and keep local runtime state out of Git unless it is intentional evidence.
96
- - Workspace layout: keep init surfaces shallow; materialize lazy roots such as `.zsk/issues`, `.zsk/evidence`, `.zsk/resources`, `.zsk/plans`, and `.zsk/playwright` only when an owning output exists.
97
- - Profile strategy: profiles select workflow strategy, strictness, capabilities, gates, evidence, and tools; flat bundles are only the install adapter.
98
- - Work management: emit provider-agnostic work events to `.zsk/work.jsonl` only after real task/issue/assignment/status changes; keep Multica or future providers behind adapters.
99
- - Context recording: durable terminology, naming, decomposition, and load-bearing clarification decisions must update the nearest Context Record target, or the handoff must record `Context update: N/A` with rationale.
100
- - Learning loop: reusable gaps become learning proposals; never mutate core constraints, templates, packs, or skills automatically.
101
- - Learning authority: learning proposals must target the canonical ZSK source repo `.zsk/learning/proposals/`; consuming projects keep experience in archives, docs feedback, or issues and must not create `.zsk/learning/`.
74
+ ## Skill Quality Contract
75
+
76
+ This is the default direct-run quality contract for this skill. It is generated from the canonical harness contracts so standalone skill use stays high quality without loading full workflow gates.
77
+
78
+ ### Responsibility
79
+
80
+ - Own: Record the accept/reject business decision and residual-risk ownership.
81
+ - Stage/type: `acceptance` / `capability`
82
+ - Output goal: Record the accept/reject business decision and residual-risk ownership.
83
+ - Downstream consumer: The next legal workflow stage, reviewer, or human decision maker.
84
+ - Stop condition: Required outputs are complete, explicitly N/A, or BLOCKED/NEEDS_CLARIFICATION with owner, impact, and next action.
85
+ - Document mode: decisionRecord
86
+
87
+ ### Non-goals
88
+
89
+ - Do not route, approve, staff, gate, or sequence peer skills from this skill.
90
+ - Do not redefine upstream intent or accept downstream work on another skill's behalf.
91
+ - Workflow-owned constraint, not this skill's local responsibility: sequencing.
92
+ - Workflow-owned constraint, not this skill's local responsibility: routing.
93
+ - Workflow-owned constraint, not this skill's local responsibility: staffing.
94
+ - Workflow-owned constraint, not this skill's local responsibility: gates.
95
+ - Workflow-owned constraint, not this skill's local responsibility: approvals.
96
+ - Workflow-owned constraint, not this skill's local responsibility: signoffs.
97
+ - Workflow-owned constraint, not this skill's local responsibility: cross-skill arbitration.
98
+ - Workflow-owned constraint, not this skill's local responsibility: downstream acceptance.
99
+
100
+ ### Inputs And Outputs
101
+
102
+ Direct mode starts from the user's explicit target. Workflow-only artifacts, approvals, signoffs, validation packets, and peer-skill outputs are optional context unless a workflow, strict profile, or local instruction explicitly makes them required.
103
+
104
+ **Direct hard inputs**
105
+
106
+ - explicit-skill-target
107
+
108
+ **Direct optional context**
109
+
110
+ - workflow-packet
111
+ - upstream-artifacts
112
+ - validation-packet
113
+ - anchor-packet
114
+ - gate-evidence
115
+ - peer-skill-artifacts
116
+
117
+ **Declared skill inputs**
118
+
119
+ - verify-report
120
+ - demo-report
121
+ - residual-risks
122
+ - linked-issues
123
+
124
+ **Required outputs**
125
+
126
+ - acceptance-decision
127
+ - confirmed-doc-feedback
128
+ - residual-risk-list
129
+
130
+ ### Quality Rubric
131
+
132
+ **Rubric fields**
133
+
134
+ - output_goal
135
+ - downstream_consumer
136
+ - required_inputs
137
+ - required_outputs
138
+ - must_answer_questions
139
+ - quality_checks
140
+ - anti_patterns
141
+ - stop_condition
142
+
143
+ **Hard acceptance rules**
144
+
145
+ - Record accept, reject, or conditional acceptance decision with linked verify/demo evidence.
146
+ - Name accepted criteria, residual risks, owners, and documentation feedback or no-update rationale.
147
+ - Do not accept without verification evidence unless explicitly blocked and risk-accepted.
148
+
149
+ **Conditional acceptance rules**
150
+
151
+ - When residual risks affect security, privacy, permissions, data, release, or compliance, require owner and follow-up issue.
152
+ - When business/user confirmation is missing, mark acceptance BLOCKED instead of inferred.
153
+
154
+ **Must-answer questions**
155
+
156
+ - Is the verified work accepted, rejected, or conditionally accepted?
157
+ - Which evidence and issues support the decision?
158
+ - Who owns residual risks and documentation feedback?
159
+
160
+ **Quality checks**
102
161
 
103
- When a `harness/` directory is installed beside this file, treat it as the local contract source:
162
+ - Links verify report, demo evidence, accepted criteria, and residual risks.
163
+ - Records documentation feedback or no-update rationale for confirmed learnings.
104
164
 
105
- - Read `harness/THIS_SKILL.md` before executing this skill.
106
- - Read `harness/workflow/skill-io-contract.yaml` for this skill's required inputs, outputs, tools, and capabilities.
107
- - Read `harness/workflow/skill-quality-standards.yaml` for this skill's document mode, must-answer questions, quality checkpoints, and anti-patterns.
108
- - Read `harness/workflow/state-machine.yaml` and `harness/constraints/stage-gates.md` before moving between stages.
109
- - Read `harness/contracts/dispatch-runtime.yaml`, `harness/contracts/profile-strategy.yaml`, `harness/contracts/readiness-packs.yaml`, `harness/contracts/requirements-grilling.yaml`, `harness/contracts/skill-classification.yaml`, `harness/contracts/stage-output-readiness.yaml`, `harness/contracts/work-management.yaml`, `harness/contracts/workspace-layout.yaml`, and `harness/contracts/repository-layout.yaml` before changing dispatch/subagent behavior, install surfaces, source readiness packs, proposal-bound clarification, spec/design readiness, work sync, staffing/talent routing, workspace paths, or repo directory roles.
110
- - Read `harness/constraints/skill-role-contract.md` before planning or reviewing expert work.
111
- - Read `harness/constraints/filesystem-boundaries.md` before creating any project artifact.
165
+ **Anti-pattern scan**
166
+
167
+ - Accepting without verification evidence.
168
+ - Letting residual risks remain ownerless.
169
+
170
+ ### Output Acceptance Checklist
171
+
172
+ Before claiming completion, internally check these items and surface any failure as NEEDS_REPAIR, NEEDS_CLARIFICATION, or BLOCKED. Missing workflow context lowers confidence; it does not block direct mode unless it is also a direct hard input.
173
+
174
+ - Every required output is present, explicitly N/A, or blocked with owner, impact, and next action.
175
+ - Every must-answer question is answered from evidence, accepted assumption, or explicit unknown.
176
+ - Hard acceptance rules pass; conditional rules are checked when their trigger is touched.
177
+ - Quality checks have evidence, not only narrative confidence.
178
+ - Anti-pattern scan is clean, or each remaining risk is named with a concrete follow-up.
179
+ - The answer stays inside this skill's responsibility and does not route, approve, staff, gate, or sequence peer skills.
180
+
181
+ ### Quality Scoring
182
+
183
+ Before final handoff, score the work toward a target of 100. Do not inflate the score to hide missing evidence; if the score cannot reach 100, state the gap and why it remains.
184
+
185
+ - Responsibility fit: 20 points.
186
+ - Input coverage and blocker clarity: 20 points.
187
+ - Required output completeness: 20 points.
188
+ - Evidence trust and test correctness: 15 points.
189
+ - Downstream actionability: 15 points.
190
+ - Simplicity, locality, and token discipline: 10 points.
191
+
192
+ Report the score and confidence when producing a durable artifact, making a recommendation, claiming completion, or ending below 100. For trivial command-style outputs, keep the response lightweight but still do the internal check.
193
+
194
+ ### Completion Report
195
+
196
+ For non-trivial work, include this compact completion signal in the final response or artifact handoff:
197
+
198
+ - Quality score: 0-100, with confidence high/medium/low.
199
+ - Evidence: commands, files, artifacts, source references, or explicit human decisions that support the claim.
200
+ - Gaps: missing inputs, weak tests, unresolved decisions, or workflow-only context that reduced confidence.
201
+ - Next action: none, or the smallest owner/action needed to reach 100.
202
+
203
+ ### Fast Failure Signals
204
+
205
+ Stop early and report the cause instead of spending more tokens when any of these is true:
206
+
207
+ - A direct hard input is missing, stale, contradictory, or not discoverable from local context.
208
+ - The required output would require owning another skill's responsibility or a workflow gate.
209
+ - Evidence is untrusted: skipped tests, mock-only critical path, placeholder output, stale artifacts, or unrelated green checks.
210
+ - The user goal, source evidence, and current artifact contradict each other in a way that changes scope or acceptance.
211
+
212
+ ### Repair Loop
213
+
214
+ - Inspect: compare the current output against responsibility, direct hard inputs, required outputs, rubric, and evidence.
215
+ - Act: repair the smallest failing dimension first; do not add workflow ceremony to compensate for weak skill output.
216
+ - Verify: rerun or recheck the evidence that supports the repaired claim.
217
+ - Iterate toward 100, but cap local repair at two focused loops. If quality still falls short, return NEEDS_REPAIR, NEEDS_CLARIFICATION, or BLOCKED with owner, impact, and next action instead of burning tokens indefinitely.
218
+
219
+ ### Test And Evidence Integrity
220
+
221
+ - Treat passing tests as evidence, not proof. Verify that tests assert user-visible or contract-visible behavior, include meaningful failure modes, and do not only exercise mocks or implementation details.
222
+ - When test correctness cannot be trusted, lower confidence and name the missing integration, smoke, manual, negative, boundary, or regression evidence.
223
+ - Never claim PASS, DONE, READY, or acceptance from placeholder output, skipped checks, stale artifacts, or unrelated green tests.
224
+
225
+ ## Policy Contract
226
+
227
+ This compact policy is the default single-skill contract. It keeps direct skill runs lightweight; full harness resources are loaded only by a process-level flow, strict profile, or explicit local instruction.
228
+
229
+ When a `harness/` directory is installed beside this file:
230
+
231
+ - Read `harness/POLICY.md` as the default local policy.
232
+ - Load `harness/THIS_SKILL.md`, `harness/workflow/skill-io-contract.yaml`, or `harness/constraints/*` only when a process-level flow, strict profile, or local instruction explicitly requires full contract enforcement.
233
+
234
+ Execution discipline:
235
+
236
+ - Follow the active repository `AGENTS.md` and any nearer project instructions first.
237
+ - Load the smallest context needed to make a correct decision; prefer local source, existing artifacts, and focused reads over broad contract loading.
238
+ - Produce verifiable outputs: do not claim PASS, DONE, READY, or completion without linked evidence from commands, artifacts, issue state, scenarios, or accepted human decisions.
239
+ - Stay inside this skill's responsibility; do not redefine upstream artifacts or approve downstream work on another skill's behalf.
240
+ - Do not route, sequence, or invoke peer skills from a single-skill run unless the user explicitly asked for a workflow.
241
+ - Treat required inputs as mode-specific: direct single-skill targets may block when missing, while workflow-only gates, signoffs, peer-skill artifacts, validation packets, and anchors are optional context unless a process-level flow, strict profile, or explicit local instruction declares them required.
242
+ - If an actually required input is missing, stale, contradictory, or outside this skill's remit, report BLOCKED or NEEDS_CLARIFICATION with owner, impact, and next action instead of guessing.
243
+ - Path privacy: do not write personal home-directory absolute paths such as `/Users/<name>/...`, `/home/<name>/...`, `C:\Users\<name>\...`, or `/private/var/...` into reusable project docs; use repo-relative, `.zsk/...`, `$HOME/...`, or `<workspace>/...` references instead.
244
+ - Context recording: durable terminology, naming, decomposition, and load-bearing clarification decisions must update the nearest Context Record target, or the handoff must record `Context update: N/A` with rationale.
112
245
  - Record durable project/module language in `.zsk/modules/{module}/CONTEXT.md` or `.zsk/CONTEXT.md` before relying on it downstream.
113
- - Read `harness/constraints/evidence-rules.md` and `harness/workflow/completion-contract.yaml` before claiming READY / PASS / DONE.
114
- - Read `harness/constraints/issue-taxonomy.md` before creating or updating blockers, risks, defects, or questions.
115
- - 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.
246
+ - Learning authority: learning proposals must target the canonical ZSK source repo `.zsk/learning/proposals/`; consuming projects keep experience in archives, docs feedback, or issues and must not create `.zsk/learning/`.
@@ -0,0 +1,22 @@
1
+ # ZSK Skill Policy Contract
2
+
3
+ This compact policy is the default single-skill contract. It keeps direct skill runs lightweight; full harness resources are loaded only by a process-level flow, strict profile, or explicit local instruction.
4
+
5
+ When a `harness/` directory is installed beside this file:
6
+
7
+ - Read `harness/POLICY.md` as the default local policy.
8
+ - Load `harness/THIS_SKILL.md`, `harness/workflow/skill-io-contract.yaml`, or `harness/constraints/*` only when a process-level flow, strict profile, or local instruction explicitly requires full contract enforcement.
9
+
10
+ Execution discipline:
11
+
12
+ - Follow the active repository `AGENTS.md` and any nearer project instructions first.
13
+ - Load the smallest context needed to make a correct decision; prefer local source, existing artifacts, and focused reads over broad contract loading.
14
+ - Produce verifiable outputs: do not claim PASS, DONE, READY, or completion without linked evidence from commands, artifacts, issue state, scenarios, or accepted human decisions.
15
+ - Stay inside this skill's responsibility; do not redefine upstream artifacts or approve downstream work on another skill's behalf.
16
+ - Do not route, sequence, or invoke peer skills from a single-skill run unless the user explicitly asked for a workflow.
17
+ - Treat required inputs as mode-specific: direct single-skill targets may block when missing, while workflow-only gates, signoffs, peer-skill artifacts, validation packets, and anchors are optional context unless a process-level flow, strict profile, or explicit local instruction declares them required.
18
+ - If an actually required input is missing, stale, contradictory, or outside this skill's remit, report BLOCKED or NEEDS_CLARIFICATION with owner, impact, and next action instead of guessing.
19
+ - Path privacy: do not write personal home-directory absolute paths such as `/Users/<name>/...`, `/home/<name>/...`, `C:\Users\<name>\...`, or `/private/var/...` into reusable project docs; use repo-relative, `.zsk/...`, `$HOME/...`, or `<workspace>/...` references instead.
20
+ - Context recording: durable terminology, naming, decomposition, and load-bearing clarification decisions must update the nearest Context Record target, or the handoff must record `Context update: N/A` with rationale.
21
+ - Record durable project/module language in `.zsk/modules/{module}/CONTEXT.md` or `.zsk/CONTEXT.md` before relying on it downstream.
22
+ - Learning authority: learning proposals must target the canonical ZSK source repo `.zsk/learning/proposals/`; consuming projects keep experience in archives, docs feedback, or issues and must not create `.zsk/learning/`.
@@ -7,9 +7,10 @@ The local `SKILL.md` is the execution entrypoint. This generated harness is an i
7
7
  Roles:
8
8
 
9
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.
10
+ - `skills/<skill>/harness/POLICY.md` is the default standalone policy: AGENTS.md precedence, minimal context, verifiable output, and single-skill boundaries.
11
+ - `skills/<skill>/harness/THIS_SKILL.md` is the full skill-specific contract for workflow or strict-profile runs: responsibility, inputs, outputs, expert lanes, related best-practice concerns, and hard stops.
12
+ - `skills/<skill>/harness/workflow/skill-io-contract.yaml` is filtered to this skill plus shared tool policy so explicit full-contract runs stay portable without carrying the whole catalog.
12
13
  - `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
14
  - Root `.best-practices/` remains repository authoring/reference material. Durable runtime rules must be promoted into root `harness/` or `THIS_SKILL.md`.
14
15
 
15
- Read `THIS_SKILL.md` first, then only the constraint/workflow files it names for the current task.
16
+ Read `POLICY.md` for a direct skill run. Read `THIS_SKILL.md` and the constraint/workflow files it names only when full contract enforcement is explicitly required.
@@ -1,6 +1,6 @@
1
1
  # acceptance · Focused Harness Contract
2
2
 
3
- This file is generated for the installed skill. Read it before executing this skill.
3
+ This full contract is generated for workflow or strict-profile runs. Direct single-skill runs should start from `POLICY.md` and load this file only when full contract enforcement is explicitly required.
4
4
 
5
5
  ## Responsibility
6
6