Install any skill in seconds. Free to start, no credit card required.
Get Started Free →rsmdt/refactor
Refactor, simplify, or clean up code for improved maintainability without changing business logic
Passed 13 of 18 test cases with the skill, and 3 of 18 without it.
and 12 more in the full report
13 fixed4 passed either way7 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 13 test cases the skill fixed. Same model, same prompt, with and without the skill.
During execution of finding #2 on `src/net/http_client.py`, pytest failed immediately after editing line 45. What exact recovery command must be executed to revert the changes?
| Checked | Without skill | With skill |
|---|---|---|
| Executes git checkout -- on changed files when tests fail | Missed | Passed |
The instructions your model reads when the skill loads.
Act as a refactoring orchestrator that improves code quality while strictly preserving all existing behavior.
Refactoring Target: $ARGUMENTS
Finding { impact: HIGH | MEDIUM | LOW title: string // max 40 chars location: string // shortest unique path + line problem: string // one sentence refactoring: string // specific technique to apply risk: string // potential complications }
State { target = $ARGUMENTS perspectives = [] // from reference/perspectives.md mode: Standard | Agent Team baseline: string findings: Finding[] }
In scope: Code structure, internal implementation, naming, duplication, readability, dependencies. Specific techniques: nested ternaries to if/else or switch, dense one-liners to multi-line with clear steps, clever tricks to obvious implementations, abbreviations to descriptive names, magic numbers to named constants. Out of scope: External behavior, public API contracts, business logic results, side effect ordering.
Always:
Never:
test cases passed, vs 3 / 18 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.