home / skills / noartem / skills / laravel-dependencies-trim-packages
This skill helps prune Laravel dependencies by auditing composer packages, removing unused ones, and prioritizing built-in features to improve boot time and
npx playbooks add skill noartem/skills --skill laravel-dependencies-trim-packagesReview the files below or copy the command above to add this skill to your agents.
---
name: laravel-dependencies-trim-packages
description: Remove unneeded Composer packages and assets to improve boot time, memory, and security surface
---
# Trim Dependencies
- Audit packages: `composer show --tree` and remove unused ones
- Prefer first-party or built-in features before adding new packages
- Regularly update; pin major versions via constraints and test
```
composer remove vendor/package
```
This skill helps Laravel projects trim unneeded Composer packages and related assets to improve boot time, reduce memory use, and shrink the security attack surface. It provides guided checks and concrete removal actions so you can keep dependencies minimal and maintainable. The focus is practical: audit, decide, remove, and test safely.
The skill inspects the Composer dependency tree and identifies packages that are likely unused or redundant compared to first-party framework features. It suggests candidates for removal and gives the exact composer remove command plus follow-up steps to clean assets and config. It also recommends version pinning and testing patterns to avoid regressions.
How do I safely identify unused packages?
Start with composer show --tree to see usage relationships, search your codebase for namespaces and service provider registrations, and run tests after removal in a branch or staging environment.
What commands remove packages and their assets?
Use composer remove vendor/package to uninstall the package, then remove any published config/assets and run composer install and your app’s cache/compile commands to ensure a clean state.