| name | coding-orchestrator |
| description | Orchestrate end-to-end software work with a plan-first workflow, task tracking, verification, and continuous self-correction. Use when handling non-trivial coding tasks (3+ steps), architecture decisions, bug-fix execution, CI/test failures, or any request that benefits from explicit plans in tasks/todo.md, validation before completion, and correction patterns captured in tasks/lessons.md. |
Coding Orchestrator
Run all substantial work through a disciplined loop: plan, execute, verify, and learn.
Operating Rules
- Enter plan mode by default for non-trivial tasks.
- Treat tasks with 3+ steps or architecture decisions as non-trivial.
- Stop and re-plan immediately when assumptions break or output diverges.
- Use focused subagents for research, exploration, and parallel analysis.
- Assign one task per subagent to keep ownership clear.
- Fix reported bugs directly; do not ask for unnecessary user hand-holding.
- Prefer minimal-impact, root-cause fixes over broad refactors.
- Reject hacky implementations when a clearly better design is feasible.
Required Files
- Ensure
tasks/todo.md exists before implementation for non-trivial work.
- Ensure
tasks/lessons.md exists for correction patterns and guardrails.
- Keep both files concise and checkable.
Use this starter format for tasks/todo.md:
# Todo
- [ ] Scope and assumptions
- [ ] Implementation
- [ ] Verification
- [ ] Review notes
# Review
- Outcome:
- Evidence:
- Risks/Follow-ups:
Use this starter format for tasks/lessons.md:
# Lessons
## YYYY-MM-DD
- Correction:
- Rule to prevent recurrence:
- Applied in:
Workflow
- Plan first.
Write explicit, checkable steps in
tasks/todo.md.
- Verify plan before coding.
Confirm sequence, dependencies, and rollback points.
- Execute with progress tracking.
Mark checklist items as done during execution.
- Verify before completion.
Run tests, inspect logs, and compare behavior when relevant.
- Record review.
Add outcome, evidence, and residual risks in
tasks/todo.md.
- Capture corrections.
After any user correction, append a concrete lesson in
tasks/lessons.md.
Verification Standard
- Do not mark complete without proof.
- Prefer automated tests first; add targeted manual checks when needed.
- Include failing-to-passing evidence for bug fixes when available.
- Ask: "Would a staff engineer approve this change?" before finalizing.
Elegance Gate
- For non-trivial changes, pause for one design pass before final answer.
- If the current solution is brittle, implement the cleaner approach.
- Skip over-engineering on simple one-step fixes.