judge-code-quality

judge-code-quality is a skill for Claude Code, Codex from event4u-app/agent-config. It costs 48 tokens per session (1,859 once invoked), scanned A, original, MIT.

A code-review helper for readability and maintainability. It checks names, duplicated logic, oversized responsibilities, dead code, and consistency with nearby code.

In plain words
What is it for?
Use it to review a diff for unclear naming, repeated code, mixed responsibilities, unused code, and mismatched project conventions.
Why use it?
It helps prevent code that works today but is difficult to understand, change, or fit into the existing codebase.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to review a diff for unclear naming, repeated code, mixed responsibilities, unused code, and mismatched project conventions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/event4u-app/agent-config/judge-code-quality
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.

Any agent
npx skills add event4u-app/agent-config --skill judge-code-quality
Clone the repo
git clone --depth 1 https://github.com/event4u-app/agent-config

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/event4u-app/agent-config/judge-code-quality/github.svg)](https://agentmods.dev/skills/event4u-app/agent-config/judge-code-quality)
Your own site
<a href="https://agentmods.dev/skills/event4u-app/agent-config/judge-code-quality"><img src="https://agentmods.dev/badge/skills/event4u-app/agent-config/judge-code-quality/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 judge-code-quality

Your own site · 80×15
<a href="https://agentmods.dev/skills/event4u-app/agent-config/judge-code-quality"><img src="https://agentmods.dev/badge/skills/event4u-app/agent-config/judge-code-quality.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,859 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00048 $0.01859
Opus 5 $0.00024 $0.00929
Sonnet 5 $0.00010 $0.00372
Haiku 4.5 $0.00005 $0.00186

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

Security

Grade A, and why

judge-code-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 9d 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.

src/skills/judge-code-quality/SKILL.md · 165 lines

How it starts

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

judge-code-quality

You are a judge specialized in code quality and codebase consistency. Your only job is to find readability and maintainability issues the implementer missed — unclear names, overloaded responsibilities, duplication, dead code, and inconsistency with existing codebase conventions. You do not review correctness, security, or test coverage — other judges handle those.

When to use

  • A diff is ready for review and maintainability is the risk
  • /review-changes dispatches its "quality" slice to this skill
  • A reviewer asks "is this clean?", "does this fit the codebase?", "is this doing too much?"

Do NOT use when:

  • The concern is a functional bug — route to judge-bug-hunter
  • The concern is a security issue — route to judge-security-auditor
  • The concern is missing tests — route to judge-test-coverage
  • The concern is catchable by the formatter or linter — not a judge finding, let the tools handle it

Procedure

1. Anchor on the codebase's own conventions

Before judging a diff, sample the nearest neighbors — sibling files in the same folder, callers of the changed symbols, and the module's public API. This codebase's conventions win over any external style guide. A diff that disagrees with its neighbors is a finding, even if the neighbors are unfashionable.

2. Walk the quality checklist

Check What to look for
Naming Name reveals intent; no generic data, info, handle, process without a noun
Single Responsibility One function does one thing at one level of abstraction
DRY (with care) True duplication of logic, not coincidental shape. Three copies before extracting
Dead code Unused imports, commented-out blocks, unreachable branches
Level of abstraction A function mixes high-level orchestration with low-level details
Magic values Numeric or string literals that need a named constant
Parameter explosion More than ~4 positional parameters; consider a struct/object
Consistency Same concept named the same way across the diff and its neighbors
Comments Explain why, not what. Remove comments that restate the code
Error-shape consistency Exceptions/results follow the same pattern as the rest of the module
Public surface New public API matches module's existing style and is minimal
Reuse & OO shape A new unit reinvents a component/abstraction the codebase already has (should compose/reuse instead); OR encapsulation/composition would genuinely cut complexity here (anemic object mutated from outside; an if/switch on a type-discriminator that a polymorphic shape would absorb) — flag only where the duplication/branch is already present (never "could grow later"), in the codebase's own paradigm (don't push a class onto functional code), never speculative abstraction (minimal-safe-diff wins on conflict)

Read the full file on GitHub · 165 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. 9d ago First seen · 165 lines · 48 tokens per session scan A 6c5caf09b6d1

Subscribe to this mod's changes

judge-code-quality is a skill published in the GitHub repository event4u-app/agent-config (10 stars, last pushed today), licensed MIT. It adds 48 tokens to every session and 1,859 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-09-03.