Skip to content

working-with-legacy-code

wondelai/skills ↗

From the author

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". Also trigger when changing code without tests safely, getting a class under test when constructors, statics, or singletons block it, adding features to tangled modules, or planning incremental test coverage for an old codebase. Covers the legacy-code change algorithm, seams, characterization tests, sprout/wrap, and dependency-breaking techniques. For refactoring code that already has tests, see refactoring-patterns. For day-to-day code quality, see clean-code.

Install

npx skills add wondelai/skills --skill working-with-legacy-code -a claude-code

Installs to .claude/skills/working-with-legacy-code/ · Each command fetches the skill straight from GitHub with the open skills CLI.

Download .zip

Byte-identical to the scanned commit, with the repository’s licence and a SOURCE.txt.

Want your agent to suggest skills while you type? See how to use skills from your IDE.

Safety checks on SKILL.md

No warnings.

Why 87

Security100
Provenance81
Maintenance85
Licence100
Adoption54

aiqbench computes the trust score from public signals. It is not a security audit, so read a skill before you install it.

Similar skills

From the same category, best-trusted first. This skill is not indexed for matching yet, so these are its neighbours by category.

Ratings & reviews

—

no reviews

Tried this skill? Rate it to help others. Sign in

    Discussion

    Join the discussion. Sign in