Laravel Controller Cleanup

🌐Community
by noartem · vlatest · Repository

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.

1

Run in terminal (recommended)

terminal
claude mcp add noartem-laravel-controller-cleanup npx -- -y @trustedskills/noartem-laravel-controller-cleanup
2

Or manually add to ~/.claude/settings.json

~/.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/Controllers directory."
  • "Remove any unused methods from the UserController in my Laravel project."
  • “Analyze and optimize the AdminController for 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 HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
noartem
Installs
11

🌐 Community

Passed automated security scans.