Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Checks that tests cover existing code before AI refactors it, generating characterization tests when coverage is missing.
Use this skill ↓50% 77%+27 ptsof test cases passed
Passed 17 of 22 test cases with the skill, and 11 of 22 without it.
3 of 3 safety checks passed
Not used yet
A safety gate that runs before any AI-assisted refactoring. Ensures tests exist to catch regressions. If coverage is insufficient, generates characterization tests first.
Use this skill when the user:
Without guard: With guard:
"Claude, refactor this" "Claude, refactor this"
→ AI rewrites code → Guard checks for tests
→ Something breaks → Tests missing → generate them
→ You don't know what → Tests pass → proceed with refactor
→ Debugging nightmare → Tests fail → exact regression found
What code is being refactored?
Ask user: "Which files/classes are you planning to refactor?"
Or detect from context:
Glob: [files mentioned in conversation]
Read: each file to understand scope
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.