review-general

review-general is a command for Claude Code from mort-lab/excel-mcp. It costs 0 tokens per session (617 once invoked), scanned A, a copy of review-general, MIT.

A command for reviewing current code changes or selected files against quality, security, typing, structure, and project-style checks.

In plain words
What is it for?
Use it for local diffs, staged changes, pull requests, directories, or specified files, including Python projects using Pydantic v2.
Why use it?
It gathers common review checks in one process, helping reveal errors, unsafe input handling, missing validation, and inconsistent code patterns.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md; positional $N argument.

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/mort-lab/excel-mcp/review-general
Clone the repo
git clone --depth 1 https://github.com/mort-lab/excel-mcp

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/mort-lab/excel-mcp/review-general.svg)](https://agentmods.dev/commands/mort-lab/excel-mcp/review-general)
Your own site
<a href="https://agentmods.dev/commands/mort-lab/excel-mcp/review-general"><img src="https://agentmods.dev/badge/commands/mort-lab/excel-mcp/review-general.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 617 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 94% copy Near-identical to another mod 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.00617
Opus 5 $0.00000 $0.00309
Sonnet 5 $0.00000 $0.00123
Haiku 4.5 $0.00000 $0.00062

Measured 6d ago against content hash 872a3e5f8b5b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

review-general 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 6d 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.

Origin

This is a copy

94% identical to review-general — 186 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/commands/code-quality/review-general.md · 94 lines

How it starts

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

Code Review

Please perform a comprehensive code review of the current changes or specified files.

Review Scope

Scope for review $1 Link to must read PRP file if prp was used for implemnetaiton (skip if this is empty) $2

Review Process

  1. Understand Changes
    • If reviewing staged changes: git diff --staged
    • If reviewing specific files: Read the specified files
    • If reviewing a PR: gh pr view --json files,additions,deletions
    • If reviewing a local directory: git diff
    • If reviewing the entire codebase: git diff origin/main

Review Focus Areas

  1. Code Quality

    • Type hints on all functions and classes
    • Pydantic v2 models for data validation
    • No print() statements (use logging)
    • Proper error handling
    • Following PEP 8
    • Docstrings following google style python docstrings
  2. Pydantic v2 Patterns

    • Using ConfigDict not class Config
    • field_validator not @validator
    • model_dump() not dict()
    • Proper use of Annotated types
  3. Security

    • Input validation on all endpoints
    • No SQL injection vulnerabilities
    • Passwords properly hashed
    • No hardcoded secrets
  4. Structure

    • Unit tests are co-located with the code they test in tests/ folders
    • Each feature is self-contained with its own models, service, and tools
    • Shared components are only things used by multiple features
    • Future improvements (like multiple AI providers) would go in src/shared/ai_providers/ when implemented
    • Integration tests remain at the root level in tests/integration/
  5. Linting

    • ruff check --fix
    • mypy
  6. Testing

    • New code has tests
    • Edge cases covered
    • Mocking external dependencies
  7. Performance

    • No N+1 queries
    • Efficient algorithms
    • Proper async usage
  8. Documentation

    • Clear README with setup instructions
    • CLAUDE.md is up to date with any new important utils, dependencies etc for future cluade code instances

Review Output

Read the full file on GitHub · 94 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. 6d ago First seen · 94 lines · 0 tokens per session scan A 872a3e5f8b5b

Subscribe to this mod's changes

review-general is a command published in the GitHub repository mort-lab/excel-mcp (5 stars, last pushed 28d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 617 tokens. A static security scan graded it A with 0 findings. It is 94% identical to review-general, differing in 186 lines, and is treated as a copy.