Laravel Dependencies Trim Packages
This skill removes unused Laravel dependencies from your project, reducing bundle size and improving performance for faster deployments.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add laravel-dependencies-trim-packages npx -- -y @trustedskills/laravel-dependencies-trim-packages
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"laravel-dependencies-trim-packages": {
"command": "npx",
"args": [
"-y",
"@trustedskills/laravel-dependencies-trim-packages"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill analyzes a Laravel project's composer.json file and identifies unused or redundant dependencies. It then generates commands to safely remove these packages, streamlining the project and reducing its size. The tool helps maintain clean codebases by eliminating unnecessary bloat in dependency lists.
When to use it
- Reducing Project Size: Before deploying a Laravel application, trim down the number of installed packages.
- Refactoring Legacy Code: Clean up older projects with potentially outdated or unused dependencies.
- Improving Development Speed: Smaller dependency lists can lead to faster
composer installtimes. - Security Audits: Removing unnecessary packages reduces the attack surface by eliminating potential vulnerabilities in unused components.
Key capabilities
- Analyzes
composer.jsonfiles for Laravel projects. - Identifies unused or redundant dependencies.
- Generates commands to remove identified packages.
- Supports safe removal of dependencies without breaking existing functionality (based on analysis).
Example prompts
- "Analyze the composer.json file in /path/to/my/laravel/project and suggest packages for removal."
- "Generate a list of unused dependencies for my Laravel application's
composer.json." - "Trim the dependencies in this Laravel project: [paste composer.json content here]"
Tips & gotchas
- This skill requires access to the
composer.jsonfile of the Laravel project. - Always review the suggested removals carefully before executing them, as incorrect removal can lead to application errors.
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.