locales/zh-CN/skills/orchestrate/SKILL.md
[UDS] 以 Claude 原生 Agent tool 编排多任务执行计划(DAG-based,无外部引擎)。 Use when: executing a plan.json file with parallel/sequential task dependencies. Keywords: orchestrate, plan, execute, DAG, task plan, 编排, 执行计划, 并行.
npx skillsauth add asiaostrich/universal-dev-standards orchestrateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
语言: English | 简体中文
/orchestrate <plan.json> # 执行计划
/orchestrate <plan.json> --dry-run # 仅验证,不执行
使用 Read tool 读取 plan.json,直接由 Claude 解析:
tasks 非空、每个 task 含 id、title、spectask.spec 是否含危险指令(rm -rf /、DROP DATABASE、git push --force)
depends_on 字段将 tasks 分组为执行层(layers)
若 validation.valid 为 false,输出错误信息并停止。
向用户显示解析结果:
计划:<project> 品质:<quality>
──────────────────────────────────
Layer 0 (并行):T-001, T-002
Layer 1 (序列):T-003 (依赖 T-001)
Layer 2 (序列):T-004 (依赖 T-002, T-003)
──────────────────────────────────
共 4 个任务,3 个执行层
若使用 --dry-run:显示以上摘要后立即停止,不启动任何 Agent。
对 layers 数组中的每一层:
prompt:task.spec + acceptance_criteria + user_intent 组合而成的执行提示isolation: "worktree":每个 task 在独立 git worktree 执行description:"Task {task.id}: {task.title}"Agent 提示模板:
Task: {task.title}
Spec:
{task.spec}
Acceptance Criteria:
{task.acceptance_criteria 逐条列出}
User Intent:
{task.user_intent}
After completing the task, run: {task.verify_command}
如果某个 task 的 agent 回报失败:
faileddepends_on 包含该 task ID 的所有 tasks 标记为 skipped每个 task 完成后,若 task 定义了 verify_command:
verify_commandstatus: "success"quality 为 "strict" 或 "standard":启动 Fix Loopfailed如果 task 定义了 judge: true:
审查 task {id} 的 git diff,依照 code-review 标准检查汇整所有 task 结果,输出执行报告:
{
"summary": {
"total_tasks": 4,
"succeeded": 3,
"failed": 1,
"skipped": 0,
"total_duration_ms": 120000
},
"tasks": [
{ "task_id": "T-001", "status": "success", "duration_ms": 30000 },
{ "task_id": "T-002", "status": "failed", "error": "..." },
{ "task_id": "T-003", "status": "skipped", "reason": "依赖任务失败" }
]
}
| Profile | 行为 |
|---------|------|
| strict | 全部检查 + Fix Loop 最多 5 次 |
| standard | lint + test + Fix Loop 最多 3 次(默认) |
| minimal | 仅跑 verify_command,不 Fix Loop |
| none | 不执行任何验证 |
isolation: "worktree" 会自动创建 git worktreedepends_on: [] 的 tasks 在同一层内全部并行| 版本 | 日期 | 变更 | |------|------|------| | 2.0.0 | 2026-04-28 | 升格为 UDS 正式 Skill;Step 1 改为 Claude-native 解析(移除 plan-resolver-cli.js 依赖);新增 Quality Gate / Fix Loop 章节(XSPEC-097 Phase 3) | | 1.0.0 | 2026-04-09 | 初始发布(从上游迁移) |
development
[UDS] 扫描代码库的调试残留与代码质量问题;可自动修正安全模式。 Use when: before committing, during PR review, or periodic codebase cleanup. Keywords: sweep, debug cleanup, console.log, debugger, TODO, ts-any, code quality, 扫描, 清理.
tools
[UDS] 从规格衍生 BDD 场景、TDD 骨架或 ATDD 表格
development
[UDS] 识别重复流程并以正确的开发深度构建 Skill
tools
[UDS] AI 辅助 git push 安全层:质量门禁 + 协作护栏。 Use when: pushing commits, force pushing, pushing to protected branches, pushing feature branches. Keywords: git push, force push, protected branch, quality gate, push receipt, PR automation, 推送, 保护分支, 质量门禁.