single-responsibility-principle

Community

Keep code lean by enforcing a 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

  1. Identify a class or module that performs multiple responsibilities.
  2. Extract each responsibility into its own focused class or service.
  3. Update call sites and tests to reflect the new structure.

Dependency Matrix

Required Modules

None required

Components

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.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.