/craftcms-claude-skills:craft-fortrabbitfrom craftcms-claude-skills
Guides deploying and running Craft CMS on fortrabbit managed PHP hosting. Covers git push-to-deploy, the deploy file, ENV vars, persistent storage, MySQL over SSH, worker jobs, and DDEV local dev.
Ships in craftcms-claude-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
!sh ${CLAUDE_SKILL_DIR}/scripts/craft-version.sh
If no Craft version line appears above, establish the version before any version-specific advice: craftcms/cms in composer.lock for a site, the lowest version the craftcms/cms constraint in composer.json allows for a plugin, or ask. Then check it against the version tags in this skill ([5.10+], [changed 5.12], [seomatic 5.1+]).
Reference for running Craft CMS 5 on fortrabbit (fortrabbit.com), a managed PHP hosting platform. Covers git deployment and the Craft software template, the deploy file, ENV vars, the persistent storage and asset volumes, MySQL access over SSH, the Craft queue and image transforms in worker jobs, platform limits, and local development with DDEV.
This skill is scoped to Craft on fortrabbit specifically: what differs from running Craft yourself on Forge or bare metal. For generic Craft deployment, see the craftcms skill's deployment.md. For Craft Cloud, see craft-cloud; for Servd, see servd.
craftcms — When the topic intersects plugin or module PHP (queue jobs, filesystem code, console commands).craft-site — When the topic intersects templates (transforms in Twig, {% cache %} tags).ddev — For local development; fortrabbit has no first-party local environment, DDEV is the common local stack.craft-plugins — For Blitz, Imager-X or other plugin configuration on a fortrabbit site.craft-mcp: for Craft's MCP server, OAuth server and personal access tokens [5.12+] (signing keys as env vars on this host).Authoritative sources (fortrabbit's own docs):
Any page is available as Markdown: insert /raw after the host and append .md, e.g. https://docs.fortrabbit.com/raw/guides/craft-cms/setup.md.
Current values beat this skill. Template commands, ENV vars and the deploy file format change over time. Read the live values before writing a deploy file or changing settings, fetching the docs pages with WebFetch: the environment itself (get_environment or frbit environments get <env> --json), the Craft setup page above (rendered from fortrabbit's platform definitions), and the deploy file page. See references/deploy-and-environments.md. Last verified against the docs on 2026-11-06.
Each row is a place self-hosted habits will mislead you.
| Concern | Self-hosted | fortrabbit |
|---|---|---|
| Objects | One server | An app has one or more environments (en-xxxxxx), e.g. production and staging. Each has its own code, database, ENV vars, SSH access and default domain <env>.<region>.frbit.app |
| Deploy | Whatever you've wired | Git push to the connected branch, through the fortrabbit GitHub App. Composer runs in the build; post-deploy commands run once the code is live |
| Deploy config | Deploy script | The Craft software template sets root path web, build and post-deploy commands, strategy. Edit in the dashboard, or commit a deploy file .fortrabbit/deploy.yml |
craft up | Add it to the deploy script | Template post-deploy commands run migrations, project config apply and a cache clear |
| Filesystem | Local disk | Persistent storage: survives deployments and restarts. Local asset volumes work. The merge strategy keeps uploads in place |
| Env vars | .env on the server | Dashboard ENV vars per environment. The template maps CRAFT_DB_* to platform variables ${FORTRABBIT_DB_*}. No .env on the server |
| Production config | Yours to set | Template sets CRAFT_DEV_MODE=false, CRAFT_ALLOW_ADMIN_CHANGES=false, CRAFT_ALLOW_UPDATES=false |
| Database | Whatever you installed | MySQL only, one database per environment, reached from inside the environment or over SSH |
| Queue | Daemon via supervisor | Default web-triggered queue. A worker job in the jobs component runs php craft queue/listen |
| Cron | crontab | Cron jobs in the jobs component, configured in the dashboard, times in UTC |
| SSH | Root or sudo | ssh <env>@ssh.<region>.frbit.app, no root, nothing installable at runtime |
| Local MTA | No sendmail: PHP mail() fails. Use SMTP or a transactional mail provider |
fortrabbit has three first-party routes besides the dashboard. Use them to look up IDs, read deployment logs and change ENV vars instead of asking the user to copy values out of the dashboard.
| Task | MCP server | frbit CLI |
|---|---|---|
| Find the app and environment of this repo | list_git_repositories, list_environments | frbit environments list --json |
| Read an environment's settings and ENV vars | get_environment | frbit environments get <env> --json |
Change ENV vars (CRAFT_*, PRIMARY_SITE_URL) | update_environment | frbit environments variables update |
| Restart after an ENV var change | – | frbit environments restart <env> |
| Deploy the latest commit again | – | frbit environments deploy <env> |
| Log of a failed build or post-deploy command | get_deployment_logs | frbit deployments logs <deployment> |
Tool names and flags change with new releases: the MCP tools describe their own arguments, and frbit <group> --help lists the current subcommands. Setup, sign-in and CI tokens: https://docs.fortrabbit.com/platform/automation.
fortrabbit skill for non-Craft tasks (any PHP app, SSH, troubleshooting): https://github.com/fortrabbit/agent-skills.strategy. Without the key the deployment uses replace, also when the dashboard was set to merge. Every local asset volume is then deleted on the next deployment unless it is in excludePatterns. Write strategy: merge and the /config/project replace pattern into the file. See references/deploy-and-environments.md.references/deploy-and-environments.md.CRAFT_ALLOW_ADMIN_CHANGES=false blocks them, and the next deployment applies the project config from git over them. Change locally, commit config/project, push. See references/deploy-and-environments.md.CRAFT_ALLOW_UPDATES=false hides updates. Run ddev craft update all locally, commit composer.json and composer.lock, push.CRAFT_SECURITY_KEY; data encrypted locally can't be read with it. Copy the local key into the environment's ENV vars. See references/database.md.CRAFT_RUN_QUEUE_AUTOMATICALLY=false on that environment. See references/limitations.md.references/asset-storage.md.CRAFT_OAUTH_PRIVATE_KEY / CRAFT_OAUTH_PUBLIC_KEY. See references/deploy-and-environments.md and the craft-mcp skill.Read the relevant reference file(s) for your task. Multiple files often apply.
Task examples:
deploy-and-environments.mddeploy-and-environments.md (deploy file)deploy-and-environments.md + asset-storage.mddeploy-and-environments.mddeploy-and-environments.mddatabase.mddatabase.mdasset-storage.mdasset-storage.mdlocal-dev.mdlocal-dev.mdlimitations.mdmail() not work?" → limitations.mdlimitations.mdLoad only the reference files your task needs.
| Reference | Scope | ~Lines |
|---|---|---|
references/deploy-and-environments.md | Where to read current values, apps and environments, the GitHub App, the Craft template, merge strategy and the /config/project replace pattern, the deploy file, ENV vars and platform variables, production settings, updates and major upgrades | ~185 |
references/database.md | MySQL per environment, credentials via platform variables, dump and import over SSH, SSH tunnel for clients, security key and table prefix, backups | ~80 |
references/asset-storage.md | Persistent storage, local volumes and .gitignore, rsync and SFTP sync, S3 volumes, exclude patterns with replace | ~90 |
references/local-dev.md | DDEV config for a fortrabbit project, ddev auth ssh, pulling the database and volumes down, multi-environment config with CRAFT_ENVIRONMENT | ~75 |
references/limitations.md | No root, jobs component (worker for the queue, crons), heavy binaries in jobs only, image transforms, mail, PDF, SSH rate limit, and the repo detection signals | ~90 |
House rules: no AI or tool attribution and no co-author trailers in commits, PRs, comments, code or docs; no em dashes in prose; US spelling; no model or vendor names in pack files.
What SKILL.md sets; muted values are Claude Code's defaults
Triggers on: .fortrabbit/deploy.yml (.yaml, .json), FORTRABBIT_DB_HOST, FORTRABBIT_ENVIRONMENT_NAME, *.frbit.app, *.frbit.cloud, ssh.<region>.frbit.app, an en-xxxxxx environment ID, the frbit CLI or fortrabbit MCP server, the fortrabbit jobs component or worker job, deploy or host Craft on fortrabbit. Always use when the project has a .fortrabbit/ deploy file or the task deploys to, hosts on or debugs fortrabbit. Do NOT trigger for Craft Cloud (craft-cloud), Servd (servd), generic Craft deployment on Forge, Ploi or bare metal (craftcms/deployment.md), or DDEV setup unrelated to a fortrabbit project (ddev).
Three short reads, in order
npx claudepluginhub michtio/craftcms-claude-skills --plugin craftcms-claude-skills16 skills in this plugin
/craft-cloudCraft Cloud, Pixel & Tonic's serverless hosting platform for Craft CMS. Covers craft-cloud.yaml, the Build → Migrate → Release deploy pipeline, the craftcms/cloud extension, edge transforms and static caching (cache.rules, ESI), the Cloud S3 filesystem, MySQL 8 / Postgres 15 (no MariaDB, no tablePrefix), the Console command runner and scheduled cron, queue jobs, custom domains, preview environments per branch, limits (ephemeral filesystem, no SSH, no .htaccess, no built-in mail), Cloud-compatible plugins, and self-hosted → Cloud migration./craftcmsCraft CMS 5 plugin and module development in PHP. Covers elements, element queries, services, models, records, controllers, migrations, queue jobs, console commands, field types, events, Twig extensions, widgets, permissions, GraphQL, testing, and debugging./Other plugins' skills for the same job