What problem does it solve?
This Skill helps transform code that merely works into code that is easy to read, reason about, and safely change over time. It reduces confusion caused by vague names, oversized functions, hidden side effects, weak error handling, and unnecessary complexity.
Core Features & Use Cases
- Meaningful Naming: Choose intention-revealing names for variables, functions, classes, and modules.
- Refactoring Guidance: Break large functions and classes into smaller, single-responsibility units.
- Code Review Support: Evaluate pull requests against clean code principles, including formatting, comments, and test quality.
- Use Case: A team inherits a fragile service with tangled logic and unclear naming, then uses this Skill to identify code smells, suggest targeted refactors, and improve maintainability without changing behavior.
Quick Start
Use the clean-code skill to review this codebase and rewrite unclear names, oversized functions, and weak error handling into cleaner, more maintainable code.