harnessed 4.7.0 → 4.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +174 -81
- package/dist/cli.mjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/messages/zh-Hans.json +16 -2
- package/package.json +1 -1
- package/workflows/auto/SKILL.zh-Hans.md +129 -0
- package/workflows/disciplines/doc-discipline.zh-Hans.yaml +49 -0
- package/workflows/disciplines/karpathy.yaml +5 -5
- package/workflows/disciplines/karpathy.zh-Hans.yaml +47 -0
- package/workflows/disciplines/operational.yaml +6 -6
- package/workflows/disciplines/operational.zh-Hans.yaml +79 -0
- package/workflows/disciplines/output-style.yaml +7 -7
- package/workflows/disciplines/output-style.zh-Hans.yaml +62 -0
- package/workflows/disciplines/priority.yaml +2 -2
- package/workflows/disciplines/priority.zh-Hans.yaml +28 -0
- package/workflows/discuss/auto/SKILL.zh-Hans.md +75 -0
- package/workflows/discuss/phase/SKILL.zh-Hans.md +73 -0
- package/workflows/discuss/strategic/SKILL.zh-Hans.md +78 -0
- package/workflows/discuss/subtask/SKILL.zh-Hans.md +79 -0
- package/workflows/plan/architecture/SKILL.zh-Hans.md +74 -0
- package/workflows/plan/auto/SKILL.zh-Hans.md +75 -0
- package/workflows/plan/phase/SKILL.zh-Hans.md +76 -0
- package/workflows/research/SKILL.zh-Hans.md +81 -0
- package/workflows/retro/SKILL.zh-Hans.md +71 -0
- package/workflows/role-prompts.zh-Hans.yaml +501 -0
- package/workflows/ship/auto/SKILL.zh-Hans.md +46 -0
- package/workflows/ship/preflight/SKILL.zh-Hans.md +38 -0
- package/workflows/task/auto/SKILL.zh-Hans.md +80 -0
- package/workflows/task/clarify/SKILL.zh-Hans.md +79 -0
- package/workflows/task/code/SKILL.zh-Hans.md +85 -0
- package/workflows/task/deliver/SKILL.zh-Hans.md +113 -0
- package/workflows/task/test/SKILL.zh-Hans.md +90 -0
- package/workflows/verify/auto/SKILL.zh-Hans.md +89 -0
- package/workflows/verify/code-review/SKILL.zh-Hans.md +71 -0
- package/workflows/verify/design/SKILL.zh-Hans.md +74 -0
- package/workflows/verify/multispec/SKILL.zh-Hans.md +88 -0
- package/workflows/verify/paranoid/SKILL.zh-Hans.md +74 -0
- package/workflows/verify/progress/SKILL.zh-Hans.md +69 -0
- package/workflows/verify/qa/SKILL.zh-Hans.md +76 -0
- package/workflows/verify/security/SKILL.zh-Hans.md +70 -0
- package/workflows/verify/simplify/SKILL.zh-Hans.md +70 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: verify-design
|
|
3
|
+
description: |
|
|
4
|
+
Stage ④.f verify 子工作流 — gstack /design-review 设计系统一致性 + AI 审美问题识别
|
|
5
|
+
(has_design_changes 触发, 可选 conditional; bundled verify-stage optional /design-review step).
|
|
6
|
+
schema_version: harnessed.workflow.v3 with disciplines_applied (6 default) + tools_available
|
|
7
|
+
(gstack-design-review + ui-ux-pro-max + frontend-design) + 1 phase (gate ref has_design_changes
|
|
8
|
+
conditional)。Triggered by harnessed CLI `harnessed verify-design --phase <num>` or slash
|
|
9
|
+
command `/verify-design` after `harnessed setup`.
|
|
10
|
+
trigger_phrases:
|
|
11
|
+
- "verify design"
|
|
12
|
+
- "设计审查"
|
|
13
|
+
- "design review"
|
|
14
|
+
- "gstack design review"
|
|
15
|
+
- "跑 verify-design"
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# verify-design 工作流 (v3)
|
|
19
|
+
|
|
20
|
+
## 概览
|
|
21
|
+
|
|
22
|
+
1-phase 子工作流,将 CLAUDE.md「Verify 阶段 — 可选 /design-review」映射到 harnessed
|
|
23
|
+
运行时(Phase v3.0-3.4 W0.13c — D-04 Stage ④ Verify 7 sub + D-12 gstack 治理关卡 +
|
|
24
|
+
Pattern A sub-workflow ship)。
|
|
25
|
+
|
|
26
|
+
| phase | id | upstream | model | capability | gate |
|
|
27
|
+
| ----- | -- | -------- | ----- | ---------- | ---- |
|
|
28
|
+
| 1 | `01-design-review` | gstack | sonnet | `{{ capabilities.gstack-design-review.cmd }}` | `judgments.stage-routing.verify-design-changes.fires` |
|
|
29
|
+
|
|
30
|
+
Per-phase 配置从 `workflows/verify/design/workflow.yaml` 加载;引擎 4-level gate
|
|
31
|
+
resolver 通过 expr-eval 计算 `phase.has_design_changes == true` — 为 true 则调用 gstack
|
|
32
|
+
`/design-review`(设计系统一致性 + AI 审美问题识别),为 false 则跳过。
|
|
33
|
+
|
|
34
|
+
## Capability refs
|
|
35
|
+
|
|
36
|
+
Sister `workflows/capabilities.yaml` 条目:
|
|
37
|
+
- `gstack-design-review` — Bucket 3 治理关卡 (impl: gstack, cmd: /design-review,
|
|
38
|
+
fires_when: has_design_changes)
|
|
39
|
+
- `ui-ux-pro-max` — Bucket 2 special-purpose (impl: gstack, 默认主方案 数据驱动)
|
|
40
|
+
- `frontend-design` — Bucket 2 special-purpose (impl: gstack, UI 创意 / 装饰补充)
|
|
41
|
+
|
|
42
|
+
## Gate ref
|
|
43
|
+
|
|
44
|
+
Sister `workflows/judgments/stage-routing.yaml`:
|
|
45
|
+
- `verify-design-changes.fires` — `phase.stage == 'verify' and phase.has_design_changes == true`
|
|
46
|
+
|
|
47
|
+
## 路由规则(bundled web-design routing — `workflows/judgments/web-design-routing.yaml`)
|
|
48
|
+
|
|
49
|
+
- 默认主方案 → `ui-ux-pro-max`(数据驱动、标准化、可解释)
|
|
50
|
+
- 创意补充 / 不要 AI 味 → `frontend-design`
|
|
51
|
+
- 用户明示「独特 / 不要 AI 感」→ frontend-design 主导,否则 ui-ux-pro-max 优先
|
|
52
|
+
|
|
53
|
+
## 调用方式
|
|
54
|
+
|
|
55
|
+
使用 Bash 工具运行:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
echo "$ARGUMENTS" | harnessed run verify-design --task-stdin
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
若 `$ARGUMENTS` 为空,运行 `harnessed run verify-design`(不带 stdin pipe)。
|
|
62
|
+
|
|
63
|
+
执行完成后,Bash 输出会在 stderr 打印 `Next:` 提示,建议下一阶段操作。是否继续调用,请根据对话上下文自行判断——该提示仅供参考,并非强制指令。
|
|
64
|
+
|
|
65
|
+
<!-- harnessed-generated:v3.4.4 -->
|
|
66
|
+
|
|
67
|
+
## 参考资料
|
|
68
|
+
|
|
69
|
+
- D-04 Stage ④ Verify 7 sub 分解
|
|
70
|
+
- D-12 gstack 治理关卡可选
|
|
71
|
+
- workflows/judgments/web-design-routing.yaml — ui-ux-pro-max 默认 + frontend-design 补充
|
|
72
|
+
- workflows/capabilities.yaml — gstack-design-review / ui-ux-pro-max / frontend-design
|
|
73
|
+
- workflows/judgments/stage-routing.yaml — verify-design-changes trigger
|
|
74
|
+
- workflows/verify-work/workflow.yaml v2 SHIPPED phase 07-design-review-conditional sister verbatim
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: verify-multispec
|
|
3
|
+
description: |
|
|
4
|
+
Stage ④.h verify 子工作流 — 4-specialist Agent Team Pattern C 多维度审查(关键发布 /
|
|
5
|
+
大重构 PR 升级,code-review + gstack-review + gstack-cso + gstack-qa 4 teammate 互相
|
|
6
|
+
SendMessage 质询,NOT fire-and-forget subagent fan-out;bundled Agent Teams Pattern C
|
|
7
|
+
routing)。Cleanup 必跑:shutdown_request + TeamDelete(bundled cleanup discipline)。
|
|
8
|
+
schema_version: harnessed.workflow.v3 with disciplines_applied (6 default) + tools_available
|
|
9
|
+
(agent-teams 3 + 4 specialist capability) + 2 phase (01-team-create on critical-release
|
|
10
|
+
invoke / 02-team-cleanup mandatory shutdown)。
|
|
11
|
+
Triggered by slash command
|
|
12
|
+
`/verify-multispec` after `harnessed setup`.
|
|
13
|
+
trigger_phrases:
|
|
14
|
+
- "verify multispec"
|
|
15
|
+
- "4-specialist Agent Team"
|
|
16
|
+
- "Pattern C 多维度审查"
|
|
17
|
+
- "critical release review"
|
|
18
|
+
- "跑 verify-multispec"
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
# verify-multispec 工作流 (v3)
|
|
22
|
+
|
|
23
|
+
## 概览
|
|
24
|
+
|
|
25
|
+
2-phase 子工作流,将 CLAUDE.md「Verify 阶段 — 关键发布 / 大重构 PR 升级 Agent Team
|
|
26
|
+
Pattern C」映射到 harnessed 运行时(Phase v3.0-3.4 W0.13e — D-04 Stage ④ Verify 7 sub +
|
|
27
|
+
D-11 Agent Teams + Pattern A sub-workflow ship)。
|
|
28
|
+
|
|
29
|
+
| phase | id | upstream | model | capability | gate / on |
|
|
30
|
+
| ----- | -- | -------- | ----- | ---------- | --------- |
|
|
31
|
+
| 1 | `01-team-create` | claude-platform | opus | `{{ capabilities.agent-teams-create.cmd }}` | `parallelism: agent-teams-upgrade.fires`; `on: is_major_release OR is_large_refactor → invoke` |
|
|
32
|
+
| 2 | `02-team-cleanup` | claude-platform | haiku | `{{ capabilities.agent-teams-shutdown.cmd }}` | mandatory 防呆清单 |
|
|
33
|
+
|
|
34
|
+
Per-phase 配置从 `workflows/verify/multispec/workflow.yaml` 加载;phase 01 通过 TeamCreate 创建 4
|
|
35
|
+
个 teammate(code-review + gstack-review + gstack-cso + gstack-qa),teammate 互相
|
|
36
|
+
SendMessage 质询 findings 是否真问题(NOT fire-and-forget);phase 02 必跑 shutdown_request
|
|
37
|
+
+ TeamDelete(bundled Agent Teams cleanup discipline)。
|
|
38
|
+
|
|
39
|
+
## Capability refs
|
|
40
|
+
|
|
41
|
+
Sister `workflows/capabilities.yaml` 条目:
|
|
42
|
+
- `agent-teams-create` — Bucket 5 Agent Teams (impl: claude-platform, cmd: TeamCreate)
|
|
43
|
+
- `agent-teams-send-message` — Bucket 5 Agent Teams (impl: claude-platform, cmd: SendMessage)
|
|
44
|
+
- `agent-teams-shutdown` — Bucket 5 Agent Teams (impl: claude-platform, cmd: TeamDelete)
|
|
45
|
+
- `code-review` — Bucket 1 mattpocock (teammate 1)
|
|
46
|
+
- `gstack-review` — Bucket 3 治理关卡 (teammate 2 Paranoid Staff Engineer)
|
|
47
|
+
- `gstack-cso` — Bucket 3 治理关卡 (teammate 3 安全审查)
|
|
48
|
+
- `gstack-qa` — Bucket 3 治理关卡 (teammate 4 端到端 QA)
|
|
49
|
+
|
|
50
|
+
## Parallelism + on gate refs
|
|
51
|
+
|
|
52
|
+
Sister `workflows/judgments/parallelism-gate.yaml`:
|
|
53
|
+
- `agent-teams-upgrade.fires` — 5 OR-chain(teammate_send_message_needed / subagent_context_overflow /
|
|
54
|
+
shared_task_list / opposing_hypothesis_debate / fullstack_three_way)
|
|
55
|
+
|
|
56
|
+
Phase 级 `on` 子句(critical-release 升级触发):
|
|
57
|
+
- `if: phase.is_major_release == true or phase.is_large_refactor == true` → `action: invoke`
|
|
58
|
+
- else → `action: skip`
|
|
59
|
+
|
|
60
|
+
## 路由规则(bundled Agent Teams routing — `workflows/judgments/parallelism-gate.yaml`)
|
|
61
|
+
|
|
62
|
+
- ✅ **触发**:关键发布 / 大重构 PR(≥3 specialist 需互相质询而非 fire-and-forget)
|
|
63
|
+
- ❌ **跳过**:常规 PR / 单点任务(sister verify-code-review fan-out + verify-paranoid 已够用且省 token)
|
|
64
|
+
- **Token 估算前置条件**:`team_cost < 2 × subagent_cost`(engine-level check;bundled cost guideline)
|
|
65
|
+
- **Cleanup 必跑**:phase 02-team-cleanup `agent-teams-shutdown` 必跑(bundled cleanup discipline)
|
|
66
|
+
|
|
67
|
+
## 调用方式
|
|
68
|
+
|
|
69
|
+
使用 Bash 工具运行:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
echo "$ARGUMENTS" | harnessed run verify-multispec --task-stdin
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
若 `$ARGUMENTS` 为空,运行 `harnessed run verify-multispec`(不带 stdin pipe)。
|
|
76
|
+
|
|
77
|
+
执行完成后,Bash 输出会在 stderr 打印 `Next:` 提示,建议下一阶段操作。是否继续调用,请根据对话上下文自行判断——该提示仅供参考,并非强制指令。
|
|
78
|
+
|
|
79
|
+
<!-- harnessed-generated:v3.4.4 -->
|
|
80
|
+
|
|
81
|
+
## 参考资料
|
|
82
|
+
|
|
83
|
+
- D-04 Stage ④ Verify 7 sub 分解
|
|
84
|
+
- D-11 Agent Teams 4-specialist Pattern C upgrade
|
|
85
|
+
- workflows/capabilities.yaml — agent-teams-{create,send-message,shutdown} + 4 specialist
|
|
86
|
+
- workflows/judgments/stage-routing.yaml — verify-multispec-critical-release trigger
|
|
87
|
+
- workflows/judgments/parallelism-gate.yaml — agent-teams-upgrade.fires (5 OR-chain)
|
|
88
|
+
- workflows/verify-work/workflow.yaml v2 SHIPPED phase 09-agent-team-multispecialist sister verbatim
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: verify-paranoid
|
|
3
|
+
description: |
|
|
4
|
+
Stage ④.c verify 子工作流 — gstack /review Paranoid Staff Engineer 关键模块 PR 前强制
|
|
5
|
+
(bundled gstack governance gate — mandatory before critical-module PR)。Gate:
|
|
6
|
+
judgments.stage-routing.verify-paranoid-critical.fires (phase.is_critical_module == true) —
|
|
7
|
+
默认 critical fire only;非关键模块 skip。
|
|
8
|
+
schema_version: harnessed.workflow.v3 with disciplines_applied (6 default) + tools_available
|
|
9
|
+
(gstack-review) + 1 phase (gate ref is_critical_module conditional)。
|
|
10
|
+
Triggered by slash command
|
|
11
|
+
`/verify-paranoid` after `harnessed setup`.
|
|
12
|
+
trigger_phrases:
|
|
13
|
+
- "verify paranoid"
|
|
14
|
+
- "paranoid staff engineer review"
|
|
15
|
+
- "关键模块审查"
|
|
16
|
+
- "gstack review"
|
|
17
|
+
- "跑 verify-paranoid"
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
# verify-paranoid 工作流 (v3)
|
|
21
|
+
|
|
22
|
+
## 概览
|
|
23
|
+
|
|
24
|
+
1-phase 子工作流,将 CLAUDE.md「gstack 治理关卡 🔒 关键模块 PR 前强制 — `/review`」
|
|
25
|
+
映射到 harnessed 运行时(Phase v3.0-3.4 W0.12 — D-04 Stage ④ Verify 7 sub + D-12 gstack
|
|
26
|
+
治理关卡 + Pattern A sub-workflow ship)。
|
|
27
|
+
|
|
28
|
+
| phase | id | upstream | model | capability | gate |
|
|
29
|
+
| ----- | -- | -------- | ----- | ---------- | ---- |
|
|
30
|
+
| 1 | `01-review` | gstack | opus | `{{ capabilities.gstack-review.cmd }}` | `judgments.stage-routing.verify-paranoid-critical.fires` |
|
|
31
|
+
|
|
32
|
+
Per-phase 配置从 `workflows/verify/paranoid/workflow.yaml` 加载;引擎 4-level gate
|
|
33
|
+
resolver 通过 expr-eval 计算 `phase.is_critical_module == true` — 为 true 则调用 gstack
|
|
34
|
+
`/review`,为 false 则跳过(chain_isolation 3 铁律 R20.16 sister verify-work v2 phase 04)。
|
|
35
|
+
|
|
36
|
+
## Capability refs
|
|
37
|
+
|
|
38
|
+
Sister `workflows/capabilities.yaml` 条目:
|
|
39
|
+
- `gstack-review` — Bucket 3 治理关卡 (impl: gstack, cmd: /review,
|
|
40
|
+
fires_when: phase.is_critical_module == true)
|
|
41
|
+
|
|
42
|
+
## Gate ref
|
|
43
|
+
|
|
44
|
+
Sister `workflows/judgments/stage-routing.yaml`:
|
|
45
|
+
- `verify-paranoid-critical.fires` — `phase.stage == 'verify' and phase.is_critical_module == true`
|
|
46
|
+
(默认 critical fire only;普通 PR 应跳过 — gstack-review 是 Paranoid Staff Engineer 重武器)
|
|
47
|
+
|
|
48
|
+
## 路由规则(sister CLAUDE.md「gstack 治理关卡」)
|
|
49
|
+
|
|
50
|
+
- ✅ **触发**:关键模块 PR 前(auth / payment / data migration / core algorithm 等)
|
|
51
|
+
- ❌ **跳过**:常规 PR / docs / config / 非核心 module
|
|
52
|
+
|
|
53
|
+
## 调用方式
|
|
54
|
+
|
|
55
|
+
使用 Bash 工具运行:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
echo "$ARGUMENTS" | harnessed run verify-paranoid --task-stdin
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
若 `$ARGUMENTS` 为空,运行 `harnessed run verify-paranoid`(不带 stdin pipe)。
|
|
62
|
+
|
|
63
|
+
执行完成后,Bash 输出会在 stderr 打印 `Next:` 提示,建议下一阶段操作。是否继续调用,请根据对话上下文自行判断——该提示仅供参考,并非强制指令。
|
|
64
|
+
|
|
65
|
+
<!-- harnessed-generated:v3.4.4 -->
|
|
66
|
+
|
|
67
|
+
## 参考资料
|
|
68
|
+
|
|
69
|
+
- D-04 Stage ④ Verify 7 sub 分解
|
|
70
|
+
- D-12 gstack 治理关卡强制
|
|
71
|
+
- workflows/capabilities.yaml — gstack-review
|
|
72
|
+
- workflows/judgments/stage-routing.yaml — verify-paranoid-critical trigger
|
|
73
|
+
- workflows/defaults.yaml — ralph_max_iterations.verify-paranoid.* values (W2.2 backfill)
|
|
74
|
+
- workflows/verify-work/workflow.yaml v2 SHIPPED phase 04-gstack-review-conditional sister verbatim
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: verify-progress
|
|
3
|
+
description: |
|
|
4
|
+
Stage ④.a verify 子工作流 — gsd-verify-work + gsd-progress 必跑串行(verify-work 起点)
|
|
5
|
+
+ planning-with-files progress.md 持久化(bundled verify-stage cadence — mandatory serial:
|
|
6
|
+
gsd-verify-work UAT-driven acceptance + gsd-progress 状态同步,顺序不可调换)。
|
|
7
|
+
schema_version: harnessed.workflow.v3 with disciplines_applied (6 default) + tools_available
|
|
8
|
+
(gsd-verify-work + gsd-progress + planning-with-files) + 3 phases (serial 01→02 + persist
|
|
9
|
+
progress.md sink)。Triggered by harnessed CLI `harnessed verify-progress --phase <num>` or
|
|
10
|
+
slash command `/verify-progress` after `harnessed setup`.
|
|
11
|
+
trigger_phrases:
|
|
12
|
+
- "verify progress"
|
|
13
|
+
- "进度同步"
|
|
14
|
+
- "gsd verify work"
|
|
15
|
+
- "ROADMAP 状态同步"
|
|
16
|
+
- "跑 verify-progress"
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# verify-progress 工作流 (v3)
|
|
20
|
+
|
|
21
|
+
## 概览
|
|
22
|
+
|
|
23
|
+
3-phase 子工作流,将 CLAUDE.md「Verify 阶段 — 必跑串行」起点映射到 harnessed 运行时
|
|
24
|
+
(Phase v3.0-3.4 W0.10 — D-04 Stage ④ Verify 7 sub + D-12 gstack 治理关卡 ref + Pattern A
|
|
25
|
+
sub-workflow ship)。
|
|
26
|
+
|
|
27
|
+
| phase | id | upstream | model | capability / invokes | mode / artifacts |
|
|
28
|
+
| ----- | -- | -------- | ----- | -------------------- | ---------------- |
|
|
29
|
+
| 1 | `01-gsd-verify-work` | gsd | sonnet | `{{ capabilities.gsd-verify-work.cmd }}` | serial — UAT-driven acceptance |
|
|
30
|
+
| 2 | `02-gsd-progress` | gsd | haiku | `{{ capabilities.gsd-progress.cmd }}` | serial — ROADMAP/STATE/REQUIREMENTS 同步 |
|
|
31
|
+
| 3 | `03-progress-update` | planning-with-files | haiku | `{{ capabilities.planning-with-files.cmd }}` + `invokes: /plan` | `artifacts_expected: [progress.md]` |
|
|
32
|
+
|
|
33
|
+
Per-phase 配置从 `workflows/verify/progress/workflow.yaml` 加载;引擎通过 `@anthropic-ai/claude-agent-sdk` 0.3.142+ 以串行模式将每个 phase 作为子 agent 启动(顺序锁定 —
|
|
34
|
+
gsd-verify-work UAT 必先于 gsd-progress 状态同步)。
|
|
35
|
+
|
|
36
|
+
## Capability refs
|
|
37
|
+
|
|
38
|
+
Sister `workflows/capabilities.yaml` 条目:
|
|
39
|
+
- `gsd-verify-work` — Bucket 2 special-purpose (impl: gsd, cmd: /gsd-verify-work)
|
|
40
|
+
- `gsd-progress` — Bucket 2 special-purpose (impl: gsd, cmd: /gsd-progress)
|
|
41
|
+
- `planning-with-files` — Bucket 4 核心 capability (impl: claude-code-plugin, cmd: /plan)
|
|
42
|
+
|
|
43
|
+
## 路由规则(sister CLAUDE.md「Verify 阶段」)
|
|
44
|
+
|
|
45
|
+
总 fire 当 `phase.stage == 'verify'`(sister `workflows/judgments/stage-routing.yaml`
|
|
46
|
+
verify-progress-always trigger)。无 skip 条件 — verify-work 起点必跑。
|
|
47
|
+
|
|
48
|
+
## 调用方式
|
|
49
|
+
|
|
50
|
+
使用 Bash 工具运行:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
echo "$ARGUMENTS" | harnessed run verify-progress --task-stdin
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
若 `$ARGUMENTS` 为空,运行 `harnessed run verify-progress`(不带 stdin pipe)。
|
|
57
|
+
|
|
58
|
+
执行完成后,Bash 输出会在 stderr 打印 `Next:` 提示,建议下一阶段操作。是否继续调用,请根据对话上下文自行判断——该提示仅供参考,并非强制指令。
|
|
59
|
+
|
|
60
|
+
<!-- harnessed-generated:v3.4.4 -->
|
|
61
|
+
|
|
62
|
+
## 参考资料
|
|
63
|
+
|
|
64
|
+
- D-04 Stage ④ Verify 7 sub 分解
|
|
65
|
+
- D-12 gstack 治理关卡 ref(verify-paranoid 后续 sub)
|
|
66
|
+
- workflows/capabilities.yaml — gsd-verify-work / gsd-progress / planning-with-files
|
|
67
|
+
- workflows/judgments/stage-routing.yaml — verify-progress-always trigger
|
|
68
|
+
- workflows/defaults.yaml — ralph_max_iterations.verify-progress.* values (W2.2 backfill)
|
|
69
|
+
- workflows/verify-work/workflow.yaml v2 SHIPPED phase 01-02 sister verbatim pattern
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: verify-qa
|
|
3
|
+
description: |
|
|
4
|
+
Stage ④.d 验证子工作流 — gstack /qa 端到端 QA 验收 (has_ui_changes 触发, 可选 conditional;
|
|
5
|
+
捆绑 verify 阶段可选 /qa 步骤).
|
|
6
|
+
schema_version: harnessed.workflow.v3 with disciplines_applied (6 default) + tools_available
|
|
7
|
+
(gstack-qa + playwright-cli + playwright-test + webapp-testing) + 1 phase (gate ref
|
|
8
|
+
has_ui_changes conditional)。
|
|
9
|
+
Triggered by slash command
|
|
10
|
+
`/verify-qa` after `harnessed setup`.
|
|
11
|
+
trigger_phrases:
|
|
12
|
+
- "verify qa"
|
|
13
|
+
- "端到端 QA"
|
|
14
|
+
- "E2E 验收"
|
|
15
|
+
- "gstack qa"
|
|
16
|
+
- "跑 verify-qa"
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# verify-qa workflow (v3)
|
|
20
|
+
|
|
21
|
+
## 概览
|
|
22
|
+
|
|
23
|
+
1-phase 子工作流,将 CLAUDE.md "Verify 阶段 — 可选 /qa" 映射到 harnessed 运行时
|
|
24
|
+
(Phase v3.0-3.4 W0.13a — D-04 Stage ④ Verify 7 sub + D-12 gstack 治理关卡 + Pattern A
|
|
25
|
+
sub-workflow ship)。
|
|
26
|
+
|
|
27
|
+
| phase | id | upstream | model | capability | gate |
|
|
28
|
+
| ----- | -- | -------- | ----- | ---------- | ---- |
|
|
29
|
+
| 1 | `01-qa` | gstack | sonnet | `{{ capabilities.gstack-qa.cmd }}` | `judgments.stage-routing.verify-qa-ui.fires` |
|
|
30
|
+
|
|
31
|
+
Per-phase 配置从 `workflows/verify/qa/workflow.yaml` 加载;引擎 4-level gate resolver
|
|
32
|
+
通过 expr-eval 计算 `phase.has_ui_changes == true` — true 则调用 gstack `/qa` (端到端
|
|
33
|
+
QA 验收 + UI dogfood),false 则跳过。
|
|
34
|
+
|
|
35
|
+
## Capability refs
|
|
36
|
+
|
|
37
|
+
Sister `workflows/capabilities.yaml` 条目:
|
|
38
|
+
- `gstack-qa` — Bucket 3 治理关卡 (impl: gstack, cmd: /qa, fires_when: has_ui_changes)
|
|
39
|
+
- `playwright-cli` — Bucket 2 special-purpose (impl: npm-cli, browser_probe)
|
|
40
|
+
- `playwright-test` — Bucket 2 special-purpose (impl: npm-cli, e2e_test typescript)
|
|
41
|
+
- `webapp-testing` — Bucket 2 special-purpose (impl: gstack, e2e_test python)
|
|
42
|
+
|
|
43
|
+
## Gate ref
|
|
44
|
+
|
|
45
|
+
Sister `workflows/judgments/stage-routing.yaml`:
|
|
46
|
+
- `verify-qa-ui.fires` — `phase.stage == 'verify' and phase.has_ui_changes == true`
|
|
47
|
+
|
|
48
|
+
## 路由规则(捆绑 web-testing 路由 — `workflows/judgments/web-testing-routing.yaml`)
|
|
49
|
+
|
|
50
|
+
- 写测试 提交 repo / CI 跑 → `@playwright/test` (默认 frontend/e2e/*.spec.ts)
|
|
51
|
+
- 探查 / 调试 / 一次性确认 → `playwright-cli` (token 最省)
|
|
52
|
+
- setup 需 Python 后端 (Tortoise ORM / pandas) → `webapp-testing` skill
|
|
53
|
+
- 性能 / a11y / 内存诊断 → 不在此子工作流,用 `chrome-devtools-mcp`
|
|
54
|
+
|
|
55
|
+
## 调用方式
|
|
56
|
+
|
|
57
|
+
使用 Bash 工具运行:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
echo "$ARGUMENTS" | harnessed run verify-qa --task-stdin
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
若 `$ARGUMENTS` 为空,则运行 `harnessed run verify-qa`(不接管道输入)。
|
|
64
|
+
|
|
65
|
+
完成后,Bash 输出会在 stderr 打印 `Next:` 提示,建议下一阶段。是否调用取决于对话上下文 — 该提示仅供参考,非强制指令。
|
|
66
|
+
|
|
67
|
+
<!-- harnessed-generated:v3.4.4 -->
|
|
68
|
+
|
|
69
|
+
## 参考资料
|
|
70
|
+
|
|
71
|
+
- D-04 Stage ④ Verify 7 sub 分解
|
|
72
|
+
- D-12 gstack 治理关卡可选
|
|
73
|
+
- workflows/judgments/web-testing-routing.yaml — 三层职责矩阵 (脑 / 手 / 筋骨)
|
|
74
|
+
- workflows/capabilities.yaml — gstack-qa / playwright-cli / playwright-test / webapp-testing
|
|
75
|
+
- workflows/judgments/stage-routing.yaml — verify-qa-ui trigger
|
|
76
|
+
- workflows/verify-work/workflow.yaml v2 SHIPPED phase 05-qa-conditional sister verbatim
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: verify-security
|
|
3
|
+
description: |
|
|
4
|
+
Stage ④.e 验证子工作流 — gstack /cso 安全审查 OWASP/auth/secrets (has_auth_or_secrets
|
|
5
|
+
触发, 可选 conditional; 捆绑 verify 阶段可选 /cso 步骤).
|
|
6
|
+
schema_version: harnessed.workflow.v3 with disciplines_applied (6 default) + tools_available
|
|
7
|
+
(gstack-cso) + 1 phase (gate ref has_auth_or_secrets conditional)。
|
|
8
|
+
Triggered by slash command
|
|
9
|
+
`/verify-security` after `harnessed setup`.
|
|
10
|
+
trigger_phrases:
|
|
11
|
+
- "verify security"
|
|
12
|
+
- "安全审查"
|
|
13
|
+
- "OWASP audit"
|
|
14
|
+
- "gstack cso"
|
|
15
|
+
- "跑 verify-security"
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# verify-security workflow (v3)
|
|
19
|
+
|
|
20
|
+
## 概览
|
|
21
|
+
|
|
22
|
+
1-phase 子工作流,将 CLAUDE.md "Verify 阶段 — 可选 /cso" 映射到 harnessed 运行时
|
|
23
|
+
(Phase v3.0-3.4 W0.13b — D-04 Stage ④ Verify 7 sub + D-12 gstack 治理关卡 + Pattern A
|
|
24
|
+
sub-workflow ship)。
|
|
25
|
+
|
|
26
|
+
| phase | id | upstream | model | capability | gate |
|
|
27
|
+
| ----- | -- | -------- | ----- | ---------- | ---- |
|
|
28
|
+
| 1 | `01-cso` | gstack | opus | `{{ capabilities.gstack-cso.cmd }}` | `judgments.stage-routing.verify-security-secrets.fires` |
|
|
29
|
+
|
|
30
|
+
Per-phase 配置从 `workflows/verify/security/workflow.yaml` 加载;引擎 4-level gate
|
|
31
|
+
resolver 通过 expr-eval 计算 `phase.has_auth_or_secrets == true` — true 则调用 gstack
|
|
32
|
+
`/cso` (OWASP / auth / credentials / secrets 全面审查),false 则跳过。
|
|
33
|
+
|
|
34
|
+
## Capability refs
|
|
35
|
+
|
|
36
|
+
Sister `workflows/capabilities.yaml` 条目:
|
|
37
|
+
- `gstack-cso` — Bucket 3 治理关卡 (impl: gstack, cmd: /cso,
|
|
38
|
+
fires_when: phase.stage == 'verify' AND phase.has_auth_or_secrets == true)
|
|
39
|
+
|
|
40
|
+
## Gate ref
|
|
41
|
+
|
|
42
|
+
Sister `workflows/judgments/stage-routing.yaml`:
|
|
43
|
+
- `verify-security-secrets.fires` — `phase.stage == 'verify' and phase.has_auth_or_secrets == true`
|
|
44
|
+
|
|
45
|
+
## 路由规则
|
|
46
|
+
|
|
47
|
+
- ✅ **触发**: auth flow / session / credentials / API keys / SQL injection 路径 / OWASP top 10 area
|
|
48
|
+
- ❌ **跳过**: docs / 纯 UI styling / 内部 refactor / non-security PR
|
|
49
|
+
|
|
50
|
+
## 调用方式
|
|
51
|
+
|
|
52
|
+
使用 Bash 工具运行:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
echo "$ARGUMENTS" | harnessed run verify-security --task-stdin
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
若 `$ARGUMENTS` 为空,则运行 `harnessed run verify-security`(不接管道输入)。
|
|
59
|
+
|
|
60
|
+
完成后,Bash 输出会在 stderr 打印 `Next:` 提示,建议下一阶段。是否调用取决于对话上下文 — 该提示仅供参考,非强制指令。
|
|
61
|
+
|
|
62
|
+
<!-- harnessed-generated:v3.4.4 -->
|
|
63
|
+
|
|
64
|
+
## 参考资料
|
|
65
|
+
|
|
66
|
+
- D-04 Stage ④ Verify 7 sub 分解
|
|
67
|
+
- D-12 gstack 治理关卡可选
|
|
68
|
+
- workflows/capabilities.yaml — gstack-cso
|
|
69
|
+
- workflows/judgments/stage-routing.yaml — verify-security-secrets trigger
|
|
70
|
+
- workflows/verify-work/workflow.yaml v2 SHIPPED phase 06-cso-conditional sister verbatim
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: verify-simplify
|
|
3
|
+
description: |
|
|
4
|
+
Stage ④.g 验证子工作流 — code-simplifier 末尾串行 (移除重复 / 多余逻辑;
|
|
5
|
+
捆绑 verify 阶段节奏 — tail-step code-simplifier).
|
|
6
|
+
schema_version: harnessed.workflow.v3 with disciplines_applied (6 default) + tools_available
|
|
7
|
+
(code-simplifier) + 1 phase (gate ref is_final_step 末尾串行)。
|
|
8
|
+
Triggered by slash command
|
|
9
|
+
`/verify-simplify` after `harnessed setup`.
|
|
10
|
+
trigger_phrases:
|
|
11
|
+
- "verify simplify"
|
|
12
|
+
- "code simplify"
|
|
13
|
+
- "代码简化"
|
|
14
|
+
- "移除重复逻辑"
|
|
15
|
+
- "跑 verify-simplify"
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# verify-simplify workflow (v3)
|
|
19
|
+
|
|
20
|
+
## 概览
|
|
21
|
+
|
|
22
|
+
1-phase 子工作流,将 CLAUDE.md "Verify 阶段 — 末尾 code-simplifier" 映射到 harnessed
|
|
23
|
+
运行时 (Phase v3.0-3.4 W0.13d — D-04 Stage ④ Verify 7 sub + Pattern A sub-workflow ship)。
|
|
24
|
+
|
|
25
|
+
| phase | id | upstream | model | capability | gate |
|
|
26
|
+
| ----- | -- | -------- | ----- | ---------- | ---- |
|
|
27
|
+
| 1 | `01-simplify` | mattpocock-skills | sonnet | `{{ capabilities.code-simplifier.cmd }}` | `judgments.stage-routing.verify-simplify-tail.fires` |
|
|
28
|
+
|
|
29
|
+
Per-phase 配置从 `workflows/verify/simplify/workflow.yaml` 加载;引擎 4-level gate
|
|
30
|
+
resolver 通过 expr-eval 计算 `phase.is_final_step == true` — true 则调用
|
|
31
|
+
`/code-simplifier` (移除重复 / 多余逻辑),false 则跳过。verify 链末尾步骤,
|
|
32
|
+
sister verify-work v2 phase 08-code-simplifier verbatim 位置。
|
|
33
|
+
|
|
34
|
+
## Capability refs
|
|
35
|
+
|
|
36
|
+
Sister `workflows/capabilities.yaml` 条目:
|
|
37
|
+
- `code-simplifier` — Bucket 1 mattpocock 高频招式 (impl: mattpocock-skills,
|
|
38
|
+
cmd: /code-simplifier, fires_when: stage=='verify' AND is_final_step)
|
|
39
|
+
|
|
40
|
+
## Gate ref
|
|
41
|
+
|
|
42
|
+
Sister `workflows/judgments/stage-routing.yaml`:
|
|
43
|
+
- `verify-simplify-tail.fires` — `phase.stage == 'verify' and phase.is_final_step == true`
|
|
44
|
+
|
|
45
|
+
## 路由规则
|
|
46
|
+
|
|
47
|
+
- ✅ **触发**: verify chain 末尾步骤 (所有其他 verify sub 已 ship,准备 code 简化收尾)
|
|
48
|
+
- ❌ **跳过**: verify chain 中间步骤 (避免过早简化干扰后续 review)
|
|
49
|
+
|
|
50
|
+
## 调用方式
|
|
51
|
+
|
|
52
|
+
使用 Bash 工具运行:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
echo "$ARGUMENTS" | harnessed run verify-simplify --task-stdin
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
若 `$ARGUMENTS` 为空,则运行 `harnessed run verify-simplify`(不接管道输入)。
|
|
59
|
+
|
|
60
|
+
完成后,Bash 输出会在 stderr 打印 `Next:` 提示,建议下一阶段。是否调用取决于对话上下文 — 该提示仅供参考,非强制指令。
|
|
61
|
+
|
|
62
|
+
<!-- harnessed-generated:v3.4.4 -->
|
|
63
|
+
|
|
64
|
+
## 参考资料
|
|
65
|
+
|
|
66
|
+
- D-04 Stage ④ Verify 7 sub 分解
|
|
67
|
+
- workflows/capabilities.yaml — code-simplifier
|
|
68
|
+
- workflows/judgments/stage-routing.yaml — verify-simplify-tail trigger
|
|
69
|
+
- workflows/defaults.yaml — ralph_max_iterations.verify-simplify.* values (W2.2 backfill)
|
|
70
|
+
- workflows/verify-work/workflow.yaml v2 SHIPPED phase 08-code-simplifier sister verbatim
|