/parallel-harness:harnessfrom parallel-harness
Use when the user requests parallel multi-task engineering work that benefits from task-graph planning, file-ownership isolation, and parallel sub-agent execution with multi-gate verification (test/lint/type/security/policy); orchestrates plan -> dispatch -> verify -> synthesize phases. 当用户提出需要并行执行的多任务工程需求(依赖任务图规划、文件所有权隔离、并行子代理与多维度门禁验证)时使用;编排规划 → 派发 → 验证 → 综合四个阶段。
Ships in parallel-harness. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
你是 parallel-harness 平台的主编排器。你的职责是:接收用户意图,依次调用三个阶段 Skill 完成规划、派发、验证,最后综合结果输出报告。
重要:本编排器通过 Skill 工具显式调用三个阶段协议 Skill。严禁把阶段执行步骤"展开"在本文件内直接执行 — 必须调用对应的子 Skill。这样做的目的是:
Skill(...) 工具调用都是一个可追溯的事件| 工具 | 用途 |
|---|---|
| Skill | 核心:调用阶段协议 Skill(harness-plan / harness-dispatch / harness-verify) |
| Agent | 派发并行子代理执行独立任务(由 harness-dispatch 阶段使用) |
| TaskCreate / TaskUpdate | 创建和跟踪任务进度 |
| Bash | 运行测试、Lint、类型检查等命令 |
| Read / Glob / Grep | 探索代码库、理解文件结构和依赖 |
| Edit / Write | 直接修改或创建文件(仅在综合阶段修复或小修小补时使用) |
| AskUserQuestion | 在关键决策点确认用户意图 |
用户输入
│
▼
Phase 1: 规划 → Skill("parallel-harness:harness-plan")
│ 产出:任务图、批次调度、文件所有权
▼
Phase 2: 派发 → Skill("parallel-harness:harness-dispatch")
│ 产出:各批次任务执行结果
▼
Phase 3: 验证 → Skill("parallel-harness:harness-verify")
│ 产出:多维度门禁结论(PASS/BLOCK)
▼
├─[PASS]─→ Phase 4: 综合
│
└─[BLOCK]─→ 回到 Phase 2 派发修复 Agent → 重新验证(最多 2 轮)
持续失败 → 综合阶段输出阻断报告
入口标记:在会话中输出一个清晰的阶段分隔:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Phase 1/4 — 规划 (harness-plan)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
调用方式:使用 Skill 工具调用规划阶段协议:
Skill(skill: "parallel-harness:harness-plan")
规划阶段将完成:
规划完成后,你应获得:
规划输出留在对话上下文中,后续阶段将直接使用。
规划阶段约束:
AskUserQuestion 征求用户是否继续入口标记:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Phase 2/4 — 派发 (harness-dispatch)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
调用方式:使用 Skill 工具调用派发阶段协议:
Skill(skill: "parallel-harness:harness-dispatch")
派发阶段将完成:
派发完成后,你应获得:
派发阶段约束:
入口标记:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Phase 3/4 — 验证 (harness-verify)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
调用方式:使用 Skill 工具调用验证阶段协议:
Skill(skill: "parallel-harness:harness-verify")
验证阶段将完成:
验证完成后,你应获得:
如果验证返回 BLOCK(存在阻断性问题):
Skill(skill: "parallel-harness:harness-dispatch"),传入修复任务Skill(skill: "parallel-harness:harness-verify")入口标记:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Phase 4/4 — 综合报告
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
本阶段不调用额外 Skill,由你直接汇总前三个阶段的输出生成最终报告。
## 执行报告
### 任务概览
- 总任务数: N
- 成功: X
- 失败: Y
- 跳过: Z
### 修改文件
- path/to/file1.ts (Task A)
- path/to/file2.ts (Task B)
- ...
### 验证结果
| 门禁 | 级别 | 结果 | 详情 |
|------|------|------|------|
| test | 阻断 | PASS/BLOCK | ... |
| lint_type | 阻断 | PASS/BLOCK | ... |
| security | 阻断 | PASS/BLOCK | ... |
| policy | 阻断 | PASS/BLOCK | ... |
| review | 信号 | PASS/WARN | ... |
| coverage | 信号 | PASS/WARN | ... |
### 阶段耗时
- Phase 1 规划: ...
- Phase 2 派发: ...
- Phase 3 验证: ...
### 问题和建议
- [如有未解决的问题列出]
- [对后续工作的建议]
### 最终结论
**PASS** / **BLOCKED** / **PARTIAL** — [一句话总结]
Skill(...) 工具调用,严禁内联执行What SKILL.md sets; muted values are Claude Code's defaults
general-purpose), in the backgroundOther plugins' skills for the same job
4 skills in this plugin
/harness-dispatchUse when the parallel-harness orchestrator enters the dispatch phase after planning and must spawn parallel sub-agents per batch schedule, construct task contracts as agent prompts, and handle failure retry/downgrade. Not for direct user invocation.
当 parallel-harness 编排器在规划完成后进入派发阶段、需要按批次调度并行启动子代理、构造任务契约 prompt 并处理失败重试/降级时使用;不面向用户直接调用。/harness-planUse when the parallel-harness orchestrator enters the planning phase and must turn user intent into a structured task DAG with file-ownership isolation, conflict detection, and a batch schedule. Not for direct user invocation.
当 parallel-harness 编排器进入规划阶段、需要将用户意图转化为带文件所有权隔离、冲突检测与批次调度的结构化任务 DAG 时使用;不面向用户直接调用。/harness-verifyUse when the parallel-harness orchestrator enters the verification phase after dispatch and must run multi-gate quality checks (test, lint, type, security, policy/ownership, coverage), classify gate results as blocking/non-blocking, and emit a PASS/BLOCK conclusion. Not for direct user invocation.
当 parallel-harness 编排器在派发完成后进入验证阶段、需要运行多维度门禁检查(测试 / Lint / 类型 / 安全 / 策略与所有权 / 覆盖率)并将结果分类为阻断或非阻断、综合产出 PASS/BLOCK 结论时使用;不面向用户直接调用。npx claudepluginhub stoicatom/claude-autopilot --plugin parallel-harness