# Peer Review Code

> Run code review using the codex CLI as an independent reviewer. Returns structured findings without applying fixes. Use when the user asks to "peer review code", "peer review my code", "get a second opinion on my code", "run codex review", "codex peer review", "run codex on my diff", or "review against main".

- Skill: `majiayu000/peer-review-code` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/peer-review-code`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/peer-review-code/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/peer-review-code

---


# Peer Review Code

AI-powered code review of changes. Delegates to `/codex-review` by default.

## Usage

Determine what to review based on context:

### Diff Mode

- **Uncommitted changes**: run `/codex-review` with `--uncommitted`
- **Against a base branch**: run `/codex-review` with `--base <branch>`
- **Specific commit**: run `/codex-review` with `--commit <sha>`

Pass `--title` when reviewing a feature branch or PR to give the reviewer context.

### File Scope Mode

When a file list or directory is provided instead of a diff:

```bash
codex review "Review the following files for bugs, correctness, and security issues: <file list>"
```

Capture and return the full review output.

