Code Simplification

Detect dead code, over-abstraction, and indirection in codebases.

Updated Mar 3, 2026
One-click install
npx skills add https://github.com/StrategicMilk/Vetinari-Orchestrastor --skill code-simplification-strategicmilk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Code Simplification
Source: https://github.com/StrategicMilk/Vetinari-Orchestrastor/tree/main/vetinari/skills/catalog/inspector/code-simplification
Command: npx skills add https://github.com/StrategicMilk/Vetinari-Orchestrastor --skill code-simplification-strategicmilk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Code Simplification identifies unnecessary complexity in the codebase and recommends concrete simplifications. It detects dead code (defined but never called), over-abstraction (abstractions serving a single use case), excessive indirection (wrappers that add no value), and YAGNI violations to reduce cognitive load and maintenance costs.

Core Features & Use Cases

  • Dead code detection
  • Over-abstraction identification
  • Indirection analysis
  • Complexity measurement and prioritization for refactors
  • Use Case: when a module becomes hard to understand, run this skill to surface actionable simplifications and a prioritized plan.

Quick Start

Analyze a code snippet or repository to identify simplification opportunities and generate concrete proposals for removing dead code, inline abstractions, and flattening conditionals.

Frequently Asked Questions about Code Simplification

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify dead code and unnecessary complexity in my codebase?

You can identify dead code and unnecessary complexity by running an analysis on your codebase to detect unused functions, over-abstraction, and excessive indirection. This generates a prioritized simplification report with concrete proposals to reduce maintenance costs.

What are YAGNI violations and how do I detect them during refactoring?

YAGNI violations occur when abstractions serve a single use case or add unnecessary future-proofing. Detect them by analyzing your code for single-use abstractions and wrappers that add no value, then applying simplifications to reduce complexity.

How do I prioritize code refactoring tasks for a complex module?

Prioritize code refactoring tasks by measuring complexity and assessing the impact of each issue. Generate a prioritized report ranking dead code removal, inline abstractions, and flattened conditionals based on their effect on reducing cognitive load.

Can I run code simplification analysis across multi-language ecosystems?

Yes, code simplification analysis supports multi-language ecosystems. It accepts code, context, focus areas, and thinking mode to generate structured findings for modules, libraries, and services across different programming languages.

When should I use a code simplification tool instead of manual refactoring?

Use a code simplification tool when a module becomes hard to understand and you need to surface actionable simplifications quickly. It provides structured analysis to detect dead code and over-abstraction faster than manual code reviews.