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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file": "<file>"
},
"name": "refactory_decompose"
}
}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) |