decompose-file
CommunitySplit large files into manageable modules.
Software Engineering#refactoring#dependency management#code splitting#codebase maintenance#module creation#code decomposition
Authorjmagly
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the challenge of overly large source code files that hinder maintainability, readability, and developer productivity by providing a structured approach to breaking them down.
Core Features & Use Cases
- Automated Code Decomposition: Analyzes source files, identifies logical sections, and proposes a plan to split them into smaller, more manageable modules.
- Dependency Mapping & Verification: Maps internal dependencies between proposed modules and verifies that no circular dependencies are introduced.
- Automated Refactoring: Optionally executes the decomposition plan, creates new files, updates import statements across the codebase, and runs tests to ensure integrity.
- Use Case: When a single TypeScript file in your project grows to over 800 lines, this skill can automatically split it into several smaller files, each focusing on a specific responsibility, and update all references accordingly.
Quick Start
Decompose the file src/extensions/registry.ts into smaller modules.
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: decompose-file Download link: https://github.com/jmagly/aiwg/archive/main.zip#decompose-file 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.