refactory_decompose
Break a monolith file into clean modules with a single automated pipeline that analyzes, extracts, fixes imports, verifies, and reports.
Instructions
Full decomposition pipeline in one call: analyze, depmap, characterize, plan, extract ALL modules, fix-imports, verify, metrics, re-export, report. The 'just do it' tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the monolith file to decompose | |
| outputDir | No | Output directory (default: <dir>/lib/<basename>/ next to source) | |
| maxLines | No | Max lines per module (default: 500) | |
| projectDir | No | Project root for dependency mapping (optional) |