Spatie Shares Their Coding Guidelines as AI Skills

https://picperf.io/https://laravelnews.s3.amazonaws.com/featured-images/Spatie-AI-Skills-LN.png

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, const declarations, 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:

composer require spatie/guidelines-skills --dev

php artisan boost:install

Select the Spatie guidelines from the available options and they’ll be set up automatically. To keep them current as the guidelines evolve, run:

composer update spatie/guidelines-skills

php artisan boost:update

If you’re not using Laravel Boost, you can install via the skills.sh CLI instead:

npx skills add 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.

Laravel News