AutomationNewFreeWorks in Claude Code · Claude app · Codex
Working With Legacy Code
Safely change and test untested codebases. (For developers.)
Part of Book skills by @wondelai ↗Applies Michael Feathers's techniques for adding tests and safely changing legacy, untested code.
What it does
- Gets untested legacy code under test.
- Makes safe changes without breaking things.
When it kicks in
Safely change and test untested codebases using Feathers' "Working Effectively with Legacy Code". Use when the user mentions "legacy code", "no tests", "untested codebase", "how do I test this", "seams", "characterization tests", "golden master", "sprout method", "afraid to change this code", "monster method", "dependency breaking", or "inherited a messy codebase".
Topics the skill covers
- Core Principle
- The Legacy Code Dilemma and Change Algorithm
- Seams: Where to Pry Code Apart
- Characterization Tests
- Sprout and Wrap: Changing Without Tests First
- Dependency-Breaking Techniques
- Untangling and Understanding
- Common Mistakes
What's inside the download
6 files in the .zip:
- Skill InstructionsSKILL.md19.1 KB
- Case Studiesreferences/case-studies.md13.5 KB
- Change Algorithmreferences/change-algorithm.md12 KB
- Characterization Testsreferences/characterization-tests.md11.8 KB
- Dependency Breakingreferences/dependency-breaking.md13.9 KB
- Seamsreferences/seams.md10.5 KB
How to install (2 minutes)
Same download for Claude Code, Claude app, Codex — follow the step for the tool you use.
- 1Download the .zip and unzip it — you’ll get a folder called working-with-legacy-code.
- 2In the Claude app: open Settings → Capabilities → Skills, choose Add / Upload, and select the folder (or the .zip).
- 3In Claude Code: drop the folder into your project’s .claude/skills/ directory, then type /skills to confirm it loaded.
- 4In Codex: drop the folder into ~/.agents/skills/ (or your project’s .agents/skills/), then type /skills — or call it directly with $working-with-legacy-code.
- 5That’s it — the skill activates on its own when it fits what you’re doing.
New to skills? Our Claude Cowork beginner's guide shows how they work inside Claude.
Want to get the most out of your new skill?
Inside Hands-On AI Club we show you exactly how to use skills like this in real work — with step-by-step courses that show every move.
