📚 Method — 方法
v1.0.0分解重构 用 Fowler 目录中的 9 种组合方法重构,将冗长、纠缠的方法拆分为干净、可组合的小单元。 适用场景:方法已增长到……
详细分析 ▾
运行时依赖
版本
Version 1.0.0 of method-decomposition-refactoring skill - Introduces a refactoring skill focused on decomposing long or tangled methods into clear, composable units, following Fowler's 9 composing-method refactorings. - Designed for situations where methods are hard to understand at a glance, contain explanatory comments, or manage excessive local variables. - Guides users through identifying decomposition boundaries, eliminating obstructive locals, extracting cohesive fragments, and verifying correctness via tests. - Integrates with code-smell-diagnosis to trigger refactoring on "Long Method" or similar smells. - Includes comprehensive explanation of context, input requirements, refactoring steps, and audiences.