laravel-dependencies-trim-packages

Remove unused Laravel Composer packages and assets after compatibility checks.

Updated Jun 8, 2025
One-click install
npx skills add https://github.com/noartem/kawa --skill laravel-dependencies-trim-packages-noartem
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-dependencies-trim-packages
Source: https://github.com/noartem/kawa/tree/main/ui/.ai/skills/laravel-dependencies-trim-packages
Command: npx skills add https://github.com/noartem/kawa --skill laravel-dependencies-trim-packages-noartem

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Remove unneeded Laravel Composer packages and assets to reduce boot time, memory usage, and attack surface.

Core Features & Use Cases

  • Audit packages using a tree view and remove unused ones
  • Prefer first-party or built-in features before adding new packages
  • Regularly update; pin major versions via constraints and test

Quick Start

Audit Laravel dependencies and remove unused packages after verifying compatibility.

Frequently Asked Questions about laravel-dependencies-trim-packages

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I remove unused Composer packages from a Laravel project?

Removing unused Composer packages requires auditing dependencies via a tree view and safely deleting unneeded ones. The process tightens constraints with version pinning and compatibility checks to reduce boot time, memory usage, and attack surface without causing breakage.

Can I reduce Laravel boot time by trimming dependencies?

Trimming dependencies and removing unused assets reduces Laravel boot time by eliminating unnecessary package loading. Auditing dependencies and deleting unused ones directly decreases memory usage and application startup overhead during production hardening.

Does removing Laravel packages affect application security?

Removing unused Laravel packages improves application security by shrinking the attack surface. Trimming dependencies limits potential vulnerabilities from third-party code and tightens production environments against exploitable package flaws.

What is the best way to audit Laravel dependencies for unused packages?

The best way to audit Laravel dependencies is using a tree view to identify and remove unused packages. Prefer first-party or built-in features before adding new packages, and apply version pinning with post-change validation to ensure safe removal.

How do I safely tighten Composer constraints in Laravel?

Safely tighten Composer constraints in Laravel by pinning major versions and running compatibility checks before removal. Validate post-change application behavior to ensure removing packages and tightening constraints prevents breakage during dependency audits.