chrisvasey/statamic-boost
Statamic Boost adds Statamic-specific context, tools, and guidelines to Laravel Boost, helping AI coding agents understand Antlers, collections, fields, and addon APIs so they can scaffold, debug, and maintain Statamic sites more accurately.
chrisvasey/statamic-boost is a dev-only bridge that teaches Laravel Boost (and the AI assistants wired into it) about Statamic: it ships offline Statamic 5/6 documentation, generates AI guidelines for your project's fields, fieldtypes and Antlers usage, and registers Statamic-aware MCP tooling.
composer require --dev chrisvasey/statamic-boost
php artisan boost:install # or: php artisan boost:update on an existing Boost setup
Where to look first:
.ai/guidelines/ or boost/guidelines/) — this is the artifact the assistant actually reads. Open the Statamic file and skim it before you trust any AI output; if the Antlers examples look wrong, nothing downstream will be right.config/boost.php / the Boost install manifest) — confirm the Statamic environment is recorded correctly, especially if you pass --env to Statamic commands.docs/ or resources/ directory — they're pinned to a specific upstream Statamic version and are the source of truth for what the assistant "knows".php artisan list | grep -E 'boost|mcp' — confirms which Boost/MCP commands your installed combination actually exposes.First use case: after boost:install, ask your assistant to scaffold a new fieldset with a custom fieldtype and its Antlers template. Compare the output against the generated guideline file. That single loop tells you whether the integration is wired correctly and whether the docs match your Statamic version — if either is off, you'll see it immediately rather than three files deep in a refactor.
v1.3.0 is a good baseline to start on: it explicitly supports Boost 2 installations on laravel/mcp ^1.0.1, and CI now covers fresh installs on PHP 8.5 / Laravel 13 / Statamic 6.
Commit the generated guidelines. Treat AI guidelines like migrations — regenerate deliberately, review the diff, commit. This gives you a reviewable record of what your assistant was told and makes guideline drift visible in PRs. If you'd rather not commit, at minimum regenerate in CI and diff against a cached copy to catch unexpected changes after a composer update.
Regenerate after every content-model change. New fieldtype, renamed field handle, changed Antlers partial convention, new collection — regenerate and commit in the same PR as the change. Stale guidelines are worse than no guidelines because the assistant argues with you confidently.
Layer project guidelines on top of the package's output. The package generates Statamic-domain knowledge (fieldtypes, Antlers syntax, docs). Keep your house rules — naming conventions, where partials live, which addons are banned — in a separate, hand-written guideline file that the generator never touches. This survives regeneration and is the extension point you'll actually use.
Wire it into CI as an installation smoke test. The release notes added fresh-install CI upstream; mirror that cheaply in your own pipeline: install the package on a throwaway app, run the installer, assert the exit code is 0 and the expected guideline files exist. v1.3.0 fixed installer failures not being returned correctly, so exit-code checks are now meaningful — before this, a broken install could look green.
- run: composer require --dev chrisvasey/statamic-boost
- run: php artisan boost:install --no-interaction
- run: test -f .ai/guidelines/statamic.md
Use the MCP server for day-to-day work, the files for review. Point your editor's MCP client at the Boost MCP process so the assistant can query Statamic's schema live (collections, fieldsets, blueprints) rather than guessing. Keep the generated markdown as the human-auditable artifact and as the fallback when the MCP process isn't running.
Schedule the docs updates. Since v1.3.0, documentation refreshes ship as weekly minor releases. A weekly composer update chrisvasey/statamic-boost --with-dependencies in dev keeps the offline docs aligned with upstream Statamic without you thinking about it — and because it's a require-dev package, that churn never reaches production.
Multi-environment setups: verify after every rebuild. Boost rewrites its configuration when it regenerates; v1.3.0 fixed the case where your selected Statamic environment was lost. If you run boost:install against a non-default environment (staging, a multisite config, a .env.statamic variant), check the config immediately after any regeneration step in CI or local setup scripts.
--dev and nothing else. Shipping it to production drags MCP tooling and a docs tree into your deploy artifact. If a shared host or a naive deploy script runs composer install --no-dev, the package correctly vanishes; make sure nothing in your app references generated guideline paths at runtime.laravel/mcp ^1.0.1" — meaning older releases could hard-conflict during composer update. If you're pinned to an older tag and see an MCP constraint conflict, upgrading to v1.3.0 is the fix, not --ignore-platform-reqs.$STATAMIC_ENV costs nothing and catches regressions on the next upgrade.set -e scripts and CI steps could pass on a broken install. If you have existing CI that ran the installer without checking the code, it wasn't actually testing anything — revisit it.composer update. When the assistant cites Antlers behavior that contradicts current Statamic docs, the package is stale, not the model.1.x bump — they're documentation changes, not API changes.How can I help you explore Laravel packages today?