What problem does it solve?
This Skill ensures all code adheres to established naming conventions, formatting rules, and the DRY principle, enhancing readability, maintainability, and consistency across the entire codebase, regardless of the programming language.
Core Features & Use Cases
- Consistent Formatting: Apply project-wide indentation, line breaks, and consistent code structure.
- Descriptive Naming: Choose clear, descriptive names for variables, functions, and classes that reveal intent.
- DRY Principle: Extract common logic into reusable functions to avoid duplication and promote maintainability.
- Use Case: When refactoring a utility file, this skill guides the AI to rename variables for clarity, break down a large function into smaller, focused ones, remove dead code, and ensure consistent formatting using the project's linter rules.
Quick Start
Refactor the 'calculateDiscount' function to improve readability, ensure consistent naming, and extract any duplicated logic into a reusable helper function.