·refactoring-surgeon
</>

refactoring-surgeon

专家级代码重构专家,可在不改变行为的情况下提高代码质量。激活:重构、代码异味、技术债务、遗留代码、清理、简化、提取方法、提取类、DRY、SOLID 原则。不适用于:新功能开发(使用功能技能)、错误修复(使用调试技能)、性能优化(使用性能技能)。

11安装·0热度·@curiositech

安装

$npx skills add https://github.com/curiositech/some_claude_skills --skill refactoring-surgeon

如何安装 refactoring-surgeon

通过命令行快速安装 refactoring-surgeon AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/curiositech/some_claude_skills --skill refactoring-surgeon
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:curiositech/some_claude_skills。

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 原则。不适用于:新功能开发(使用功能技能)、错误修复(使用调试技能)、性能优化(使用性能技能)。 来源:curiositech/some_claude_skills。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/curiositech/some_claude_skills --skill refactoring-surgeon
分类
</>开发工具
认证
收录时间
2026-03-09
更新时间
2026-03-10

Browse more skills from curiositech/some_claude_skills

快速解答

什么是 refactoring-surgeon?

专家级代码重构专家,可在不改变行为的情况下提高代码质量。激活:重构、代码异味、技术债务、遗留代码、清理、简化、提取方法、提取类、DRY、SOLID 原则。不适用于:新功能开发(使用功能技能)、错误修复(使用调试技能)、性能优化(使用性能技能)。 来源:curiositech/some_claude_skills。

如何安装 refactoring-surgeon?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/curiositech/some_claude_skills --skill refactoring-surgeon 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/curiositech/some_claude_skills