Refactoring Advisor
Analyzes and suggests refactoring strategies based on Masanao Ohba's principles for cleaner, more maintainable backend code.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add masanao-ohba-refactoring-advisor npx -- -y @trustedskills/masanao-ohba-refactoring-advisor
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"masanao-ohba-refactoring-advisor": {
"command": "npx",
"args": [
"-y",
"@trustedskills/masanao-ohba-refactoring-advisor"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
The Masanao Ohba Refactoring Advisor skill provides guidance and suggestions for improving existing code. It can analyze code snippets, identify areas for refactoring to enhance readability and maintainability, and propose specific changes based on established best practices. The advisor aims to help developers modernize legacy codebases or improve the quality of newly written code.
When to use it
- Modernizing Legacy Code: When faced with a large, complex codebase that is difficult to understand and modify.
- Improving Readability: To make existing code easier for other developers (or your future self) to comprehend.
- Code Review Assistance: As a tool to supplement manual code reviews by identifying potential areas of improvement.
- Learning Best Practices: To gain insights into refactoring techniques and improve coding skills.
Key capabilities
- Code analysis
- Refactoring suggestions
- Readability enhancement
- Maintainability improvements
- Best practices application
Example prompts
- "Analyze this Python code snippet and suggest ways to make it more readable: [code snippet]"
- "I have a large function in my Java class. Can you help me refactor it into smaller, more manageable methods?"
- "What are some potential improvements for this JavaScript code? [code snippet]"
Tips & gotchas
The skill's effectiveness depends on the clarity and completeness of the provided code. While it offers suggestions, always review and understand the proposed changes before implementing them to ensure they align with your project’s specific requirements.
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.