Laravel Controller Cleanup
This skill automatically removes unused code and dead endpoints from your Laravel controllers, streamlining your project and improving maintainability.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add noartem-laravel-controller-cleanup npx -- -y @trustedskills/noartem-laravel-controller-cleanup
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"noartem-laravel-controller-cleanup": {
"command": "npx",
"args": [
"-y",
"@trustedskills/noartem-laravel-controller-cleanup"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill, noartem-laravel-controller-cleanup, helps streamline Laravel development workflows. It identifies and removes unused or redundant code within Laravel controllers, improving project maintainability and reducing bloat. The tool focuses on cleaning up controller logic to enhance performance and readability.
When to use it
- Refactoring Legacy Code: Clean up older Laravel projects with accumulated unnecessary controller methods.
- Preparing for Deployment: Ensure a lean codebase before deploying an application, minimizing potential issues.
- Improving Controller Readability: Simplify complex controllers by removing unused code and improving overall structure.
- Reducing Project Size: Decrease the size of your project by eliminating dead weight in controllers.
Key capabilities
- Identifies unused controller methods.
- Removes redundant or unnecessary code within controllers.
- Improves Laravel controller maintainability.
Example prompts
- "Clean up the controllers in my
app/Http/Controllersdirectory." - "Remove any unused methods from the
UserControllerin my Laravel project." - “Analyze and optimize the
AdminControllerfor unnecessary code.”
Tips & gotchas
This skill requires a working Laravel development environment. It's recommended to back up your codebase before running this tool, as it makes automated changes to controller files.
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.