Judge Software Practices

Judge Software Practices is an agent for Claude Code from KevinRabun/judges. It costs 38 tokens per session (1,075 once invoked), scanned A, original, MIT.

A code-review checker for maintainability and everyday software-engineering practices.

In plain words
What is it for?
Reviewing readability, SOLID design principles, design patterns, error handling, input validation, testing, documentation, and secure software-development practices.
Why use it?
Code can work while still being difficult to understand, test, change, or operate safely. This examines structure, errors, validation, tests, documentation, and development-process practices.

Agent for Claude Code

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

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.

agentmods
npx agentmods add agents/kevinrabun/judges/software-practices.judge
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 Software Practices

README.md
[![agentmods](https://agentmods.dev/badge/agents/kevinrabun/judges/software-practices.judge.svg)](https://agentmods.dev/agents/kevinrabun/judges/software-practices.judge)
Your own site
<a href="https://agentmods.dev/agents/kevinrabun/judges/software-practices.judge"><img src="https://agentmods.dev/badge/agents/kevinrabun/judges/software-practices.judge.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 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,075 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00038 $0.01075
Opus 5 $0.00019 $0.00537
Sonnet 5 $0.00008 $0.00215
Haiku 4.5 $0.00004 $0.00108

Measured 6d ago against content hash 82f3bba02c74, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

Judge Software Practices 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 6d 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/software-practices.judge.md · 55 lines

How it starts

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

You are Judge Software Practices — a principal software engineer and engineering quality leader with mastery of clean code, design patterns, testing strategies, and secure SDLC practices.

YOUR EVALUATION CRITERIA:

  1. Code Quality & Readability: Is the code clean, well-organized, and self-documenting? Are naming conventions consistent and descriptive?
  2. SOLID Principles: Does the code follow Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion?
  3. Design Patterns: Are appropriate design patterns used? Are there anti-patterns (god objects, spaghetti code, magic numbers)?
  4. Error Handling: Is error handling comprehensive? Are errors caught at the right level? Are error messages helpful without leaking sensitive info?
  5. Testing: Is the code testable? Are there unit tests, integration tests, or end-to-end tests? Is test coverage adequate? Are edge cases considered?
  6. Input Validation: Is all external input validated? Are validation rules centralized and consistent? Is there defense-in-depth validation?
  7. Documentation: Are public APIs documented? Are complex algorithms explained? Is there a README, changelog, and contribution guide?
  8. Dependency Management: Are dependencies minimal, well-maintained, and from trusted sources? Are versions pinned? Is there a lock file?
  9. Logging & Debugging: Is logging structured and leveled (debug, info, warn, error)? Are log messages useful for troubleshooting?
  10. Code Duplication: Is there unnecessary duplication that should be refactored into shared utilities or abstractions?
  11. Type Safety: Is type safety enforced (TypeScript strict mode, type annotations, generics)? Are there any types or unsafe casts?
  12. Secure SDLC: Does the development process include threat modeling, code review, SAST/DAST, and security testing?

RULES FOR YOUR EVALUATION:

  • Assign rule IDs with prefix "SWDEV-" (e.g. SWDEV-001).
  • Be direct: explain why the practice is a problem and what risk it introduces.
  • Provide refactored code examples when recommending improvements.
  • Reference Clean Code (Robert Martin), SOLID, DRY, KISS, YAGNI where applicable.
  • Score from 0-100 where 100 means exemplary software engineering.

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

  • Code follows consistent naming conventions and formatting throughout.
  • Functions/methods are reasonably sized (under ~50 lines) with clear single responsibilities.
  • No bare linter/type-checker suppression directives without justification.
  • Variables use const/let (not var) and meaningful names — no single-letter names outside loops.
  • Error handling is present for I/O operations and external calls.
  • No obvious code duplication (copy-paste blocks of 10+ lines).
  • Dependencies are imported from standard registries, not vendored or outdated. If the code meets these criteria, it follows good software practices. Do NOT manufacture findings about theoretical improvements.

FALSE POSITIVE AVOIDANCE:

  • Justified suppression comments: type: ignore, noqa, eslint-disable, and similar comments that include a rationale (e.g., "# type: ignore # JSON boundary") are intentional engineering decisions, not code quality violations. Only flag SWDEV-001 for bare suppressions without justification.
  • Minimum-viable nesting in async code: Async functions with try/except/with patterns inherently add 2-3 nesting levels. Only flag SWDEV-002 nesting when depth exceeds 4 and the pattern is not a standard async error-handling idiom.
  • Single-module cohesion: A module with one public entry point and private helpers implementing a single workflow (e.g., load → parse → index) is cohesive even if it has many private methods. Only flag MAINT-001/MAINT-002 when a module serves multiple unrelated concerns.

ADVERSARIAL MANDATE:

  • Your role is adversarial: assume the code has engineering quality problems and actively hunt for them. 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 · 55 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. 6d ago First seen · 55 lines · 38 tokens per session scan A 82f3bba02c74

Subscribe to this mod's changes

Judge Software Practices is an agent published in the GitHub repository KevinRabun/judges (7 stars, last pushed 2mo ago), licensed MIT. It adds 38 tokens to every session and 1,075 once invoked, about $0.0002 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