360 Secure SkillHub
360 安全技能中心

working-effectively-with-legacy-code

该 Skill 提供针对难以测试的遗留代码的安全修改规则,涵盖特征测试、接缝、依赖破除、发芽方法、包装方法和增量风险降低;使用时先阅读 mini 规则,必要时查阅完整参考。

ciembor
热度 0.00
最近更新 2026-10-18 23:16:23
分类:开发依赖:纯提示词应用场景:调试排错 / 代码生成

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add ciembor/agent-rules-books/working-effectively-with-legacy-code
Metadata
name
working-effectively-with-legacy-code
description
Apply Michael Feathers-inspired legacy-code rules when changing hard-to-test code safely with characterization tests, seams, sprout methods, or wrap methods.
license
MIT

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.