refactoring

GitHub

用于在保持行为不变的前提下改进代码结构,处理代码异味、小步重构及测试清理,将重构与功能变更分离。

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

Trigger Scenarios

需要改进现有代码结构但保持行为不变 识别和处理代码异味 执行基于测试的代码清理 需要将重构操作与功能开发分离

Install

npx skills add ciembor/agent-rules-books --skill refactoring -g -y
More Options

Non-standard path

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

Use without installing

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.

Version History

  • 893a88a Current 2026-09-11 20:34

Same Skill Collection

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

Metadata

Files
0
Version
893a88a
Hash
d21cd1a2
Indexed
2026-09-11 20:34

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-25 19:41
浙ICP备14020137号-1