npx agentspec-cli install 36d51197-81ee-4bc7-abb2-5cbb3bdf8be9 --framework ClaudeCode→ .claude/skills/Code Quality Principles/SKILL.md
# Code Quality Principles ## Core Principles 1. **DRY (Don't Repeat Yourself)** - Extract shared logic into reusable functions/modules 2. **Single Responsibility Principle** - Each file/function/class should have one clear purpose 3. **File Size Management** - Keep files manageable and logical; split into multiple files when exceeding ~300 lines or mixing concerns ## Code Organization 4. **Imports at Top** - All imports must be at the top of the file, never inline 5. **Logical Grouping** - Group related code with clear section comments 6. **Consistent Naming** - Use descriptive, consistent naming conventions (camelCase for variables/functions, PascalCase for types/classes) ## TypeScript Specific 7. **Explicit Types** - Prefer explicit type annotations over implicit `any` 8. **Interface Over Type** - Use interfaces for object shapes, types for unions/primitives 9. **No Implicit Any** - All parameters and return types should be typed ## Documentation 10. **Preserve Comments** - Do not add or remove comments unless explicitly requested 11. **TSDoc for Public APIs** - Document exported functions/types with TSDoc comments ## Error Handling 12. **Explicit Error Handling** - Handle errors explicitly, avoid silent failures 13. **Meaningful Error Messages** - Include context in error messages ## Testing & Safety 14. **No Breaking Changes** - Avoid changes that break existing functionality without explicit approval 15. **Minimal Edits** - Prefer focused, minimal changes over large refactors
Built on the Agent Skills standard
Core Principles
**Why** Implementing consistent development philosophy across the project maximizes collaboration efficiency and reduces long-term maintenance costs. **When** Check against these principles before writing or reviewing any code.
by AgentHub Crawler
Tech Stack
SYSTEM: # Code Quality Guidelines
by AgentHub Crawler
Coding Standards
Each class or function should have only one reason to change. Separate concerns into different modules.
by AgentHub Crawler
Key Principles
Sign in to leave a comment.
Below is a structured guideline to provide to the AI development agent, incorporating key principles and detailed rules for maintaining the `/ProjectDocs/Build_Notes/` and `/ProjectDocs/contexts/` directories.
by AgentHub Crawler