code-review

code-review is a skill for Claude Code, Codex from orlando-japan/claude-code-setting. It costs 34 tokens per session (667 once invoked), scanned A, original, MIT.

A structured review of code changes across correctness, security, readability, and performance.

In plain words
What is it for?
Use it to review a diff, file, or pull request, checking edge cases, error handling, authentication, injection risks, dependencies, lifecycle behavior, API assumptions, and meaningful performance issues.
Why use it?
It helps find real defects such as wrong logic, unsafe input handling, leaked secrets, concurrency errors, and resource problems before changes are accepted.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/orlando-japan/claude-code-setting/code-review
Any agent
npx skills add orlando-japan/claude-code-setting --skill code-review
Clone the repo
git clone --depth 1 https://github.com/orlando-japan/claude-code-setting

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/orlando-japan/claude-code-setting/code-review.svg)](https://agentmods.dev/skills/orlando-japan/claude-code-setting/code-review)
Your own site
<a href="https://agentmods.dev/skills/orlando-japan/claude-code-setting/code-review"><img src="https://agentmods.dev/badge/skills/orlando-japan/claude-code-setting/code-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 667 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00034 $0.00667
Opus 5 $0.00017 $0.00333
Sonnet 5 $0.00007 $0.00133
Haiku 4.5 $0.00003 $0.00067

Measured 3d ago against content hash d35225a6eabd, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

code-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 3d 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.

templates/extra/skills/code-review/SKILL.md · 81 lines

How it starts

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

Code review

Reviews find real problems. They don't rewrite code or bikeshed style.

Four axes, in order

  1. Correctness — does it do what it claims?
  2. Security — can it be exploited?
  3. Readability — can the next person understand it?
  4. Performance — does it matter at this code's actual scale?

Correctness before style. Security before correctness? No — a correct-and-exploitable function is still a correctness failure.

Correctness checklist

  • Logic: off-by-one, wrong operator, inverted condition, wrong default.
  • Error handling: swallowed errors, errors thrown into the void, errors used for control flow.
  • Edge cases: empty list, null, zero, negative, unicode, timezone, leap year.
  • Concurrency: races, deadlock, lost update, stale read.
  • Lifecycle: cleanup, cancellation, resource leak.
  • API contract: matches what callers assume.

Security checklist

  • Input validation at trust boundaries.
  • Injection: SQL, shell, template, HTML, JSON-in-URL.
  • Auth: authentication vs authorization, IDOR, privilege checks in UI only (bad).
  • Secrets: logs, errors, git history.
  • Crypto: homegrown, weak RNG, missing verification.
  • Dependency: known CVE, typo-squat, postinstall.

Readability checklist

  • Names: does the name tell you why, not just what?
  • Nesting: more than 3 levels = flatten.
  • Function length: more than a screen = split.
  • Comments: do they add non-obvious why, or narrate what?
  • Don't flag what the linter catches.

Performance — only if it matters

Don't flag:

  • O(n) where n < 100.
  • for vs map style choices.
  • String concatenation in code that runs once.

Do flag:

  • O(n²) loops where n can be large.
  • DB queries inside loops (N+1).
  • Sync I/O in a hot request path.
  • Unbounded memory growth.

Output

Group findings by severity:

  • Blocker — would ship a real bug or exploit.
  • Should fix — would cause confusion or minor issues.
  • Nit — style, naming, optional.

For each: path:line + one-sentence problem + one-sentence fix. End with a verdict: ship / changes needed / blocked.

Read the full file on GitHub · 81 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. 3d ago First seen · 81 lines · 34 tokens per session scan A d35225a6eabd

Subscribe to this mod's changes

code-review is a skill published in the GitHub repository orlando-japan/claude-code-setting (2 stars, last pushed 3mo ago), licensed MIT. It adds 34 tokens to every session and 667 once invoked, about $0.0002 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-31.