review

review is a command for Claude Code from ShaheerKhawaja/ProductionOS. It costs 33 tokens per session (578 once invoked), scanned A, original, MIT.

A command that reviews the current code changes before they are merged, checking security, database queries, automated-model boundaries, side effects, tests, and dependencies.

In plain words
What is it for?
Use it to inspect a branch's changes, identify issues such as unsafe SQL or missing tests, and assess whether the changes are ready to merge.
Why use it?
It helps catch bugs and risky changes before they reach the main codebase.

Command for Claude Code

Written for Claude Code: arguments in frontmatter.

Part of the productionos plugin — 4 skills, 41 commands, 11 agents shipped together

Good fit Use it to inspect a branch's changes, identify issues such as unsafe SQL or missing tests, and assess whether the changes are ready to merge.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/shaheerkhawaja/productionos/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/ShaheerKhawaja/ProductionOS

Made for: Claude Code.

Or install productionos, the plugin that ships this one along with the rest of its 4 skills, 41 commands, 11 agents.

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/shaheerkhawaja/productionos/review/github.svg)](https://agentmods.dev/commands/shaheerkhawaja/productionos/review)
Your own site
<a href="https://agentmods.dev/commands/shaheerkhawaja/productionos/review"><img src="https://agentmods.dev/badge/commands/shaheerkhawaja/productionos/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/shaheerkhawaja/productionos/review"><img src="https://agentmods.dev/badge/commands/shaheerkhawaja/productionos/review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 578 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.00033 $0.00578
Opus 5 $0.00016 $0.00289
Sonnet 5 $0.00007 $0.00116
Haiku 4.5 $0.00003 $0.00058

Measured 10d ago against content hash 6289ab58a0a3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 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/review.md · 78 lines

How it starts

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

/review — Pre-Landing Code Review

Analyze the current diff with the rigor of a principal engineer on a critical PR.

Step 0: Preamble

Run templates/PREAMBLE.md. Detect base branch.

Step 1: Gather Context

git diff --stat $(git merge-base HEAD origin/main)..HEAD
git log --oneline $(git merge-base HEAD origin/main)..HEAD

Step 2: Review Checklist

SQL Safety

  • No string interpolation in SQL queries
  • All user input parameterized
  • LIKE patterns escaped (escape_like utility)
  • No SELECT * in production code
  • Migrations are reversible

LLM Trust Boundaries

  • LLM output is never used in SQL, shell commands, or code execution
  • User-provided prompts are sanitized
  • LLM responses are validated before acting on them
  • Token limits enforced on inputs

Conditional Side Effects

  • No side effects in if-condition evaluation
  • No mutations in logging statements
  • No network calls in property getters
  • No database writes in validation logic

Security

  • No secrets in code (API keys, tokens, passwords)
  • Auth checks on every endpoint
  • CSRF protection on state-changing operations
  • Input validation at system boundaries

Tests

  • New code has corresponding tests
  • Edge cases covered (empty, null, boundary values)
  • Error paths tested
  • No tests disabled or skipped without explanation

Dependencies

  • New deps justified and maintained
  • No known CVEs in added packages
  • License compatible

Step 3: Findings

For each issue found:

### REVIEW-NNN: [CRITICAL|HIGH|MEDIUM|LOW] — {description}
**File:** {path}:{line}
**Evidence:** {code snippet}
**Fix:** {specific remediation}

Agent References

  • Dispatch code-reviewer for deep code analysis
  • Dispatch vulnerability-explorer for security focus
  • Dispatch adversarial-reviewer for attack surface analysis

Self-Eval

Run templates/SELF-EVAL-PROTOCOL.md. Was every file in the diff reviewed? Were findings evidence-based?

Read the full file on GitHub · 78 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 · 78 lines · 33 tokens per session scan A 6289ab58a0a3

Subscribe to this mod's changes

review is a command published in the GitHub repository ShaheerKhawaja/ProductionOS (8 stars, last pushed 4mo ago), licensed MIT. It adds 33 tokens to every session and 578 once invoked, about $0.0002 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.