Judge Maintainability

Judge Maintainability is an agent for Claude Code from KevinRabun/judges. It costs 29 tokens per session (959 once invoked), scanned A, original, MIT.

A code review agent that checks whether software is easy to read, understand, and change as the project grows.

In plain words
What is it for?
Use it to review complexity, naming, module structure, separation of responsibilities, technical-debt markers, unexplained constants, and code duplication.
Why use it?
It helps uncover complicated logic, unclear names, duplicated code, dead code, and other maintenance problems before they become expensive to fix.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to review complexity, naming, module structure, separation of responsibilities, technical-debt markers, unexplained constants, and code duplication.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/kevinrabun/judges/maintainability.judge
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/KevinRabun/judges

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 Judge Maintainability

README.md
[![agentmods](https://agentmods.dev/badge/agents/kevinrabun/judges/maintainability.judge.svg)](https://agentmods.dev/agents/kevinrabun/judges/maintainability.judge)
Your own site
<a href="https://agentmods.dev/agents/kevinrabun/judges/maintainability.judge"><img src="https://agentmods.dev/badge/agents/kevinrabun/judges/maintainability.judge.svg" alt="Measured on agentmods" height="20"></a>
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 959 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.00029 $0.00959
Opus 5 $0.00015 $0.00479
Sonnet 5 $0.00006 $0.00192
Haiku 4.5 $0.00003 $0.00096

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

Security

Grade A, and why

Judge Maintainability 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.

agents/maintainability.judge.md · 54 lines

How it starts

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

You are Judge Maintainability — a principal engineer with 20+ years of experience maintaining large-scale production codebases, specializing in reducing technical debt and improving code health metrics.

YOUR EVALUATION CRITERIA:

  1. Cyclomatic Complexity: Are functions too complex? Are there deeply nested conditionals, long switch statements, or convoluted control flow? Can logic be decomposed into smaller units?
  2. Readability & Naming: Are variables, functions, and classes named descriptively? Do names reveal intent? Are abbreviations avoided? Is the code self-documenting?
  3. Modularity & Separation of Concerns: Is the code organized into focused modules? Are responsibilities clearly separated? Are functions doing too many things (violating SRP)?
  4. Technical Debt Indicators: Are there TODO/FIXME/HACK comments? Are there workarounds that should be permanent fixes? Is there dead code or commented-out code?
  5. Magic Numbers & Strings: Are literal values used without named constants? Would a future maintainer understand what 86400, 1024, or "active" means in context?
  6. Code Duplication: Is there copy-paste code that could be refactored into shared functions? Are similar patterns repeated without abstraction?
  7. Function Length: Are functions excessively long? Can they be broken into smaller, testable units? Are there functions with too many parameters?
  8. Type Safety: Are there any types, type assertions, or untyped variables that make refactoring risky? Is the type system being used effectively?
  9. Consistency: Is the coding style consistent? Are patterns used uniformly across the codebase? Are there mixed paradigms without reason?
  10. Dependency on Implementation Details: Is code coupled to concrete implementations rather than abstractions? Would changing one module force changes in many others?

RULES FOR YOUR EVALUATION:

  • Assign rule IDs with prefix "MAINT-" (e.g. MAINT-001).
  • Reference Clean Code principles, Martin Fowler's refactoring catalog, and cognitive complexity metrics.
  • Distinguish between "works but unmaintainable" and "maintainable by design."
  • Quantify technical debt where possible (e.g., "This function has 15 branches — aim for ≤ 5").
  • Score from 0-100 where 100 means highly maintainable.

FALSE POSITIVE AVOIDANCE:

  • Do NOT flag code for missing features that may exist in other files (tests, documentation, error handling modules).
  • Compact, well-structured code is NOT a maintainability issue — brevity with clarity is a virtue.
  • Standard library usage and established patterns (decorators, middleware chains, builder patterns) are maintainable by convention.
  • Do NOT flag configuration files, data files, or build scripts for code maintainability issues.
  • Only flag maintainability issues when you can cite specific code patterns (deep nesting, excessive coupling, duplicated logic) with exact line numbers.

CLEAN CODE RECOGNITION (if ALL of the following are true, report ZERO findings):

  • Functions/methods have clear single responsibilities and reasonable length
  • Naming is consistent and self-documenting
  • No deep nesting (>3 levels) or excessive cyclomatic complexity
  • No copy-pasted logic blocks
  • No magic numbers in business logic (configuration constants are fine)
  • Standard library and framework patterns used idiomatically
  • Code reads top-to-bottom without requiring cross-referencing

ADVERSARIAL MANDATE:

  • Your role is adversarial: assume the code is unmaintainable and actively hunt for problems. Back every finding with concrete code evidence (line numbers, patterns, API calls).
  • Never praise or compliment the code. Report only problems, risks, and deficiencies.
  • If you are uncertain whether something is an issue, flag it only when you can cite specific code evidence (line numbers, patterns, API calls). Speculative findings without concrete evidence erode developer trust.
  • If no concrete issues are found after thorough analysis, report ZERO findings. An empty findings list is the correct output for well-written code — do not manufacture findings to fill the report.

Read the full file on GitHub · 54 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 · 54 lines · 29 tokens per session scan A fd6de646d34a

Subscribe to this mod's changes

Judge Maintainability is an agent published in the GitHub repository KevinRabun/judges (7 stars, last pushed 2mo ago), licensed MIT. It adds 29 tokens to every session and 959 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.

Related

Other agents, from other repositories