legacy-equivalence-test-generator

Generates a behavior-based test suite from a legacy code snippet so that a rewritten/modernized version can be proven equivalent to the original, rather than just assumed correct. Use this skill whenever the user is modernizing, refactoring, migrating, rewriting, or upgrading legacy code (e.g. old JavaScript/jQuery to TypeScript, Python 2 to Python 3, an old framework to a new one) and needs to verify the new version behaves identically to the old one. Also use whenever the user asks to "prove," "verify," or "check" that a code rewrite didn't break anything, or wants test cases derived directly from existing code's actual behavior rather than from a spec. Trigger this even if the user just says "make sure this refactor is safe" or "generate tests for this old function" without mentioning equivalence explicitly.

Domains: testing, development · Rated 5.0/5 from 1 ratings · 41 downloads

Install this skill

mkdir -p .claude/skills
curl -sSL https://skillpatch.dev/install_skill/legacy-equivalence-test-generator | tar -xz -C .claude/skills/

Works with Claude Code, Cursor, GitHub Copilot, Codex and any agent that reads the open SKILL.md standard. Every skill on SkillPatch passes an automated 6-dimension security review before it is published.

Browse all skills · What are agent skills? · Quick setup guide