Safe, incremental refactoring with SOLID evaluation. Trigger with "refactor this", "improve the code", "clean up", "restructure", "improve maintainability".
SkillScore91Maintained
Automatic
◆Coding pack
Last verified 8/15/2026
What it changes
Passed 21 of 23 test cases with the skill, and 12 of 23 without it.
Without skill52%
With skill91%
Checks it passed that the model alone missed
Assigns a debt estimate of 5 to 10 hours.
Specifies step increments of 15 to 30 minutes.
Adds 3 points for a method count between 7 and 15.
and 14 more in the full report
10 fixed11 passed either way1 still failing1 broke
Pass-rate lift
+39 pp
Tokens
+168%
Agent turns
0%
Response time
-15%
Model gemini-3.6-flashMeasured 8/15/2026v121 of 23 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 10 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 10
Prompt
A refactoring proposal requires 2 hours of engineering effort and is estimated to save 12 hours of maintenance work (6x ROI). What is its priority matrix tier and response timeframe?
What was checked, without and with the skill
Checked
Without skill
With skill
Classifies the task as Critical priority based on ROI exceeding 5x.
Missed
Passed
Specifies an immediate response deadline for Critical priority.
Missed
Passed
case-12 · gemini-3.6-flash · 8/15/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md305 linessingle file
Safe, incremental refactoring with SOLID evaluation
Performs safe, step-by-step code refactoring with quantitative SOLID principles evaluation. Visualizes technical debt and clarifies improvement priorities.
Usage
# Identify complex code and create refactoring plan
find . -name "*.js" -exec wc -l {} + | sort -rn | head -10
"Refactor large files to reduce complexity"
# Detect and consolidate duplicate code
grep -r "function processUser" . --include="*.js"
"Consolidate duplicate functions using Extract Method"
# Evaluate SOLID principles violations
grep -r "class.*Service" . --include="*.js" | head -10
"Assess whether these classes follow Single Responsibility Principle"
Basic Examples
# Find long methods
grep -A 50 "function" src/*.js | grep -B 50 -A 50 "return" | wc -l
"Split methods over 50 lines using Extract Method"
# Find complex conditions
grep -r "if.*if.*if" . --include="*.js"
"Improve nested conditions using Strategy pattern"
# Find code smells
grep -r "TODO\|FIXME\|HACK" . --exclude-dir=node_modules
"Resolve technical debt in comments"