Getting started

Five minutes from composer require to a PRD you can read. You need a Laravel app, Composer, and an AI agent that Laravel Boost knows.

What you need#

Version
PHP8.1 or later, tested through 8.6 (8.2+ recommended)
Laravel10.49+, 11.45.3+, 12, or 13
Laravel Boost1 or 2 — Boost 2 needs PHP 8.2 and Laravel 11.45.3+; Composer picks Boost 1 below that
An AI agentClaude 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:

Terminal
composer require andreapollastri/larapilot --dev
php artisan larapilot:install
php artisan boost:install

larapilot: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:

Terminal
php artisan larapilot:mcp-add --preset=larapilot

Or by hand, in .mcp.json (Claude Code) or the file of your agent:

.mcp.json
{
  "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.

  1. 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.
  2. 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.
  3. Plan. /larapilot-plan US-001 — tasks with hours and dependencies. The plan waits until the questions of the story are answered.
  4. 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.
  5. Prove and review. php artisan larapilot:verify US-001 maps every test to its criterion; /larapilot-review US-001 is your gate — approve it to DONE, or send it back with feedback.
Your agent
/larapilot-inception "class bookings for independent gyms"
/larapilot-spec
/larapilot-plan US-001
/larapilot-implement US-001
/larapilot-review US-001

Then 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:

Terminal
php artisan larapilot:dashboard-user add andrea --role=admin
The Board of the dashboard: sixteen stories of Fernway from TODO to DONE
The Board of Fernway, the demo app these docs are written on.

More: 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.

The Agent page of the dashboard: a slash in the message lists the Larapilot skills
A slash lists the skills of the project. The agent on the dashboard has the whole turn.

Which skill to start with#

Your projectType
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:

Terminal
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 not

CHANGED 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:install and larapilot:update copy the skills into the folders of your agents (.claude/skills, .cursor/skills, …) themselves; doctor reports a copy out of date.
  • Guidelines — choose andreapollastri/larapilot in boost:install; larapilot:update adds it to the list when it is missing.
  • Updates — larapilot:update moves 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:

.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 · absolute

Sail 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.

Next#