code-review-codex

code-review-codex is a skill for Claude Code from jaansokk/cursor_tools. It costs 45 tokens per session (1,622 once invoked), scanned A, original, MIT.

A read-only final review of uncommitted code changes or a branch comparison, performed through Codex CLI. It looks for bugs, security problems, and regressions before a change is committed.

In plain words
What is it for?
Use it as a final gate after a feature, fix, or refactor, especially before committing changes or when reviewing sensitive code paths.
Why use it?
It provides an independent check that may catch correctness or security issues missed during implementation. It reports findings and does not edit the code.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: runs codex exec; mentions Codex.

Good fit Use it as a final gate after a feature, fix, or refactor, especially before committing changes or when reviewing sensitive code paths.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jaansokk/cursor_tools/code-review-codex
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 jaansokk/cursor_tools --skill code-review-codex
Clone the repo
git clone --depth 1 https://github.com/jaansokk/cursor_tools

Made for: Claude Code.

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 code-review-codex

README.md
[![agentmods](https://agentmods.dev/badge/skills/jaansokk/cursor_tools/code-review-codex/github.svg)](https://agentmods.dev/skills/jaansokk/cursor_tools/code-review-codex)
Your own site
<a href="https://agentmods.dev/skills/jaansokk/cursor_tools/code-review-codex"><img src="https://agentmods.dev/badge/skills/jaansokk/cursor_tools/code-review-codex/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 code-review-codex

Your own site · 80×15
<a href="https://agentmods.dev/skills/jaansokk/cursor_tools/code-review-codex"><img src="https://agentmods.dev/badge/skills/jaansokk/cursor_tools/code-review-codex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,622 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.00045 $0.01622
Opus 5.5 $0.00018 $0.00649
Sonnet 5.5 $0.00009 $0.00324
Haiku 4.5 $0.00005 $0.00162

Measured 1mo ago against content hash b50031235e8d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-review-codex 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 1mo 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.

.claude/skills/code-review-codex/SKILL.md · 157 lines

How it starts

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

Code Review via Codex CLI

A read-only, post-implementation review using OpenAI Codex CLI as an independent second opinion. The goal is to catch real issues before commit, not to make edits.

When to use

  • After completing a feature, fix, or refactor — as the last step before committing
  • When the user says "review", "check my code", "final review", or "sanity check"
  • For security or correctness confidence on sensitive code paths

Behavior

  • Read-only: Codex reviews and reports. No files are modified.
  • Report back: Output is returned to Claude as structured findings for the user to triage.
  • Skip noise: No style nits, no formatting opinions, no "consider renaming" suggestions.

Steps

  1. Determine scope from $ARGUMENTS:

    • No arguments → review uncommitted changes (--uncommitted)
    • Branch name (e.g. main) → review diff against that branch (--base <branch>)
  2. Run the Codex review using codex exec (supports full prompt alongside diff scope):

Uncommitted changes (default):

codex exec \
  -m gpt-5.3-codex \
  -c model_reasoning_effort='"xhigh"' \
  -s read-only \
  --ephemeral \
  -o /tmp/code-review-output.md \
  "You are a senior engineer doing a final gate review on code that is about to be committed. This is post-implementation — the work is done, you are looking for real problems only.

Start by running: git diff HEAD to see all uncommitted changes (staged and unstaged). Also run git status to catch untracked files that may be relevant.

Review ONLY for issues that would cause bugs, outages, security incidents, or serious perf regressions in production. Ignore style, naming, formatting, and minor code smells.
Use the context7 MCP to check documentation of libraries when needed.

## Review checklist

### 1. Correctness
- Logic errors: wrong conditions, off-by-one, inverted checks, unreachable branches
- State bugs: stale closures, race conditions, mutations of shared state
- Null/undefined access, unhandled promise rejections, uncaught exceptions
- Incorrect API usage or wrong assumptions about library behavior
- Edge cases: empty inputs, boundary values, concurrent access

### 2. Security
- Injection vectors: SQL, XSS, command injection, path traversal
- Auth/authz gaps: missing permission checks, broken access control
- Secrets or credentials in code, logs, or error messages
- Insecure defaults: permissive CORS, disabled CSRF, weak crypto
- User input flowing unsanitized to sensitive sinks

### 3. Data integrity
- Missing or incorrect validation at system boundaries (API inputs, DB writes, file I/O)
- Silent data loss: swallowed errors, ignored return values, dropped events
- Inconsistent state from partial failures (no transaction, no rollback)

### 4. Performance (only if clearly problematic)
- N+1 queries, unbounded loops over large datasets
- Blocking calls in async/event-loop code
- Missing pagination or limits on user-controlled queries
- Obvious memory leaks (growing caches, unclosed resources, dangling listeners)

### 5. Robustness
- Error handling: catch blocks that swallow context, missing retry/backoff on network calls
- Missing timeouts on external calls (HTTP, DB, queues)
- Failure modes that cascade (one failing dependency takes down everything)

## Output format

For each finding:
- **Severity**: CRITICAL / HIGH / MEDIUM / LOW
- **File:Line**: exact location
- **What**: one-sentence description of the problem
- **Why it matters**: what breaks or goes wrong in production
- **Fix**: concrete code suggestion or approach (keep it short)

Group findings by severity (CRITICAL first). If nothing significant is found, say so — a clean review is a valid outcome.

End with a one-line verdict: PASS (ship it), PASS WITH NOTES (minor items), or BLOCK (must fix before commit)."

Read the full file on GitHub · 157 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. 1mo ago First seen · 157 lines · 45 tokens per session scan A b50031235e8d

Subscribe to this mod's changes

code-review-codex is a skill published in the GitHub repository jaansokk/cursor_tools (1 stars, last pushed 7mo ago), licensed MIT. It adds 45 tokens to every session and 1,622 once invoked, about $0.0002 per session on Opus 5.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-31.

Related

Other skills, from other repositories