·code-refactoring
</>

code-refactoring

简化和重构代码,同时保留行为、提高清晰度并降低复杂性。在简化复杂代码、删除重复或应用设计模式时使用。处理提取方法、DRY 原则、SOLID 原则、行为验证和重构模式。

17安装·0热度·@akillness

安装

$npx skills add https://github.com/akillness/skills-template --skill code-refactoring

如何安装 code-refactoring

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

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

来源:akillness/skills-template。

SKILL.md

查看原文

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
分类
</>开发工具
认证
收录时间
2026-03-09
更新时间
2026-03-10

Browse more skills from akillness/skills-template

快速解答

什么是 code-refactoring?

简化和重构代码,同时保留行为、提高清晰度并降低复杂性。在简化复杂代码、删除重复或应用设计模式时使用。处理提取方法、DRY 原则、SOLID 原则、行为验证和重构模式。 来源:akillness/skills-template。

如何安装 code-refactoring?

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

这个 Skill 的源码在哪?

https://github.com/akillness/skills-template

详情

分类
</>开发工具
来源
skills.sh
收录时间
2026-03-09