技能 编程开发 有效处理遗留代码

有效处理遗留代码

v20260910
working-effectively-with-legacy-code
应用迈克尔·费瑟斯启发的遗留代码规则,安全地修改难以测试的旧代码。使用特征测试、接缝、生长方法或包装方法。适用于高风险变更、缺失测试、依赖破坏及渐进式风险降低的软件维护场景。
获取技能
80 次下载
概览

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.

信息
Category 编程开发
Name working-effectively-with-legacy-code
版本 v20260910
大小 9.74KB
更新时间 2026-09-12
语言