What problem does it solve?
This Skill enforces pragmatic, clean code principles to ensure code is maintainable, efficient, and easy to understand, reducing technical debt and improving development velocity.
Core Features & Use Cases
- Coding Standards Enforcement: Adheres to principles like SRP, DRY, KISS, YAGNI.
- Best Practices: Guides on naming conventions, function design, and code structure.
- AI Coding Style: Directs AI agents on how to interact with users for coding tasks (write directly, fix bugs, ask for clarification).
- Self-Check & Validation: Mandates rigorous self-checks and script execution before task completion.
- Use Case: When an AI agent is tasked with refactoring a complex module, it uses this Skill to ensure the refactored code is simple, well-named, and adheres to the Single Responsibility Principle, while also running automated linting and type coverage checks.
Quick Start
Apply the clean-code skill to refactor the provided UserService.ts file, ensuring it adheres to SRP and has clear naming conventions.