codex-review

codex-review is a skill for Claude Code, Codex from syou6162/agent-skills. It costs 75 tokens per session (2,595 once invoked), scanned A, original, MIT.

A process for reviewing code changes with the Codex command-line tool. It compares the changes with the repository's default branch and checks them against the saved work plan.

In plain words
What is it for?
Use it after implementation to identify the default branch, read the plan, inspect the code diff, check plan alignment, and run a Codex review.
Why use it?
It provides an independent check for missing work or differences between the planned and implemented changes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; mentions Codex.

Good fit Use it after implementation to identify the default branch, read the plan, inspect the code diff, check plan alignment, and run a Codex review.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/syou6162/agent-skills/codex-review
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add syou6162/agent-skills --skill codex-review
Clone the repo
git clone --depth 1 https://github.com/syou6162/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for codex-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/syou6162/agent-skills/codex-review/github.svg)](https://agentmods.dev/skills/syou6162/agent-skills/codex-review)
Your own site
<a href="https://agentmods.dev/skills/syou6162/agent-skills/codex-review"><img src="https://agentmods.dev/badge/skills/syou6162/agent-skills/codex-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for codex-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/syou6162/agent-skills/codex-review"><img src="https://agentmods.dev/badge/skills/syou6162/agent-skills/codex-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,595 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00075 $0.02595
Opus 5 $0.00037 $0.01298
Sonnet 5 $0.00015 $0.00519
Haiku 4.5 $0.00007 $0.00260

Measured 10d ago against content hash f02f50cc5e2a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

codex-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/codex-review/SKILL.md · 229 lines

How it starts

The opening of the file, as written. The whole thing — 229 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Codex CLIを使ったコードレビュー

コードの変更内容に対してcodex CLIを使って客観的なレビューを実施します。

実行手順

  • レビューループ(最大10回)によりコンテキストが大きくなる場合があります。コンテキスト使用量に注意してください。

1. デフォルトブランチの取得

まず、リポジトリのデフォルトブランチを取得してください:

git symbolic-ref refs/remotes/origin/HEAD --short | cut -d/ -f2

このコマンドでデフォルトブランチ名(main や master など)を取得し、後続のステップで使用します。

2. planファイルの特定

.claude_work/plans/配下からplanファイルを取得してください:

ls .claude_work/plans/*.md

git worktree運用のため、単一のplanファイルが存在する前提です。

このファイルパスを以下のように定義します:

<取得したplanファイルのパス>

3. 開発日誌の取得(コンテキストにある場合)

会話のコンテキスト内にesa URLの開発日誌が言及されている場合、以下の手順で取得してください:

3.1 post番号の抽出

esa URLからpost番号を抽出(例:https://yasuhisa.esa.io/posts/12341234

3.2 YAMLの直接取得

esa-llm-scoped-guard fetch コマンドでYAMLを直接取得:

esa-llm-scoped-guard fetch -post <post_number> | tee .claude_work/dev_diary.yaml

成功の場合: YAMLが .claude_work/dev_diary.yaml に保存されるので、次のステップへ進む

失敗の場合: エラーメッセージをユーザーに報告し、このステップをスキップ

開発日誌がコンテキストにない場合は、このステップ全体をスキップしてください。

4. planファイルとの整合性確認

Codexレビュー前に、planファイルを読んで現在の実装(diff)との整合性を確認してください:

  1. タグで定義されたパスのファイルを読む(Readツール使用)
  2. デフォルトブランチとの差分を確認(git diff <デフォルトブランチ名>...HEAD
  3. planの内容と実装にずれがないか確認
  4. ずれがある場合はユーザーに報告

5. Codex CLIでのレビュー実行

Bash経由でcopilot --model gpt-5.3-codexを使ってレビューを実行してください。

重要:

  • コマンドはリポジトリルートで実行すること(相対パスが前提)
  • プロンプトは必ず Editツールで .claude_work/review_prompt.md に書き出してから cat でパイプすること

開発日誌がない場合の例:

  1. Editツールで .claude_work/review_prompt.md を作成:
<デフォルトブランチ名>ブランチとの差分を日本語でレビューしてください。

以下のファイルを参照して、計画に沿った実装になっているか確認してください:
- planファイル: <plan-fileタグで定義されたパス>
- ユーザー発言ログ: .claude_work/user_prompts.txt(存在する場合)

## レビュー方針
- **時間をかけてコードベースを徹底的に読むこと**
- 差分で変更されたファイルや関連ファイルはすべて確認すること
- 網羅的にレビューし、指摘漏れがないようにすること
- 各観点について具体的なコード箇所を参照しながらレビューすること
- **レビュー結果が網羅的で一度に多くなっても構わない**(指摘は詳細かつ具体的に)

レビューの観点:
- planに記載された変更内容との整合性
- コードの品質(可読性、保守性)
- 潜在的な問題やバグ
- ユーザー意図との整合性: .claude_work/user_prompts.txt に記録されたユーザーの発言・指示と実装が整合しているか

Read the full file on GitHub · 229 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 229 lines · 75 tokens per session scan A f02f50cc5e2a

Subscribe to this mod's changes

codex-review is a skill published in the GitHub repository syou6162/agent-skills (11 stars, last pushed 2mo ago), licensed MIT. It adds 75 tokens to every session and 2,595 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.