What problem does it solve?
This Skill enforces pragmatic coding standards to ensure code is concise, direct, maintainable, and avoids unnecessary complexity or over-engineering.
Core Features & Use Cases
- Coding Principles: Adheres to SRP, DRY, KISS, YAGNI, and Boy Scout Rule.
- Naming Conventions: Enforces clear and intent-revealing names for variables, functions, and constants.
- Function Design: Promotes small, single-responsibility functions with minimal arguments.
- Code Structure: Encourages guard clauses, flat nesting, and composition.
- AI Coding Style: Guides AI agents on how to interact with users for feature requests and bug fixes.
- Verification: Mandates self-checks and script execution for code quality and correctness.
- Use Case: When developing new features or fixing bugs, this Skill ensures the resulting code is easy to understand, test, and extend by following established best practices.
Quick Start
Follow the clean code principles to refactor the provided code snippet.