codex-code-review

Automate code reviews of Git diffs and PRs using Codex CLI in headless mode.

Updated Jan 2, 2026
One-click install
npx skills add https://github.com/2725244134/dotfiles --skill codex-code-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codex-code-review
Source: https://github.com/2725244134/dotfiles/tree/main/opencode/.config/opencode/skill/codex-code-review
Command: npx skills add https://github.com/2725244134/dotfiles --skill codex-code-review

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill reduces the heavy manual workload of code reviews by automating analysis of diffs, PRs, and file changes, delivering structured feedback and actionable recommendations.

Core Features & Use Cases

  • Git Diff Review: review staged and unstaged changes (git diff --cached / git diff HEAD) for bugs, edge cases, and vulnerabilities.
  • PR Review Workflow: fetch and review a GitHub PR diff to assess changes, risks, and integration impact.
  • File & Directory Review: analyze specific files or entire directories for correctness, performance, and maintainability.
  • Security, Performance, Architecture Focus: optionally center the review on security concerns, performance bottlenecks, or architectural tradeoffs.
  • Headless Execution: run in fully automated mode using --full-auto for CI or scripted workflows.

Quick Start

Run a basic headless review on staged changes: codex --full-auto exec 'Review the staged git changes, summarize per-file changes, and highlight security and performance concerns.'

Frequently Asked Questions about codex-code-review

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

FAQPage Schema
How do I automate code reviews on local git changes?

To automate code review on local git changes, use the codex-code-review skill with the Codex CLI in headless mode. It executes using the --full-auto flag to analyze staged and unstaged diffs, delivering structured feedback and actionable recommendations for bugs and vulnerabilities.

Can I review a GitHub PR diff locally using Codex CLI?

Yes, you can review a GitHub PR diff locally using the Codex CLI. The skill fetches the PR diff to assess changes, risks, and integration impact, providing a structured review workflow without needing to manually check out the pull request branch.

What do I need to run automated code reviews in headless mode?

To run automated code reviews in headless mode, you need a working Codex CLI installation and proper authentication. The skill is designed for fully automated execution using the --full-auto flag, making it suitable for CI pipelines and scripted workflows.

How do I focus my code review on security and performance issues?

You can focus your code review on security and performance issues by directing the Codex CLI to analyze specific files or directories with a targeted prompt. The skill optionally centers the review on security concerns, performance bottlenecks, or architectural tradeoffs.

Does automated code review work for entire directories and specific files?

Yes, automated code review works for entire directories and specific files. The skill analyzes specific files or entire directories to evaluate correctness, performance, and maintainability, extending beyond standard git diff and PR review workflows.