The loop#
Every product built with Larapilot follows the same loop. The first two steps happen once — or whenever the product changes direction — and the rest repeats for every story.
| Step | Skill | What it leaves |
|---|---|---|
| Discover | /larapilot-inception · /larapilot-adopt | The PRD, the inception choices, the decisions |
| Specify | /larapilot-spec · /larapilot-feature · /larapilot-bug | Stories in the backlog, with their epic, priority, points, and version |
| Design | /larapilot-design (optional) | HTML mockups in a design system — the contract of the frontend |
| Plan | /larapilot-plan | A technical plan and its tasks, with hours and dependencies |
| Build | /larapilot-implement · /larapilot-autopilot | A branch, a commit per task, tests, domain docs |
| Prove | larapilot:verify | The table of every criterion and the test or evidence that proves it |
| Review | /larapilot-review | DONE — or the story back to TODO with your feedback |
| Ship | /larapilot-ship · /larapilot-release | The security gate, release notes, the deploy runbook |
Three layers, one job each#
| Layer | Job |
|---|---|
Skills — /larapilot-*, published by Laravel Boost | Drive the conversation — in your editor, or in the chat of the dashboard: ask, propose, write through the CLI, report |
Artisan commands — php artisan larapilot:* | Persist the state and enforce the workflow. Skills never write a workflow file by hand |
The MCP server — larapilot | Let any agent read the backlog, a spec, the search, and diagnostics mid-conversation |
The commands are the referee. They refuse an invalid step — implement before a plan, review before every criterion is proven, approve before review — with a stable error code and a hint. --force exists for the rare case, and it is always yours to type.
The status of a story#
- TODO → PLANNED —
spec-planvalidates the plan, and refuses a story whose open questions are not answered. - PLANNED → IN PROGRESS —
spec-startopens the branch of the story, with the work of the stories it is blocked by already in it; it refuses a story whose blockers are not implemented yet. - IN PROGRESS → REVIEW —
spec-reviewneeds every task done and every numbered criterion proven. - REVIEW → DONE —
spec-approve, after you said yes; underGITFLOWit merges the story into its base. Withauto_approveon, implement approves for you; it is off by default. - REVIEW → TODO —
spec-request-changessends it back with your findings attached; it is planned again before the next start.
Human in the loop, always#
The agent proposes; you decide. Inception asks before it scopes, a deviation from a mockup is asked before it is coded, a change that contradicts an earlier decision is asked before it is written, and review is a person. Every explicit choice you make lands in decisions.yaml, with its date — so the agent of next month does not undo what you chose today.
php artisan larapilot:decision-check --topic="payment provider" --value="PayPal"
# → on 7 September you chose Stripe: confirm PayPal supersedes itThe team#
The skills speak as thirty personas — not costumes, but review lenses, each with a stake in the decision. You will meet a few of them in every conversation:
| Persona | Lens |
|---|---|
| 💎 Mark | Product manager — scope, MoSCoW, trade-offs; owns the edits of the PRD |
| 🔎 Tom | Requirements — Definition of Ready, EARS criteria, open questions |
| 📐 John | Architecture — SOLID, queries without N+1, APIs, queues |
| 🔧 Alex | Full-stack developer — the code, one commit per task |
| 🧪 Anne | Tests — the strategy the testing setting asks for |
| 🛡️ Robert | Code review — quality, Git hygiene, plan adherence |
| 🔐 Lars | Security — OWASP, the GO / NO-GO of the ship gate |
| 🎨 Elise · ✨ Joe | UX and frontend — the design system, WCAG 2.2 AA, dark mode |
| 💰 Aurora · 🧭 Jennifer · 🏢 Benjamin | FinOps, strategy, and market — the economics and the quote |
| 📒 Lucille | The quiet one — the ledger of time and tokens, deadlines, schedule drift |
| 🤖 Zoey | AI runtime — sharper prompts, smaller context, sub-agents when they pay |
The others — Sebastian for prior art, Sabrine for legacy porting, Matt for integrations, Mike for data, Violet for GDPR, Emma for SEO, Sarah for Git and the shell, and more — step in when the conversation needs them.
Everything is a file#
There is no Larapilot server and no database. What the team decides is YAML and Markdown in .larapilot/, committed with the code it describes, reviewed in the same pull request, and as easy to git blame as a controller. A few paths that matter:
| Path | What it holds |
|---|---|
config.yaml | The settings of the project — committed, so the team shares one mode |
docs/PRD.md | The product contract, with permanent ids: FR-, J-, NFR-, Q- |
backlog.yaml · specs/US-XXX.yaml | The stories and their status |
plans/US-XXX-plan.yaml | The technical plan and the tasks of a story |
decisions.yaml | Append-only journal of your choices |
docs/test-results/US-XXX/ | The verification table and the evidence of each story |
docs/devs/ | Developer domain docs — why the code is built the way it is |
releases.yaml · roadmap.yaml | Versions, and how the public reads them |
mockups/ · design-systems/ | The screens to build, and the systems they are drawn in |
usage/ledger.jsonl | Time and tokens per skill and story |
brand/ · client-materials/ · legacy/ | What you hand the skills before they start |
auth.yaml | Dashboard users and the hash of the API token — git-ignored |
Developer domain docs#
The one place where the reasoning behind the code survives the session that wrote it. /larapilot-implement keeps a Markdown file per domain — billing.md, bookings.md — with its purpose, its runtime flow, the technical design, the choices made and the ones rejected, the invariants, and the traps. Always in English, updated in the same commit that changes the behaviour, never deferred: a task is not done while its domain doc describes the old code.
A small context for the agent#
Every skill opens with one command, php artisan larapilot:context {skill}. It answers the settings, the paths, what the PRD says about the project, and exactly the rule files that skill needs — compiled for your settings, so an agent under GITFLOW never reads the rules of the other two modes. A session token keeps the next skill of the same conversation from loading a file twice.
| Loaded by the agent | v4 | v5+ |
|---|---|---|
/larapilot-implement, first skill of a conversation | ~43k tokens | ~15k |
/larapilot-review after implement, same conversation | ~38k | ~2k |
| triage → bug → plan → implement → review, one conversation | ~173k | ~31k |
Traceability#
- Decision journal (
decision_log, on) — every explicit choice, with a regression guard before it is contradicted. - Method traceability (
traceability_comments, on) — every method Larapilot creates or changes gets PHPDoc naming its story and task, with@seeto the domain doc. - Code history (
code_history, off) — the files and lines each task touched:larapilot:code-history --file=app/Models/Booking.php.