Agent Skills
› ciembor/agent-rules-books
› working-effectively-with-legacy-code
working-effectively-with-legacy-code
GitHub用于安全修改难以测试的遗留代码,通过特征测试、隔离点、Sprout或Wrap方法降低风险。
Trigger Scenarios
修改高风险遗留代码
缺乏测试覆盖的代码变更
需要引入隔离点或增量风险控制
Install
npx skills add ciembor/agent-rules-books --skill working-effectively-with-legacy-code -g -y
SKILL.md
Frontmatter
{
"name": "working-effectively-with-legacy-code",
"license": "MIT",
"description": "Apply Michael Feathers-inspired legacy-code rules when changing hard-to-test code safely with characterization tests, seams, sprout methods, or wrap methods."
}
Working Effectively with Legacy Code Skill
Use this skill when a task involves risky legacy changes, missing tests, characterization tests, seams, dependency breaking, sprout method, wrap method, or incremental risk reduction.
Before making design or code decisions, read and apply working-effectively-with-legacy-code.mini.md. Use working-effectively-with-legacy-code.md only as a deeper reference when the mini rules are not enough for the current legacy-code tradeoff.
Version History
- 893a88a Current 2026-09-11 20:35


