tessera: Command for Claude Code

.claude/commands/review.md

review is a command for Claude Code from dr-code/tessera. It costs 11 tokens per session (500 once invoked), scanned A, a copy of review, MIT.

A read-only code review command that examines the current Git changes and branch. It checks for bugs, security problems, type issues, error-handling mistakes, performance concerns, missing tests, and project-specific rule violations.

In plain words
What is it for?
Use it to review staged or unstaged changes, check the current branch, and receive a report covering code quality, security, tests, databases, APIs, and automated rules.
Why use it?
It helps find problems in changed code before it is merged, without modifying the files being reviewed.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is dr-code/tessera's own configuration. It tells Claude Code how to work on tessera 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 tessera configures →

Part of the tessera plugin — 20 skills, 6 commands, 2 agents, 4 hooks, 1 MCP server shipped together

Reuse

Borrowing it

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

Made for: Claude Code.

Or install tessera, the plugin that ships this one along with the rest of its 20 skills, 6 commands, 2 agents, 4 hooks, 1 MCP server.

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/dr-code/tessera/review/github.svg)](https://agentmods.dev/commands/dr-code/tessera/review)
Your own site
<a href="https://agentmods.dev/commands/dr-code/tessera/review"><img src="https://agentmods.dev/badge/commands/dr-code/tessera/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/dr-code/tessera/review"><img src="https://agentmods.dev/badge/commands/dr-code/tessera/review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 500 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 88% 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.00011 $0.00500
Opus 5.5 $0.00004 $0.00200
Sonnet 5.5 $0.00002 $0.00100
Haiku 4.5 $0.00001 $0.00050

Measured 2mo ago against content hash 99af7f221f65, 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 2mo 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

88% identical to review — 2 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/review.md · 60 lines

What it actually says

Code Review

Review the current changes for:

Branch Check

Verify the current branch context:

git branch --show-current
  • If on main or master and auto_branch = true in claude-mastery-project.conf: warn — "You're reviewing changes directly on main. Next time, start work on a feature branch."
  • Report which branch is being reviewed in the output header
  • Review is read-only so no auto-branch is created, but the warning reminds the user for future commands

Context

  • Current diff: !git diff HEAD
  • Staged changes: !git diff --cached

Review Checklist

  1. Security — OWASP Top 10, no secrets in code, proper input validation
  2. Types — No any, proper null handling, explicit return types
  3. Error Handling — No swallowed errors, proper logging, user-friendly messages
  4. Performance — No N+1 queries, no memory leaks, proper pagination
  5. Testing — New code has tests, tests have explicit assertions
  6. Database — Using StrictDB directly, no raw driver imports
  7. API Versioning — All endpoints use /api/v1/ prefix

RuleCatch Report

After completing the manual review, query RuleCatch for automated violations on the changed files:

  • If the RuleCatch MCP server is available: query for violations on the files in the current diff
  • Include results in a dedicated section of the review output (see format below)
  • This catches pattern-based violations the manual review might miss
  • If no MCP available: suggest — "Ask RuleCatch, what violations happened today? for automated checks"

Output Format

For each issue found:

  • File: path/to/file.ts:line
  • Severity: 🔴 Critical | 🟡 Warning | 🔵 Info
  • Issue: Description
  • Fix: Suggested change

RuleCatch Violations

File Rule Severity Details
... ... ... ...

If no RuleCatch violations: "RuleCatch: No violations detected"

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. 2mo ago First seen · 60 lines · 11 tokens per session scan A 99af7f221f65

Subscribe to this mod's changes

review is a command published in the GitHub repository dr-code/tessera (1 stars, last pushed 25d ago), licensed MIT. It adds 11 tokens to every session and 500 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 88% identical to review, differing in 2 lines, and is treated as a copy.

Related

review compared with commands from other repositories

review next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
reviewdr-code/tesseraCommand125d agoMITA11Claude Code
diff-reviewcoco-research/cocoCommand785yesterdayApache-2.0A11Claude Code
review-branchdamusix/atomic-claudeCommand1154d agoMITA35Claude Code
refactorRchGrav/claudeboxCommand1.2k1mo agoMITA9Claude Code
spec-trace-requirementsrjmurillo/ai-agentsCommand49yesterdayMITA0GitHub Copilot
merge-conflict-analysisrjmurillo/ai-agentsCommand49yesterdayMITA0GitHub Copilot
initazrtydxb/procoderCommand21111d agoApache-2.0A16Claude Code