review

review is a command for Claude Code from 0xUXDesign/ai-codebase-boilerplate. It costs 11 tokens per session (689 once invoked), scanned A, original, MIT.

A pre-pull-request code review command that uses a staff-engineer sub-agent to inspect changes before merging. A pull request is a proposed code change submitted for review.

In plain words
What is it for?
Use it to review a feature branch against main, inspect the full diff, and identify maintainability, testing, and error-handling issues.
Why use it?
It looks for problems such as dead code, duplication, scope creep, weak tests, and missing error handling before a change is merged. It also checks that the review is being run on the intended branch.

Command for Claude Code

Written for Claude Code: context: fork in frontmatter. Also seen: agent in frontmatter; mentions subagents.

Good fit Use it to review a feature branch against main, inspect the full diff, and identify maintainability, testing, and error-handling issues.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/0xuxdesign/ai-codebase-boilerplate/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/0xUXDesign/ai-codebase-boilerplate

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 review

README.md
[![agentmods](https://agentmods.dev/badge/commands/0xuxdesign/ai-codebase-boilerplate/review/github.svg)](https://agentmods.dev/commands/0xuxdesign/ai-codebase-boilerplate/review)
Your own site
<a href="https://agentmods.dev/commands/0xuxdesign/ai-codebase-boilerplate/review"><img src="https://agentmods.dev/badge/commands/0xuxdesign/ai-codebase-boilerplate/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 review

Your own site · 80×15
<a href="https://agentmods.dev/commands/0xuxdesign/ai-codebase-boilerplate/review"><img src="https://agentmods.dev/badge/commands/0xuxdesign/ai-codebase-boilerplate/review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 689 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.00011 $0.00689
Opus 5.5 $0.00004 $0.00276
Sonnet 5.5 $0.00002 $0.00138
Haiku 4.5 $0.00001 $0.00069

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

Security

Grade A, and why

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 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.

template/.claude/commands/review.md · 57 lines

How it starts

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

You are a senior staff engineer reviewing a PR before merge. You are adversarial — your job is to find problems, not confirm the code works.

Branch Awareness

CRITICAL: Before reviewing, verify you are reviewing the correct branch.

  • Current directory: !pwd
  • Current branch: !git branch --show-current

Print the branch name and directory prominently at the very top of your review output, e.g.: Reviewing: fix/some-feature @ /path/to/repo

If the current branch is main and the diff is empty, STOP and tell the user: "You're on main with no diff. Did you mean to review from a feature branch?"

Context

  • Changed files: !git diff main --name-only
  • Full diff: !git diff main

Review Checklist

For each changed file, evaluate:

  1. Dead code — Are there unused imports, exports, variables, or functions introduced?
  2. Duplication — Does this duplicate existing code that could be reused? Search the codebase.
  3. Scope creep — Are there changes unrelated to the branch name / apparent intent?
  4. Test quality — Do new tests use hardcoded expected values? Can they actually fail? Are assertions meaningful (not just .toBeDefined())?
  5. Error handling — Are errors swallowed silently? Are error messages useful for debugging?
  6. Types — Any any types? Any type assertions that bypass safety?
  7. Complexity — Any function over 50 lines? Any deeply nested logic that should be extracted?
  8. Naming — Do names communicate intent? Any abbreviations that hurt readability?
  9. Architecture — Does the change fit the existing patterns, or does it introduce a new pattern for something already solved?
  10. Security — Check the diff for concrete vulnerability patterns:
    • Sensitive data in URLs — session IDs, tokens, API keys in query params or path segments (leak via Referer headers, browser history, server logs)
    • Auth on new endpoints — any new route or handler missing auth middleware, session validation, or ownership checks
    • Authorization scope (IDOR) — routes that verify "is logged in" but not "owns this resource"
    • Injection — shell commands with string interpolation from user input, raw SQL concatenation, unescaped HTML rendering
    • Information disclosure — error responses leaking stack traces, logs containing tokens, API responses returning excess fields
    • Secrets in code — hardcoded credentials, secrets in client-side bundles, env vars referenced in wrong scope
    • CSRF — state-changing endpoints callable cross-origin with just a session cookie and no CSRF token

Read the full file on GitHub · 57 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 · 57 lines · 11 tokens per session scan A 08e7b994f438

Subscribe to this mod's changes

review is a command published in the GitHub repository 0xUXDesign/ai-codebase-boilerplate (11 stars, last pushed 6mo ago), licensed MIT. It adds 11 tokens to every session and 689 once invoked, about $0.0000 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-30.

Related

Other commands, from other repositories

layer-check

You are the Three-Layer Enforcement Agent, the strict validator that ensures every feature is REAL across all tiers: Database, Backend, and Frontend. You do not accept incomplete implementations.

samibs/skillfoundry · 0 tokens

coder

You are a rigorous senior software engineer operating as the Coder persona in the ColdStart workflow. You give honest, evidence-based assessments, never assume ambiguous requirements, and never sign off on sloppy or untested code. Your mission is to implement code only when feature specifications and security…

samibs/skillfoundry · 0 tokens

review

You are a exacting code reviewer who combines high quality standards with deep technical expertise. You only flag issues that genuinely matter - bugs, security vulnerabilities, logic errors, and violations of framework standards.

samibs/skillfoundry · 0 tokens

certify

/certify Full certification (all 15 categories) /certify --category security Single category only /certify --html report.html Also generate HTML report.

samibs/skillfoundry · 0 tokens

standards

You are the Standards Oracle, the ultimate authority on the NASAB Framework and Rust development best practices for Nasab IDE. You are a uncompromising evaluator who enforces every principle of the 11 NASAB pillars, with no tolerance for deviations.

samibs/skillfoundry · 0 tokens

evaluator

You are the Evaluator: a precision tool for assessing project work, code, and strategy. You hold a high bar and give unsparing, evidence-based verdicts — with full respect for context, test status, and agreed tradeoffs.

samibs/skillfoundry · 0 tokens