mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-02-17 19:53:09 +08:00
- Fix /build-and-fix → /build-fix in tdd.md, plan.md (+ cursor, zh-CN) - Fix non-existent explorer agent → planner in orchestrate.md (+ cursor, zh-CN, zh-TW) - Fix /python-test → /tdd in python-review.md (+ cursor, zh-CN) - Sync package.json version from 1.0.0 to 1.4.1 to match plugin.json - Enhance validate-commands.js with cross-reference checking: command refs, agent path refs, skill dir refs, workflow diagrams - Strip fenced code blocks before scanning to avoid false positives - Skip hypothetical "Creates:" lines in evolve.md examples - Add 46 new tests (suggest-compact, session-manager, utils, hooks)
2.6 KiB
2.6 KiB
Orchestrate 指令
複雜任務的循序 Agent 工作流程。
使用方式
/orchestrate [workflow-type] [task-description]
工作流程類型
feature
完整的功能實作工作流程:
planner -> tdd-guide -> code-reviewer -> security-reviewer
bugfix
Bug 調查和修復工作流程:
planner -> tdd-guide -> code-reviewer
refactor
安全重構工作流程:
architect -> code-reviewer -> tdd-guide
security
以安全性為焦點的審查:
security-reviewer -> code-reviewer -> architect
執行模式
對工作流程中的每個 Agent:
- 呼叫 Agent,帶入前一個 Agent 的上下文
- 收集輸出作為結構化交接文件
- 傳遞給下一個 Agent
- 彙整結果為最終報告
交接文件格式
Agent 之間,建立交接文件:
## 交接:[前一個 Agent] -> [下一個 Agent]
### 上下文
[完成事項的摘要]
### 發現
[關鍵發現或決策]
### 修改的檔案
[觸及的檔案列表]
### 開放問題
[下一個 Agent 的未解決項目]
### 建議
[建議的後續步驟]
最終報告格式
協調報告
====================
工作流程:feature
任務:新增使用者驗證
Agents:planner -> tdd-guide -> code-reviewer -> security-reviewer
摘要
-------
[一段摘要]
AGENT 輸出
-------------
Planner:[摘要]
TDD Guide:[摘要]
Code Reviewer:[摘要]
Security Reviewer:[摘要]
變更的檔案
-------------
[列出所有修改的檔案]
測試結果
------------
[測試通過/失敗摘要]
安全性狀態
---------------
[安全性發現]
建議
--------------
[發布 / 需要改進 / 阻擋]
平行執行
對於獨立的檢查,平行執行 Agents:
### 平行階段
同時執行:
- code-reviewer(品質)
- security-reviewer(安全性)
- architect(設計)
### 合併結果
將輸出合併為單一報告
參數
$ARGUMENTS:
feature <description>- 完整功能工作流程bugfix <description>- Bug 修復工作流程refactor <description>- 重構工作流程security <description>- 安全性審查工作流程custom <agents> <description>- 自訂 Agent 序列
自訂工作流程範例
/orchestrate custom "architect,tdd-guide,code-reviewer" "重新設計快取層"
提示
- 複雜功能從 planner 開始
- 合併前總是包含 code-reviewer
- 對驗證/支付/PII 使用 security-reviewer
- 保持交接簡潔 - 專注於下一個 Agent 需要的內容
- 如有需要,在 Agents 之間執行 verification