<< All versions

Skill v1.4.3

currentAutomated scan100/100
nesnilnehc/ai-cortex/orchestrate-code-review

+4 new

──Details
PublishedNovember 26, 2026 at 06:56 PM
Content Hashsha256:7c6551814e921423...
Git SHAd2cfa45f7370
Bump Typepatch
Compare with v1.0.0
──Files
Files (1 file, 7.9 KB)
SKILL.md7.9 KBactive
SKILL.md · 146 lines · 7.9 KB

name: orchestrate-code-review description: Orchestrator skill — sequence atomic review-* skills into the post-coding engineering gate and aggregate their findings; functional alignment and acceptance verification remain separate. version: 1.4.3 license: MIT output_schema: type: findings-list


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

This workflow owns review scope, dispatch, failure handling and the combined engineering report.

  1. Detect context: determine scope (diff / codebase), language and framework from user intent and project state
  2. Chain the calls: run the atomic review-* skills in the fixed order scope → language → framework → library → cognitive
  3. halt-on-failure: when any atomic skill fails, stop the remaining steps and report the findings collected so far
  4. 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)

StepTypeCandidate atomic skillsSelection rule
1scopereview-diff or review-codebasePick one, by user intent (diff = the current changes; codebase = the given path)
2languagereview-typescript / review-python / review-go / review-java / review-php / review-powershell / review-dotnet / review-sql0 or 1, inferred from the dominant language in scope
3frameworkreview-react / review-vue0 or 1, inferred from the framework in scope
4libraryreview-orm-usage0 or 1, inferred from ORM usage in scope
5cognitivereview-security → review-reliability → review-error-surfacing → review-performance → review-architecture → review-observability → review-testingAll 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_signals list (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

  • Delegate code analysis, lint and Rule evaluation to the matching review Skills.
  • 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-loop or the development process
  • Writing tests → the test-related skills
  • Comparing implementation with approved requirements/design/tasks → review-implementation-alignment
  • Running functional acceptance checks → automate-tests or the project-specific acceptance harness

Self-Check

  • [ ] Reviewer selection used the request and project context. Code and Rule judgments came from the dispatched reviewers.
  • [ ] 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
← v1.0.0All versions