What problem does it solve?
The simplify Skill identifies duplication, complexity, and over-engineering in code at the boundary of a batch, acting as a gate before the next batch proceeds, ensuring a clean codebase.
Core Features & Use Cases
-
Duplication Detection: Identifies and flags duplicated business logic across batch-changed files.
-
Complexity Assessment: Flags methods with high conditional branches, method length, nesting depth, and parameter count.
-
Over-Engineering Flagging: Flags unnecessary abstractions, such as single-caller abstractions, unnecessary wrappers, or premature generalization.
-
Dead Code Detection: Identifies code that has been added but never called.
-
Batch Boundary Checks: Operates only at the boundaries of batches, analyzing only the files that have been changed within that batch.
-
Use Case: Consider a batch of code changes; simplify will check this batch for potential quality issues, such as code duplication and unnecessary complexity, which helps maintain a clean and maintainable codebase.
Quick Start
Run the simplify Skill after making changes in the current batch to review for quality issues before proceeding.