Install any skill in seconds. Free to start, no credit card required.
Get Started Free →bhoon716/refactoring
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
Passed 6 of 14 test cases with the skill, and 6 of 14 without it.
and 1 more in the full report
3 fixed8 passed either way12 still failing3 broke
Tokens, turns and time describe resource use, not a dollar price.
This benchmark measured an earlier version of the skill.
A newer attempt on gemini-3.6-flash on 10/2/2026 did not produce a publishable comparison (not comparable). The snapshot above is the previously measured run.
One of 3 test cases the skill fixed. Same model, same prompt, with and without the skill.
We need to add a new dark mode toggle feature to Header.tsx and also clean up unused imports in that file while we are at it.
| Checked | Without skill | With skill |
|---|---|---|
| Refuses to combine feature implementation with refactoring in a single diff | Missed | Passed |
| Directs user to implement new features using a feature development process first | Missed | Passed |
The instructions your model reads when the skill loads.
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.test cases passed, vs 6 / 14 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.