mcpField
W
working-effectively-with-legacy-code

working-effectively-with-legacy-code

github.com/ciemborDevelopment3.1k398 installsUpdated 7w ago
Repository

About working-effectively-with-legacy-code

A development skill for reducing risk when changing legacy code, especially where tests are missing. It prioritizes concise guidance and refers to a fuller document for difficult tradeoffs.

Key features

  1. 01Guidance for risky legacy changes
  2. 02Characterization testing
  3. 03Seams and dependency breaking
  4. 04Sprout and wrap methods
  5. 05Incremental risk reduction
  6. 06Short rules with a deeper reference

Use cases

  1. 01Changing legacy code without tests
  2. 02Adding characterization tests
  3. 03Breaking dependencies incrementally

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/ciembor/agent-rules-books --skill working-effectively-with-legacy-code

After installing, type/working-effectively-with-legacy-codein Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

working-effectively-with-legacy-code.md
working-effectively-with-legacy-code.mini.md
working-effectively-with-legacy-code.nano.md

Details

From the project README

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.

Comments

Markdown supported