Agent Skillsciembor/agent-rules-books › working-effectively-with-legacy-code

working-effectively-with-legacy-code

GitHub

用于安全修改难以测试的遗留代码,通过特征测试、隔离点、Sprout或Wrap方法降低风险。

working-effectively-with-legacy-code/SKILL.md ciembor/agent-rules-books

Trigger Scenarios

修改高风险遗留代码 缺乏测试覆盖的代码变更 需要引入隔离点或增量风险控制

Install

npx skills add ciembor/agent-rules-books --skill working-effectively-with-legacy-code -g -y
More Options

Non-standard path

npx skills add https://github.com/ciembor/agent-rules-books/tree/main/working-effectively-with-legacy-code -g -y

Use without installing

npx skills use ciembor/agent-rules-books@working-effectively-with-legacy-code

指定 Agent (Claude Code)

npx skills add ciembor/agent-rules-books --skill working-effectively-with-legacy-code -a claude-code -g -y

安装 repo 全部 skill

npx skills add ciembor/agent-rules-books --all -g -y

预览 repo 内 skill

npx skills add ciembor/agent-rules-books --list

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

Same Skill Collection

a-philosophy-of-software-design/SKILL.md
clean-architecture/SKILL.md
clean-code/SKILL.md
code-complete/SKILL.md
designing-data-intensive-applications/SKILL.md
domain-driven-design-distilled/SKILL.md
domain-driven-design/SKILL.md
implementing-domain-driven-design/SKILL.md
patterns-of-enterprise-application-architecture/SKILL.md
refactoring-guru/SKILL.md
refactoring/SKILL.md
release-it/SKILL.md
the-pragmatic-programmer/SKILL.md

Metadata

Files
0
Version
893a88a
Hash
02bdaf78
Indexed
2026-09-11 20:35

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-16 00:14
浙ICP备14020137号-1 $Map of visitor$