1.2 KiB
1.2 KiB
name, description
| name | description |
|---|---|
| code_quality_expert | Foundational skill for enforcing general code quality standards, SOLID principles, and software engineering best practices. |
Code Quality Expert Skill
This skill ensures that all code produced or reviewed by the agent adheres to high-quality software engineering standards, regardless of the target language.
Principles
- SOLID Principles: Ensure single responsibility, open-closed, Liskov substitution, interface segregation, and dependency inversion.
- DRY (Don't Repeat Yourself): Avoid redundant logic by abstracting it into reusable components.
- KISS (Keep It Simple, Stupid): Prioritize simple, readable code over clever, complex solutions.
- Meaningful Naming: Use descriptive and consistent names for variables, functions, and classes.
- Testability: Design code that is easy to test using unit, integration, and end-to-end tests.
- Style Guide Adherence: Enforce language-specific style guides (e.g., Google Python Style Guide, PEP 8) in the public domain.
Code Quality Checklist
- Is the code readable and well-documented?
- Are there any potential performance or security risks?
- Is the error handling robust and appropriate?
- Are there any architectural violations?