Safely refactor code while preserving behavior
59
40%
Does it follow best practices?
Impact
91%
1.00xAverage score across 3 eval scenarios
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./music-analytics-api-with-db-routed/.claude/skills/refactor/SKILL.mdRefactor untested code — write tests first
Tests written first
100%
100%
Tests run before changes
100%
100%
Tests run after changes
100%
100%
Test file present
100%
100%
Docstrings on new functions
100%
100%
Behavior preserved
100%
100%
Helpers extracted
100%
100%
Coverage gaps noted
100%
100%
No behavior changes described
100%
100%
Refactor with existing tests — preserve behavior
Tests run before
100%
100%
Tests run after
100%
100%
Docstrings on new functions
100%
100%
Behavior preserved
100%
100%
Duplication removed
100%
100%
Diff review noted
100%
100%
Coverage gaps identified
100%
100%
No logic changes
100%
100%
Incremental approach described
100%
80%
Extract helpers from complex function with docstrings
Tests written before refactoring
0%
0%
Tests run before changes
0%
30%
Tests run after changes
100%
100%
Helpers extracted
100%
100%
Docstrings on extracted functions
100%
100%
Behavior preserved
100%
93%
Test file present
100%
100%
Coverage gaps identified
100%
100%
Incremental approach
100%
60%
fd49168
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.