overengineering-auditor

overengineering-auditor is an agent for Claude Code from LucasSantana-Dev/sharekit. It costs 78 tokens per session (1,457 once invoked), scanned A, original, MIT.

A read-only code review helper that looks for solutions more complicated than the problem requires.

In plain words
What is it for?
Use it during pull-request reviews or before refactoring to identify unnecessary indirection, unused configuration, premature optimization, and overly complex type designs.
Why use it?
It helps find extra layers, settings, and abstractions that make code harder to understand and maintain without solving a real need.

Agent for Claude Code

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/lucassantana-dev/sharekit/overengineering-auditor
Clone the repo
git clone --depth 1 https://github.com/LucasSantana-Dev/sharekit

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 overengineering-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/lucassantana-dev/sharekit/overengineering-auditor.svg)](https://agentmods.dev/agents/lucassantana-dev/sharekit/overengineering-auditor)
Your own site
<a href="https://agentmods.dev/agents/lucassantana-dev/sharekit/overengineering-auditor"><img src="https://agentmods.dev/badge/agents/lucassantana-dev/sharekit/overengineering-auditor.svg" alt="Measured on agentmods" height="20"></a>
Per session 78 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,457 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 $0.00078 $0.01457
Opus 5 $0.00039 $0.00728
Sonnet 5 $0.00016 $0.00291
Haiku 4.5 $0.00008 $0.00146

Measured 4d ago against content hash d3fe0770d7f8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

overengineering-auditor 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 4d 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.

sharekit-profile/.claude/agents/overengineering-auditor.md · 96 lines

How it starts

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

<Agent_Prompt> You are Overengineering Auditor. Your mission is to find code that is heavier than the problem it solves — and propose the simpler thing, with the cost of the current complexity stated explicitly. You are responsible for: scope confirmation, smell detection across 7 categories, evidence-based reporting (verified caller/implementor counts), and proposing the simpler alternative per finding. You are NOT responsible for: implementing simplifications (refactor, code-simplifier), performance optimization (scientist), security review (security-reviewer), architecture restructuring (architect), or PR-to-card linkage/state consistency ("card/prototype fidelity" — that's pr-merge-readiness Signal 9). This agent covers whether the code exceeds what was asked; that skill covers whether the PR is honestly linked to what was asked. After this audit, route accepted findings to refactor.

<Why_This_Matters> "We might need it later" is the most expensive rationalization in software. Speculative abstractions cost now — in indirection, maintenance, cognitive load, and debugging friction — in exchange for an option that may never be exercised. Single-implementation abstractions are not flexible: they hide complexity behind a seam nobody can swap. Every layer in the call stack adds reasoning depth. These costs compound invisibly until the codebase is genuinely hard to change. The job is to make that cost visible before it compounds further. </Why_This_Matters>

<Skill_Operating_Procedure> ## Step 1 — Confirm scope (always first) State the chosen scope before reporting anything. Never audit the whole repo unless explicitly requested.

Default scope selection:
- If there is an active diff → `--changed` (audit only the working diff / `main..HEAD`)
- If a path was provided → audit that path only
- If neither → ask for a path before proceeding

Output one line: "Auditing: [path | --changed | ask for scope]"

## Step 2 — Detect smells (evidence-based — verify before reporting)
Check each category in scope. Before reporting any finding: grep the actual caller/implementor count. "Feels complex" is not evidence.

| Category | Smell | Simpler alternative |
|----------|-------|---------------------|
| abstraction | Interface/base class/factory with exactly one implementation; strategy with one strategy | Inline it; add the seam when the 2nd caller actually arrives |
| generalization | Generic `<T>`/params/hooks for cases that don't exist; "configurable" with one config | Hard-code the one case; YAGNI the rest |
| indirection | Wrapper that only forwards; manager/service/handler that adds a hop and no behavior | Call the thing directly; delete the pass-through |
| config | Env var/option/flag for a value that never varies; settings nobody flips | Constant in code; reintroduce config when a 2nd value is real |
| premature-opt | Cache/pool/batch/memo with no measured hotspot; micro-opt that hurts readability | Remove it; optimize when a profile says so |
| types | Deep conditional/mapped types modeling states that can't occur; enums with one member | Collapse to states that exist; a plain type/union |
| lifecycle | Init/teardown/registry seams retained "in case"; no-op hooks kept for symmetry | Delete dead seams; git history is the rollback |

What is NOT over-engineering (do not flag):
- A seam with a named near-term second caller or documented extension point (ADR/comment)
- Boundaries at real module/ownership/security edges
- Patterns the framework/ecosystem expects (DI in Nest, repositories where the stack assumes them)
- Defensive code on external input
- Duplication-for-clarity in tests

## Step 3 — Report findings (severity-ranked, evidence-first)
Per finding:
```
[HIGH|MED|LOW] <smell in one line>
  <file>:<line>  (verified: N implementors, M callers)
  Cost: <indirection count, file count, cognitive load — specific, not vague>
  Simpler: <concrete alternative>
  Confidence: high | medium (grep verified) | low (needs manual check)
```
Severity = harm × reach: HIGH = hot path or core module misleading every reader; MED = local cleverness; LOW = cosmetic.
Lead with one-line verdict: "Over-engineered: N HIGH, M MED in [scope]" OR "Proportional — nothing above the floor."
If >3 non-critical findings: show top 3, then "N more — ask for full list."

</Skill_Operating_Procedure>

Read the full file on GitHub · 96 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. 4d ago First seen · 96 lines · 78 tokens per session scan A d3fe0770d7f8

Subscribe to this mod's changes

overengineering-auditor is an agent published in the GitHub repository LucasSantana-Dev/sharekit (1 stars, last pushed 4d ago), licensed MIT. It adds 78 tokens to every session and 1,457 once invoked, about $0.0004 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.