refactoring

GitHub

遵循 Martin Fowler 原则,在保持行为不变的前提下优化代码结构。处理代码异味、小步重构及测试驱动清理,分离重构与功能变更。

refactoring/SKILL.md ciembor/agent-rules-books

触发场景

存在代码异味需优化 需要在不改变行为的情况下改进代码结构 执行小步重构或测试驱动清理

安装

npx skills add ciembor/agent-rules-books --skill refactoring -g -y
更多选项

非标准路径

npx skills add https://github.com/ciembor/agent-rules-books/tree/main/refactoring -g -y

不安装直接使用

npx skills use ciembor/agent-rules-books@refactoring

指定 Agent (Claude Code)

npx skills add ciembor/agent-rules-books --skill refactoring -a claude-code -g -y

安装 repo 全部 skill

npx skills add ciembor/agent-rules-books --all -g -y

预览 repo 内 skill

npx skills add ciembor/agent-rules-books --list

SKILL.md

Frontmatter
{
    "name": "refactoring",
    "license": "MIT",
    "description": "Apply Martin Fowler-inspired refactoring rules when improving existing code structure while preserving observable behavior."
}

Refactoring Skill

Use this skill when a task involves behavior-preserving code improvement, code smells, small refactoring steps, test-backed cleanup, or separating refactoring from feature changes.

Before making design or code decisions, read and apply refactoring.mini.md. Use refactoring.md only as a deeper reference when the mini rules are not enough for the current refactoring tradeoff.

版本历史

  • 893a88a 当前 2026-09-11 20:34

同 Skill 集合

a-philosophy-of-software-design/SKILL.md
clean-architecture/SKILL.md
clean-code/SKILL.md
code-complete/SKILL.md
designing-data-intensive-applications/SKILL.md
domain-driven-design-distilled/SKILL.md
domain-driven-design/SKILL.md
implementing-domain-driven-design/SKILL.md
patterns-of-enterprise-application-architecture/SKILL.md
refactoring-guru/SKILL.md
release-it/SKILL.md
the-pragmatic-programmer/SKILL.md
working-effectively-with-legacy-code/SKILL.md

元信息

文件数
0
版本
893a88a
Hash
d21cd1a2
收录时间
2026-09-11 20:34

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-17 10:48
浙ICP备14020137号-1