legacy-code-testing
100 / 100 · Low risk
Fine to try.
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".
What this skill can do
We found nothing in the files we read that matches our rules. That does not prove the skill is safe: see the limits of static scanning.
Install
Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.
if [ -e ~/.agents/skills/'legacy-code-testing' ] || [ -L ~/.agents/skills/'legacy-code-testing' ]; then echo 'A skill folder named legacy-code-testing already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/timwukp/agent-skills-best-practice' "$d" && git -C "$d" checkout --quiet '0a67102a22e6958154baf632b9ac4eeec7f1fa9c' -- 'skills/skills/legacy-code-testing' && mkdir -p ~/.agents/skills && cp -R "$d"/'skills/skills/legacy-code-testing' ~/.agents/skills/'legacy-code-testing' && rm -rf "$d"; fi
Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'legacy-code-testing' ~/.claude/skills/'legacy-code-testing' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.
Badge for your README
[](https://zalavijaysinh.github.io/skilltrust/repos/timwukp/agent-skills-best-practice/)
Score history
| Date | Version | Score |
|---|---|---|
| 2026-11-08 | 0a67102 | 100 |