What problem does it solve?
This Skill identifies over-specialized interfaces, caller-specific logic, unnecessary parameters, and getters or setters that expose internal representation, helping software teams build simpler and more reusable modules.
Core Features & Use Cases
- Generality Assessment: Evaluates whether an interface is general enough for current needs without becoming unnecessarily broad.
- Specialization Detection: Finds caller-specific branches, one-off parameters, and policy decisions embedded in lower-level modules.
- Encapsulation Review: Audits getters, setters, and defaults for representation leakage and decisions that should remain inside the module.
- Use Case: Apply it during a code review of a utility or API to determine whether its interface hides complexity or merely passes caller-specific decisions through.
Quick Start
Use the general-vs-special review lens to analyze the specified file or module for over-specialization, representation leakage, and missing defaults.