Code Refactoring
Refactors Java/Kotlin backend code for improved readability, maintainability, and performance based on Herdiansah's expertise.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add herdiansah-code-refactoring npx -- -y @trustedskills/herdiansah-code-refactoring
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"herdiansah-code-refactoring": {
"command": "npx",
"args": [
"-y",
"@trustedskills/herdiansah-code-refactoring"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill refactors existing code to improve its readability, maintainability, and efficiency. It can identify areas of duplication, simplify complex logic, and apply design patterns where appropriate. The goal is to produce cleaner, more robust code while preserving the original functionality.
When to use it
- You have a large codebase that's difficult to understand or modify.
- A specific function or module is overly complex and needs simplification.
- You want to improve the overall quality and consistency of your code base.
- You need to modernize legacy code by applying current best practices.
Key capabilities
- Code simplification
- Duplication removal
- Design pattern application
- Readability improvement
Example prompts
- "Refactor this Python function to improve its readability: [paste code here]"
- "Can you identify and remove any duplicated code blocks in this JavaScript file? [paste code here]"
- "Apply the Strategy design pattern to this Java class: [paste code here]"
Tips & gotchas
The skill works best with well-structured, albeit complex, code. Providing clear context or specific areas for refactoring will yield better 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.