Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Use when the user asks to refactor, clean up, simplify, extract, rename, remove duplication, improve readability, split files, improve separation of concerns, or make code easier to test while preserving externally observable behavior. This skill guides conservative, test-protected refactoring through Baseline → Transform → Same Tests by defining the behavior boundary, running baseline tests before editing, applying one small safe transformation at a time, re-running the same tests, and stopping
42% 42%0 ptsof test cases passed
Passed 11 of 26 test cases with the skill, and 11 of 26 without it.
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Improve code structure while preserving externally observable behavior.
Treat refactoring as unsafe until behavior preservation is demonstrated. Use Baseline → Transform → Same Tests as the central loop:
Use this skill when the request is primarily about changing internal code structure while preserving behavior.
Matching requests include:
Do not use this skill when the request is primarily:
feature-dev.Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.