/claude-kit:over-engineering-reviewfrom Claude Kit SDLC
Scans code for over-engineering only, returning a delete-list of what to cut and the leaner replacement. Use for bloat reduction, lean reviews, or complexity-only passes over diffs.
Ships in Claude Kit SDLC. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A single-lens scan inspired by the ponytail plugin's review/audit commands. Adapted as a stack-agnostic, report-only skill. It is deliberately narrow: it hunts complexity and nothing else.
code-review-and-quality: that is the full multi-axis gate (correctness, security,
performance, architecture, readability) you run before merge. Use it for the real review. Use this
when you want the complexity axis alone, in a scannable form, with no other noise.code-simplification: that skill applies the refactor and preserves behavior step by step.
This skill produces the list; hand the list to code-simplification (or a developer) to execute.mandatory-workflow.md §2a.5: this skill scans complexity out after code
exists; the Reuse & YAGNI Gate (.claude/rules/mandatory-workflow.md, stage 2a.5) applies the
same five lenses before code is written. Run the gate to avoid the bloat; run this skill to catch
what slipped through.git diff, staged, or a PR). Prefix findings with
the line; for multi-file diffs prefix with file:line.State which mode you ran in one line at the top.
Every finding carries exactly one tag and names its replacement:
delete: — dead code, unused flexibility, a speculative feature. Replacement: nothing.stdlib: — a hand-rolled thing the language's standard library already ships. Name the function.native: — a dependency or code doing what the platform already does (a built-in input type, a CSS
feature, a DB constraint, a framework primitive). Name the feature.yagni: — an abstraction with one implementation, a config nobody sets, a layer with one caller,
a factory with one product, a wrapper that only delegates.shrink: — same logic, fewer lines. Show the shorter form.Dependencies the stdlib or platform already ships · single-implementation interfaces · factories with one product · wrappers that only delegate · modules exporting one thing · dead flags and config · hand-rolled stdlib · speculative "for later" scaffolding.
Over-engineering also hides in the inverse of duplication. Watch for a shared abstraction that keeps growing boolean / enum / "mode" parameters so each caller can fork its behavior down a different branch. That parameter accretion is the signature of the wrong abstraction — code de-duplicated before the right shape was known, so now every caller pays for a generalization that fits none of them, and each new requirement wedges in another flag.
The counter-intuitive fix: re-inline it back into its callers (yes, re-introducing the
duplication), then let the correct abstraction re-emerge once the real axis of variation is visible.
A little duplication is far cheaper than the wrong abstraction — copied code is a local, obvious
cost; a wrong abstraction taxes every caller and compounds. Flag it (shrink: on the flag-laden
generalization, recommending re-inlining) when a "reusable" helper is mostly if mode == … branches.
Per Sandi Metz, "The Wrong Abstraction" (prefer duplication over the wrong abstraction). The complement to the
yagni:tag:yagni:catches abstraction built too early; this catches abstraction that de-duplicated too aggressively.
The five tags catch complexity that already exists. In diff mode, also invert the burden of proof on what the change adds — LLM-written code is additive by default (it reinvents wheels, gilds error handling, and abstracts for a single caller). The default answer to "should we add this?" is no; the addition must earn its place. For each added file / function / abstraction / config / dependency, ask:
If 4 and 5 can't be answered with evidence, the addition is unjustified. Watch for these AI-additive anti-patterns:
| Anti-pattern | Signal | Challenge |
|---|---|---|
| Wheel reinvention | New helper overlapping existing code/stdlib | "Does X already do this?" |
| Hallucinated issue | A fix for a bug with no reproduction | "Show the failing test before the fix." |
| Test manipulation | Test changed to match new behavior, not the spec | "Did the spec change, or did you change the test?" |
| Complexity creep | Abstraction for a single use case | "Is this the 3rd use, or the 1st?" |
| Priority deviation | Work not traceable to the task/spec | "Which requirement does this serve?" |
| Gold plating | Error handling / flexibility beyond need | "What breaks without this?" |
Give each scrutinized addition a one-word verdict — justified (evidence supports it → keep), needs-evidence (plausible but unproven → prove or cut), unjustified (no evidence, likely additive bias → cut) — and fold the cuts into the delete-list below. Before accepting any addition, ask the subtractive question: could this be achieved by removing code instead of adding it?
One line per finding. Diff mode:
L<line>: <tag> <what>. <replacement>.
file:L<line>: <tag> <what>. <replacement>. # multi-file
Repo mode, ranked biggest-cut-first:
<tag> <what to cut>. <replacement>. [path]
End with the only metric that matters:
net: -<N> lines possible.net: -<N> lines, -<M> deps possible.If there is nothing worth cutting, say Lean already. Ship. and stop. Do not invent findings to look
thorough — a clean report is a valid report.
L12-38: stdlib: 27-line e-mail validator. An "@"/structure check is one line; real validation is the confirmation step.
L4: native: a date-picker dependency for one field. The platform's built-in date input, 0 deps.
repo/store.*:L88: yagni: AbstractRepository with one implementation. Inline it until a second exists. [src/store]
L52-71: delete: retry wrapper around an idempotent local call. Nothing replaces it.
L30-44: shrink: manual loop building a map. The stdlib zip/dict constructor, 1 line.
net: -120 lines, -1 dep possible.
code-review-and-quality) — not this one. If you spot one, note it in a single line under a
# out of scope: heading; don't fold it into the delete-list..claude/rules/testing.md, quality-gates.md). The smallest test that proves the logic is
not bloat — never list it for deletion.code-simplification for behavior-preserving edits).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ajyadav013/claude-kit --plugin claude-kit127 skills in this plugin
/accessibility-reviewUI accessibility (WCAG) review — keyboard operability, focus, ARIA semantics, color contrast, touch targets. Returns prioritized fixes. Distinct from performance/visual review./alembic-migrationsAlembic migration setup and patterns for async SQLAlchemy — async engine + run_sync in env.py, autogenerate, RLS/multi-tenant migrations. Use for alembic init, writing migrations, or debugging migration errors./anthropic-vertex-integrationClaude on Vertex AI via the AnthropicVertex SDK — lazy ADC client init, env-based project/region resolution, async helpers, backoff retry. Use when calling Claude via GCP Vertex AI (not direct Anthropic API).Other plugins' skills for the same job