spatie/guidelines-skills
Spatie’s battle-tested coding guidelines packaged as AI skills for Laravel Boost and skills.sh. Includes Laravel/PHP, JavaScript, version control, and security conventions to keep teams consistent across projects.
skills.sh, making it a non-invasive addition to existing Laravel projects. It does not modify core Laravel functionality but instead enforces best practices via AI-assisted tooling (e.g., Laravel Boost’s IDE integration or skills.sh CLI).spatie-laravel-php, spatie-security) allows selective adoption, making it adaptable to projects with varying maturity levels.php artisan boost:install, but assumes the team is using Boost for IDE tooling (e.g., PHPStan, Pest, etc.).skills.sh is a newer tool; adoption may vary across teams.laravel-permission or laravel-medialibrary).skills.sh for enforcement. Teams not using these tools will need to adopt them, adding ramp-up time.skills.sh changes their API, the package may require updates.skills.sh (CLI-focused)? Does the project already have a preferred linter/IDE tool (e.g., PHPStan, PSalm, ESLint)?php-cs-fixer, laravel-pint) or run alongside them?skills.sh: CLI-first workflows benefit from seamless integration.snake_case for DB columns, not camelCase").composer require laravel/boost.php artisan boost:install and select Spatie’s guidelines.skills.sh):
npx skills add spatie/guidelines-skills.skills check.laravel/boost:phpstan).php-cs-fixer).php-cs-fixer: Spatie’s PHP guidelines may duplicate or conflict with existing .php-cs-fixer.dist.php rules.skills.sh doesn’t interfere with existing pre-commit hooks.spatie-security if using a dedicated security team)..editorconfig, composer.json scripts, and linter configs.spatie-version-control for Git workflows).spatie-laravel-php for naming conventions).composer update spatie/guidelines-skills to CI/CD.composer update or skills add periodically).skills.sh supports multi-repo setups, but Boost is project-specific.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Boost instability (Laravel 12 bugs) | Broken IDE tooling | Use skills.sh as a fallback. |
| False positives in legacy code | Developer frustration | Whitelist exceptions in CI or config files. |
| Team ignores guidelines | Inconsistent codebase | Enforce via CI (e.g., fail builds on violations). |
skills.sh API changes |
Package breaks | Monitor skills.sh updates; fork if needed. |
| Overlap with existing tools | Redundant checks | Disable duplicate rules (e.g., PSR-12 in both php-cs-fixer and Boost). |
How can I help you explore Laravel packages today?