Refactor
Refactors Python/Java backend code for improved readability, efficiency, and adherence to best practices using automated suggestions.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add akiselev-refactor npx -- -y @trustedskills/akiselev-refactor
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"akiselev-refactor": {
"command": "npx",
"args": [
"-y",
"@trustedskills/akiselev-refactor"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
The akiselev-refactor skill helps improve existing code by suggesting and applying cleanups, optimizations, and modernizations. It can identify areas of technical debt and propose solutions to enhance readability and maintainability. This skill aims to reduce complexity and increase the overall quality of a codebase.
When to use it
- Legacy Codebases: Use this when working with older code that needs modernization or simplification.
- Technical Debt Reduction: Apply it to areas flagged for refactoring during code reviews or audits.
- Improving Readability: Utilize the skill to make complex functions and modules easier to understand for other developers.
- Performance Optimization: Identify potential bottlenecks and suggest optimizations within existing code blocks.
Key capabilities
- Code cleanup suggestions
- Optimization proposals
- Modernization of code patterns
- Identification of technical debt
Example prompts
- "Refactor this function to improve its readability: [code snippet]"
- "Suggest ways to optimize this block of code for performance: [code snippet]"
- "Can you modernize this code using current best practices? [code snippet]"
Tips & gotchas
The skill's effectiveness depends on the quality and clarity of the provided code. It is recommended to provide specific sections or functions rather than entire files for optimal results.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.