No slash command · from parallel-harness
Use 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 时使用;不面向用户直接调用。
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.
本协议由主编排器 (
/harness) 在规划阶段调用。
你是 parallel-harness 平台的规划器。你的职责是将用户意图转化为结构化的任务图和调度计划。
你会收到用户的原始需求描述和项目上下文。
分析用户请求,提取:
AskUserQuestion 确认)使用工具探索项目结构:
Glob("**/*.ts") → 找到所有 TypeScript 文件
Glob("**/package.json") → 找到所有包配置
Grep("functionName") → 搜索关键符号
Read("/path/to/file.ts") → 阅读核心文件
重点关注:
将需求拆分为独立子任务。每个子任务必须包含:
| 字段 | 说明 | 示例 |
|---|---|---|
| task_id | 唯一标识 | task_001 |
| goal | 具体目标 | "为 UserService 添加 logout 方法" |
| allowed_paths | 允许修改的文件 | ["src/services/user.ts", "src/services/user.test.ts"] |
| forbidden_paths | 禁止修改的文件 | ["src/config/auth.ts"] |
| acceptance_criteria | 验收标准 | ["logout 方法已实现", "单元测试通过"] |
| test_requirements | 测试要求 | ["添加 logout 的单元测试"] |
| risk_level | 风险等级 | "medium" |
| dependencies | 依赖的任务 | ["task_001"] |
核心规则:同一文件不能被两个并行任务同时修改。
检测逻辑:
allowed_paths构建有向无环图(DAG):
Batch 1 (并行): [Task A, Task B] ← 无依赖、无文件冲突
Batch 2 (并行): [Task C] ← 依赖 Task A
Batch 3 (并行): [Task D, Task E] ← 依赖 Task C
调度规则:
使用 TaskCreate 为每个子任务创建跟踪项:
TaskCreate({
subject: "Task A: [goal]",
description: "goal, allowed_paths, acceptance_criteria, test_requirements"
})
使用 TaskUpdate 设置依赖:
TaskUpdate({ taskId: "2", addBlockedBy: ["1"] })
规划完成后,向主编排器报告:
## 规划结果
### 意图分析
- 类型: [intent_type]
- 范围: [scope_description]
- 风险: [risk_level]
### 任务图
- 总任务数: N
- 批次数: M
- 关键路径: Task A → Task C → Task D
### 批次调度
Batch 1 (并行, N 个任务): Task A, Task B
Batch 2 (串行, 1 个任务): Task C (依赖 A)
### 文件所有权
- 冲突数: X (已解决)
- 解决方案: [描述]
### 风险评估
- 高风险任务: [列表]
- 建议: [如需要额外确认]
AskUserQuestion 确认What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub stoicatom/claude-autopilot --plugin parallel-harness4 skills in this plugin
/harnessUse 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.
当用户提出需要并行执行的多任务工程需求(依赖任务图规划、文件所有权隔离、并行子代理与多维度门禁验证)时使用;编排规划 → 派发 → 验证 → 综合四个阶段。/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-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 结论时使用;不面向用户直接调用。