service-layer-extractor
CommunityRefactor code for better architecture.
Software Engineering#code quality#architecture#refactoring#testability#dependency injection#service layer
Authorzinohome
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the issue of "fat controllers" or "god objects" by refactoring business logic out of route handlers into a dedicated service layer, improving code organization, testability, and maintainability.
Core Features & Use Cases
- Separation of Concerns: Clearly divides responsibilities between routes, controllers, services, and repositories.
- Enhanced Testability: Enables unit testing of business logic independently of HTTP concerns.
- Dependency Injection: Facilitates managing and injecting dependencies for cleaner code.
- Use Case: When your API endpoints contain significant business logic, making them hard to read, test, and maintain, this Skill provides a structured approach to refactor them into a more robust architecture.
Quick Start
Use the service-layer-extractor skill to refactor the current controller logic into a service layer.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: service-layer-extractor Download link: https://github.com/zinohome/CozyChat/archive/main.zip#service-layer-extractor 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.