What problem does it solve?
When writing or reviewing code for Spatie projects and packages, developers need to consistently apply Spatie's specific coding standards across PHP, Laravel, JavaScript, and Vue. This Skill encodes those conventions so code reviews and new code follow the same rules without memorizing the full guidelines.
Core Features & Use Cases
- PHP and Laravel style enforcement: Covers type declarations, docblocks, control flow (happy path last, avoid else), naming conventions for controllers, jobs, events, and mailables, routing, validation, Blade, and migrations.
- Package development guidance: Details Spatie package architecture including service providers with laravel-package-tools, contracts, config conventions, and Pest-based testing with Orchestra Testbench.
- JavaScript and Vue style rules: Defines spacing, quotes, arrow functions, destructuring, and Vue template formatting aligned with eslint-config-spatie.
- Use Case: When reviewing a pull request for a Spatie Laravel package, activate this Skill to check that validation rules use array notation, controllers stick to CRUD keywords, tests use Pest with descriptive names, and no private constants or down migrations were introduced.
Quick Start
Review this Laravel controller code and fix any violations of the Spatie coding guidelines.