What problem does it solve?
This Skill addresses the accumulation of technical debt and poor readability by enforcing industry-standard clean code principles, ensuring your codebase remains scalable and easy for any developer to maintain.
Core Features & Use Cases
- Principle-Based Refactoring: Applies Robert C. Martin's guidelines on naming, function size, and class design to improve existing code.
- Code Review Assistance: Provides a structured checklist to evaluate pull requests for readability, error handling, and testability.
- Use Case: When you have a complex, monolithic function that is difficult to test, use this Skill to break it down into smaller, single-responsibility functions that follow the stepdown rule.
Quick Start
Use the clean-code skill to review the current file and suggest refactoring improvements based on the principles of single responsibility and meaningful naming.