single-responsibility-principle
CommunityKeep code lean by enforcing a single responsibility.
Software Engineering#refactoring#design-principles#software-engineering#clean-code#SRP#single-responsibility
Authoryanko-belov
Version1.0.0
Installs0
System Documentation
What problem does it solve?
SRP prevents god classes and tangled code by ensuring a module, class, or function has a single reason to change, improving maintainability and testability.
Core Features & Use Cases
- Identify multi-responsibility components and extract focused services.
- Guide refactoring to create smaller, cohesive units.
- Improve testability and deployment safety by limiting scope.
Quick Start
- Identify a class or module that performs multiple responsibilities.
- Extract each responsibility into its own focused class or service.
- Update call sites and tests to reflect the new structure.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: single-responsibility-principle Download link: https://github.com/yanko-belov/code-craft/archive/main.zip#single-responsibility-principle Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.