agentleFS
michtiomichtio/craftcms-claude-skills/skills/craft-fortrabbit/SKILL.md

craft-fortrabbit

Skill90 starsChanged 4 months agoMITView on GitHub

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.

  • Reads credentials
  • Commits and pushes

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every page, listed: https://docs.fortrabbit.com/llms.txt

    line 32
  2. Distinctive:

    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.

    line 76
  3. Distinctive:

    Read the relevant reference file(s) for your task.

    line 92

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.

ConcernSelf-hostedfortrabbit
ObjectsOne serverAn 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
DeployWhatever you've wiredGit 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 configDeploy scriptThe 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 upAdd it to the deploy scriptTemplate post-deploy commands run migrations, project config apply and a cache clear
FilesystemLocal diskPersistent storage: survives deployments and restarts. Local asset volumes work. The merge strategy keeps uploads in place
Env vars.env on the serverDashboard ENV vars per environment. The template maps CRAFT_DB_* to platform variables ${FORTRABBIT_DB_*}. No .env on the server
Production configYours to setTemplate sets CRAFT_DEV_MODE=false, CRAFT_ALLOW_ADMIN_CHANGES=false, CRAFT_ALLOW_UPDATES=false
DatabaseWhatever you installedMySQL only, one database per environment, reached from inside the environment or over SSH
QueueDaemon via supervisorDefault web-triggered queue. A worker job in the jobs component runs php craft queue/listen
CroncrontabCron jobs in the jobs component, configured in the dashboard, times in UTC
SSHRoot or sudossh <env>@ssh.<region>.frbit.app, no root, nothing installable at runtime
MailLocal MTANo 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.

TaskMCP serverfrbit CLI
Find the app and environment of this repolist_git_repositories, list_environmentsfrbit environments list --json
Read an environment's settings and ENV varsget_environmentfrbit environments get <env> --json
Change ENV vars (CRAFT_*, PRIMARY_SITE_URL)update_environmentfrbit 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 commandget_deployment_logsfrbit 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.

ReferenceScope~Lines
references/deploy-and-environments.mdWhere 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.mdMySQL 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.mdPersistent storage, local volumes and .gitignore, rsync and SFTP sync, S3 volumes, exclude patterns with replace~90
references/local-dev.mdDDEV config for a fortrabbit project, ddev auth ssh, pulling the database and volumes down, multi-environment config with CRAFT_ENVIRONMENT~75
references/limitations.mdNo 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

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.