Claude Code hook

Codex Skill

Give Claude Code a second opinion using OpenAI Codex - automatic plan review via hooks

226 stars 23 forksHooks Plugin marketplace Source

Install

Install
claude plugin marketplace add cathrynlavery/codex-skill

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/cathrynlavery/codex-skill.git

From the README

Codex Skill for Claude Code

Give Claude Code a "second opinion" by letting it consult OpenAI's Codex CLI for independent verification.

What It Does

When Claude Code creates a plan, Codex automatically reviews it before you approve. Two AIs checking each other's work catches more edge cases.

Automatic review on:
- Every plan Claude creates (via hook)
- Architecture decisions
- Implementation approaches

Manual use for:
- Researching unfamiliar APIs or libraries
- Verifying complex code patterns
- Getting alternative perspectives

Prerequisites

Install Codex CLI:

Configure your OpenAI API key.

Supported Models

The skill supports the current visible Codex lineup. Automatic plan reviews do not pin a model; they inherit your configured Codex default.

gpt-5.6-sol, gpt-5.6-terra and gpt-5.6-luna are still listed as older generations.

Installation

Option A: Install as Claude Code plugin (recommended)

This auto-registers both the /codex skill and the automatic plan review hook. No manual configuration needed.

Option B: Manual installation

1. Install the skill

2. Set up automatic plan review

Copy the hook script:

Add to your ~/.claude/settings.json:

How It Works

The hook intercepts ExitPlanMode and reads the plan from tool_response.plan (the field where Claude Code stores the plan content). It passes the plan to Codex for review and displays the result before you approve.

Automatic plan reviews always use codex exec --sandbox read-only to restrict model-generated shell commands to read-only access. Manual consultations default to the same mode; explicit requests to implement changes use --sandbox workspace-write. If Codex fails, the hook reports that the review was skipped on stderr and exits successfully so your workflow can continue.

Codex reviews for:
-…
Read the full README on GitHub

How hooks work

  • Hooks are shell commands Claude Code runs at fixed points: before or after a tool call, when you submit a prompt, when Claude stops, on notifications and at session start.
  • They are set in the hooks section of ~/.claude/settings.json (or .claude/settings.json for a project), or come bundled in a plugin.
  • A hook can block a tool call, add context, or run a formatter or test. Read the scripts before you install them: they run on your machine with your permissions.
Claude Code docs

Details

Type
Hooks
Language
Python
License
MIT
Last updated
30 October 2026

FAQ

What is Codex Skill?

Give Claude Code a second opinion using OpenAI Codex - automatic plan review via hooks It is a hook for Claude Code, from cathrynlavery/codex-skill on GitHub.

How do I install Codex Skill?

Run claude plugin marketplace add cathrynlavery/codex-skill, then follow the setup in the README.

Is Codex Skill popular?

cathrynlavery/codex-skill has 226 GitHub stars and 23 forks. It was last updated on 30 October 2026.

More hooks

Browse the most popular Claude Code mods, all hooks, or the skills and MCP server directories.