What problem does it solve?
This Skill enforces pragmatic, clean code principles to ensure code is concise, maintainable, and efficient, avoiding unnecessary complexity and technical debt.
Core Features & Use Cases
- Code Quality Enforcement: Adheres to principles like SRP, DRY, KISS, and YAGNI.
- Clear Naming Conventions: Promotes descriptive variable, function, and constant names.
- Function Design: Guides the creation of small, single-purpose functions with limited arguments.
- Code Structure: Encourages guard clauses, flat code, and composition over deep nesting.
- AI Coding Style: Defines how AI agents should interact with user requests for code.
- Anti-Pattern Avoidance: Lists common pitfalls and their corrections.
- Pre-Edit Checks: Ensures developers consider impact before modifying files.
- Post-Completion Self-Checks: Mandates thorough verification before task completion.
- Script Execution & Output Handling: Defines how validation scripts are run and their results summarized.
Quick Start
Apply the clean code principles to refactor the provided UserService.ts file.