The Spatie team has open-sourced their internal coding guidelines as reusable AI skills via
spatie/guidelines-skills
. Skills are reusable instruction sets for AI coding assistants that activate automatically based on context — think of them as project-aware prompts that keep an AI agent aligned with your team's conventions without repeated manual guidance.
The package ships with four skills covering the areas Spatie cares most about:
- spatie-laravel-php — PSR-12 standards, typed properties, constructor promotion, early returns, Laravel controller naming, validation rules, and Blade template practices.
- spatie-javascript
— Prettier configuration,
constdeclarations, strict equality operators, named functions, and destructuring patterns. - spatie-version-control — Repository naming, branch conventions, commit messaging, and squash merge strategies.
- spatie-security — SSL requirements, CSRF protection, password hashing, database permissions, and credential management.
The skills are distributed through skills.sh , which means they work across multiple AI stacks — Claude Code, Cursor, Codex, and GitHub Copilot.
For Laravel Boost users, installation is via Composer:
作曲家
要求
spatie/guidelines-skills
--devphp
工匠
提升:安装
Select the Spatie guidelines from the available options and they'll be set up automatically. To keep them current as the guidelines evolve, run:
作曲家
更新
spatie/guidelines-skillsphp
工匠
boost:update
If you're not using Laravel Boost, you can install via the skills.sh CLI instead:
npx
技能
添加
spatie/guidelines-skills
Previously, Spatie offered a similar package
spatie/boost-spatie-guidelines
exclusively for Laravel Boost users. The move to skills.sh opens this up to anyone regardless of their AI tooling setup.
If you want a head start aligning your AI coding assistant with battle-tested Laravel and PHP conventions, the source is available on GitHub 。




