Agent Skills
› ciembor/agent-rules-books
› refactoring
refactoring
GitHub指导在保持行为不变的前提下改进代码结构,处理代码异味、小步重构及测试清理,分离重构与功能变更。
Trigger Scenarios
代码异味识别与处理
行为保持不变的重构任务
需要测试支持的小步清理
Install
npx skills add ciembor/agent-rules-books --skill refactoring -g -y
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


