orchestrate-code-review
Skill8 starsChanged 2 months agoMITView on GitHub
Orchestrator skill — sequence atomic review-* skills into the post-coding engineering gate and aggregate their findings; functional alignment and acceptance verification remain separate.
In this repository77 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- archive-milestoneSkill
- assess-product-opportunitySkill
- automate-testsSkill
- bump-versionSkill
- capture-work-itemsSkill
- commit-workSkill
- competitive-researchSkill
- consume-nats-messageSkill
- decontextualize-textSkill
- deep-researchSkill
- define-docs-normsSkill
- define-missionSkill
- define-north-starSkill
- define-roadmapSkill
- define-strategic-pillarsSkill
- define-visionSkill
- deliver-featureSkill
- design-strategic-goalsSkill
- eli5Skill
- establish-delivery-workflowSkill
- execute-delivery-workflowSkill
- generate-agent-entrySkill
- generate-github-workflowSkill
- generate-standard-readmeSkill
- inspect-artifact-stateSkill
- integrate-branchesSkill
- manage-secretSkill
- map-item-dependenciesSkill
- market-researchSkill
- orchestrate-governance-stepSkill
- orchestrate-repair-loopSkill
- orchestrate-repair-requirements-loopSkill
- orchestrate-roadmap-planningSkill
- plan-milestonesSkill
- plan-nextSkill
- policy-researchSkill
- ponytailSkill
- prepare-presales-responseSkill
- prepare-version-notesSkill
- prioritize-backlogSkill
- product-opportunity-analysisSkill
- promote-roadmap-itemsSkill
- publish-nats-messageSkill
- record-milestone-achievementSkill
- redeploy-localSkill
- refine-skill-designSkill
- review-architectureSkill
- review-codebaseSkill
- review-diffSkill
- review-dotnetSkill
- review-error-surfacingSkill
- review-functional-designSkill
- review-goSkill
- review-implementation-alignmentSkill
- review-javaSkill
- review-observabilitySkill
- review-orm-usageSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 23
Chain the calls: run the atomic review-* skills in the fixed order scope → language → framework → library → cognitive
- Distinctive: line 24
halt-on-failure: when any atomic skill fails, stop the remaining steps and report the findings collected so far
- Distinctive: line 56
Call the atomic skills in the order of the table above, collecting findings conforming to Findings Spec §5.1 at each step.
- Very specific: line 65
Duplicate handling: when two findings in a group share location + title, additionally mark them an exact duplicate.
- Distinctive: line 94
No code analysis, lint or rule matching inside this skill (it breaks the orchestrator 4-things principle)
- Distinctive: line 95
No change to the execution order (scope → language → framework → library → cognitive)
- Distinctive: line 96
No invented findings; only what the atomic skills produced gets aggregated
- Very specific: line 98
No code edits / no fixes applied (that goes to the developer or to orchestrate-repair-loop)
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Orchestrator Skill: Orchestrate Code Review
Purpose
Chain the atomic review-* skills in a fixed order and aggregate their findings as the engineering gate. This skill orchestrates only; it runs no code analysis. Functional alignment against requirements/design/tasks and functional acceptance execution are a sibling gate handled by review-implementation-alignment and automate-tests, normally converged by orchestrate-repair-loop.
Orchestrator Role
Under the naming convention, an orchestrator skill does exactly 4 things:
- Detect context: determine scope (diff / codebase), language and framework from user intent and project state
- Chain the calls: run the atomic review-* skills in the fixed order scope → language → framework → library → cognitive
- halt-on-failure: when any atomic skill fails, stop the remaining steps and report the findings collected so far
- Aggregate output: collect and sort findings without rewriting or merging them, group them by location so one defect's several concerns read as one site, and derive risk_signals mechanically
Strictly forbidden: running code analysis inside this skill, embedding lint rules, reimplementing the logic of a single atomic skill.
Execution Order (Fixed)
| Step | Type | Candidate atomic skills | Selection rule |
| 1 | scope | review-diff or review-codebase | Pick one, by user intent (diff = the current changes; codebase = the given path) |
| 2 | language | review-typescript / review-python / review-go / review-java / review-php / review-powershell / review-dotnet / review-sql | 0 or 1, inferred from the dominant language in scope |
| 3 | framework | review-react / review-vue | 0 or 1, inferred from the framework in scope |
| 4 | library | review-orm-usage | 0 or 1, inferred from ORM usage in scope |
| 5 | cognitive | review-security → review-reliability → review-error-surfacing → review-performance → review-architecture → review-observability → review-testing | All of them, in order; each atomic Skill resolves whether its profiles apply |
A step with no match is skipped; the final report names which steps were skipped and why.
Behavior
Step 1: Detect context
- Resolve scope from the request and repository state. With current changes and no specified scope, use
diff; ask only when neither a change set nor a target path can be identified. - diff mode includes untracked files by default
- codebase mode defaults to the repository root; a path may be given
- Language / framework inference: infer from the file extensions in scope and from dependency files (package.json, pyproject.toml and the like); when it is unclear, have the user choose from the candidate list
Step 2: Chain the calls
Call the atomic skills in the order of the table above, collecting findings conforming to Findings Spec §5.1 at each step.
Step 3: halt-on-failure
Any atomic skill fails → stop the remaining steps, output the findings collected plus an account of the failure.
Step 4: Aggregate output
- Grouping: preserve every atomic finding unchanged, and group them by normalized location per findings-list §5.4.1. One changed contract failing an architecture, a testing and an alignment item is one site with three concerns, not three defects. The group takes its highest-severity member as primary; severity counts stay computed over findings, so grouping never changes a total. A group is one site, not a claim of shared cause — never group by an inferred common root.
- Duplicate handling: when two findings in a group share
location + title, additionally mark them an exact duplicate; do not merge them or discard either source. - Risk signals: a mechanical rule mapping over the aggregated findings plus the change context (severity distribution, file spread, keyword matches), with no subjective judgement; output the empty list
[]when no signal is clear - Rule coverage: preserve each atomic Skill's Rule coverage object separately; never merge evidence-limited or not-applicable IDs into passed IDs
Input and Output
Input
- User intent (review the diff / the codebase / a given path)
- Optional: a language / framework hint
Output
One aggregated report:
- Findings from each atomic skill (grouped by category or location)
- An account of the skipped steps
- The
risk_signalslist (each entry carries signal_name plus an optional confidence ∈ [0, 1]) - A summary at the top (counts by severity, counts by category, and the number of sites the findings group into)
- Rule coverage by emitting Skill (
passed/waived/not_applicable/evidence_limited)
Restrictions
Hard boundaries
- No code analysis, lint or rule matching inside this skill (it breaks the orchestrator 4-things principle)
- No change to the execution order (scope → language → framework → library → cognitive)
- No invented findings; only what the atomic skills produced gets aggregated
- Atomic skills are not asked to emit risk_signals; risk labels are produced in the aggregation stage alone
- No code edits / no fixes applied (that goes to the developer or to
orchestrate-repair-loop)
Skill boundaries
Not done inside the orchestrator skill (an atomic sub-skill or a downstream skill should take it):
- Direct code analysis → the individual atomic review-* skills
- Single-dimension review → call the matching atomic skill directly
- Applying fixes →
orchestrate-repair-loopor the development process - Writing tests → the test-related skills
- Comparing implementation with approved requirements/design/tasks →
review-implementation-alignment - Running functional acceptance checks →
automate-testsor the project-specific acceptance harness
Self-Check
- Only the 4 things get done: detect context / chain the calls / halt-on-failure / aggregate output
- No domain detection logic was implemented inside this skill
- The scope was resolved from the request and repository state; any genuine ambiguity was clarified
- The execution order is fixed (scope → language → framework → library → cognitive)
- Skipped steps are noted in the report
- Every atomic finding was preserved unchanged; findings were grouped by location only, and exact duplicates were annotated rather than merged
- Severity counts were computed over findings, not over groups
- risk_signals were derived mechanically from the aggregated findings, with no subjective judgement
- Rule coverage metadata was preserved per emitting Skill
Examples
Example 1: diff review of a .NET project
- Input: the user says "review my changes"; the project is C#
- Dispatch:
review-diff→review-dotnet→review-security→review-reliability→review-error-surfacing→review-performance→review-architecture→review-observability→review-testing - Skipped: the framework / library steps (no match)
- Aggregation: one report plus risk_signals
Example 2: codebase review of a Vue frontend
- Input:
src/frontend; the project uses Vue 3 and an ORM - Dispatch:
review-codebase→review-typescript→review-vue→review-orm-usage→ all seven cognitive reviewers - Aggregation: one report
Example 3: edge case — no language match
- Input: a Rust project (no atomic skill covers it)
- Dispatch:
review-codebase→ skip language / framework / library → run every cognitive step - Aggregation: the report names the skipped language / framework steps and the reason
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

