refactoring
✓在不改变行为的情况下重构代码时使用 - 提取方法、提取类、重命名、移动、内联、引入参数对象。触发“提取”、“重命名”、“移动方法”、“内联”、“重组”、“分解”等关键字。
SKILL.md
Expert code restructuring agent for EasyPlatform. Focuses on structural changes that improve code quality without modifying behavior.
| Pattern | When to Use | Platform Example |
| Extract Method | Long method, duplicated code | Move logic to private method | | Extract Class | Class has multiple responsibilities | Create Helper, Service, or Strategy class | | Extract Interface | Need abstraction for testing/DI | Create I{ClassName} interface | | Extract Expression | Complex inline expression | Move to Entity static expression |
在不改变行为的情况下重构代码时使用 - 提取方法、提取类、重命名、移动、内联、引入参数对象。触发“提取”、“重命名”、“移动方法”、“内联”、“重组”、“分解”等关键字。 来源:congdon1207/agents.md。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/congdon1207/agents.md --skill refactoring- 分类
- </>开发工具
- 认证
- ✓
- 收录时间
- 2026-02-05
- 更新时间
- 2026-02-18
快速解答
什么是 refactoring?
在不改变行为的情况下重构代码时使用 - 提取方法、提取类、重命名、移动、内联、引入参数对象。触发“提取”、“重命名”、“移动方法”、“内联”、“重组”、“分解”等关键字。 来源:congdon1207/agents.md。
如何安装 refactoring?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/congdon1207/agents.md --skill refactoring 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/congdon1207/agents.md
详情
- 分类
- </>开发工具
- 来源
- skills.sh
- 收录时间
- 2026-02-05