Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Suggest and guide application of refactoring patterns to improve code quality
.claude/skills/a5c-ai-refactoring-assistant/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-13 | ✗→✓ | ▲ Improved | 58% | 0% |
| case-14 | ✗→✓ | ▲ Improved | 88% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 29% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 103% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 118% | 0% |
Suggests appropriate refactoring patterns and guides their application to improve code quality, maintainability, and migration readiness.
Enable guided refactoring for:
| Tool | Purpose | Integration Method | |------|---------|-------------------| | IDE Refactoring | Automated refactoring | CLI / API | | Sourcery | AI-powered suggestions | CLI | | Sourcegraph Cody | Code intelligence | API | | IntelliJ IDEA | Java refactoring | CLI | | VS Code | Multi-language | Extension API |
json{ "analysisId": "string", "timestamp": "ISO8601", "suggestions": [ { "type": "extract-method|move-method|rename|inline|design-pattern", "priority": "high|medium|low", "target": { "file": "string", "element": "string", "line": "number" }, "description": "string", "rationale": "string", "steps": ["string"], "estimatedImpact": { "complexity": "string", "maintainability": "string", "testability": "string" }, "risks": ["string"] } ], "patterns": { "applicable": ["string"], "opportunities": [] } }
code-smell-detector: Identifies refactoring needscodemod-executor: Automates refactoringscode-transformation-executor: Executes suggested refactorings| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-13 | fail→pass | 9,231 | 9,499 | +3% | 1 | 1 | 0% | 1,612 | 2,553 | +58% | 0 | 0 | — |
case-01 | fail→fail | 26,027 | 18,801 | -28% | 1 | 1 | 0% | 4,922 | 3,745 | -24% | 0 | 0 | — |
case-02 | fail→fail | 22,214 | 18,652 | -16% | 1 | 1 | 0% | 3,586 | 4,257 | +19% | 0 | 0 | — |
case-03 | fail→fail | 16,306 | 13,959 | -14% | 1 | 1 | 0% | 3,029 | 3,312 | +9% | 0 | 0 | — |
case-14 | fail→pass | 9,155 | 17,010 | +86% | 1 | 1 | 0% | 1,028 | 1,937 | +88% | 0 | 0 | — |
case-04 | fail→fail | 5,801 | 9,973 | +72% | 1 | 1 | 0% | 1,021 | 2,547 | +149% | 0 | 0 | — |
case-05 | fail→fail | 7,090 | 7,383 | +4% | 1 | 1 | 0% | 1,079 | 1,924 | +78% | 0 | 0 | — |
case-06 | fail→fail | 15,566 | 15,830 | +2% | 1 | 1 | 0% | 3,794 | 4,286 | +13% | 0 | 0 | — |
case-07 | fail→pass | 11,818 | 10,851 | -8% | 1 | 1 | 0% | 2,215 | 2,860 | +29% | 0 | 0 | — |
case-08 | fail→pass | 5,100 | 6,770 | +33% | 1 | 1 | 0% | 952 | 1,931 | +103% | 0 | 0 | — |
case-09 | fail→pass | 6,558 | 13,032 | +99% | 1 | 1 | 0% | 1,314 | 2,864 | +118% | 0 | 0 | — |
case-10 | fail→pass | 8,455 | 7,207 | -15% | 1 | 1 | 0% | 1,613 | 2,110 | +31% | 0 | 0 | — |
case-11 | fail→pass | 7,671 | 8,385 | +9% | 1 | 1 | 0% | 1,549 | 2,263 | +46% | 0 | 0 | — |
case-12 | fail→pass | 5,942 | 6,350 | +7% | 1 | 1 | 0% | 1,249 | 1,897 | +52% | 0 | 0 | — |
case-15 | pass→pass | 5,326 | 7,602 | +43% | 1 | 1 | 0% | 778 | 2,075 | +167% | 0 | 0 | — |
case-16 | fail→pass | 9,851 | 12,587 | +28% | 1 | 1 | 0% | 1,692 | 3,110 | +84% | 0 | 0 | — |
case-17 | fail→pass | 8,333 | 7,746 | -7% | 1 | 1 | 0% | 1,544 | 2,050 | +33% | 0 | 0 | — |
case-18 | fail→pass | 9,112 | 9,856 | +8% | 1 | 1 | 0% | 1,607 | 2,489 | +55% | 0 | 0 | — |
case-19 | fail→pass | 7,686 | 7,348 | -4% | 1 | 1 | 0% | 1,469 | 2,000 | +36% | 0 | 0 | — |
case-20 | pass→pass | 9,769 | 8,702 | -11% | 1 | 1 | 0% | 1,932 | 2,250 | +16% | 0 | 0 | — |
case-21 | pass→pass | 8,126 | 9,460 | +16% | 1 | 1 | 0% | 1,664 | 2,362 | +42% | 0 | 0 | — |
case-22 | fail→pass | 7,084 | 10,620 | +50% | 1 | 1 | 0% | 1,289 | 2,713 | +110% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +59 percentage points is the difference between those two pass rates over the 22 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.