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
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- brainstormingSkill
- curating-docsSkill
- executing-plansSkill
- finishing-workSkill
- planningSkill
- reviewing-codeSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- using-devflowSkill
- verifying-completionSkill
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
- Distinctive: line 31
If input is unclear, ask the user what to review.
- Distinctive: line 35
Run both methods. Neither alone is sufficient.
- Distinctive: line 65
If everything passes the deletion test: report the architecture is appropriately complex.
- Distinctive: line 80
Wait for the user to select which findings to act on.
≈ “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.
Files
Simplifying Architecture
Identify unnecessary architectural complexity. This skill only identifies — it does not implement changes.
Scope
| This skill handles | Not this skill's job |
| Unnecessary structural / architectural complexity | Code style cleanup (→ reviewing-code) |
| Over-abstraction, redundant layers, speculative flexibility | New architecture design (→ brainstorming) |
| Reducing complexity | Restructuring without simplifying (refactoring ≠ simplification) |
Four Phases
Complete each phase before proceeding to the next.
Phase 1: Determine Input
| Trigger | Input |
| Standalone on code | Source files / directories specified by user |
| Standalone on design | Design doc / spec |
| Design checkpoint | Design documentation output |
| Implementation checkpoint | Implementation 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:
| Field | Requirement |
| Location | file:line or design section |
| Pattern | which of the seven, or "friction-based" |
| Evidence | concrete data — not "looks complex" |
| Deletion test result | confirm: inlining makes callers simpler |
| Proposed simplification | what removing it looks like |
| Severity | High / Medium / Low |
Wait for the user to select which findings to act on.
Next Step
- User selects findings to act on → invoke
planningimmediately with the selected findings. - No findings, or user declines → skill complete.
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
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.

