service-layer-extraction
CommunityTurn bloated CLIs into clean service layers.
Authorshimo4228
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Extracts the business logic that accumulates in Typer/Click CLI modules beyond 300 LOC, enabling a clean separation into a testable service layer.
Core Features & Use Cases
- Extracts logic into a dedicated service.py to isolate core functionality from CLI presentation
- Defines translation rules to map CLI concerns into service layer interfaces, improving testability and reuse
- Supports reuse of the service across web UIs, APIs, and SDKs without CLI dependencies
Quick Start
Refactor a Typer/Click CLI module by moving business logic into service.py and run tests to verify the new service layer.
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: service-layer-extraction Download link: https://github.com/shimo4228/claude-code-learned-skills/archive/main.zip#service-layer-extraction 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 223,000+ vetted skills library on demand.