Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Builds a phased, risk-scored refactoring plan from Memtrace complexity, dead-code, impact, and Cortex decision data.
Use this skill ↓27% 68%+41 ptsof test cases passed
Passed 15 of 22 test cases with the skill, and 6 of 22 without it.
3 of 3 safety checks passed
Not used yet
Guided refactoring workflow — identifies refactoring candidates using structural analysis, scores them by risk and priority, checks Cortex decision memory for rationale/bans/contracts, and produces a phased refactoring plan. Combines complexity metrics, dead code detection, bridge analysis, temporal evolution, and decision memory to prioritize what to refactor first and how to do it safely.
Run these three tools in parallel to build a candidate list:
a) Complexity hotspots:
Call find_most_complex_functions with top_n: 20
b) Dead code:
Call find_dead_code to find unused symbols
c) Architectural bottlenecks:
Call find_bridge_symbols to find chokepoints with too much responsibility
Call get_evolution with from: "90d ago" and mode: "compound".
Review top_touched_symbols and top_changed_files:
Priority matrix:
| Low Complexity | High Complexity | |
|---|---|---|
| Stable (low change freq) | Leave alone | Monitor; refactor if touched |
| Volatile (high change freq) | Normal; leave alone | TOP PRIORITY — refactor first |
For each top-priority candidate, call get_impact with direction: both:
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.