working-effectively-with-legacy-code
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseWorking Effectively with Legacy Code Skill
有效处理遗留代码 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.
当任务涉及高风险的遗留代码变更、测试缺失、characterization tests、seams、dependency breaking、sprout method、wrap method 或渐进式风险降低时,使用此 skill。
在做出设计或代码决策之前,先阅读并应用 working-effectively-with-legacy-code.mini.md。仅当迷你规则不足以支持当前遗留代码权衡决策时,才将 working-effectively-with-legacy-code.md 作为更深入参考资料。