What you need#
| Version | |
|---|---|
| PHP | 8.1 or later, tested through 8.6 (8.2+ recommended) |
| Laravel | 10.49+, 11.45.3+, 12, or 13 |
| Laravel Boost | 1 or 2 — Boost 2 needs PHP 8.2 and Laravel 11.45.3+; Composer picks Boost 1 below that |
| An AI agent | Claude Code, Cursor, VS Code with Copilot, Gemini CLI, Junie, Kiro, OpenCode — any agent Boost sets up |
Install#
Larapilot is a development dependency of the app you are building:
composer require andreapollastri/larapilot --dev
php artisan larapilot:install
php artisan boost:installlarapilot:install scaffolds the .larapilot/ workspace — settings, the folders for your briefs and brand, 15 design systems, the developer docs skeleton — and sets up the quality gate: Larastan and Pint, added with Composer when the project has neither. boost:install then publishes the /larapilot-* skills and the guidelines to every agent of the project.
Already on Boost? Run php artisan larapilot:update instead: it adds the package to the list of boost.json and republishes. php artisan larapilot:doctor --human checks the whole install at any time.
The MCP server#
Boost registers the larapilot MCP server beside its own. If your editor does not list it, write it into the file of every agent of the project with one command:
php artisan larapilot:mcp-add --preset=larapilotOr by hand, in .mcp.json (Claude Code) or the file of your agent:
{
"mcpServers": {
"laravel-boost": { "command": "php", "args": ["artisan", "boost:mcp"] },
"larapilot": { "command": "php", "args": ["artisan", "mcp:start", "larapilot"] }
}
}Your first story#
Open your agent in the project and say what you want to build. Every skill asks before it decides, writes through Artisan, and tells you what it wrote.
- Discover.
/larapilot-inception "class bookings for independent gyms"— five short rounds: a setup card, the goal, the stack and the way it runs as proposals you accept or change, then a readback. The team proposes what it can infer and asks only what you alone know; the PRD lands in.larapilot/docs/PRD.md, opening on its TL;DR. - Specify.
/larapilot-spec— the backlog: stories in MoSCoW order, each opening on a TL;DR and a summary, then its rules, screens, diagrams, numbered criteria, and open questions. - Plan.
/larapilot-plan US-001— tasks with hours and dependencies. The plan waits until the questions of the story are answered. - Build.
/larapilot-implement US-001— a branch that already holds what the story builds on, one commit per task, tests named after the criterion they prove. - Prove and review.
php artisan larapilot:verify US-001maps every test to its criterion;/larapilot-review US-001is your gate — approve it to DONE, or send it back with feedback.
/larapilot-inception "class bookings for independent gyms"
/larapilot-spec
/larapilot-plan US-001
/larapilot-implement US-001
/larapilot-review US-001Then the next story, the same way — or a whole batch with /larapilot-autopilot US-002 US-003 US-004, which asks every open question up front and runs without stopping.
Open the dashboard#
Run your app and open /larapilot. On your machine (APP_ENV=local) it is open; on a shared host it asks for a user — create the first one from the shell:
php artisan larapilot:dashboard-user add andrea --role=adminMore: The dashboard · Sign-in, roles & passkeys.
Start a skill from the page#
On your machine the dashboard has a chat with the agent installed there — Workspace → Agent. It is the same Claude Code, Cursor, or Codex as in your terminal, on your own plan: type /, pick larapilot-plan, name the story, and answer on the page what the agent asks.
Which skill to start with#
| Your project | Type |
|---|---|
| A new idea — an app, a site, or a Laravel package | /larapilot-inception "your idea" |
| A Laravel app in production, built without Larapilot | /larapilot-adopt |
| A legacy system you are rewriting in Laravel | /larapilot-inception with a snapshot in .larapilot/legacy/ |
| One more feature on a product that has a PRD | /larapilot-feature "…" |
| A bug | /larapilot-bug "…" |
An existing codebase#
larapilot:quality asks Pint and Larastan for a clean result before every task is done. On an app that was never formatted, or that has Larastan errors today, that gate would stay red. Two settings make it fair — /larapilot-adopt proposes both:
php artisan larapilot:settings-set --quality-scope=CHANGED # Pint reads only the files the branch changed
php artisan larapilot:quality --baseline # today's Larastan errors stay out; new ones do notCHANGED measures a branch against the one it came from, committed and uncommitted files alike. Larastan still reads the whole project — a change can break a caller it did not touch — and the baseline keeps the errors that were already there.
Laravel 10, PHP 8.1, and Boost 1#
Boost 2 needs PHP 8.2 and Laravel 11.45.3 or later, so an older app runs Boost 1. Larapilot works there with three differences:
- Skills — Boost 1 publishes guidelines, not skills.
larapilot:installandlarapilot:updatecopy the skills into the folders of your agents (.claude/skills,.cursor/skills, …) themselves;doctorreports a copy out of date. - Guidelines — choose
andreapollastri/larapilotinboost:install;larapilot:updateadds it to the list when it is missing. - Updates —
larapilot:updatemoves to Boost 2 only when it can install.
Sail and Docker#
When Artisan runs in a container, the agent on the host has to go through it. With "sail": true in boost.json, every skill runs vendor/bin/sail artisan and the JSON answers give paths relative to the project. Any other setup names its command in .env:
LARAPILOT_ARTISAN="docker compose exec app php artisan" # empty: Sail when boost.json says so, else php artisan
LARAPILOT_AGENT_PATHS=auto # auto · relative · absoluteSail publishes its port on every interface, so a dashboard left open on local is reachable from your whole network. Bind it to your machine: APP_PORT=127.0.0.1:80.

