Best for
- 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?",
event4u-app/agent-config/src/skills/judge-code-quality/SKILL.md
Use when a diff needs a readability review — naming, single-responsibility, DRY, dead code, mismatch with codebase conventions — dispatched by /review-changes, /do-and-judge, /judge.
Decision brief
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…
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/event4u-app/agent-config --skill "src/skills/judge-code-quality"Inspect the Agent Skill "judge-code-quality" from https://github.com/event4u-app/agent-config/blob/0adf49a8ae84b0ff6e2de8759eea43257e020eff/src/skills/judge-code-quality/SKILL.md at commit 0adf49a8ae84b0ff6e2de8759eea43257e020eff. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
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…
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?"
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…
Review the “2. Walk the quality checklist” section in the pinned source before continuing.
If a formatter (prettier, ECS, gofmt, rustfmt), a static analyzer (PHPStan, mypy, eslint), or a rule-based refactor tool (Rector) would catch the issue — do not flag it. The linter will. Your job is the human-judgment layer above those tools.
Permission review
No configured static risk pattern was detected
This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.
Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 91/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 7 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
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.
/review-changes dispatches its "quality" slice to this skillDo NOT use when:
judge-bug-hunterjudge-security-auditorjudge-test-coverageBefore 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.
| 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) |
If a formatter (prettier, ECS, gofmt, rustfmt), a static analyzer (PHPStan, mypy, eslint), or a rule-based refactor tool (Rector) would catch the issue — do not flag it. The linter will. Your job is the human-judgment layer above those tools.
| Verdict | When to return it |
|---|---|
apply | No quality issues; fits the codebase |
revise | Specific findings with file:line and a concrete improvement |
reject | Structural problem — the shape of the change must be rethought |
Before finalizing your verdict, confirm:
Judge: judge-code-quality
Model: <resolved from subagents.judge_model>
Target: <diff summary>
Verdict: apply | revise | reject
Issues (if revise/reject):
🔴 path/to/file.ext:LINE — <category>: <one-sentence finding>
Current: <what the diff does>
Suggested: <concrete change, not "make it better">
Neighbor reference: <file that shows the existing convention, if applicable>
🟡 ...
Severity: 🔴 breaks an established pattern used across the module / 🟡 worsens readability or maintainability / 🟢 suggestion.
Required fields (ordered):
apply, revise, or rejectapplyIf a finding needs runtime confirmation (running a formatter, linter, or static analyzer to see the actual report), note it as a follow-up for the implementer — the judge does not execute tools.
apply without comparing the diff against at least
one neighboring file in the same modulesubagents.judge_modelsubagent-orchestration —
model-pairing rules (subagents.judge_model one tier above implementer).judge-bug-hunter,
judge-security-auditor,
judge-test-coverage — dispatched
together by /review-changes.Alternatives
coreyhaines31/marketingskills
When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program
event4u-app/agent-config
Grounded design brief from the adopted corpus — style, WCAG-checked color tokens, typography, layout pattern, anti-patterns. Use on ui-design-brief or any which-style/palette/font/chart decision.
event4u-app/agent-config
Use BEFORE writing or editing any non-trivial UI — inventories components, design tokens, shadcn primitives, and reusable patterns into state.ui_audit. Hard gate for the ui directive set.
event4u-app/agent-config
Use BEFORE writing/changing tests, adding mocks, or test-only methods on production classes — vs mocking-the-mock, production pollution, partial mocks, and overfit/tautological assertions