kopi: Command for Claude Code

.claude/commands/review.md

review is a command for Claude Code from kopi-vm/kopi. It costs 0 tokens per session (253 once invoked), scanned A, original, Apache-2.0.

A command that examines a chosen directory and reports on its code structure, design choices, quality problems, and possible improvements. If no directory is given, it examines the current one.

In plain words
What is it for?
It is for reviewing source folders and getting actionable recommendations based on the project's coding standards.
Why use it?
It provides a repeatable way to find unused code, naming inconsistencies, weak error handling, complexity, and possible security issues.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

This is kopi-vm/kopi's own configuration. It tells Claude Code how to work on kopi itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything kopi configures →

Reuse

Borrowing it

Nothing to install: this file belongs to kopi-vm/kopi. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/kopi-vm/kopi/main/.claude/commands/review.md
Clone the repo
git clone --depth 1 https://github.com/kopi-vm/kopi

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/kopi-vm/kopi/review/github.svg)](https://agentmods.dev/commands/kopi-vm/kopi/review)
Your own site
<a href="https://agentmods.dev/commands/kopi-vm/kopi/review"><img src="https://agentmods.dev/badge/commands/kopi-vm/kopi/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/kopi-vm/kopi/review"><img src="https://agentmods.dev/badge/commands/kopi-vm/kopi/review.svg" alt="Reviewed on agentmods" width="80" 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 253 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.00253
Opus 5.5 $0.00000 $0.00101
Sonnet 5.5 $0.00000 $0.00051
Haiku 4.5 $0.00000 $0.00025

Measured 2d ago against content hash 9337aa78eb55, 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 2d 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 · 34 lines

What it actually says

/review

Review the contents of a specified directory and provide a comprehensive analysis of the code structure, patterns, and potential improvements.

Usage

Specify a directory path to review. If no path is provided, reviews the current directory.

Examples:

  • /review src/ - Review the src directory
  • /review src/commands/ - Review the commands module
  • /review - Review the current directory

Steps to execute:

  1. List all files in the specified directory recursively
  2. Analyze the code structure and organization
  3. Identify patterns and architectural decisions
  4. Check for code quality issues:
    • Unused code or dependencies
    • Inconsistent naming conventions
    • Missing error handling
    • Potential performance issues
    • File size and complexity (consider splitting large files)
    • Module organization and separation of concerns
  5. Suggest improvements based on the project's coding standards (CLAUDE.md)
  6. Highlight any security concerns or best practice violations
  7. Provide a summary with actionable recommendations

The review follows the principles outlined in CLAUDE.md:

  • Memory safety over micro-optimization
  • Code clarity and maintainability
  • Clean code maintenance (removing unused elements)
  • Proper error handling patterns
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. 2d ago First seen · 34 lines · 0 tokens per session scan A 9337aa78eb55

Subscribe to this mod's changes

review is a command published in the GitHub repository kopi-vm/kopi (29 stars, last pushed 1y ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 253 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-11-11.

Related

review compared with commands from other repositories

review next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
reviewkopi-vm/kopiCommand291y agoApache-2.0A0Claude Code
diff-reviewcoco-research/cocoCommand6312d agoApache-2.0A11Claude Code
review-branchdamusix/atomic-claudeCommand117todayMITA35Claude Code
initazrtydxb/procoderCommand2123d agoApache-2.0A16Claude Code
refactorRchGrav/claudeboxCommand1.2k1mo agoMITA9Claude Code
spec-trace-requirementsrjmurillo/ai-agentsCommand49todayMITA0GitHub Copilot
merge-conflict-analysisrjmurillo/ai-agentsCommand49todayMITA0GitHub Copilot