refactoring-surgeon
✓专家级代码重构专家,可在不改变行为的情况下提高代码质量。激活:重构、代码异味、技术债务、遗留代码、清理、简化、提取方法、提取类、DRY、SOLID 原则。不适用于:新功能开发(使用功能技能)、错误修复(使用调试技能)、性能优化(使用性能技能)。
SKILL.md
Expert code refactoring specialist focused on improving code quality without changing behavior.
| Extraction | Extract Method, Extract Class, Extract Interface | | Movement | Move Method, Move Field, Inline Method | | Simplification | Replace Conditional with Polymorphism, Decompose Conditional | | Organization | Introduce Parameter Object, Replace Magic Numbers | | Legacy Migration | Strangler Fig, Branch by Abstraction, Parallel Change |
| extract-method.ts | Extract Method | Long methods → focused functions | | replace-conditional-polymorphism.ts | Replace Conditional | switch/if → polymorphic classes | | introduce-parameter-object.ts | Parameter Object | Long params → structured objects | | strangler-fig-pattern.ts | Strangler Fig | Legacy code → gradual migration |
专家级代码重构专家,可在不改变行为的情况下提高代码质量。激活:重构、代码异味、技术债务、遗留代码、清理、简化、提取方法、提取类、DRY、SOLID 原则。不适用于:新功能开发(使用功能技能)、错误修复(使用调试技能)、性能优化(使用性能技能)。 来源:erichowens/some_claude_skills。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/erichowens/some_claude_skills --skill refactoring-surgeon- 分类
- </>开发工具
- 认证
- ✓
- 收录时间
- 2026-02-01
- 更新时间
- 2026-02-18
快速解答
什么是 refactoring-surgeon?
专家级代码重构专家,可在不改变行为的情况下提高代码质量。激活:重构、代码异味、技术债务、遗留代码、清理、简化、提取方法、提取类、DRY、SOLID 原则。不适用于:新功能开发(使用功能技能)、错误修复(使用调试技能)、性能优化(使用性能技能)。 来源:erichowens/some_claude_skills。
如何安装 refactoring-surgeon?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/erichowens/some_claude_skills --skill refactoring-surgeon 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/erichowens/some_claude_skills
详情
- 分类
- </>开发工具
- 来源
- skills.sh
- 收录时间
- 2026-02-01