What problem does it solve?
This Skill ensures that all code generated or modified adheres to the established naming, organization, error handling, and testing conventions of the target repository, preventing inconsistencies and improving code quality.
Core Features & Use Cases
- Naming Convention Enforcement: Ensures variables, functions, and classes follow the repository's detected style (e.g., camelCase, snake_case).
- File Organization Guidance: Directs new files to their appropriate directories based on detected patterns (e.g., routes, models, tests).
- Error Handling Standardization: Enforces consistent error handling patterns like try-catch or .catch().
- Testing Pattern Adherence: Ensures test files are created using the repository's preferred structure (co-located or separate directory).
- Use Case: When generating a new API endpoint, this skill will ensure the route handler is placed in the correct directory, the function is named using camelCase, and a try-catch block is included for error handling, matching the backend's conventions.
Quick Start
Use the convention-enforcer skill to ensure the newly generated service file adheres to the project's naming and organization conventions.