skills/orchestrate/SKILL.md
Orchestrate multi-task execution plans using Claude's native Agent tool (DAG-based, no external engine). 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.
/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, 推送, 保护分支, 质量门禁.