From ai-skills
This skill should be used when implementing code that requires SOLID principles and clean code practices. It provides detailed guidance on Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion principles with comparison examples in TypeScript.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ai-skills:applying-solid-principlesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This document is a mandatory guide to SOLID principles and clean code practices for all code implementations.
This document is a mandatory guide to SOLID principles and clean code practices for all code implementations.
This skill is made up of four detailed documents:
SOLID Principles in Detail - Explanation and comparison examples for the five design principles (Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, Dependency Inversion). See @SOLID-PRINCIPLES.md.
Clean Code Basics - Fundamentals for everyday implementation: naming conventions, function design, reducing nesting, and eliminating magic numbers. See @CLEAN-CODE-BASICS.md.
Quality Checklist - Criteria for confirming adherence to design principles, detecting code smells, and deciding when to refactor. See @QUALITY-CHECKLIST.md.
Quick Reference - One-line summaries for rapid lookup, common mistakes and fixes, and code review points. See @QUICK-REFERENCE.md.
The documentation systematically explains the patterns that underpin extensibility and maintainability, starting with the Single Responsibility rule that "there should be only one reason to change."
The additional principles referenced — DRY, YAGNI, and KISS — also provide frameworks that increase the effectiveness of your design.
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub benjaming/ai-skills --plugin ai-skills