什么是 code-refactoring?
简化和重构代码,同时保留行为、提高清晰度并降低复杂性。在简化复杂代码、删除重复或应用设计模式时使用。处理提取方法、DRY 原则、SOLID 原则、行为验证和重构模式。 来源:akillness/skills-template。
简化和重构代码,同时保留行为、提高清晰度并降低复杂性。在简化复杂代码、删除重复或应用设计模式时使用。处理提取方法、DRY 原则、SOLID 原则、行为验证和重构模式。
通过命令行快速安装 code-refactoring AI 技能到你的开发环境
来源:akillness/skills-template。
Issue: Tests fail after refactor Cause: Behavior change occurred Solution: Revert and isolate the change, then retry
Issue: Code still complex Cause: Multiple responsibilities mixed in one function Solution: Extract into smaller units with clear boundaries
Issue: Performance regression Cause: Inefficient abstraction introduced Solution: Profile and optimize the hot path
简化和重构代码,同时保留行为、提高清晰度并降低复杂性。在简化复杂代码、删除重复或应用设计模式时使用。处理提取方法、DRY 原则、SOLID 原则、行为验证和重构模式。 来源:akillness/skills-template。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/akillness/skills-template --skill code-refactoring简化和重构代码,同时保留行为、提高清晰度并降低复杂性。在简化复杂代码、删除重复或应用设计模式时使用。处理提取方法、DRY 原则、SOLID 原则、行为验证和重构模式。 来源:akillness/skills-template。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/akillness/skills-template --skill code-refactoring 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/akillness/skills-template