litestar-fullstack-inertia: Command for Claude Code

.claude/commands/review.md

review is a command for Claude Code from litestar-org/litestar-fullstack-inertia. It costs 6 tokens per session (1,429 once invoked), scanned A, original, MIT.

A review command that checks a completed feature against tests, linting, type checks, and project patterns before it is committed or merged.

In plain words
What is it for?
Use it to review changed files, run the project's quality gates, extract new patterns, and update the pattern library.
Why use it?
It helps find quality problems and outdated documentation before the work is approved.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is litestar-org/litestar-fullstack-inertia's own configuration. It tells Claude Code how to work on litestar-fullstack-inertia 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 litestar-fullstack-inertia configures →

Reuse

Borrowing it

Nothing to install: this file belongs to litestar-org/litestar-fullstack-inertia. 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/litestar-org/litestar-fullstack-inertia/main/.claude/commands/review.md
Clone the repo
git clone --depth 1 https://github.com/litestar-org/litestar-fullstack-inertia

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/litestar-org/litestar-fullstack-inertia/review.svg)](https://agentmods.dev/commands/litestar-org/litestar-fullstack-inertia/review)
Your own site
<a href="https://agentmods.dev/commands/litestar-org/litestar-fullstack-inertia/review"><img src="https://agentmods.dev/badge/commands/litestar-org/litestar-fullstack-inertia/review.svg" alt="Measured on agentmods" height="20"></a>
Per session 6 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,429 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.00006 $0.01429
Opus 5 $0.00003 $0.00714
Sonnet 5 $0.00001 $0.00286
Haiku 4.5 $0.00001 $0.00143

Measured 4d ago against content hash 3805d78ca8ab, 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 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/review.md · 296 lines

How it starts

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

Review Workflow

You are reviewing the feature: $ARGUMENTS

Review Objectives

  1. Quality Gate Verification: All checks must pass
  2. Pattern Extraction: Document new patterns for future use
  3. Documentation Update: Ensure patterns library is updated
  4. Final Approval: Ready for commit/merge

Checkpoint 0: Load Review Context

Load feature context:

cat specs/active/{slug}/prd.md
cat specs/active/{slug}/tasks.md
cat specs/active/{slug}/tmp/new-patterns.md 2>/dev/null

Identify modified files:

git diff --name-only HEAD~5 | head -20
# or
git status --short

Output: "✓ Checkpoint 0 complete - [N] files to review"


Checkpoint 1: Quality Gate - Tests

Run full test suite:

make test

Expected: All tests pass

If failures: Stop and fix before continuing.

Output: "✓ Checkpoint 1 complete - All tests pass"


Checkpoint 2: Quality Gate - Linting

Run pre-commit hooks:

make pre-commit

Run type checking:

make type-check

Run slots check:

make slotscheck

Run frontend linting:

npx biome check resources/

Expected: All linting passes with zero errors

Output: "✓ Checkpoint 2 complete - All linting passes"


Checkpoint 3: Quality Gate - Coverage

Run coverage analysis:

make coverage

Check coverage for modified modules:

uv run pytest tests/ --cov=app/domain/{feature} --cov-report=term-missing

Required: 90%+ coverage on new/modified code

Output: "✓ Checkpoint 3 complete - Coverage: [N]%"


Checkpoint 4: Code Quality Analysis

Use analyze tool for comprehensive review:

mcp__pal__analyze(
    step="Reviewing code quality for {slug}...",
    step_number=1,
    total_steps=2,
    next_step_required=true,
    findings="...",
    analysis_type="quality",
    relevant_files=["app/domain/{feature}/..."]
)

Check for:

  1. Anti-patterns from quality-gates.yaml
  2. Type hint consistency (PEP 604 style)
  3. Docstring coverage
  4. Error handling patterns
  5. Security considerations

Read the full file on GitHub · 296 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. 4d ago First seen · 296 lines · 6 tokens per session scan A 3805d78ca8ab

Subscribe to this mod's changes

review is a command published in the GitHub repository litestar-org/litestar-fullstack-inertia (43 stars, last pushed 7d ago), licensed MIT. It adds 6 tokens to every session and 1,429 once invoked, about $0.0000 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-09-03.