code-review

code-review is a command for Claude Code from huuanh20/awesome-ai-agent-skills. It costs 22 tokens per session (1,022 once invoked), scanned A, original, MIT.

A code-review command for checking local uncommitted changes or a GitHub pull request, which is a proposed change awaiting review.

In plain words
What is it for?
Use it to review current local changes or provide a pull request number or URL for review.
Why use it?
It gathers the relevant files and project rules, then checks the work and available build or test evidence for problems.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md.

Good fit Use it to review current local changes or provide a pull request number or URL for review.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/huuanh20/awesome-ai-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.

Clone the repo
git clone --depth 1 https://github.com/huuanh20/awesome-ai-agent-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/commands/huuanh20/awesome-ai-agent-skills/code-review/github.svg)](https://agentmods.dev/commands/huuanh20/awesome-ai-agent-skills/code-review)
Your own site
<a href="https://agentmods.dev/commands/huuanh20/awesome-ai-agent-skills/code-review"><img src="https://agentmods.dev/badge/commands/huuanh20/awesome-ai-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/commands/huuanh20/awesome-ai-agent-skills/code-review"><img src="https://agentmods.dev/badge/commands/huuanh20/awesome-ai-agent-skills/code-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,022 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.00022 $0.01022
Opus 5 $0.00011 $0.00511
Sonnet 5 $0.00004 $0.00204
Haiku 4.5 $0.00002 $0.00102

Measured 10d ago against content hash fa4c839e02f6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 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.

.claude/commands/ck/code-review.md · 159 lines

How it starts

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

/ck:code-review

Input: $ARGUMENTS

Mode Selection

If $ARGUMENTS contains a PR number, PR URL, or --prPR Review Mode.

Otherwise → Local Review Mode.


Local Review Mode

Phase 1 — GATHER

git diff --name-only HEAD

If no changed files, stop: "Nothing to review."

Read CLAUDE.md (if present) for project conventions. Read each changed file in full.

For planned work, locate the phase's ck:quality receipt and latest ck:test report. Verify the receipt before reviewing. A missing/stale quality receipt or missing required test report is a readiness finding, not something this command silently recreates.

Phase 2 — REVIEW

Spawn the code-reviewer agent with:

  • Full file contents of each changed file
  • CLAUDE.md contents (if present)
  • Recent context: git log --oneline -5

Phase 3 — VALIDATE ARTIFACTS

If current ck:test and build artifacts exist, validate their commands, timestamps, scope, and verdicts. Do not rewrite tests or duplicate ck:test. For a standalone repository with no ck artifacts, detect the stack and run the project's documented build/test commands as fallback:

# .NET
dotnet build --no-restore -q && dotnet test

# Node / TypeScript
npm run build && npm test

# Python
python -m pytest

# Or use task runner if present (Makefile, Taskfile, package.json scripts)

Report pass/fail for build and tests separately.

Phase 4 — REPORT

Present the agent's findings plus build/test results:

---
## Review Summary

| Severity | Count |
|----------|-------|
| CRITICAL | 0     |
| HIGH     | 1     |
| MEDIUM   | 2     |
| LOW      | 0     |

Build: PASS / FAIL
Tests: PASS / FAIL

Verdict: APPROVE | WARNING | BLOCK

Decision rules:

  • APPROVE — no CRITICAL/HIGH, build + tests pass
  • WARNING — HIGH issues only (can merge with caution)
  • BLOCK — any CRITICAL issue or build failure

PR Review Mode

Phase 1 — FETCH

Input Action
Number (42) Use as PR number
URL (github.com/.../pull/42) Extract PR number

Read the full file on GitHub · 159 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 · 159 lines · 22 tokens per session scan A fa4c839e02f6

Subscribe to this mod's changes

code-review is a command published in the GitHub repository huuanh20/awesome-ai-agent-skills (1 stars, last pushed 1mo ago), licensed MIT. It adds 22 tokens to every session and 1,022 once invoked, about $0.0001 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.