Installation:
composer require sandermuller/boost-core
Add to composer.json under require-dev if only for local AI agent integration.
Initialize Configuration:
php artisan boost:init
This creates a .ai/ directory with default files (skills.md, guidelines.md, commands.md).
First Sync:
php artisan boost:sync
Publishes your .ai/ content to all nine supported agents (Claude, Cursor, etc.).
Define a project-specific AI skill in .ai/skills.md:
# Laravel API Development
- **Framework**: Laravel 11+
- **Database**: MySQL 8.0+
- **Key Patterns**:
- Use `php artisan make:resource` for API endpoints.
- Prefer `spatie/laravel-query-builder` for complex queries.
Sync with:
php artisan boost:sync --tags=laravel,api
Now, agents will reference this context when assisting with Laravel tasks.
Skill Development:
.ai/skills.md by section (e.g., #Database, #Testing).tags: ["auth", "validation"]).---
title: "Laravel Auth"
tags: ["auth", "middleware"]
---
# Custom Guard Logic
Extend `Illuminate\Auth\GuardHelpers` for role-based access.
Command Automation:
.ai/commands.md:
## Laravel Commands
```bash
# Create a resource with validation
php artisan make:resource Post -m --validation
--commands flag:
php artisan boost:sync --commands
Tag-Based Filtering:
#database, #testing) and sync selectively:
php artisan boost:sync --tags=database
gemini for docs).CI/CD Hooks:
- name: Sync AI Skills
run: php artisan boost:sync
env:
BOOST_AGENTS: "claude,cursor"
Dynamic Skill Rendering:
Use Laravel’s Blade in .ai/skills.md for dynamic content:
# Current Laravel Version
{{ config('app.version') }} ({{ config('app.env') }})
Render with:
php artisan boost:render --file=skills.md
Environment-Aware Syncs:
Override .ai/skills.md per environment (e.g., .ai/staging.md) and sync with:
php artisan boost:sync --env=staging
Agent-Specific Quirks:
Sync Conflicts:
--force:
php artisan boost:sync --force
php artisan boost:status.File Watching:
nodemon:
nodemon --watch .ai --exec "php artisan boost:sync"
php artisan boost:sync --dry-run
php artisan boost:sync --verbose
Logs appear in storage/logs/boost.log.Custom Agents:
Extend the Agent class to support unsupported agents:
namespace App\Boost\Agents;
use SanderMuller\BoostCore\Agent;
class CustomAgent extends Agent {
public function publish($content) {
// Custom API call
}
}
Register in config/boost.php:
'agents' => [
'custom' => \App\Boost\Agents\CustomAgent::class,
],
Pre/Post-Sync Hooks:
Bind events in AppServiceProvider:
use SanderMuller\BoostCore\Events\SyncStarted;
public function boot() {
SyncStarted::listen(function () {
Log::info('AI sync initiated...');
});
}
Local Overrides:
Use .ai/local.md for machine-specific configurations (e.g., IDE settings). Exclude from sync:
php artisan boost:sync --exclude=local
BOOST_CONCURRENCY env var:
BOOST_CONCURRENCY=3 php artisan boost:sync
How can I help you explore Laravel packages today?