code-review

code-review is a command for Claude Code from oxygen-fragment/claude-modular. It costs 0 tokens per session (596 once invoked), scanned A, original, MIT.

A structured code-review workflow that checks code quality, security, performance, tests, and documentation.

In plain words
What is it for?
Use it to review a commit or pull request, inspect security and performance concerns, check test coverage, and confirm that documentation was updated.
Why use it?
It organizes review feedback and helps find issues such as exposed secrets, unsafe input handling, weak tests, or inefficient database queries before release.

Command for Claude Code

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.

agentmods
npx agentmods add commands/oxygen-fragment/claude-modular/code-review
Clone the repo
git clone --depth 1 https://github.com/oxygen-fragment/claude-modular

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/oxygen-fragment/claude-modular/code-review.svg)](https://agentmods.dev/commands/oxygen-fragment/claude-modular/code-review)
Your own site
<a href="https://agentmods.dev/commands/oxygen-fragment/claude-modular/code-review"><img src="https://agentmods.dev/badge/commands/oxygen-fragment/claude-modular/code-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 596 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00596
Opus 5 $0.00000 $0.00298
Sonnet 5 $0.00000 $0.00119
Haiku 4.5 $0.00000 $0.00060

Measured 4d ago against content hash d600b9c96ef6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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/development/code-review.md · 95 lines

What it actually says

Code Review Command

2. **Code Quality Review**
   - Check adherence to style guidelines
   - Verify naming conventions
   - Assess code organization and structure
   - Review error handling patterns

3. **Security Analysis**
   - Scan for security vulnerabilities
   - Check for exposed secrets or credentials
   - Validate input sanitization
   - Review authentication and authorization

4. **Performance Review**
   - Identify potential performance issues
   - Check for memory leaks or resource waste
   - Review database queries and optimization
   - Assess caching strategies

5. **Test Coverage**
   - Verify test coverage for new code
   - Check test quality and scenarios
   - Validate edge case handling
   - Review test maintainability

6. **Documentation Review**
   - Check inline documentation
   - Verify API documentation updates
   - Review changelog entries
   - Assess user-facing documentation
# Output format:
# ✅ Code Quality: Follows conventions
# ⚠️  Security: Minor issues found
# ✅ Performance: No concerns
# ❌ Tests: Coverage below threshold
# ✅ Documentation: Complete
```

```bash
# Review specific commit or PR
/dev:code-review --commit=abc123
/dev:code-review --pr=456

# Focused review on specific changes
```

```bash
# Review with specific focus areas
/dev:code-review --focus=security,performance

# Provides detailed analysis of:
# - Security vulnerabilities
# - Performance bottlenecks
# - Optimization opportunities
```
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. 4d ago First seen · 95 lines · 0 tokens per session scan A d600b9c96ef6

Subscribe to this mod's changes

code-review is a command published in the GitHub repository oxygen-fragment/claude-modular (283 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 596 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-30.