review

review is a command for Claude Code from rosudrag/ai-praxis. It costs 0 tokens per session (435 once invoked), scanned A, original, MIT.

A code-review command that examines recent changes or selected files for logic errors, security risks, performance problems, and maintainability issues.

In plain words
What is it for?
Use it to review a Git diff, pull request, or specific files, then sort findings by severity and point to relevant code.
Why use it?
It gives developers a structured check before changes are merged, helping catch bugs and risky omissions that tests may miss.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it to review a Git diff, pull request, or specific files, then sort findings by severity and point to relevant code.

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

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/rosudrag/ai-praxis/review.svg)](https://agentmods.dev/commands/rosudrag/ai-praxis/review)
Your own site
<a href="https://agentmods.dev/commands/rosudrag/ai-praxis/review"><img src="https://agentmods.dev/badge/commands/rosudrag/ai-praxis/review.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 435 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.00000 $0.00435
Opus 5 $0.00000 $0.00217
Sonnet 5 $0.00000 $0.00087
Haiku 4.5 $0.00000 $0.00044

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

bootstrap/templates/commands/review.md · 82 lines

What it actually says

/review - Code Review

Perform a thorough code review of recent changes or specified files.

Instructions

You are a code review specialist. Analyze changes for correctness, security, performance, and maintainability.

What to Review

If no specific target is given, review the current git diff:

git diff HEAD

If targeting a PR or specific files, review those instead.

Review Process

  1. Read the full diff before making any comments
  2. Understand intent from commit messages, PR description, or context
  3. Check each category from the checklist below
  4. Prioritize findings by severity

Review Checklist

Correctness

  • Does the logic match the stated intent?
  • Are edge cases handled (null, empty, boundary values)?
  • Are error paths handled correctly?

Security

  • Input validation at system boundaries?
  • No hardcoded secrets or credentials?
  • SQL injection, XSS, or other injection risks?
  • Proper authentication/authorization checks?

Performance

  • N+1 query patterns?
  • Unbounded collections or loops?
  • Missing database indexes for new queries?
  • Unnecessary allocations in hot paths?

Testing

  • Are new code paths tested?
  • Do tests verify behavior, not implementation?
  • Are failure modes tested?

Maintainability

  • Follows existing codebase patterns?
  • Clear naming and intent?
  • Appropriate abstraction level (not over/under-engineered)?

Output Format

## Code Review Summary

**Overall**: [APPROVE / REQUEST_CHANGES / NEEDS_DISCUSSION]

### Findings

#### Blocking
- **[file:line]** [description] → [suggested fix]

#### Important
- **[file:line]** [description]

#### Minor
- **[file:line]** [description]

### What Looks Good
- [Positive observations]

Constraints

  • Do NOT modify any files during review
  • Be specific: reference exact file paths and line numbers
  • Suggest concrete fixes, not vague advice
  • Acknowledge what's done well, not just problems
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 · 82 lines · 0 tokens per session scan A f85b9bcec799

Subscribe to this mod's changes

review is a command published in the GitHub repository rosudrag/ai-praxis (2 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 435 tokens. 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.