@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.
- package/README.md +36 -31
- package/acceptance/SKILL.md +171 -40
- package/acceptance/harness/POLICY.md +22 -0
- package/acceptance/harness/README.md +4 -3
- package/acceptance/harness/THIS_SKILL.md +1 -1
- package/acceptance/harness/contracts/quality-roles.yaml +281 -0
- package/acceptance/harness/contracts/skill-classification.yaml +44 -0
- package/archive/SKILL.md +171 -40
- package/archive/harness/POLICY.md +22 -0
- package/archive/harness/README.md +4 -3
- package/archive/harness/THIS_SKILL.md +1 -1
- package/archive/harness/contracts/quality-roles.yaml +281 -0
- package/archive/harness/contracts/skill-classification.yaml +44 -0
- package/coding/SKILL.md +224 -54
- package/coding/harness/POLICY.md +22 -0
- package/coding/harness/README.md +4 -3
- package/coding/harness/THIS_SKILL.md +1 -1
- package/coding/harness/contracts/quality-roles.yaml +281 -0
- package/coding/harness/contracts/skill-classification.yaml +44 -0
- package/commit/SKILL.md +174 -41
- package/commit/harness/POLICY.md +22 -0
- package/commit/harness/README.md +4 -3
- package/commit/harness/THIS_SKILL.md +1 -1
- package/commit/harness/contracts/quality-roles.yaml +281 -0
- package/commit/harness/contracts/skill-classification.yaml +44 -0
- package/defect/SKILL.md +176 -40
- package/defect/harness/POLICY.md +22 -0
- package/defect/harness/README.md +4 -3
- package/defect/harness/THIS_SKILL.md +1 -1
- package/defect/harness/contracts/quality-roles.yaml +281 -0
- package/defect/harness/contracts/skill-classification.yaml +44 -0
- package/demo/SKILL.md +178 -40
- package/demo/harness/POLICY.md +22 -0
- package/demo/harness/README.md +4 -3
- package/demo/harness/THIS_SKILL.md +1 -1
- package/demo/harness/contracts/quality-roles.yaml +281 -0
- package/demo/harness/contracts/skill-classification.yaml +44 -0
- package/deploy/SKILL.md +170 -40
- package/deploy/harness/POLICY.md +22 -0
- package/deploy/harness/README.md +4 -3
- package/deploy/harness/THIS_SKILL.md +1 -1
- package/deploy/harness/contracts/quality-roles.yaml +281 -0
- package/deploy/harness/contracts/skill-classification.yaml +44 -0
- package/design/SKILL.md +240 -58
- package/design/harness/POLICY.md +22 -0
- package/design/harness/README.md +4 -3
- package/design/harness/THIS_SKILL.md +1 -1
- package/design/harness/contracts/quality-roles.yaml +281 -0
- package/design/harness/contracts/skill-classification.yaml +44 -0
- package/dispatch/SKILL.md +185 -40
- package/dispatch/harness/POLICY.md +22 -0
- package/dispatch/harness/README.md +4 -3
- package/dispatch/harness/THIS_SKILL.md +1 -1
- package/dispatch/harness/contracts/quality-roles.yaml +281 -0
- package/dispatch/harness/contracts/skill-classification.yaml +44 -0
- package/fix/SKILL.md +188 -40
- package/fix/harness/POLICY.md +22 -0
- package/fix/harness/README.md +4 -3
- package/fix/harness/THIS_SKILL.md +1 -1
- package/fix/harness/contracts/quality-roles.yaml +281 -0
- package/fix/harness/contracts/skill-classification.yaml +44 -0
- package/flow/SKILL.md +186 -40
- package/flow/harness/POLICY.md +22 -0
- package/flow/harness/README.md +4 -3
- package/flow/harness/THIS_SKILL.md +1 -1
- package/flow/harness/contracts/quality-roles.yaml +281 -0
- package/flow/harness/contracts/skill-classification.yaml +44 -0
- package/issue/SKILL.md +182 -43
- package/issue/harness/POLICY.md +22 -0
- package/issue/harness/README.md +4 -3
- package/issue/harness/THIS_SKILL.md +1 -1
- package/issue/harness/contracts/quality-roles.yaml +281 -0
- package/issue/harness/contracts/skill-classification.yaml +44 -0
- package/learn/SKILL.md +182 -40
- package/learn/harness/POLICY.md +22 -0
- package/learn/harness/README.md +4 -3
- package/learn/harness/THIS_SKILL.md +1 -1
- package/learn/harness/contracts/quality-roles.yaml +281 -0
- package/learn/harness/contracts/skill-classification.yaml +44 -0
- package/package.json +1 -1
- package/prepare/SKILL.md +218 -57
- package/prepare/harness/POLICY.md +22 -0
- package/prepare/harness/README.md +4 -3
- package/prepare/harness/THIS_SKILL.md +1 -1
- package/prepare/harness/contracts/quality-roles.yaml +281 -0
- package/prepare/harness/contracts/skill-classification.yaml +44 -0
- package/preproposal/SKILL.md +268 -61
- package/preproposal/harness/POLICY.md +22 -0
- package/preproposal/harness/README.md +4 -3
- package/preproposal/harness/THIS_SKILL.md +1 -1
- package/preproposal/harness/contracts/quality-roles.yaml +281 -0
- package/preproposal/harness/contracts/skill-classification.yaml +44 -0
- package/proposal/SKILL.md +225 -61
- package/proposal/harness/POLICY.md +22 -0
- package/proposal/harness/README.md +4 -3
- package/proposal/harness/THIS_SKILL.md +1 -1
- package/proposal/harness/contracts/quality-roles.yaml +281 -0
- package/proposal/harness/contracts/skill-classification.yaml +44 -0
- package/ready/SKILL.md +171 -40
- package/ready/harness/POLICY.md +22 -0
- package/ready/harness/README.md +4 -3
- package/ready/harness/THIS_SKILL.md +1 -1
- package/ready/harness/contracts/quality-roles.yaml +281 -0
- package/ready/harness/contracts/skill-classification.yaml +44 -0
- package/review/SKILL.md +340 -84
- package/review/harness/POLICY.md +22 -0
- package/review/harness/README.md +4 -3
- package/review/harness/THIS_SKILL.md +1 -1
- package/review/harness/contracts/quality-roles.yaml +281 -0
- package/review/harness/contracts/skill-classification.yaml +44 -0
- package/smoke/SKILL.md +211 -55
- package/smoke/harness/POLICY.md +22 -0
- package/smoke/harness/README.md +4 -3
- package/smoke/harness/THIS_SKILL.md +1 -1
- package/smoke/harness/contracts/quality-roles.yaml +281 -0
- package/smoke/harness/contracts/skill-classification.yaml +44 -0
- package/spec/SKILL.md +222 -57
- package/spec/harness/POLICY.md +22 -0
- package/spec/harness/README.md +4 -3
- package/spec/harness/THIS_SKILL.md +1 -1
- package/spec/harness/contracts/quality-roles.yaml +281 -0
- package/spec/harness/contracts/skill-classification.yaml +44 -0
- package/task/SKILL.md +237 -58
- package/task/harness/POLICY.md +22 -0
- package/task/harness/README.md +4 -3
- package/task/harness/THIS_SKILL.md +1 -1
- package/task/harness/contracts/quality-roles.yaml +281 -0
- package/task/harness/contracts/skill-classification.yaml +44 -0
- package/verify/SKILL.md +216 -61
- package/verify/harness/POLICY.md +22 -0
- package/verify/harness/README.md +4 -3
- package/verify/harness/THIS_SKILL.md +1 -1
- package/verify/harness/contracts/quality-roles.yaml +281 -0
- package/verify/harness/contracts/skill-classification.yaml +44 -0
- package/zsk/SKILL.md +194 -40
- package/zsk/harness/POLICY.md +22 -0
- package/zsk/harness/README.md +4 -3
- package/zsk/harness/THIS_SKILL.md +1 -1
- package/zsk/harness/contracts/quality-roles.yaml +281 -0
- package/zsk/harness/contracts/skill-classification.yaml +44 -0
- package/zskplan/SKILL.md +201 -40
- package/zskplan/harness/POLICY.md +22 -0
- package/zskplan/harness/README.md +4 -3
- package/zskplan/harness/THIS_SKILL.md +1 -1
- package/zskplan/harness/contracts/quality-roles.yaml +281 -0
- 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
|
|
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
|
|
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
|
|
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
|
|
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`
|
|
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
|
|
package/acceptance/SKILL.md
CHANGED
|
@@ -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
|
-
##
|
|
74
|
-
|
|
75
|
-
This
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
-
|
|
80
|
-
-
|
|
81
|
-
-
|
|
82
|
-
-
|
|
83
|
-
-
|
|
84
|
-
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
-
|
|
89
|
-
-
|
|
90
|
-
-
|
|
91
|
-
-
|
|
92
|
-
-
|
|
93
|
-
-
|
|
94
|
-
-
|
|
95
|
-
-
|
|
96
|
-
-
|
|
97
|
-
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
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
|
-
|
|
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
|
-
-
|
|
106
|
-
|
|
107
|
-
-
|
|
108
|
-
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
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
|
-
-
|
|
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/
|
|
11
|
-
- `skills/<skill>/harness/
|
|
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 `
|
|
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
|
|
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
|
|