domains / software-engineering / independent-code-review / codex-review

codex-review

Skill card

combined

The two copies describe different procedures for the same skill name. The jezweb copy is a concrete, self-contained workflow that runs the Codex CLI in headless mode, selects a scope flag, pipes a bundled prompt, saves a timestamped report to .jez/reviews/, and summarizes findings. The sickn33 copy is a thin wrapper around an external BenedictKing/codex-review package, adds CHANGELOG generation, and includes installation and safety caveats. Neither copy is a reproduction of the other, and crowning one would hide a real alternative (local CLI review vs external package with CHANGELOG).

Repositories

RepositoryPath
jezweb/claude-skillsplugins/dev-tools/skills/codex-review/SKILL.md
sickn33/agentic-awesome-skillsplugins/agentic-awesome-skills-claude/skills/codex-review/SKILL.md

Other copies

RoleRepositoryPath
peerjezweb/claude-skillsplugins/dev-tools/skills/codex-review/SKILL.md
peersickn33/agentic-awesome-skillsplugins/agentic-awesome-skills-claude/skills/codex-review/SKILL.md
adaptersickn33/agentic-awesome-skillsplugins/agentic-awesome-skills/skills/codex-review/SKILL.md
adaptersickn33/agentic-awesome-skillsskills/codex-review/SKILL.md

Combined skill

# Codex Review

Run an independent code review using the OpenAI Codex CLI. The goal is a second opinion from a different model family on recent changes, a PR, a commit, or the whole app.

## When to Use
- After a meaningful change, before committing or shipping.
- Before opening a PR, to self-review with an independent reviewer.
- When reviewing large-scale refactoring.
- When the user explicitly asks for an "independent" or "second opinion" review.

Do NOT use for trivial changes, research questions, or architecture discussions.

## Preflight
1. Confirm Codex CLI is installed:
   ```bash
   which codex
   ```
   If missing, tell the user to install it and stop.
2. Confirm auth: the first `codex review` call will fail clearly if not logged in. If that happens, instruct the user to run `codex login` and stop.

## Determine Scope
Pick the scope flag based on user intent:

| User intent | Flag |
|---|---|
| "codex review" / "review the app" / default | no flag (reviews whole app at current HEAD) |
| "review my changes" / "review uncommitted" | `--uncommitted` |
| "review this branch vs main" / "review the PR" | `--base main` (or the branch they name) |
| "review commit abc123" | `--commit abc123` |

Default is whole-app review. If ambiguous, ask once.

## Run the Review
Use the Codex CLI in headless mode. Pipe a neutral review prompt via stdin to avoid shell escaping:

```bash
mkdir -p .jez/reviews
TS=$(date +%Y-%m-%d-%H%M)
OUT=".jez/reviews/codex-${TS}.md"

# Example: uncommitted changes
cat prompt.md | codex review --uncommitted - 2>&1 | tee "$OUT"
```

Other scopes:
```bash
# Vs base branch
cat prompt.md | codex review --base main - 2>&1 | tee "$OUT"

# Specific commit
cat prompt.md | codex review --commit abc123 - 2>&1 | tee "$OUT"

# Current HEAD
cat prompt.md | codex review - 2>&1 | tee "$OUT"
```

Let the review run; it can take several minutes on a large diff.

## Optional: CHANGELOG Generation
If the user requests CHANGELOG generation, ensure the generated CHANGELOG matches the actual diff and does not rewrite unrelated release history. Keep CHANGELOG.md in the project root and use conventional commit messages.

## Summarise for the User
1. Print the output path: `Report saved to .jez/reviews/codex-<timestamp>.md`
2. Read the saved report and extract the top findings (anything under **Critical** and **High**).
3. Show them inline in the chat, with file:line references intact.
4. Offer to action specific findings: "Want me to fix the SQL injection in `auth.ts:42`?"

## Rules
- **Advisory only.** Never auto-apply Codex's suggestions. Read the findings, discuss with the user, fix with their approval.
- **Don't leak the host model's reasoning into the prompt.** The prompt is deliberately neutral — Codex reviews the code, not the host model's narrative about the code.
- **Save to `.jez/reviews/`**, never `.claude/` (protected directory).
- **One report per run.** Don't overwrite — the timestamp makes each run unique so the user can compare.
- **Report what Codex actually found.** Don't soften, editorialise, or skip findings you disagree with. If you think Codex is wrong about something, say so as your own opinion after showing what Codex said.
- **Confirm provider/data/cost scope** before sending private source externally; no implicit commit, push or publication.
- **Do not treat the output as a substitute** for environment-specific validation, testing, or expert review.
- **Stop and ask for clarification** if required inputs, permissions, safety boundaries, or success criteria are missing.

## Verification
The skill is working if:
- Preflight correctly detects a missing `codex` binary.
- The right scope flag is chosen based on user intent.
- The report file appears in `.jez/reviews/` with a sensible timestamp.
- The file contains severity-prioritised findings with file:line refs.
- The host model surfaces the top findings without auto-fixing them.