code-review

code-review is a skill for Claude Code from bhaumikmaan/claude-code-master-skills. It costs 50 tokens per session (1,325 once invoked), scanned A, original, MIT.

A three-part review process for changed code that checks reuse, code quality, and efficiency, starting with the Git diff—the record of what changed.

In plain words
What is it for?
Use it after implementation or when preparing a change for merging, especially when you want actionable cleanup findings rather than a review of the entire codebase.
Why use it?
It keeps reviews focused on new work and helps find duplicated helpers, maintainability problems, unnecessary complexity, and inefficient behavior before merging.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions subagents.

Good fit Use it after implementation or when preparing a change for merging, especially when you want actionable cleanup findings rather than a review of the entire codebase.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/bhaumikmaan/claude-code-master-skills/code-review.svg)](https://agentmods.dev/skills/bhaumikmaan/claude-code-master-skills/code-review)
Your own site
<a href="https://agentmods.dev/skills/bhaumikmaan/claude-code-master-skills/code-review"><img src="https://agentmods.dev/badge/skills/bhaumikmaan/claude-code-master-skills/code-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,325 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.00050 $0.01325
Opus 5 $0.00025 $0.00662
Sonnet 5 $0.00010 $0.00265
Haiku 4.5 $0.00005 $0.00133

Measured 8d ago against content hash 970075227496, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 8d 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/code-review/SKILL.md · 109 lines

How it starts

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

Code Review

Review changed code for reuse, quality, and efficiency. Fix real issues. Skip false positives.

CRITICAL: Start from the diff, not the whole codebase. Review what changed, not everything.

Phase 1: Identify Changes

  1. Run git diff (or git diff HEAD if there are staged changes) to see what changed.
  2. If there are no git changes, review the most recently modified files the user mentioned or that were edited earlier in the conversation.
  3. Note the scope: which files, which modules, how many lines. This calibrates review depth.

Phase 2: Three Parallel Review Passes

When the diff is non-trivial (>50 lines or touches >3 files), launch three review agents in parallel via the Agent tool. Pass each agent the full diff so it has complete context.

For small diffs, run the three passes yourself sequentially — subagent overhead isn't worth it.

Pass 1: Code Reuse

For each change:

  • Search for existing utilities and helpers that could replace newly written code. Check utility directories, shared modules, and files adjacent to the changed ones.
  • Flag new functions that duplicate existing functionality. Name the existing function to use instead.
  • Flag inline logic that could use an existing utility — hand-rolled string manipulation, manual path handling, custom environment checks, ad-hoc type guards.

Tool strategy for finding existing code:

  • Glob to locate utility directories and shared modules (near-zero tokens)
  • Grep with -C 3 for function signatures similar to what was written (lightweight)
  • Read only files Grep confirmed as relevant (heavy)

Pass 2: Code Quality

Review for these specific smells:

  • Redundant state: state that duplicates existing state, cached values that could be derived, observers/effects that could be direct calls
  • Parameter sprawl: adding new parameters to a function instead of generalizing or restructuring
  • Copy-paste with variation: near-duplicate code blocks that should be unified with a shared abstraction
  • Leaky abstractions: exposing internal details that should be encapsulated, or breaking existing abstraction boundaries
  • Stringly-typed code: using raw strings where constants, enums (string unions), or branded types already exist in the codebase
  • Unnecessary JSX nesting: wrapper elements that add no layout value — check if inner component props already provide the needed behavior
  • WHAT comments: comments explaining what the code does (well-named identifiers already do that), narrating the change, or referencing the task/caller. Keep only non-obvious WHY (hidden constraints, subtle invariants, workarounds)

Read the full file on GitHub · 109 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. 8d ago First seen · 109 lines · 50 tokens per session scan A 970075227496

Subscribe to this mod's changes

code-review is a skill published in the GitHub repository bhaumikmaan/claude-code-master-skills (3 stars, last pushed 5mo ago), licensed MIT. It adds 50 tokens to every session and 1,325 once invoked, about $0.0003 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.