name: auto-orchestrator description: "Phan tich request va chon cach dieu phoi skill/tool phu hop. Chi dung khi can mot lop dispatch ro rang cho task phuc tap; khong tu dong spawn moi luc."
Auto-Orchestrator
When to Use
- Can mot lop dispatch ro rang cho task nhieu buoc, nhieu cong cu, hoac nhieu skill
- Can quyet dinh giua
oracle,librarian,search, vacode-review - Khong can dung cho task don gian, single-file, hoac khi da biet ro skill chinh
Guardrails
- Manual-only: khong tu dong spawn chi vi skill nay duoc load
- Neu main agent lam truc tiep duoc thi khong dieu phoi them
- Moi lan dieu phoi chi chon strategy toi thieu can thiet
- Dung ten skill that su ton tai:
oracle,librarian,search,code-review
Dispatch Matrix
| Signal | Preferred path |
|---|---|
| Plan, design, refactor strategy | oracle |
| Debug + can tim code lien quan | search -> oracle |
| Library internals, external repo | librarian |
| Locate symbol, trace local code | search |
| Review diff, quality gate | code-review |
Strategy Selection
- Direct: task don gian, 1 tool/skill la du.
- Sequential: output cua buoc truoc la input cua buoc sau.
- Parallel: chi dung khi cac nhanh doc lap va khong sua cung file.
Workflow
- Scan request va danh gia complexity.
- Chon strategy nho nhat dap ung duoc task.
- Chon skill/tool cu the cho tung buoc.
- Ghi ro ly do dispatch truoc khi goi cong cu.
- Tong hop ket qua va quay lai workflow chinh.
Examples
- "Plan auth refactor" ->
searchlay context ->oraclede plan. - "Fix library-specific bug" ->
librariannghien cuu externals ->searchtim local usage ->oraclechot huong sua. - "Review my changes" ->
code-reviewtruc tiep.
Do Not Use When
- Task chi can 1 skill ro rang.
- Dang o trong workflow da bi skill khac chi dinh san.
- Can sua code ngay, khong can lop dispatch bo sung.