What problem does it solve?
Unstructured, hard-to-read code slows down development, increases bug risk, and accumulates technical debt over time, making it difficult for teams to maintain and extend existing codebases.
Core Features & Use Cases
- Enforces intent-revealing naming conventions for variables, functions, classes, and modules across all programming languages
- Guides creation of small, single-responsibility functions with consistent abstraction levels and proper command-query separation
- Provides best practices for error handling, comments, third-party code boundaries, and systematic refactoring
- Includes a comprehensive code smell reference with targeted refactoring patterns and multi-language idiomatic examples for Rust, Python, Java, Kotlin, and C++
- Use when writing new features, conducting code reviews, or refactoring legacy code to improve long-term maintainability
Quick Start
Use the clean-code skill to refactor the provided legacy payment processing function to follow single-responsibility principles and use meaningful, searchable variable names.