Skill / SKILL.md

Legacy Code Testing

timwukp/agent-skills-best-practice

Adds tests to legacy code that has none, safely: characterization tests that pin current behavior (including bugs) before any refactoring, seam identification for breaking untestable dependencies, and a risk-ranked coverage strategy. Use for untested or inherited codebases. Triggers on: "add tests to legacy code", "this code has no tests", "characterization tests", "make this testable", "safe to refactor?", "pin down current behavior", "test this old module before we change it".
3 views 14 repository stars 0 commentsUpdated Nov 27, 2026
Overview

Adds tests to legacy code that has none, safely: characterization tests that pin current behavior (including bugs) before any refactoring, seam identification for breaking untestable dependencies, and a risk-ranked coverage strategy. Use for untested or inherited codebases. Triggers on: "add tests to legacy code", "this code has no tests", "characterization tests", "make this testable", "safe to refactor?", "pin down current behavior", "test this old module before we change it".

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/timwukp/agent-skills-best-practice' skill-source

Use the complete skill-source/skills/skills/legacy-code-testing directory with your client’s skill installer.

  • skills/skills/legacy-code-testing

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/skills/legacy-code-testing

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
440f44c312a51ea7a385338696f4c7108c8fcaae9de5bf2f7a8815c14041003d
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills