Loading skill
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
| 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 refactoringsOther measured skills in the registry, with their headline benchmark lift.