Anti-Overengineering

    1

    Enforce minimal code architecture by stripping premature abstractions and native-first replacements.

    Free

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    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 IUserRepository interface; no plans for secondary database implementations.
      • ❌ Deleted UserRepository class; Prisma client provides a direct, type-safe API.
      • ❌ Eliminated UserDTO mapping; the Prisma model already matches the required return type.

    ✂️ 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

    1. Delete the repositories/ and dto/ directories for this module.
    2. Update the calling controller to import the direct function.
    3. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Read Files
    Write Files

    Code simplicity and refactoring rubric; zero network calls or environment variable access.

    Listed1 day ago

    What's inside

    Frequently Asked Questions

    The skill targets common architectural bloat like redundant service layers, unnecessary repository patterns, and 'future-proof' abstractions that aren't required for current requirements.

    While language-agnostic, the skill is highly optimized for environments prone to dependency bloat, such as Node.js, Python, and modern frontend frameworks like React or Vue.

    Unlike standard LLMs that often default to 'textbook' complex patterns, this skill is specifically tuned to prioritize Occam's Razor and the YAGNI (You Ain't Gonna Need It) principle.

    The skill provides an Anti-Overengineering Audit that compares your current bloated code to a proposed lean version, allowing you to review and approve all structural changes before they are applied.

    Yes, the skill is designed to flag third-party dependencies that can be easily replaced by native standard library functions or a few lines of plain code to reduce your maintenance burden.

    New in Code Quality & Review

    Free