# Code Review

Multi-agent code review with deep analysis.

- Repository: https://github.com/modiqo/skillspec (699 stars)
- Category: AI and agents
- License: Apache-2.0
- Last updated: 2026-08-09
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add modiqo/skillspec --skill code-review -g -a claude-code -y`
Codex: `npx skills add modiqo/skillspec --skill code-review -g -a codex -y`
Cursor: `npx skills add modiqo/skillspec --skill code-review -g -a cursor -y`
Gemini CLI: `npx skills add modiqo/skillspec --skill code-review -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add modiqo/skillspec`

## Description

Multi-agent code review with deep analysis. Orchestrates codebase research, optional web research, parallel Rust engineers, codex second opinion, and general-purpose reviewers into a synthesized report. Use when the user asks to review code, review a PR, review changes, audit code quality, or says "review", "/review", "code review", "check my changes", "review this PR", "review diff". Trigger for ANY code review request, even partial, e.g., "look over this", "anything wrong with these changes", "sanity check".

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Code Review

Orchestrate a multi-agent code review pipeline: research the changes, optionally investigate external alternatives, dispatch parallel domain-specific reviewers, and synthesize everything into a structured report.

## Input Collection

Prompt the user to select an input mode. Present these options clearly:

> **What would you like me to review?**
>
> 1. **Current PR**, review the open PR on this branch (description + diff)
> 2. **Diff to main**, review all uncommitted and committed changes vs main
> 3. **Specific paths**, review specific files, crates, or directories
>
> Pick a number, or describe what you'd like reviewed.

### Collecting the diff

**Mode 1, Current PR:**
```bash
gh pr view --json title,body,number,baseRefName
gh pr diff
```
If no open PR exists, tell the user and suggest mode 2 instead.

**Mode 2, Diff to main:**
```bash
git diff main...HEAD
```
Also include `git log main..HEAD --oneline` for commit context.

**Mode 3, Specific paths:**
Ask the user for paths. Read the specified files directly. No diff, review the code as-is.

Store the collected input (diff text, PR description, file contents) for use in subsequent phases.

### Handling large diffs

If the diff exceeds ~2000 lines, save it to a temporary file (`/tmp/code-review-diff.patch`) and have agents read it via the Read tool rather than inlining it in their prompts. This prevents context overflow. Reference the file path in agent prompts instead of pasting the diff.

## Phase 1: Research & Domain Mapping

Spawn an **Agent** (subagent_type: `general-purpose`) and include the full text of the research-codebase skill instructions in its prompt (read `.claude/skills/research-codebase/SKILL.md` first). Direct the agent to research the changes with this focus:

The rest: https://github.com/modiqo/skillspec/blob/HEAD/.claude/skills/code-review/source/SKILL.md
