single-responsibility-principle
✓Use when creating or modifying classes, modules, or functions. Use when feeling pressure to add functionality to existing code. Use when class has multiple reasons to change.
Installation
SKILL.md
Every module, class, or function should have responsibility over a single part of functionality. If you can describe what a class does using "AND", it has too many responsibilities.
Describe your class in one sentence. If it contains "AND", split it.
| "Handles user authentication" | ✅ Single responsibility | | "Handles authentication AND sends emails" | ❌ Two responsibilities | | "Manages orders AND processes payments AND tracks inventory" | ❌ Three responsibilities |
Use when creating or modifying classes, modules, or functions. Use when feeling pressure to add functionality to existing code. Use when class has multiple reasons to change. Source: yanko-belov/code-craft.
Facts (cite-ready)
Stable fields and commands for AI/search citations.
- Install command
npx skills add https://github.com/yanko-belov/code-craft --skill single-responsibility-principle- Source
- yanko-belov/code-craft
- Category
- </>Dev Tools
- Verified
- ✓
- First Seen
- 2026-02-12
- Updated
- 2026-02-18
Quick answers
What is single-responsibility-principle?
Use when creating or modifying classes, modules, or functions. Use when feeling pressure to add functionality to existing code. Use when class has multiple reasons to change. Source: yanko-belov/code-craft.
How do I install single-responsibility-principle?
Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/yanko-belov/code-craft --skill single-responsibility-principle Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor
Where is the source repository?
https://github.com/yanko-belov/code-craft
Details
- Category
- </>Dev Tools
- Source
- skills.sh
- First Seen
- 2026-02-12