- Home
- Skills
- Code Quality & Review
- Anti-Overengineering
Anti-Overengineering
Enforce minimal code architecture by stripping premature abstractions and native-first replacements.
Free
Works with the AI Agents you already use
Anti-Overengineering
Example session with this skill installed
Refactor this TypeScript user service. It uses a Repository, an Interface, and a DTO just to fetch a user by ID from a Prisma database. /simple
- Read your context and instructions
- Compiled the anti-overengineering
I have refactored the user retrieval logic to remove three layers of unnecessary abstraction while maintaining full type safety and database integrity.
🪒 Anti-Overengineering Audit (Simplicity Check)
- Complexity Status: Trimmed From Bloated Draft
- Abstractions Rejected or Removed:
- ❌ Removed
IUserRepositoryinterface; no plans for secondary database implementations. - ❌ Deleted
UserRepositoryclass; Prisma client provides a direct, type-safe API. - ❌ Eliminated
UserDTOmapping; the Prisma model already matches the required return type.
- ❌ Removed
✂️ Trimming Summary (Before vs. After)
- Before: 4 files (Interface, Repository, DTO, Service) and ~85 lines of boilerplate code.
- After: 1 file, 12 lines of direct, readable async code using the native Prisma client.
Simplified Implementation
import { PrismaClient } from '@prisma/client';
const prisma = new PrismaClient();
export const getUserById = async (id: string) => {
return await prisma.user.findUnique({
where: { id },
select: {
id: true,
email: true,
name: true
}
});
};
💡 Maintainability Gain
This version removes the cognitive load of jumping between four files to trace a single query. Future database schema changes only need to be updated in one location rather than across multiple abstraction layers.
Next steps
- Delete the
repositories/anddto/directories for this module. - Update the calling controller to import the direct function.
- Run existing unit tests to confirm the output remains identical.
Connects securely to your tools. The creator never sees your data.
About this skill
Enforces strict code and architecture simplicity using Occam's razor, YAGNI, native-first stdlib solutions, and layer-flattening rules. Eliminates single-use abstractions and heavy third-party packages for trivial tasks, with a worked before/after trimming example. Part of Detective-Zii-Skills—pair with Forensic PR Reviewer ($12) for PR audits or Anti-Slop Next.js Audit ($12) for clean React/Tailwind UI refactoring.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Code Quality & Review.
Not for security penetration audits or forensic log debugging. Focuses on architectural simplicity rather than deep vulnerability research.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 1 day ago
- Free with an Agensi account
- Software
Python
Permissions
Code simplicity and refactoring rubric; zero network calls or environment variable access.