Skills

Code Review

Multi-agent code review with deep analysis.

Install

npx skills add modiqo/skillspec --skill code-review -g -a claude-code -y
Repository
modiqo/skillspec699
Category
AI and agents
Updated
3mo ago
License
Apache-2.0
Context cost
Mediumabout 2,890 tokens
Runs scripts
No, instructions only

What it does

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".

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:

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:

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:

Read the whole SKILL.md on GitHub

More in AI and agents