
code-review
by grahama1970
Shared skills for AI agents (Claude Code, Codex, Gemini)
SKILL.md
name: code-review description: > Submit code review requests to multiple AI providers (GitHub Copilot, Anthropic Claude, OpenAI Codex, Google Gemini) and get patches back. Use when user says "code review", "review this code", "get a patch for", or needs AI-generated unified diffs for code fixes. allowed-tools: Bash, Read triggers:
- code review
- review this code
- review my changes
- review these changes
- get a patch
- generate a patch
- generate diff
- copilot review
- codex review
- claude review
- review request
- full review
- code review loop
- run a code review
- request code review
- use codex to review
- use claude to review
- opus vs codex
- coder reviewer loop
- 3 round review
- multi-round review
- assess and review
- review based on changes
- review with gpt-5
- review with codex metadata: short-description: Multi-provider AI code review CLI
Code Review Skill
Submit structured code review requests to multiple AI providers and get unified diffs back.
Supported Providers & Models
| Provider | CLI | Default Model | Models Available (Examples) | Context Bridging |
|---|---|---|---|---|
github | copilot | gpt-5 | gpt-5, claude-sonnet-4.5 | Native |
anthropic | claude | sonnet | opus, sonnet, haiku, sonnet-4.5 | Native |
openai | codex | gpt-5.2-codex | gpt-5.2-codex, o3, gpt-5 | Manually Bridged |
google | gemini | gemini-2.5-flash | gemini-3-pro, gemini-2.5-pro | Manually Bridged |
Context Bridging: For providers that don't support session persistence (OpenAI, Gemini), the skill automatically injects previous round outputs into the next prompt to enable multi-round iteration.
Prerequisites
# Check provider availability
python .pi/skills/code-review/code_review.py check
Agent Actions (How to use)
Use the table below to map user requests to the correct command.
| User Request | Command Pattern |
|---|---|
| "Review this code" (Default) | review-full --file request.md |
| "Review with Claude" | review-full --file request.md --provider anthropic |
| "Review with GPT-5" | review-full --file request.md --provider github --model gpt-5 |
| "Review with Codex GPT-5.2" | review-full --file request.md --provider openai --model gpt-5.2-codex |
| "4 round review with Codex" | review-full --file request.md --provider openai --model gpt-5.2-codex --rounds 4 |
| "Get a patch from Gemini" | review-full --file request.md --provider google |
| "Auto-generate request from repo" | build -A -t "Fix bug" -o request.md |
Quick Start
1. Create Request File
First, creating a request file is recommended to define the scope.
# Auto-generate request context from git status
python .pi/skills/code-review/code_review.py build -A -t "Fix crash in Auth" -o request.md
2. Run Review (Standard)
Run the full 3-step pipeline (Generate -> Judge -> Finalize).
Default: Uses GitHub Copilot (gpt-5) with 2 rounds.
python .pi/skills/code-review/code_review.py review-full --file request.md
3. Run Review (Custom Provider/rounds)
# Example: 4 rounds using OpenAI Codex
python .pi/skills/code-review/code_review.py review-full \
--file request.md \
--provider openai \
--model gpt-5.2-codex \
--rounds 4
Commands
review-full (Recommended)
Run the iterative review pipeline.
- Supports session continuity for all providers (native or bridged).
- Generates a final unified diff.
| Option | Description |
|---|---|
--file | Request markdown file (required) |
--provider | github, anthropic, openai, google |
--model | Specific model ID (e.g. gpt-5.2) |
--rounds | Number of iterations (default: 2) |
--workspace | Copy uncommitted files to temp workspace |
loop (Coder vs Reviewer)
Advanced: Run a feedback loop between two different agents (e.g., Anthropic Coder vs OpenAI Reviewer).
code_review.py loop \
--coder-provider anthropic --coder-model opus-4.5 \
--reviewer-provider openai --reviewer-model gpt-5.2-codex \
--rounds 5 --file request.md
bundle
Bundle request for copy/paste into GitHub Copilot web (if CLI is unavailable).
code_review.py bundle --file request.md --clipboard
find
Find past review requests.
code_review.py find --dir . --pattern "*.md"
Project Agent Workflow
- Interpret User Request: e.g., "Fix the bug in auth"
- Build Request:
code_review.py build -A -t "Fix Auth Bug" -o request.md - Execute Review:
code_review.py review-full --file request.md - Apply Patch: Parse output and apply valid diffs.
Score
Total Score
Based on repository quality metrics
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
3ヶ月以内に更新がある
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
Reviews
Reviews coming soon