review-blocks

review-blocks is a command for Claude Code from bartstc/vite-ts-react-template. It costs 0 tokens per session (321 once invoked), scanned A, original, MIT.

A read-only review command that checks changed code against the project's building-block rules for structure, naming, responsibilities, and forbidden patterns.

In plain words
What is it for?
Use it to review a diff or selected path and report rule violations, missing rules, and the building blocks examined.
Why use it?
It finds architectural problems that type checking and linting may not detect, without editing files.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths.

Good fit Use it to review a diff or selected path and report rule violations, missing rules, and the building blocks examined.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/bartstc/vite-ts-react-template/review-blocks
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.

Clone the repo
git clone --depth 1 https://github.com/bartstc/vite-ts-react-template

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/bartstc/vite-ts-react-template/review-blocks/github.svg)](https://agentmods.dev/commands/bartstc/vite-ts-react-template/review-blocks)
Your own site
<a href="https://agentmods.dev/commands/bartstc/vite-ts-react-template/review-blocks"><img src="https://agentmods.dev/badge/commands/bartstc/vite-ts-react-template/review-blocks/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-blocks

Your own site · 80×15
<a href="https://agentmods.dev/commands/bartstc/vite-ts-react-template/review-blocks"><img src="https://agentmods.dev/badge/commands/bartstc/vite-ts-react-template/review-blocks.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 321 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.00321
Opus 5.5 $0.00000 $0.00128
Sonnet 5.5 $0.00000 $0.00064
Haiku 4.5 $0.00000 $0.00032

Measured 7d ago against content hash 073b652dfdc1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

review-blocks 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 7d 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-blocks.md · 21 lines

What it actually says

Review changed code against building blocks: $ARGUMENTS

Dev-triggered only. Read-only review — do not edit files.

Steps

  1. Get the diff: git diff core...HEAD plus uncommitted changes (git diff, untracked files). If $ARGUMENTS names files or a path, limit to those.
  2. For each changed file, identify which building block it implements (see .claude/skills/building-blocks/SKILL.md for the catalogue).
  3. Read the matching rule file(s) in .claude/skills/building-blocks/rules/<block>.md. Read only the blocks present in the diff.
  4. Check each file against its rule file: placement, naming, shape, responsibilities, forbidden patterns. Flag code that should be a block but isn't (e.g. inline query keys, mutation logic in a component, business logic in a pure component).
  5. Flag new helpers, hooks or components in the diff that duplicate something already in src/lib/ — name the existing module to reuse.
  6. Skip anything lint or typecheck already catches — focus on what they cannot.

Output

One line per finding, most severe first:

<file>:<line> — <block> — <violation> → <fix> (rule: rules/<block>.md)

End with blocks reviewed and a count of findings. If none: "No block violations found." If a rule file is missing or ambiguous for a case, list it as a gap, do not guess.

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. 7d ago Changed · +1 lines 073b652dfdc1
  2. 8d ago First seen · 20 lines · 0 tokens per session scan A 6c2492451a20

Subscribe to this mod's changes

review-blocks is a command published in the GitHub repository bartstc/vite-ts-react-template (124 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 321 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-22.

Related

review-blocks compared with commands from other repositories

review-blocks next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
review-blocksbartstc/vite-ts-react-templateCommand1242d agoMITA0Claude Code
quality-commandsJNTMTMTM/eIslandCommand362todayGPL-3.0A0Claude Code
cliJNTMTMTM/eIslandCommand362todayGPL-3.0A0Claude Code
esa-commandsJNTMTMTM/eIslandCommand362todayGPL-3.0A0Claude Code
test-commandsJNTMTMTM/eIslandCommand362todayGPL-3.0A0Claude Code
dev-commandsJNTMTMTM/eIslandCommand362todayGPL-3.0A0Claude Code
package-commandsJNTMTMTM/eIslandCommand362todayGPL-3.0A0Claude Code