with one click
review
// Multi-agent code review for rules compliance, security, accessibility, quality, and architecture. Produces JSON findings and iterates up to 3 times.
// Multi-agent code review for rules compliance, security, accessibility, quality, and architecture. Produces JSON findings and iterates up to 3 times.
| name | review |
| description | Multi-agent code review for rules compliance, security, accessibility, quality, and architecture. Produces JSON findings and iterates up to 3 times. |
| triggers | ["review code","check compliance","run review","code review"] |
Orchestrates 5 parallel domain-expert subagents to review changed files against project rules. Produces a structured JSON report with findings sorted by severity.
pnpm type-check && pnpm lint && pnpm test must PASS before triggering reviewDetermine which files to review (priority order):
git diff --name-only main...HEAD)git diff --cached --name-only)git diff --name-only HEAD~1)Filter to only: *.ts, *.tsx, *.js, *.jsx, *.json (exclude node_modules, build/, dist/, lock files)
Read all files in scope. For each file, determine which reference guides apply:
.native.tsx → platform-safety.md, accessibility.md.web.tsx → platform-safety.md, security.md, accessibility.md*.variants.ts → platform-safety.md (forbidden classes)packages/ui/src/components/** → architecture.md, quality.mdpackages/tokens/** → architecture.mdapps/api/src/routes/** → security.md (SEC-013..016), architecture.md (ARCH-013..016), quality.md (QUAL-020..22)apps/api/src/schemas/** → architecture.md (ARCH-014), quality.md (QUAL-023)apps/api/src/middleware/** → security.mdapps/** → security.md, quality.md, accessibility.mdLaunch all 5 agents simultaneously using the Agent tool. Each agent receives:
Agents:
references/platform-safety.mdreferences/security.mdreferences/architecture.mdreferences/quality.mdreferences/accessibility.mdEach agent prompt must include:
You are a code reviewer specialized in [DOMAIN].
Review the following files against the rules in the reference guide.
Return ONLY a valid JSON array of findings. No prose, no markdown fences around the JSON.
If no violations found, return an empty array: []
Each finding must follow this exact schema: [paste from schema.json]
Use severity levels: critical, high, medium, low
Prefix IDs with: PLAT- / SEC- / ARCH- / QUAL- / A11Y-
If a finding depends on library version behavior or API correctness that you are not 100% certain about,
set "needs_verification": true and provide a "verification_query" string for context7 lookup.
Only use this for ambiguous cases — do NOT flag project-specific rule violations as needing verification.
Merge all findings into a single report. Calculate scores:
category_score = max(0, 100 - (critical * 25) - (high * 10) - (medium * 3) - (low * 1))
Weights for overall score:
Verdict thresholds:
readyneeds-attentionneeds-workPresent findings grouped by severity (critical first), then by category. Format as a readable table, followed by the score summary and verdict.
Before fixing, check findings where needs_verification: true:
verification_query through context7 to confirm the finding is validCommon verification scenarios:
If verdict is NOT ready:
critical findings immediatelyhigh findingsIf violations remain after 3 iterations:
review-results/) or ignore (proceed without storing)review-results/YYYY-MM-DD_HHmmss.jsonThe final JSON report follows the schema in references/schema.json.
This skill is triggered by the main agent after every code session that produces changes,
immediately after pnpm type-check && pnpm lint && pnpm test passes.
The main agent MUST NOT skip this step. The review is mandatory for:
Optional (user decides) for:
[HINT] Download the complete skill directory including SKILL.md and all related files