### JavaScript/Node fetch example Source: https://github.com/andreapollastri/larapilot/blob/main/resources/larapilot/integrations.md Server-side only example using fetch with the Authorization header. Never ship the token to a browser bundle. ```javascript const base = `${process.env.LARAPILOT_BASE_URL}/larapilot/api`; const headers = { Authorization: `Bearer ${process.env.LARAPILOT_API_TOKEN}` }; const board = await fetch(`${base}/board`, { headers }).then(r => r.json()); ``` -------------------------------- ### curl examples for Larapilot API Source: https://github.com/andreapollastri/larapilot/blob/main/resources/larapilot/integrations.md Shell examples for GET and POST requests to the Larapilot API. Assumes LARAPILOT_API_TOKEN and LARAPILOT_BASE_URL are exported. The POST example writes an internal feedback comment. ```bash curl -sS -H "Authorization: Bearer $LARAPILOT_API_TOKEN" \ "$LARAPILOT_BASE_URL/larapilot/api/board" curl -sS -H "Authorization: Bearer $LARAPILOT_API_TOKEN" \ "$LARAPILOT_BASE_URL/larapilot/api/diagnostics?no_logs=1" # write endpoint (internal feedback) curl -sS -X POST \ -H "Authorization: Bearer $LARAPILOT_API_TOKEN" \ -H 'Content-Type: application/json' \ -d '{"author":"CI","message":"Nightly smoke passed."}' \ "$LARAPILOT_BASE_URL/larapilot/api/specs/US-001/comments" ``` -------------------------------- ### Install and Test Commands Source: https://github.com/andreapollastri/larapilot/blob/main/tools/docs-demo/fernway/README.md Run these commands in order to install dependencies, set up the environment, migrate and seed the database, and run the test suite. ```bash composer install cp .env.example .env && php artisan key:generate php artisan migrate --seed composer test ``` -------------------------------- ### Bootstrap 5 CSS and JS Setup Commands Source: https://github.com/andreapollastri/larapilot/blob/main/resources/larapilot/design-systems/bootstrap-5/README.md Install Bootstrap, Popper, and Bootstrap Icons via npm, then import Bootstrap SCSS in app.scss and include Vite directives in the layout. Import Bootstrap in app.js to enable JavaScript components. ```bash npm i bootstrap @popperjs/core bootstrap-icons ``` ```scss @import "bootstrap/scss/bootstrap"; ``` ```blade @vite(['resources/sass/app.scss', 'resources/js/app.js']) ``` ```javascript import 'bootstrap' ``` -------------------------------- ### Install Studio on Ubuntu server Source: https://github.com/andreapollastri/larapilot/blob/main/docs/index.html One-line installer for Studio on a fresh Ubuntu 24.04 or 26.04 server. The wizard prompts for the domain, DNS record, first administrator, and git provider, then installs the newest release at studio.. ```bash wget -qO- https://raw.githubusercontent.com/andreapollastri/studio/refs/heads/main/installer/install.sh | sudo bash ``` -------------------------------- ### Install Studio on a fresh Ubuntu server Source: https://github.com/andreapollastri/larapilot/blob/main/README.md Run this command on a fresh Ubuntu 24.04 or 26.04 server to install Studio. Requires sudo access and a wildcard DNS record. ```bash # a fresh Ubuntu 24.04 or 26.04 server wget -qO- https://raw.githubusercontent.com/andreapollastri/studio/refs/heads/main/installer/install.sh | sudo bash ``` -------------------------------- ### Dry run before → after output example Source: https://github.com/andreapollastri/larapilot/blob/main/resources/boost/skills/larapilot-schedule/SKILL.md Example output shown after running the re-plan with --dry-run, displaying the before and after summary lines for the schedule, epics, and milestones. ```text 📒 Lucille: re-plan — 6 specs · 3 tasks · 2 epics · 2 milestones Forecast end 2027-10-05 → 2027-09-30 · alerts 3 → 1 · findings 17 → 4 EP-001 2027-09-27 → 2027-02-12 (deadline 2027-02-26, holds) Beta 2026-11-15 → 2026-12-04 ``` -------------------------------- ### GitHub Actions CI example Source: https://github.com/andreapollastri/larapilot/blob/main/resources/larapilot/integrations.md Stores the token as an encrypted secret and passes it through the environment. Runs a curl command to fetch the board snapshot and save it to board.json. ```yaml - name: Larapilot delivery snapshot env: LARAPILOT_API_TOKEN: ${{ secrets.LARAPILOT_API_TOKEN }} LARAPILOT_BASE_URL: https://staging.acme.test run: | curl -sS --fail -H "Authorization: Bearer $LARAPILOT_API_TOKEN" \ "$LARAPILOT_BASE_URL/larapilot/api/board" > board.json ``` -------------------------------- ### Install Larapilot with Composer and Artisan Source: https://github.com/andreapollastri/larapilot/blob/main/README.md Run these commands to install Larapilot as a dev dependency and scaffold the .larapilot/ workspace. larapilot:install also adds Larastan level 5+ and Laravel Pint if missing, and boost:install publishes guidelines and skills. ```bash composer require andreapollastri/larapilot --dev php artisan larapilot:install php artisan boost:install ``` -------------------------------- ### GET /specs (Pagination) Source: https://github.com/andreapollastri/larapilot/blob/main/resources/larapilot/integrations.md Paginated listing of specs. Supports page and per_page query parameters, returning pagination metadata in the response body. ```APIDOC ## [GET] /specs ### Description Paginated listing of specs. Supports page and per_page query parameters, returning pagination metadata in the response body. ### Method GET ### Endpoint /specs ### Parameters #### Query Parameters - **page** (integer) - Optional - 1-based page number. - **per_page** (integer) - Optional - Number of items per page (1-200, default 50). ### Response #### Success Response (200) - **total** (integer) - Total number of items. - **page** (integer) - Current page. - **per_page** (integer) - Items per page. - **total_pages** (integer) - Total number of pages. ``` -------------------------------- ### Start Laravel Development Server Source: https://github.com/andreapollastri/larapilot/blob/main/docs/index.html Starts the Laravel development server to serve the dashboard at `/larapilot`. The dashboard is part of your Laravel app and requires no separate service. ```bash php artisan serve ``` -------------------------------- ### Brownfield adoption workflow Source: https://github.com/andreapollastri/larapilot/blob/main/README.md Adopt an existing Laravel app already in production. Starts with the artisan install command, then adoption, spec, and the per-story loop. ```text php artisan larapilot:install → /larapilot-adopt → /larapilot-spec → (per-story loop) ``` -------------------------------- ### Verify Larapilot Installation Source: https://github.com/andreapollastri/larapilot/blob/main/docs/index.html Checks that the installation is correct and reports any missing or out-of-date skill copies. Run this after installation to confirm everything is in place. ```bash php artisan larapilot:doctor --human ``` -------------------------------- ### Enable GitLab integration Source: https://github.com/andreapollastri/larapilot/blob/main/resources/larapilot/integrations.md Enable the GitLab integration after installing and authenticating the GitLab CLI (glab). Works with gitlab.com and self-hosted GitLab when glab is configured for that host. Ensure origin points at a GitLab repository. ```bash php artisan larapilot:settings-set --gitlab=YES ``` -------------------------------- ### PHP Laravel HTTP client example Source: https://github.com/andreapollastri/larapilot/blob/main/resources/larapilot/integrations.md Configures a Laravel HTTP client with the API base URL and token, then fetches the board and diagnostics endpoints. Uses withToken to send Authorization: Bearer and acceptJson for JSON responses. ```php use Illuminate\Support\Facades\Http; $larapilot = Http::baseUrl(rtrim(env('LARAPILOT_BASE_URL'), '/').'/larapilot/api') ->withToken(env('LARAPILOT_API_TOKEN')) // sends Authorization: Bearer … ->acceptJson(); $board = $larapilot->get('/board')->throw()->json(); $diag = $larapilot->get('/diagnostics', ['no_logs' => 1])->throw()->json(); ``` -------------------------------- ### Adopt an existing app with /larapilot-adopt Source: https://github.com/andreapollastri/larapilot/blob/main/docs/index.html Reconstructs the product spec from an existing codebase. Requires installing the package and running the installer first. The agent reads the repository and you only answer gap questions the code can't settle. ```text composer require andreapollastri/larapilot --dev php artisan larapilot:install /larapilot-adopt ``` -------------------------------- ### Scaffold Larapilot Workspace Source: https://github.com/andreapollastri/larapilot/blob/main/docs/index.html Runs the Larapilot installer to scaffold the `.larapilot/` workspace and publish the `/larapilot-*` skills. Also sets up Larastan and Pint if not already present. ```bash php artisan larapilot:install ``` -------------------------------- ### Install Cipi Agent via Composer Source: https://github.com/andreapollastri/larapilot/blob/main/resources/larapilot/runtime-ship-2.md Install the official Laravel companion for Cipi. Run this command after adding the package, then commit, push, and perform one manual deploy before the webhook route is live. ```bash composer require cipi/agent ``` -------------------------------- ### Example Lucille overview response Source: https://github.com/andreapollastri/larapilot/blob/main/resources/boost/skills/larapilot-usage/SKILL.md Example of the Lucille overview answer format, showing headline numbers, top categories, hot specs, next deadline, and estimated entries count. ```text 📒 Lucille: Scope = full ledger · 42 entries · 18.5 h · 240k tokens. Top: implementation 52% · planning 21% · analysis 14%. Hot specs: US-003 (4.2 h), US-001 (3.1 h). Next deadline: Go-live 2026-09-01 (26 days, on_track). 12/42 entries marked estimated. ``` -------------------------------- ### Install checkpoint scanner with composer require Source: https://github.com/andreapollastri/larapilot/blob/main/resources/boost/skills/larapilot-settings/SKILL.md Run this command in the target app to install the security scanner when the user selects YES for the security scan step. The scanner is not bundled with Larapilot; if missing, /larapilot-review will stop and ask for it. ```bash composer require --dev andreapollastri/checkpoint ``` -------------------------------- ### Run pre-ship hook with larapilot:hook-run Source: https://github.com/andreapollastri/larapilot/blob/main/resources/boost/skills/larapilot-ship/SKILL.md Runs the 'before' hook for the ship phase at Phase 0 start. A refusal is NO-GO with its reason. ```bash php artisan larapilot:hook-run ship --phase=before ``` -------------------------------- ### Start a release with larapilot:release-cut Source: https://github.com/andreapollastri/larapilot/blob/main/resources/larapilot/runtime-release.md Creates release/x.y.z from develop (or creates develop from main/master if missing), checks it out, and sets in_progress. Use when release_mode is YES and git_mode is GITFLOW or GITFLOW_PUSH. ```bash php artisan larapilot:release-cut --semver=x.y.z ``` -------------------------------- ### Empty State Example Source: https://github.com/andreapollastri/larapilot/blob/main/resources/larapilot/design-systems/modern/components.md Displays an empty state with a title, description, and a primary action button. Use when there is no data to show, and provide a clear call-to-action. ```html

No alerts yet

Alerts watch any metric and ping Slack the minute something drifts.

``` -------------------------------- ### Hackly setup terminal commands Source: https://github.com/andreapollastri/larapilot/blob/main/docs/index.html Commands to set Hackly as the security provider and check the security status. Run after configuring the .env file. ```bash php artisan larapilot:settings-set --security-provider=hackly php artisan larapilot:security-status ``` -------------------------------- ### Invoke the error handling skill in the editor Source: https://github.com/andreapollastri/larapilot/blob/main/docs/index.html Type this command in the editor to start the /larapilot-error skill. The skill guides you through tracker setup, error review, and triage. ```text /larapilot-error ``` -------------------------------- ### Push envelope (excerpt) Source: https://github.com/andreapollastri/larapilot/blob/main/docs/index.html Example JSON envelope from a successful push, showing created stories with refs and URLs, summary counts, empty errors, and the link file path. ```json "stories": [ { "code": "US-001", "action": "created", "ref": "ENG-42", "url": "https://linear.app/acme/issue/ENG-42", "tasks": { "created": 4, "updated": 0, "removed": 0, "unchanged": 0 } }, … ], "summary": { "created": 12, "updated": 0, "unchanged": 0, "tasks_created": 17, … }, "errors": [], "link_file": ".larapilot/tracker.yaml" ``` -------------------------------- ### Enable security scan with composer and artisan Source: https://github.com/andreapollastri/larapilot/blob/main/docs/index.html Install the optional checkpoint package and enable the security scan setting. The scan runs static checks plus composer/npm audit. ```bash composer require --dev andreapollistri/checkpoint php artisan larapilot:settings-set --security-scan=YES ``` -------------------------------- ### Build and shoot commands Source: https://github.com/andreapollastri/larapilot/blob/main/tools/docs-demo/README.md Run the demo build, serve, screenshot, and stop scripts in sequence. Requires composer install, PHP 8.4+, Python 3, Node 24, Google Chrome, git, rsync, and network for OSV.dev check. The build directory must be outside the repository. serve-all.sh uses ports 8841 (local), 8842 (staging), 8843 (Hackly stub). shots.mjs prints HTTP status, sideways scroll, console errors, and failed requests per job. ```bash tools/docs-demo/bin/build.sh "$TMPDIR/fernway-demo" # never inside the repository ``` ```bash tools/docs-demo/bin/serve-all.sh "$TMPDIR/fernway-demo" # 8841 local · 8842 staging · 8843 Hackly stub ``` ```bash node tools/docs-demo/shots.mjs tools/docs-demo/shots.json /tmp/shots --login=maya:fernway-demo-maya ``` ```bash node tools/docs-demo/shots.mjs tools/docs-demo/og-card.json /tmp/shots --format=png # after copying board.webp ``` ```bash tools/docs-demo/bin/stop.sh "$TMPDIR/fernway-demo" ``` -------------------------------- ### Install Checkpoint scanner as dev dependency Source: https://github.com/andreapollastri/larapilot/blob/main/resources/larapilot/integrations.md Installs the Checkpoint security scanner in the target application as a dev dependency. Required before enabling the security scan gate. ```bash composer require --dev andreapollistri/checkpoint ``` -------------------------------- ### Install AdminLTE 4 and dependencies Source: https://github.com/andreapollastri/larapilot/blob/main/resources/larapilot/design-systems/adminlte/README.md Install AdminLTE 4, Bootstrap Icons, and Source Sans 3 font via npm. Required before importing the CSS and JS in your Laravel Vite setup. ```bash npm i admin-lte@^4.10 bootstrap-icons @fontsource/source-sans-3 ``` -------------------------------- ### GET /larapilot/api/openapi.json Source: https://github.com/andreapollastri/larapilot/blob/main/resources/larapilot/integrations.md Fetches the OpenAPI contract for the Larapilot API. Requires authentication once a token exists. ```APIDOC ## GET /larapilot/api/openapi.json ### Description Fetches the OpenAPI contract for the Larapilot API. ### Method GET ### Endpoint /larapilot/api/openapi.json ### Authentication - **Authorization** (header) - Required - Bearer token (e.g., `Authorization: Bearer `) - **X-Larapilot-Token** (header) - Required - Alternative token header (e.g., `X-Larapilot-Token: `) ### Request Example ```bash curl -sS -H "X-Larapilot-Token: $LARAPILOT_API_TOKEN" \ "$LARAPILOT_BASE_URL/larapilot/api/openapi.json" > larapilot-openapi.json ``` ### Response #### Success Response (200) - Returns the OpenAPI specification as JSON. #### Error Responses - **401** - Missing or invalid token. - **503** - Token required but none exists (fail-closed). ``` -------------------------------- ### Start Laravel app and open /larapilot dashboard Source: https://github.com/andreapollastri/larapilot/blob/main/docs/index.html Run `php artisan serve` and open the dashboard at the displayed URLs depending on your local environment (Herd/Valet or Sail). If routes 404, check APP_ENV and the Larapilot flags. ```bash php artisan serve # → http://127.0.0.1:8000/larapilot # Herd or Valet # → http://your-app.test/larapilot # Sail # → http://localhost/larapilot ``` -------------------------------- ### Simple layout with drawn credentials (fi-simple-*) Source: https://github.com/andreapollastri/larapilot/blob/main/resources/larapilot/design-systems/filament/components.md HTML for a mock authentication screen (login) using `fi-simple-layout` and `.mock-form` classes. Credentials are drawn as static text, not real inputs, and the sign-in button links to a dashboard. ```html

Sign in

Email address Sign in
``` -------------------------------- ### GET /larapilot/api/diagnostics Source: https://github.com/andreapollastri/larapilot/blob/main/resources/larapilot/integrations.md Retrieves diagnostics information. Supports an optional query parameter to exclude logs. Requires authentication. ```APIDOC ## GET /larapilot/api/diagnostics ### Description Retrieves diagnostics information from the Larapilot API. ### Method GET ### Endpoint /larapilot/api/diagnostics ### Authentication - **Authorization** (header) - Required - Bearer token (e.g., `Authorization: Bearer `) - **X-Larapilot-Token** (header) - Required - Alternative token header (e.g., `X-Larapilot-Token: `) ### Parameters #### Query Parameters - **no_logs** (integer) - Optional - Set to 1 to exclude logs from the response. ### Request Example ```bash curl -sS -H "Authorization: Bearer $LARAPILOT_API_TOKEN" \ "$LARAPILOT_BASE_URL/larapilot/api/diagnostics?no_logs=1" ``` ### Response #### Success Response (200) - Returns diagnostics data as JSON. #### Error Responses - **401** - Missing or invalid token. - **503** - Token required but none exists (fail-closed). ``` -------------------------------- ### GET /larapilot/api/board Source: https://github.com/andreapollastri/larapilot/blob/main/resources/larapilot/integrations.md Retrieves the board data from the Larapilot API. Requires authentication via a bearer token or the X-Larapilot-Token header. ```APIDOC ## GET /larapilot/api/board ### Description Retrieves the board data from the Larapilot API. ### Method GET ### Endpoint /larapilot/api/board ### Authentication - **Authorization** (header) - Required - Bearer token (e.g., `Authorization: Bearer `) - **X-Larapilot-Token** (header) - Required - Alternative token header (e.g., `X-Larapilot-Token: `) ### Request Example ```bash curl -sS -H "Authorization: Bearer $LARAPILOT_API_TOKEN" \ "$LARAPILOT_BASE_URL/larapilot/api/board" ``` ### Response #### Success Response (200) - Returns board data as JSON. #### Error Responses - **401** - Missing or invalid token. - **503** - Token required but none exists (fail-closed). ``` -------------------------------- ### php artisan larapilot:security-repos Source: https://github.com/andreapollastri/larapilot/blob/main/resources/larapilot/integrations.md Lists repositories from the scanner, optionally searching, and allows selecting which repository this project corresponds to. ```APIDOC ## [CLI] php artisan larapilot:security-repos ### Description Lists repositories from the scanner, optionally searching, and allows selecting which repository this project corresponds to. ### Method CLI ### Command php artisan larapilot:security-repos [--search=] · --use={id} · --forget ### Parameters #### Options - **--search** (string) - Optional - Search repositories. - **--use** (string) - Optional - Use repository with given ID. - **--forget** (flag) - Optional - Forget the repository association. ``` -------------------------------- ### Enable security scan gate Source: https://github.com/andreapollastri/larapilot/blob/main/resources/larapilot/integrations.md Enables the security scan gate in Larapilot settings. Must be run after installing the Checkpoint package. ```bash php artisan larapilot:settings-set --security-scan=YES ``` -------------------------------- ### Enable public roadmap with settings-set Source: https://github.com/andreapollastri/larapilot/blob/main/docs/index.html Serves the Roadmap at a public, unguessable link even in production. Default is `NO`; turning it off stops the link immediately. ```bash php artisan larapilot:settings-set --public-roadmap=YES ``` -------------------------------- ### Input wrapper variants (fi-input-wrp) Source: https://github.com/andreapollastri/larapilot/blob/main/resources/larapilot/design-systems/filament/components.md Shows five input wrapper examples: prefix with label, suffix with calendar icon, native select, searchable select button, and textarea. Use classes like fi-input-wrp-prefix, fi-input-wrp-suffix, fi-inline, fi-select-input, fi-select-input-btn, and fi-fo-textarea. States include fi-focused, fi-invalid, and fi-disabled. ```html
$
``` -------------------------------- ### Trigger bug resolution with /larapilot-bug Source: https://github.com/andreapollastri/larapilot/blob/main/docs/index.html Use this command to start the bug resolution workflow. The example reports an SSO login failure on Safari, which maps to done story US-003. ```text /larapilot-bug "SSO login fails on Safari" ``` -------------------------------- ### Fetch OpenAPI contract with curl Source: https://github.com/andreapollastri/larapilot/blob/main/resources/larapilot/integrations.md Fetches the OpenAPI contract from /larapilot/api/openapi.json. Requires the token once one exists; uses the X-Larapilot-Token header. ```bash curl -sS -H "X-Larapilot-Token: $LARAPILOT_API_TOKEN" \ "$LARAPILOT_BASE_URL/larapilot/api/openapi.json" > larapilot-openapi.json ``` -------------------------------- ### Larapilot Frontend Setup and Scan Commands Source: https://github.com/andreapollastri/larapilot/blob/main/docs/index.html Run in the Laravel terminal to link the external frontend repo and scan it. The first command sets the path, the second scans the workspace, and the third selects the projects. ```bash php artisan larapilot:frontend-set --path=/absolute/path/to/acme-frontend ``` ```bash php artisan larapilot:frontend-scan ``` ```bash php artisan larapilot:frontend-set --project=clinic --project=clinic-admin ``` -------------------------------- ### Manual Deploy Commands for Custom/VPS Source: https://github.com/andreapollastri/larapilot/blob/main/resources/larapilot/runtime-ship-2.md Manual deployment steps for custom/VPS: pull, install dependencies, run migrations, optimize, and restart queue workers. ```bash git pull && composer install --no-dev && php artisan migrate --force && php artisan optimize && supervisorctl restart all ``` -------------------------------- ### GET /larapilot/api/diagnostics?no_logs=1 response Source: https://github.com/andreapollastri/larapilot/blob/main/docs/index.html Example response from the diagnostics API endpoint when called with no_logs=1. Shows the structure of the returned JSON, including app info, checks, and healthy status. ```json { "collected_at": "2026-07-24T16:00:00+00:00", "app": { "name": "My App", "env": "local", "debug": true, "laravel_version": "13.x", "php_version": "8.4.0" }, "checks": { "storage_writable": { "ok": true, "detail": "…" }, "cache": { "ok": true, "detail": "…" }, "database": { "ok": true, "detail": "…" }, "queue": { "ok": true, "detail": "…" }, "log_file": { "ok": true, "detail": "…" } }, "healthy": true } ``` -------------------------------- ### Generate Backstage bundle with larapilot:backstage-export --write Source: https://github.com/andreapollastri/larapilot/blob/main/resources/boost/skills/larapilot-backstage/SKILL.md Run the CLI to generate catalog-info.yaml, mkdocs.yml, and .larapilot/techdocs/ files. Add --force only when the user accepts overwriting existing files; add --no-techdocs when the user answered NO to TechDocs in step 1. ```bash php artisan larapilot:backstage-export --write ``` -------------------------------- ### GET /larapilot/api/* (Rate Limited) Source: https://github.com/andreapollastri/larapilot/blob/main/resources/larapilot/integrations.md All API endpoints under /larapilot/api/* are rate limited per IP. Exceeding the limit returns HTTP 429 with a Retry-After header. ```APIDOC ## [GET] /larapilot/api/* ### Description All API endpoints under /larapilot/api/* are rate limited per IP. Exceeding the limit returns HTTP 429 with a Retry-After header. ### Method GET ### Endpoint /larapilot/api/* ### Parameters #### Query Parameters - **larapilot.api.rate_limit** (string) - Optional - Format "max,minutes", default "120,1". Set LARAPILOT_API_RATE_LIMIT=0 to disable. ### Response #### Success Response (200) - **Retry-After** (string) - Present when rate limit exceeded. #### Error Response (429) - **Retry-After** (string) - Seconds until limit resets. ``` -------------------------------- ### Enable GitHub integration Source: https://github.com/andreapollastri/larapilot/blob/main/resources/larapilot/integrations.md Enable the GitHub integration after installing and authenticating the GitHub CLI (gh). Ensure origin points at a github.com repository. Probe with larapilot:github-status to verify. ```bash php artisan larapilot:settings-set --github=YES ``` -------------------------------- ### Run stack command with --only=database,pins Source: https://github.com/andreapollastri/larapilot/blob/main/resources/boost/skills/larapilot-db-upgrade/SKILL.md Used in step 0 to see the current engine, version, support state, connection, and number of pinned database images. Output is a single line with placeholders for engine, version, support state, date, connection name, and count. ```bash php artisan larapilot:stack --only=database,pins ``` -------------------------------- ### Enable project docs with settings-set Source: https://github.com/andreapollastri/larapilot/blob/main/docs/index.html Obligates Albert to maintain the handbook in `.larapilot/docs/handbook/` with bootstrap and incremental updates. Default is `NO`. ```bash php artisan larapilot:settings-set --project-docs=YES ``` -------------------------------- ### GET /board, /specs, /specs/{code}, /prd, /metrics (Conditional Requests) Source: https://github.com/andreapollastri/larapilot/blob/main/resources/larapilot/integrations.md These endpoints return an ETag. Send it back as If-None-Match to receive HTTP 304 when nothing has changed, ideal for polling. ```APIDOC ## [GET] /board, /specs, /specs/{code}, /prd, /metrics ### Description These endpoints return an ETag. Send it back as If-None-Match to receive HTTP 304 when nothing has changed, ideal for polling. ### Method GET ### Endpoint /board, /specs, /specs/{code}, /prd, /metrics ### Parameters #### Header Parameters - **If-None-Match** (string) - Optional - ETag value from previous response. ### Response #### Success Response (200) - **ETag** (string) - Entity tag for conditional requests. #### Not Modified (304) - **ETag** (string) - Same as previous. ``` -------------------------------- ### Run decision-log with topic Source: https://github.com/andreapollastri/larapilot/blob/main/resources/boost/skills/larapilot-db-upgrade/SKILL.md Used in step 6 to record the database engine decision. ```bash php artisan larapilot:decision-log --topic="database engine" ``` -------------------------------- ### larapilot:stack and upgrade-check commands Source: https://github.com/andreapollastri/larapilot/blob/main/README.md Run the stack overview and upgrade checks for Laravel, PHP, and database targets. Use --report to only produce a readiness report, --offline to skip Packagist, and --db-from/--php-from when composer.json lacks the current version. ```bash php artisan larapilot:stack # Laravel, PHP, database, packages, frontend, pins — with support windows ``` ```bash php artisan larapilot:upgrade-check --laravel=13 --report ``` ```bash php artisan larapilot:upgrade-check --php=8.4 # --php-from=8.2 when composer.json does not say ``` ```bash php artisan larapilot:upgrade-check --db=pgsql:17 --db-from=mysql:8.0 ``` ```bash php artisan larapilot:upgrade-check --laravel=13 --offline # the lock only, no Packagist ``` -------------------------------- ### GET /larapilot/api/board response JSON Source: https://github.com/andreapollastri/larapilot/blob/main/docs/index.html Example JSON response from the board endpoint. The API returns plain JSON, not the larapilot/v1 CLI envelope. Note that mockup preview URLs are absolute when the mockup route is browsable, and comment writes require comments=YES. ```json { "metrics": { "total": 3, "done": 1, "completion_rate": 33.3, "wip": 1 }, "status_order": ["TODO", "PLANNED", "IN PROGRESS", "REVIEW", "DONE"], "columns": { "TODO": [{ "code": "US-002", "title": "Project Management", "task_progress": { "total": 0, "done": 0 }, "mockups": { "available": false, "screen_count": 0, "screens": [] }, "feedback": { "enabled": true, "available": false, "entry_count": 0, "blocking_count": 0, "writable": true, "entries": [] } }], "DONE": [{ "code": "US-001", "title": "User Registration", "task_progress": { "total": 4, "done": 4 }, "mockups": { "available": true, "screen_count": 2, "entry_url": "https://app.test/mockups/US-001", "screens": [ { "file": "index.html", "label": "Index", "url": "https://app.test/mockups/US-001" }, { "file": "desktop.html", "label": "Desktop", "url": "https://app.test/mockups/US-001/desktop.html" } ] }, "feedback": { "enabled": true, "entry_count": 1, "blocking_count": 0, "writable": true, "entries": [ { "at": "2026-07-15 17:00", "author": "PM", "status": "REVIEW", "body": "Looks good.", "blocks_merge": false } ] } }] }, "workflow": { "todo": "TODO", "planned": "PLANNED", "in_progress": "IN PROGRESS", "review": "REVIEW", "done": "DONE" } } ``` -------------------------------- ### Batch plan and implement stories with /larapilot-autopilot Source: https://github.com/andreapollastri/larapilot/blob/main/docs/index.html Chains plan and implement for multiple user stories, one spec at a time. Under STANDARD or MAX, plan and implement Phase 1 each run in a fresh sub-agent; ECO stays inline. You still run /larapilot-review per spec unless auto_approve is YES. ```text /larapilot-autopilot US-002 US-003 ``` -------------------------------- ### Backstage snapshot JSON excerpt from GET /larapilot/api/backstage Source: https://github.com/andreapollastri/larapilot/blob/main/docs/index.html Example response payload from the Backstage API endpoint showing the snapshot structure with metrics, counts, blocking feedback, and stories. Use this to understand the data shape when polling the portal for many repos. ```json { "entity_ref": "component:default/acme-shop", "metrics": { "total": 12, "done": 5, "completion_rate": 41.7, "total_tasks": 61, "done_tasks": 40 }, "counts_by_status": { "TODO": 5, "PLANNED": 2, "IN PROGRESS": 1, "REVIEW": 1, "DONE": 3 }, "blocking_feedback": { "count": 1, "specs": ["US-003"] }, "stories": [ { "code": "US-001", "title": "Login", "status": "PLANNED", "priority": "HIGH", "points": 3, "tasks": { "total": 2, "done": 0 }, "blocking_feedback": 0, "techdocs_path": "backlog/US-001.md" } ], "links": { "board": "https://staging.acme.test/larapilot", "api": "https://staging.acme.test/larapilot/api" } } ``` -------------------------------- ### Run upgrade-check with --db-from Source: https://github.com/andreapollastri/larapilot/blob/main/resources/boost/skills/larapilot-db-upgrade/SKILL.md Used when the server does not answer, to specify the current engine and version manually. ```bash php artisan larapilot:upgrade-check --db={engine}:{version} --report --db-from={engine}:{version} ``` -------------------------------- ### Typography example: kicker, display, dek, byline, prose, quote, arrowlink Source: https://github.com/andreapollastri/larapilot/blob/main/resources/larapilot/design-systems/new-york/components.md Shows the typographic system for headlines, subheads, bylines, prose columns, pull quotes, and link arrows. Use Didone for headlines and numbers, Helvetica for guiding text. Avoid taxi-colored text in light mode; use `.ny-mark` or `.ny-accent-text` instead. ```html

Dining · Nolita

Ninety covers, one red sauce.

How the flagship on Mulberry Street still makes its gravy at six every morning.

The pots go on before the bread arrives…

…

The sauce is the house. Everything else is furniture.Sal Ferrante, chef
See the menu ``` -------------------------------- ### Run upgrade-check with --db and --report Source: https://github.com/andreapollastri/larapilot/blob/main/resources/boost/skills/larapilot-db-upgrade/SKILL.md Used in step 1 to scan the code, pins, checklist, and criticalities. Pass --db-from when the server does not answer. The output includes criticalities, scan results, checklist, and verdict. ```bash php artisan larapilot:upgrade-check --db={engine}:{version} --report ``` -------------------------------- ### Manage repository selection via artisan commands Source: https://github.com/andreapollastri/larapilot/blob/main/docs/index.html Commands to list, search, select, or forget the Aikido repository. Use --search to filter by name, --use to set the repository by id or exact name, and --forget to revert to the git remote. The choice is stored in .larapilot/aikido.yaml or hackly.yaml (committed). ```bash php artisan larapilot:security-repos # the repositories of the scanner php artisan larapilot:security-repos --search=shop # only the names that hold these letters php artisan larapilot:security-repos --use=12 # this project is repository 12 (or its exact name) php artisan larapilot:security-repos --forget # back to the git remote ``` -------------------------------- ### Probe GitLab integration status Source: https://github.com/andreapollastri/larapilot/blob/main/resources/larapilot/integrations.md Check the GitLab integration status after enabling it. This command verifies the setup and connectivity. ```bash php artisan larapilot:gitlab-status ``` -------------------------------- ### Check release readiness with larapilot:metrics Source: https://github.com/andreapollastri/larapilot/blob/main/resources/boost/skills/larapilot-ship/SKILL.md Provides an overview of release readiness metrics. ```bash php artisan larapilot:metrics ``` -------------------------------- ### Probe GitHub integration status Source: https://github.com/andreapollastri/larapilot/blob/main/resources/larapilot/integrations.md Check the GitHub integration status after enabling it. This command verifies the setup and connectivity. ```bash php artisan larapilot:github-status ``` -------------------------------- ### Enable release mode with settings-set Source: https://github.com/andreapollastri/larapilot/blob/main/docs/index.html Turns on semver release tracking, the `/larapilot-release` skill, release AskQuestion rounds, Gitflow release branches, and the release ship ceremony. Default is `NO`. ```bash php artisan larapilot:settings-set --release-mode=YES ``` -------------------------------- ### Configure security provider and check status Source: https://github.com/andreapollastri/larapilot/blob/main/docs/index.html Set the security provider (hackly, aikido, or none) and check the security status. The provider must be named to turn on findings. ```bash php artisan larapilot:settings-set --security-provider=hackly # or aikido · none php artisan larapilot:security-status ``` -------------------------------- ### Enable Economics with account and economics settings Source: https://github.com/andreapollastri/larapilot/blob/main/docs/index.html Run these Artisan commands to unlock the Economics page. `--account=FREELANCE` sets the account type and `--country`, `--regime`, and `--hourly-rate` configure the economics profile. ```bash php artisan larapilot:settings-set --account=FREELANCE php artisan larapilot:economics-set --country=IT --regime=forfettario_15 --hourly-rate=55 ``` -------------------------------- ### Composer shortcuts for quality gate Source: https://github.com/andreapollastri/larapilot/blob/main/docs/index.html Equivalent Composer shortcuts after `composer install`. `composer lint:check` runs Pint in test mode, `composer analyse` runs PHPStan with a 1G memory limit. ```bash composer lint:check # pint --test composer analyse # phpstan analyse --memory-limit=1G ``` -------------------------------- ### Timeline markup with time-label, timeline-item, and clock icon Source: https://github.com/andreapollastri/larapilot/blob/main/resources/larapilot/design-systems/adminlte/components.md Use this HTML structure to render an AdminLTE timeline. It follows the anatomy: div.timeline > div.time-label > span.text-bg-{color} for the date, plain divs each containing a timeline-icon (with text-bg-{color}) and a div.timeline-item (span.time, h3.timeline-header with a link, timeline-body, timeline-footer with btn-sm). The example ends with a lone clock icon; the SVG timeline-icon gets 7 px padding so the glyph stays 16 px in the 30 px disc. ```html
12 Oct 2026
08:14

PO-20931 arrived at dock 4

26 pallets, 1,180 cartons.
``` -------------------------------- ### Settings Layout and Sticky Actions Example Source: https://github.com/andreapollastri/larapilot/blob/main/resources/larapilot/design-systems/modern/components.md Shows a settings preference section with a title and description on the left, and a card on the right, followed by sticky action buttons with keyboard shortcuts. The sticky actions remain at the bottom of the page. ```html

General

Name and defaults.

…
Cancel
``` -------------------------------- ### Run quality gate with --fix Source: https://github.com/andreapollastri/larapilot/blob/main/docs/index.html Applies Pint formatting, then runs Larastan. Use when you want to automatically fix style issues. ```bash php artisan larapilot:quality --fix ``` -------------------------------- ### Install Filament upgrade package and script Source: https://github.com/andreapollastri/larapilot/blob/main/resources/larapilot/runtime-upgrade-2.md Run this Composer command to install the Filament upgrade package for major version N. It is the first step in upgrading Filament; the script rewrites code and prints Composer commands to run. ```bash composer require filament/upgrade:"^N" --with-all-dependencies --dev ``` -------------------------------- ### Manage repository selection from terminal Source: https://github.com/andreapollastri/larapilot/blob/main/resources/larapilot/integrations.md Commands to list, search, select, or forget the Aikido repository for the workspace. Use --search to filter by name, --use to set the repository by ID or exact name, and --forget to revert to the git remote. The choice is stored in .larapilot/aikido.yaml. ```bash php artisan larapilot:security-repos # the repositories of the workspace php artisan larapilot:security-repos --search=shop # only the names that hold these letters php artisan larapilot:security-repos --use=12 # this project is repository 12 (or its exact name) php artisan larapilot:security-repos --forget # back to the git remote ``` -------------------------------- ### Link the frontend repository with larapilot:frontend-set Source: https://github.com/andreapollastri/larapilot/blob/main/resources/boost/skills/larapilot-frontend-companion/SKILL.md Run once when data.frontend.configured is false. Writes LARAPILOT_FRONTEND_REPO_PATH in .env. The PRD records the repository's name and stack, never the path. ```bash php artisan larapilot:frontend-set --path=/absolute/path/to/fe-repo ```