| name | orchestrate |
| description | Coordinate multi-step plans across multiple roles, files, systems, or parallel workstreams. Use when the user has a complex request spanning multiple domains or needing decomposition. Triggers: orchestrate, coordinate, multi-step, full-stack, tổng hợp, làm nhiều bước. |
| encoding | UTF-8 |
| agents | ["orchestrator","project-planner"] |
| related-skills | ["plan","create","deploy","test"] |
Memory Protocol
START: Read .ai-memory.md from project root. Check project architecture, team structure, past orchestration plans, ongoing tasks, and blockers.
END: Update .ai-memory.md using Memory Compaction Rules with: workstreams, assignments, dependencies, execution order, and blockers/risks.
Goal
Break a complex request into a coordinated execution plan with clear agent assignments.
Agent Routing
- Primary coordinator → read
.kiro/skills/agents/agents/orchestrator.md and apply its knowledge
- For planning phases → read
.kiro/skills/agents/agents/project-planner.md and apply its knowledge
- For each workstream, read the most relevant agent file:
- Frontend tasks → read
.kiro/skills/agents/agents/frontend-specialist.md
- Backend tasks → read
.kiro/skills/agents/agents/backend-specialist.md
- Database tasks → read
.kiro/skills/agents/agents/database-architect.md
- Testing → read
.kiro/skills/agents/agents/test-engineer.md
- Security review → read
.kiro/skills/agents/agents/security-auditor.md
- Deployment → read
.kiro/skills/agents/agents/devops-engineer.md
Socratic Gate
Before orchestrating, verify:
- What is the full objective? (end-to-end scope)
- How many domains are involved? (frontend, backend, DB, infra?)
- Are there hard dependencies or deadlines?
If any answer is unclear, ASK before proceeding.
Workflow
- Read Memory — Load
.ai-memory.md for project context and history.
- Decompose the objective into workstreams.
- Assign each workstream to the appropriate agent/role.
- Identify dependencies, blockers, and the critical path.
- Define parallelizable tasks and merge points.
- Produce an execution order with clear handoffs.
- Quality Gate — Read
.kiro/skills/_scripts/checklist.md and verify each workstream output before merge.
- Update Memory — Save orchestration plan to
.ai-memory.md.
Output format
- Objective
- Workstreams (with assigned agents)
- Dependencies and critical path
- Execution order (sequential + parallel)
- Risks and mitigations
- Done criteria for each workstream
Checklist
Rules
- Keep plans realistic for the current project.
- Surface unknowns early.
- Favor visible checkpoints over long hidden work.
- Control scope: each workstream must state minimal files to touch; ASK before allowing wide-impact changes.
- Always read and update the memory file.
Related Skills
/plan → read .kiro/skills/plan/SKILL.md — Detailed planning for individual workstreams
/create → read .kiro/skills/create/SKILL.md — Execute creation tasks
/deploy → read .kiro/skills/deploy/SKILL.md — Deploy completed work
/test → read .kiro/skills/test/SKILL.md — Validate each workstream
Encoding
All code snippets and example files referenced or produced by this skill must be UTF-8 encoded. When applicable, include encoding: "UTF-8" in SKILL.md front-matter and ensure saved files use UTF-8 (no BOM).