dotclaude: Command for Claude Code

.claude/commands/consistency-review.md

consistency-review is a command for Claude Code from berekvolgyipeter/dotclaude. It costs 22 tokens per session (1,130 once invoked), scanned A, original, MIT.

A code-review command for checking uncommitted changes against a repository's documented rules, structure, and engineering principles. It examines changed files, their diffs, and nearby code.

In plain words
What is it for?
For reviewing pending edits, checking repository rules, comparing README and rule indexes, and reporting each problem with a file, line, rule, and suggested fix.
Why use it?
It helps catch changes that do not fit the project's conventions or leave its documentation out of sync. It focuses on consistency rather than finding ordinary functional bugs.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

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

Reuse

Borrowing it

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

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 consistency-review

README.md
[![agentmods](https://agentmods.dev/badge/commands/berekvolgyipeter/dotclaude/consistency-review.svg)](https://agentmods.dev/commands/berekvolgyipeter/dotclaude/consistency-review)
Your own site
<a href="https://agentmods.dev/commands/berekvolgyipeter/dotclaude/consistency-review"><img src="https://agentmods.dev/badge/commands/berekvolgyipeter/dotclaude/consistency-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 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,130 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.00022 $0.01130
Opus 5 $0.00011 $0.00565
Sonnet 5 $0.00004 $0.00226
Haiku 4.5 $0.00002 $0.00113

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

Security

Grade A, and why

consistency-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 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/consistency-review.md · 73 lines

How it starts

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

!bash ~/.claude/scripts/review/delta-diff.sh

The overview above lists the changed files and stats — not the diffs themselves. For each changed file, read its diff on demand with git diff HEAD -- <file> (read untracked files directly). Review those changes for consistency with this repo (dotclaude): not functional bugs, but alignment with its documented conventions, structure, and engineering philosophy.

Load the source of truth

Read these before judging — quote the specific rule you're checking against, never paraphrase from memory:

  1. .claude/CLAUDE.md — the Rules for Changes and Engineering Philosophy sections.
  2. README.md and shared/rules-index.md — to check whether they are in sync with the change.
  3. For each changed file, read the file and its neighbors (sibling entries, surrounding lines) to judge whether the new content matches their style.

Checks

Work through each. For every finding, cite file:line, quote the rule it breaks, and give the fix.

1. Repo conventions (.claude/CLAUDE.md → Rules for Changes)

  • README sync — was README.md updated for every added/removed/changed rule, command, skill, agent, hook, output style, template, or script?
  • Command frontmatter — does every new or changed command file carry disable-model-invocation: true?
  • Rules index sync — was shared/rules-index.md updated when a rule or context-rule file was added or removed?
  • Context-rule placement — do on-demand rule files live in context-rules/ (not rules/) and have their glob registered in load-context-rules.sh?
  • Source acknowledgment — if content was drawn from a plugin-browser source, is the repo listed under README Acknowledgments?
  • Script placement — are hook scripts in hooks/ and helper scripts in scripts/?
  • No irrelevant cross-references / no leaked internals — is every artifact named one the reader actually reads, applies, or invokes? Is every env var, flag, or script detail one the reader actually sets or reacts to?

Read the full file on GitHub · 73 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. 7d ago First seen · 73 lines · 22 tokens per session scan A 51200ae4e236

Subscribe to this mod's changes

consistency-review is a command published in the GitHub repository berekvolgyipeter/dotclaude (2 stars, last pushed yesterday), licensed MIT. It adds 22 tokens to every session and 1,130 once invoked, about $0.0001 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-08-31.