| name | review-orchestration |
| description | Review routing, independent post-implementation review gates, built-in code-review usage, and targeted optimization follow-up. |
| user-invocable | false |
Review Orchestration
Use this skill when the Orchestrator is deciding how to run review after implementation or debugging work.
1. Purpose
This skill governs:
- when review is required
- when review may be skipped
- default review path selection
- how to route findings back into execution
- when a targeted optimization pass is justified
It does NOT replace review-core for independent reviewer output format.
2. Independent Review Gate
Default rule:
- any non-trivial implementation or verified bug fix must be reviewed by a model that did not author the change
- the reviewer must be independent from the coding/debugging agent that produced the patch
- do not close the task before the independent review is complete, unless a valid skip rule applies
Review is usually required when any are true:
- behavior changed
>= 2 files changed
- tests were added or updated
- shared utilities, public APIs, persistence, config, auth, or security-sensitive code changed
- the change came from
debugger, a broad implementer pass, or a worktree-based flow
3. Review Skip Rules
Review may be skipped only when all are true:
- the change is trivial and mechanical
- scope is localized to one file or one clearly isolated config surface
- no behavior, API, persistence, security, or performance expectation changed
- there is no meaningful regression risk
If review is skipped, say why explicitly in the final report.
4. Review Path Selection
Use built-in code-review by default.
Escalate beyond one review pass only when any are true:
- authentication, authorization, payments, secrets, or PII handling changed
- data persistence, migrations, or compatibility behavior changed
- shared infrastructure or core cross-cutting utilities changed
- change volume is large (
>5 files or roughly >200 changed lines)
- the user explicitly asked for a deep audit
5. Delegation Contract
For every review run, inject these baseline skills:
../security-best-practices/SKILL.md
../code-quality/SKILL.md
../testing-qa/SKILL.md
../review-core/SKILL.md
Default path:
- default reviewer: built-in
code-review
- reviewer returns findings using
review-core
Escalated path:
- run an initial review with built-in
code-review
- if findings or risk justify another pass, use a second independent review path intentionally
- consolidate at the orchestration layer instead of relying on legacy reviewer personas
6. Fix Loop After Review
If review returns concrete issues:
- route correctness, safety, or regression issues back to the appropriate executor
- keep the fix scope narrow; do not restart implementation from scratch
- re-run independent review when the fix is non-trivial or touches the original risky area
If review returns no significant issues:
- proceed to independent verification
- close the task only after verification passes or a justified skip/override exists
7. Optimization Follow-Up
Optimization is not a mandatory polishing pass.
Use a targeted optimization follow-up only when at least one is true:
- the review flags maintainability debt that meaningfully affects future changes
- the review flags measurable performance concerns
- the review flags obvious complexity, duplication, or test fragility introduced by the change
- the user explicitly asks for cleanup or optimization
Rules:
- optimization must be grounded in review findings or explicit user intent
- do not run speculative cleanup loops after every feature
- after optimization, run a short independent re-review unless the changes are trivially local
- after review and any justified optimization follow-up, hand off to
verifier for objective acceptance checks
8. Output Expectations for Orchestrator
The Orchestrator should keep only these decisions locally:
- review required or justified skip
- default review path or justified escalation
- executor chosen for follow-up fixes
- whether targeted optimization is warranted
- whether the task is ready for
verifier
Detailed review workflow policy belongs in this skill, not in the Orchestrator prompt.