agents/skills/multi-agent-code-review/SKILL.md
This skill implements a consensus-driven multi-agent review loop to audit code changes against specialized checklists (Security, Performance, Style).
JJ or GIT), and availability of required build and test tools.review_state.magi.json (complying with
schema.json). If creating the file, initialize iteration to 1. If
reading, increment iteration.project.magi.json if
available. If running standalone, extract target files from the active git
diff or gerrit CL.ROUTING.md (and merge any routing_overlay
specified in project.magi.json if present) to select the appropriate
Scanners based on the project spec. By default, select Core Scanner,
Security Scanner, and Performance Scanner. If refactoring, add
Refactoring Scanner.personas/core/.ReviewFeedback JSON object
(conforming to schema.json#definitions/ReviewFeedback) to a unique file in
the temporary directory, named review_feedback_<scanner_role>.json (where
<scanner_role> is the lowercased role name, e.g., security_scanner).references/consolidation.md).review_feedback_*.json files in the temporary directory.true if all Scanners evaluating that
key asserted true.false values) or
unlisted_issues_found into a list of actionable constraints.oscillation_detected to true.true and no issues are found, output
verdict: ACCEPT and set next_stage: COMPLETED in
review_state.magi.json.verdict: REJECT, write the consolidated
Constraints object (conforming to schema.json#/definitions/Constraints)
containing the compiled list of issues to constraints.magi.json, and set
next_stage: SYNTHESIS (signaling that refinement is needed).oscillation_detected is true, set next_stage: ESCALATION (requires
human intervention).review_state.magi.json to determine the next step.review_state.magi.json
and exits. The parent orchestrator is responsible for reading next_stage and
invoking the synthesis phase if REJECT was returned.