business-index-splitter
CommunitySplit business modules into clean service and types
Authorlinzb93
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill separates mixed type declarations and executable business logic that are combined in a single index.ts into distinct types and service files, reducing coupling and improving maintainability.
Core Features & Use Cases
- Type/implementation separation: Move interfaces, type aliases, and enums into types.ts and place functions, classes, and runtime constants into service.ts.
- API-preserving re-exports: Rewrite index.ts to only re-export types and services so callers keep the same public API.
- Use Case: Standardize monorepo CLI business modules under packages/cli/src/business when a module currently packs both type definitions and implementations into index.ts.
Quick Start
Split packages/cli/src/business/fork/index.ts into types.ts and service.ts while preserving original export names and updating index.ts to only re-export.
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: business-index-splitter Download link: https://github.com/linzb93/cli-tools/archive/main.zip#business-index-splitter 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.