code-review

code-review is a skill for Claude Code, Codex from sundegan/agent-skills. It costs 89 tokens per session (1,460 once invoked), scanned A, original, MIT.

A code-change review that checks for bugs, regressions, performance problems, dead code, and maintainability issues.

In plain words
What is it for?
Use it to inspect task-related source files, tests, build scripts, configuration, and database or data-structure changes before merging.
Why use it?
It focuses attention on problems that could change behavior or make the code harder to maintain, while excluding documentation-only changes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect task-related source files, tests, build scripts, configuration, and database or data-structure changes before merging.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/sundegan/agent-skills/code-review"><img src="https://agentmods.dev/badge/skills/sundegan/agent-skills/code-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,460 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.00089 $0.01460
Opus 5.5 $0.00036 $0.00584
Sonnet 5.5 $0.00018 $0.00292
Haiku 4.5 $0.00009 $0.00146

Measured 2mo ago against content hash bd24ba976023, 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 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 2mo 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.

general-skills/code-review/SKILL.md · 87 lines

How it starts

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

Code Review

Goal

Review the code-file changes related to the current task, identify meaningful issues, and clean up dead or unused code when it is safe to do so. Focus on problems that could affect correctness, existing behavior, performance, consistency, readability, or long-term maintenance. Ignore changes that do not affect code behavior, such as documentation-only edits, dependency directories, vendored code, generated artifacts, and formatting output unless they directly affect the current code change. Ensure the change's impact is understood, intentional, and controlled. Avoid spending user attention on low-impact speculation.

Workflow

  1. Determine the review scope:
    • Use the current conversation, user request, and files Agent changed as the primary boundary.
    • Run git status --short and inspect staged, unstaged, and untracked task-related files.
    • Focus review on source code, tests, build scripts, runtime configuration, schema or migration files, and other files that can change runtime, build, deployment, or developer workflow behavior.
    • Exclude documentation-only changes, examples that do not execute, formatting-only generated output, dependency caches, vendored dependency trees, and external code directories such as node_modules/, vendor/, third_party/, .venv/, dist/, build/, and generated lockstep artifacts unless the user explicitly asks to review them or they directly affect the code change.
    • If unrelated user changes exist, leave them untouched and exclude them from review unless they affect the current task.
  2. Understand the intended behavior:
    • Re-read the user's request and any implementation notes.
    • Inspect nearby existing code to learn local patterns, naming, error handling, tests, and architecture.
    • Prefer repository conventions over generic style preferences.
  3. Review the diff and relevant surrounding code:
    • Use git diff, git diff --cached, and targeted file reads.
    • Filter the diff to review code-relevant files first; mention skipped non-code paths only when useful for transparency.
    • Trace call sites, imports, exports, tests, configuration, and public interfaces touched by the task.
    • For frontend or UI changes, check state, rendering conditions, layout assumptions, accessibility basics, and interaction flow.
  4. Assess impact on existing functionality:
    • Identify existing workflows, APIs, commands, data flows, schemas, persisted data, configs, and integrations touched by the change.
    • Check whether behavior changes are intentional, documented by the user's request, and limited to the expected scope.
    • Look for compatibility issues, changed defaults, altered error handling, changed ordering, changed timing, or changed side effects.
    • Verify tests or call sites cover the important existing behavior that could regress.
    • If the impact is broader than the task requires, narrow the implementation or report the risk clearly.
  5. Prioritize findings:
    • Correctness bugs, regressions, data loss, security exposure, broken API contracts, and failing edge cases.
    • Serious performance problems such as new repeated expensive work, accidental N+1 behavior, unbounded loops, avoidable re-renders in hot paths, or large synchronous work on critical paths.
    • Uncontrolled or unnecessary impact on existing functionality.
    • Code style inconsistency that makes the change harder to maintain or contradicts clear local conventions.
    • Readability and maintainability problems such as unclear control flow, duplicated logic, leaky abstractions, or overly broad changes.
    • Dead or unused code, including unused imports, variables, functions, components, files, branches, feature flags, stale comments, and unreachable logic.
  6. Ignore low-value issues:
    • Ignore changes that are unrelated to code behavior, including docs-only updates and dependency/vendor directories, unless they introduce a release, build, packaging, or runtime risk.
    • Do not raise speculative null-pointer or undefined-value concerns when the surrounding code or data flow makes them unrealistic.
    • Do not nitpick formatting that the repository's formatter will handle.
    • Do not ask for abstractions, renames, or micro-optimizations unless they materially improve maintainability or correctness.
    • Do not report issues unrelated to the current task unless they are severe and directly block the change.
  7. Clean up safe dead code:
    • Remove unused imports, variables, functions, branches, stale comments, and unused files introduced by the current task.
    • Remove pre-existing dead code only when it is clearly made obsolete by the current task or is directly adjacent and safe to clean.
    • If removal could change public API, migrations, generated files, or external behavior, report it instead of deleting it unless the user explicitly asks.
  8. Apply fixes for clear issues within scope:
    • Fix bugs and serious maintainability problems discovered in the current task's code.
    • Reduce unintended impact on existing behavior when the implementation is broader than necessary.
    • Keep edits narrow and aligned with existing patterns.
    • Do not rewrite unrelated code while reviewing.
  9. Verify:
    • Identify relevant test commands from package scripts, Makefiles, CI configs, project docs, or nearby test conventions.
    • If the repository has unit tests relevant to the changed area, run them after review and cleanup.
    • If the repository has performance tests or benchmarks relevant to the changed area, run them when the change could affect performance or hot paths.
    • Run the smallest relevant tests, type checks, linters, builds, or targeted commands available for the changed area.
    • If no automated check exists, perform a focused manual verification by re-reading the final diff.
    • Re-run git diff after cleanup to ensure the final patch contains only intentional changes.

Read the full file on GitHub · 87 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago First seen · 87 lines · 89 tokens per session scan A bd24ba976023

Subscribe to this mod's changes

code-review is a skill published in the GitHub repository sundegan/agent-skills (2 stars, last pushed 3mo ago), licensed MIT. It adds 89 tokens to every session and 1,460 once invoked, about $0.0004 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

code-review compared with skills from other repositories

code-review next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-reviewsundegan/agent-skillsSkill23mo agoMITA89Claude Code, Codex
autoreviewopenclaw/clawhubSkill9.5kyesterdayMITA17Claude Code, Codex
agent-teams-simplify-and-hardenLeoYeAI/openclaw-master-skillsSkill2.2k6d agoMITA115Claude Code, Codex
omh-code-reviewrlaope/oh-my-hermesSkill5.2kyesterdayMITA48Claude Code, Codex
revdiff-planumputun/revdiffSkill945yesterdayMITA84Claude Code
explore-unknownsdzhng/skillsSkill1.4k2d agoMITA162Claude Code, Codex
re0-mergeLilMGenius/paperthinSkill1.4k4d agoMITA70Claude Code