agentleFS
0x2E0x2E/dev-skills/skills/analyzing-over-engineering/SKILL.md

analyzing-over-engineering

Skill1 starsChanged 5 months agoMITView on GitHub

Use when checking code or design for over-engineering, unnecessary complexity, or redundant abstraction layers — scans for patterns, validates findings, and presents prioritized simplification proposals

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If input is unclear, ask the user what to review.

    line 31
  2. Distinctive:

    Run both methods. Neither alone is sufficient.

    line 35
  3. Distinctive:

    If everything passes the deletion test: report the architecture is appropriately complex.

    line 65
  4. Distinctive:

    Wait for the user to select which findings to act on.

    line 80

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Simplifying Architecture

Identify unnecessary architectural complexity. This skill only identifies — it does not implement changes.

Scope

This skill handlesNot this skill's job
Unnecessary structural / architectural complexityCode style cleanup (→ reviewing-code)
Over-abstraction, redundant layers, speculative flexibilityNew architecture design (→ brainstorming)
Reducing complexityRestructuring without simplifying (refactoring ≠ simplification)

Four Phases

Complete each phase before proceeding to the next.

Phase 1: Determine Input

TriggerInput
Standalone on codeSource files / directories specified by user
Standalone on designDesign doc / spec
Design checkpointDesign documentation output
Implementation checkpointImplementation diff

If input is unclear, ask the user what to review.

Phase 2: Scan

Run both methods. Neither alone is sufficient.

Pattern checklist — check for each:

  • Premature abstraction — abstraction created before Rule of Three is met
  • Speculative generality — flexibility built for hypothetical future needs
  • Pass-through layers — modules / functions that only forward calls
  • Over-configuration — values externalized as config that never change
  • Shallow module — interface complexity ≈ implementation complexity
  • Unused extensibility — parameters, hooks, options with no consumer
  • Framework-for-one — general framework built for a single use case

Friction exploration — walk the code / design as a new reader. Note where:

  • Understanding one concept requires bouncing between 3+ files
  • A simple change touches many layers
  • The abstraction doesn't match the problem's mental model

This catches over-engineering that doesn't map to a named pattern.

Phase 3: Deletion Test (Gate)

For each suspected finding from Phase 2, apply this test before flagging:

Imagine deleting this abstraction entirely — inlining its logic into its callers. Do the callers become harder to understand?

  • Yes → the abstraction is hiding complexity. Keep it. Do not flag.
  • No / simpler → the abstraction is unnecessary. Flag it.

Do not flag any finding that fails this test. This prevents harmful simplifications.

If everything passes the deletion test: report the architecture is appropriately complex. Do not manufacture findings.

Phase 4: Present Findings

Present each validated finding with:

FieldRequirement
Locationfile:line or design section
Patternwhich of the seven, or "friction-based"
Evidenceconcrete data — not "looks complex"
Deletion test resultconfirm: inlining makes callers simpler
Proposed simplificationwhat removing it looks like
SeverityHigh / Medium / Low

Wait for the user to select which findings to act on.

Next Step

  • User selects findings to act on → invoke planning immediately with the selected findings.
  • No findings, or user declines → skill complete.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.