Memtrace Refactoring Guide

•
183
•

Systematically refactors source code by analyzing complexity, code churn, and architectural impact to minimize technical debt and risk.

The Memtrace Refactoring Guide provides a structured workflow for optimizing codebases by leveraging structural memory and temporal analysis. Instead of relying on manual searches, it identifies high-priority refactoring candidates by correlating code complexity with change frequency (volatility), allowing developers to target the most problematic hotspots first. By analyzing 'bridge symbols,' dependency relationships, and community boundaries, the skill generates phased implementation plans that include risk assessments and blast-radius analysis to ensure that even complex structural changes are performed safely and incrementally.

主な機能

01Complexity & Volatility Mapping: Targets high-churn, complex functions that cause the most developer friction.
02Impact Analysis: Calculates the blast radius of changes to prevent regressions in critical architectural paths.
03Dead Code Detection: Identifies unused symbols for safe, low-risk codebase cleanup and simplification.
04Community Boundary Detection: Visualizes logical module boundaries to guide the reorganization of code across different domains.
05Architectural Bottleneck Identification: Locates 'bridge symbols' that carry too much responsibility and require modularization.
06183 GitHub stars

ユースケース

01Prioritizing technical debt reduction in legacy codebases based on actual code churn and complexity metrics.
02Breaking down monolithic functions and 'God objects' into manageable, decoupled modules using structural analysis.
03Planning safe, multi-phase migrations for high-risk symbols that participate in multiple cross-repo processes.