Claude Skill

craft-fortrabbit

fortrabbit (fortrabbit.com): managed PHP hosting with a Craft CMS software template. Covers git push-to-deploy through the fortrabbit GitHub App, the template's build and post-deploy commands, the merge deployment strategy with the /config/project replace pattern, the deploy file

LLM Mart · 0 points · 0 views 0 listing impressions 0 install-command copies
Download michtio-craftcms-claude-skills-skills_craft-fortrabbit-93e135d.zip · 21 KB

Install

skills CLI npx skills add https://github.com/michtio/craftcms-claude-skills/tree/main/skills/craft-fortrabbit
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install michtio-craftcms-claude-skills@llmmart
Git git clone https://github.com/michtio/craftcms-claude-skills.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole michtio/craftcms-claude-skills collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

fortrabbit — Managed PHP Hosting for Craft CMS

Craft Version of This Project

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

Companion Skills — Load When Needed

  • 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).

Documentation

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.

What's Different on fortrabbit vs Self-Hosted

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
Mail Local MTA No sendmail: PHP mail() fails. Use SMTP or a transactional mail provider

fortrabbit Tooling

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's own agent plugin bundles the MCP server with a general fortrabbit skill for non-Craft tasks (any PHP app, SSH, troubleshooting): https://github.com/fortrabbit/agent-skills.
  • Never ask for a password or API token in the chat: sign-in happens in the browser, and the database password stays in the dashboard.

Common Pitfalls (Cross-Cutting)

  • A deploy file without 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.
  • A deploy file that drops the post-deploy commands. A key left out falls back to "no commands", not to the dashboard. Without the project config apply, schema changes stop reaching the environment. See references/deploy-and-environments.md.
  • Making schema or plugin changes on the environment. 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.
  • Updating Craft in the control panel. CRAFT_ALLOW_UPDATES=false hides updates. Run ddev craft update all locally, commit composer.json and composer.lock, push.
  • Importing the local database without the local security key. The template generates a random 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.
  • Running the queue in web requests. Craft's default AJAX queue runner and on-demand image transforms block the PHP processes that serve the site, ending in 504s or memory kills. Run the queue in a worker job and set CRAFT_RUN_QUEUE_AUTOMATICALLY=false on that environment. See references/limitations.md.
  • Expecting assets in git. Uploads stay on the environment; git deployment only goes up. Sync volumes with rsync. See references/asset-storage.md.
  • OAuth keys for MCP. [5.12+] Craft's MCP server and OAuth GraphQL need signing keys. Prefer ENV vars CRAFT_OAUTH_PRIVATE_KEY / CRAFT_OAUTH_PUBLIC_KEY. See references/deploy-and-environments.md and the craft-mcp skill.
  • Fixing code over SSH. Files changed over SSH are overwritten by the next git deployment. Fix in git.

Reference Files

Read the relevant reference file(s) for your task. Multiple files often apply.

Task examples:

  • "Deploy a Craft site to fortrabbit" → deploy-and-environments.md
  • "Move the deployment settings into the repo" → deploy-and-environments.md (deploy file)
  • "Why did my uploads disappear after a deployment?" → deploy-and-environments.md + asset-storage.md
  • "Set up staging and production" → deploy-and-environments.md
  • "Which ENV vars does Craft need on fortrabbit?" → deploy-and-environments.md
  • "Push the local database to fortrabbit" → database.md
  • "Connect TablePlus to the fortrabbit database" → database.md
  • "Sync assets between local and fortrabbit" → asset-storage.md
  • "Use S3 for assets instead" → asset-storage.md
  • "Set up local development for a fortrabbit project" → local-dev.md
  • "Pull production content to DDEV" → local-dev.md
  • "Run the Craft queue / image transforms in the background" → limitations.md
  • "Why does PHP mail() not work?" → limitations.md
  • "Can I install ImageMagick, wkhtmltopdf or a global npm package?" → limitations.md

Load 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
Files (craftcms-claude-skills)
  • references
    • asset-storage.md 4.2 KB
      Loading…
    • database.md 4.3 KB
      Loading…
    • deploy-and-environments.md 12.4 KB
      Loading…
    • limitations.md 6 KB
      Loading…
    • local-dev.md 3.3 KB
      Loading…
  • scripts
    • craft-version.sh 7.6 KB
      Loading…
  • SKILL.md 11.6 KB
    ---
    name: craft-fortrabbit
    description: "fortrabbit (fortrabbit.com): managed PHP hosting with a Craft CMS software template. Covers git push-to-deploy through the fortrabbit GitHub App, the template's build and post-deploy commands, the merge deployment strategy with the /config/project replace pattern, the deploy file (.fortrabbit/deploy.yml) and its replace-by-default trap, CRAFT_* ENV vars mapped from FORTRABBIT_DB_*, production settings (admin changes and updates off), persistent storage for asset volumes and rsync sync, MySQL over an SSH tunnel, the queue and image transforms in a worker job, crons, platform limits (no root, no sendmail), and DDEV local development."
    when_to_use: "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)."
    allowed-tools: "Bash(sh ${CLAUDE_SKILL_DIR}/scripts/craft-version.sh)"
    ---
    
    # fortrabbit — Managed PHP Hosting for Craft CMS
    
    ## Craft Version of This Project
    
    !`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`.
    
    ## Companion Skills — Load When Needed
    
    - **`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).
    
    ## Documentation
    
    Authoritative sources (fortrabbit's own docs):
    
    - Every page, listed: https://docs.fortrabbit.com/llms.txt
    - Craft CMS guides: https://docs.fortrabbit.com/guides/craft-cms
    - Platform: https://docs.fortrabbit.com/platform
    - CLI, MCP server and agent skills: https://docs.fortrabbit.com/platform/automation
    
    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.
    
    ## What's Different on fortrabbit vs Self-Hosted
    
    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 |
    | Mail | Local MTA | No `sendmail`: PHP `mail()` fails. Use SMTP or a transactional mail provider |
    
    ## fortrabbit Tooling
    
    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's own agent plugin bundles the MCP server with a general `fortrabbit` skill for non-Craft tasks (any PHP app, SSH, troubleshooting): https://github.com/fortrabbit/agent-skills.
    - Never ask for a password or API token in the chat: sign-in happens in the browser, and the database password stays in the dashboard.
    
    ## Common Pitfalls (Cross-Cutting)
    
    - **A deploy file without `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`.
    - **A deploy file that drops the post-deploy commands.** A key left out falls back to "no commands", not to the dashboard. Without the project config apply, schema changes stop reaching the environment. See `references/deploy-and-environments.md`.
    - **Making schema or plugin changes on the environment.** `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`.
    - **Updating Craft in the control panel.** `CRAFT_ALLOW_UPDATES=false` hides updates. Run `ddev craft update all` locally, commit `composer.json` and `composer.lock`, push.
    - **Importing the local database without the local security key.** The template generates a random `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`.
    - **Running the queue in web requests.** Craft's default AJAX queue runner and on-demand image transforms block the PHP processes that serve the site, ending in 504s or memory kills. Run the queue in a worker job and set `CRAFT_RUN_QUEUE_AUTOMATICALLY=false` on that environment. See `references/limitations.md`.
    - **Expecting assets in git.** Uploads stay on the environment; git deployment only goes up. Sync volumes with rsync. See `references/asset-storage.md`.
    - **OAuth keys for MCP.** [5.12+] Craft's MCP server and OAuth GraphQL need signing keys. Prefer ENV vars `CRAFT_OAUTH_PRIVATE_KEY` / `CRAFT_OAUTH_PUBLIC_KEY`. See `references/deploy-and-environments.md` and the `craft-mcp` skill.
    - **Fixing code over SSH.** Files changed over SSH are overwritten by the next git deployment. Fix in git.
    
    ## Reference Files
    
    Read the relevant reference file(s) for your task. Multiple files often apply.
    
    **Task examples:**
    
    - "Deploy a Craft site to fortrabbit" → `deploy-and-environments.md`
    - "Move the deployment settings into the repo" → `deploy-and-environments.md` (deploy file)
    - "Why did my uploads disappear after a deployment?" → `deploy-and-environments.md` + `asset-storage.md`
    - "Set up staging and production" → `deploy-and-environments.md`
    - "Which ENV vars does Craft need on fortrabbit?" → `deploy-and-environments.md`
    - "Push the local database to fortrabbit" → `database.md`
    - "Connect TablePlus to the fortrabbit database" → `database.md`
    - "Sync assets between local and fortrabbit" → `asset-storage.md`
    - "Use S3 for assets instead" → `asset-storage.md`
    - "Set up local development for a fortrabbit project" → `local-dev.md`
    - "Pull production content to DDEV" → `local-dev.md`
    - "Run the Craft queue / image transforms in the background" → `limitations.md`
    - "Why does PHP `mail()` not work?" → `limitations.md`
    - "Can I install ImageMagick, wkhtmltopdf or a global npm package?" → `limitations.md`
    
    Load 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 |
    

Comments (0)

Sign in to join the conversation.

No comments yet.

Reviews (0)

No reviews yet.