codehydra: Command for Claude Code

.claude/commands/review-quality.md

review-quality is a command for Claude Code from stefanhoelzl/codehydra. It costs 10 tokens per session (2,189 once invoked), scanned A, original, MIT.

A command that reviews a codebase for problems in eight areas, including architecture, code quality, testing, infrastructure, and user experience. It can run selected reviews or all of them.

In plain words
What is it for?
Use it to inspect dependencies, module boundaries, duplication, documentation, type safety, tests, delivery tooling, accessibility, and user flows.
Why use it?
It brings related quality checks into one review and helps focus the investigation on the areas that matter.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

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

Reuse

Borrowing it

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

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/stefanhoelzl/codehydra/review-quality.svg)](https://agentmods.dev/commands/stefanhoelzl/codehydra/review-quality)
Your own site
<a href="https://agentmods.dev/commands/stefanhoelzl/codehydra/review-quality"><img src="https://agentmods.dev/badge/commands/stefanhoelzl/codehydra/review-quality.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,189 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.00010 $0.02189
Opus 5 $0.00005 $0.01094
Sonnet 5 $0.00002 $0.00438
Haiku 4.5 $0.00001 $0.00219

Measured 8d ago against content hash 0aebbee3c018, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

review-quality 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 8d 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-quality.md · 309 lines

How it starts

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

You are orchestrating a quality review of the CodeHydra codebase.

Available Topics

Topic Description
architecture Layer violations, circular deps, boundary violations, god modules
code-quality Duplication, complexity, dead code, scattered responsibilities
consistency Pattern deviations, naming, error handling, async patterns
documentation Completeness, accuracy, AI-readability, structure
type-safety tsconfig strictness, API type design, type-driven correctness
testing TESTING.md enforcement, test type compliance, behavioral mocks
infrastructure Dependencies, project layout, tooling, CI/CD, scripts
ux Accessibility, UI patterns, user flows, keyboard navigation

Parse User Intent

$ARGUMENTS

Interpret naturally:

  • Empty or "all": run all 8 topics
  • "only X and Y" or "focus on X": whitelist those topics
  • "skip X" or "except X": blacklist those topics
  • "help", "?", or "what topics": show the topics table above and exit
  • Any other text: interpret the intent naturally

Execution

Launch Plan agents in parallel for each selected topic using the prompts below.

Each agent invocation MUST:

  1. Read docs/QUALITY.md first (their topic section + Accepted Patterns)
  2. Read the reference docs listed for that topic
  3. Explore the ENTIRE codebase systematically
  4. Use WebFetch for online research when uncertain about best practices
  5. Filter out issues matching "Accepted Patterns" in docs/QUALITY.md
  6. Focus on CODEBASE-WIDE patterns, not localized issues
  7. Assess severity (Critical or Warning) based on impact and spread
  8. Return max 10 issues

Topic Prompts

architecture

Review CodeHydra for ARCHITECTURE quality issues.

Read first:

  • docs/QUALITY.md (Architecture section + Accepted Patterns)
  • docs/ARCHITECTURE.md
  • docs/INTENTS.md
  • docs/AGENTS.md
  • CLAUDE.md (External System Access Rules, Path Handling)

Read the full file on GitHub · 309 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. 8d ago First seen · 309 lines · 10 tokens per session scan A 0aebbee3c018

Subscribe to this mod's changes

review-quality is a command published in the GitHub repository stefanhoelzl/codehydra (20 stars, last pushed 10d ago), licensed MIT. It adds 10 tokens to every session and 2,189 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-30.