Java Refactoring Remove Parameter
Official github skill covering Java, refactoring for developing backend services and APIs.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add java-refactoring-remove-parameter npx -- -y @trustedskills/java-refactoring-remove-parameter
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"java-refactoring-remove-parameter": {
"command": "npx",
"args": [
"-y",
"@trustedskills/java-refactoring-remove-parameter"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill enables AI agents to identify and remove unnecessary parameters from Java methods, improving code clarity and reducing complexity. It analyzes method signatures and usage patterns to determine which parameters can be safely eliminated without affecting functionality.
When to use it
- You're cleaning up legacy code with unused or redundant parameters.
- A method has multiple parameters, but only a subset is used in its logic.
- You want to simplify the API surface of a class by reducing parameter count.
- Refactoring for better testability and maintainability.
Key capabilities
- Detects unused parameters in Java methods.
- Removes identified parameters from method signatures.
- Updates related code (e.g., method calls) accordingly.
- Preserves existing functionality during refactoring.
Example prompts
- "Remove the unused 'userId' parameter from the 'processRequest' method."
- "Refactor this Java class by eliminating any redundant parameters in its methods."
- "Identify and remove all unnecessary parameters from the 'calculateDiscount' function."
Tips & gotchas
- Ensure that the parameter being removed is not used elsewhere, even indirectly.
- Use version control to revert changes if unexpected issues arise after refactoring.
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 |
🏢 Official
Published by the company or team that built the technology.