mp-decompose

Community

Safely split large files into modules

AuthorMartinoPolo
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Large files are hard to understand, test, and change, which often leads to duplicated logic and risky edits that can accidentally change behavior.

Core Features & Use Cases

  • Behavior-preserving decomposition: Split oversized files into logical modules while keeping runtime behavior and the public API unchanged.
  • Role-based organization: Reorganize code into clear categories such as constants, utils, types, hooks, context, components, and services.
  • Parallel multi-file handling: Decompose multiple targets by dispatching separate subagents per large-file unit to avoid mixing unrelated changes.

Quick Start

Ask: "Decompose the file src/megaComponent.ts into logical modules while preserving behavior and public API, and update imports/exports and references."

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: mp-decompose
Download link: https://github.com/MartinoPolo/mpx-claude-code/archive/main.zip#mp-decompose

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.