review-agent

Inspect code changes and identify actionable defects without modifying files.

133k|21.0k|Updated Apr 13, 2025
Ready to run
npx skills add https://github.com/openai/codex --skill review-agent-openai
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: review-agent
Source: https://github.com/openai/codex/tree/main/codex-rs/skills/src/assets/samples/review-agent
Command: npx skills add https://github.com/openai/codex --skill review-agent-openai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Code reviews require careful, methodical inspection to catch real bugs before they reach production. Manual review is time-consuming and error-prone, especially across large diffs. This Skill automates the read-only inspection of code changes—comparing against base branches, analyzing call sites, and filtering out speculative concerns to surface only genuine, fixable issues. ## Core Features & Use Cases - Defect-First Analysis: Systematically scan diffs for correctness, security, performance, and maintainability regressions introduced by the change. - Multi-Target Review: Handle uncommitted changes, base-branch diffs, commits, and custom review instructions with context-aware merge-base resolution. - Severity Prioritization: Classify findings as P0 (release blocker), P1 (urgent), P2 (ordinary), or P3 (low-impact) to focus remediation effort. - Use Case: A developer submits a pull request refactoring database query logic. Use this Skill to inspect the full diff, validate the queries against existing tests, and flag any performance regressions or SQL injection vulnerabilities introduced by the change. ## Quick Start Ask the review agent to inspect the uncommitted changes in the current branch and return every actionable finding ordered by severity.

Frequently Asked Questions about review-agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review uncommitted changes in my current branch?▼

The review agent inspects the diff between your current branch and its merge-base with the upstream, or the local branch if no upstream exists. It reads the complete diff and surrounding context to identify real regressions introduced by your changes.

What types of issues does the review agent find?▼

It flags concrete defects affecting correctness (logic errors, null pointer risks), security (injection vulnerabilities, access control leaks), performance (expensive loops, unnecessary allocations), and maintainability (code clarity regressions). It skips style nits, pre-existing issues, and speculative concerns.

Does the review agent check test coverage?▼

Yes. The agent validates findings against relevant tests and call sites to confirm each issue is real and would occur in actual execution. If test gaps exist, it flags them in the overall assessment.

Can I use this for reviewing someone else's pull request?▼

Yes. Provide the commit SHA, branch name, or base-branch comparison, and the agent will resolve the correct merge-base and inspect the actual changes that would merge.

What does the review agent not do?▼

It does not modify files, create commits, push branches, post review comments, or delegate to other agents. It performs read-only analysis only and returns a static report of findings.