/craftcms-claude-skills:craft-cloudfrom craftcms-claude-skills
Reference for Craft Cloud, Pixel & Tonic's serverless hosting platform for Craft CMS.
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 Craft Cloud, Pixel & Tonic's serverless hosting platform for Craft CMS. Covers the craft-cloud.yaml config file, the Build → Migrate → Release deploy pipeline, the craftcms/cloud extension, edge image transforms and static caching, the Cloud filesystem, plugin Cloud-compatibility requirements, and self-hosted → Cloud migration.
This skill is scoped to Craft Cloud specifically — what's different on Cloud vs running Craft yourself on Forge, Servd, fortrabbit, or bare metal. For Servd, see the servd skill; for fortrabbit, the craft-fortrabbit skill. For generic Craft deployment (build artifacts, project config sync, atomic deploys on traditional hosts), see the craftcms skill's deployment.md.
craftcms — When the Cloud topic intersects plugin or module PHP work (e.g. App::isEphemeral() guards in services, asset-bundle constraints, queue job design for the 15-minute cap).craft-site — When Cloud intersects front-end templating (ESI islands inside cached pages, edge image transform usage, {% expires %} opt-outs for static caching).ddev — For the local-dev parity recipe (matching PHP/DB versions, simulating the ephemeral filesystem locally).craft-php-guidelines — When editing plugin PHP to add Cloud-compatibility checks.craft-mcp: for Craft's MCP server, OAuth server and personal access tokens [5.12+] (signing keys as env vars on this host).Docs: https://craftcms.com/docs/cloud/ (full source list and verification dates in references/cloud-vs-self-hosted.md).
Platform settings live in craft-cloud.yaml at the repo root; runtime env vars are set in the Craft Console UI, not .env. Git push triggers Build → Migrate → Release (15-min build cap). The filesystem is ephemeral, the database is MySQL 8.0 or Postgres 15 only, queue jobs are auto-processed, cron is hourly at most, image transforms and static caching happen at the edge, there is no SSH, no .htaccess, no built-in mail, and previews are per-branch only. The full comparison table is in references/cloud-vs-self-hosted.md.
One-liners; the long form of each is in references/cloud-vs-self-hosted.md.
App::isEphemeral() guard are lost between requests; use the Path service (getTempPath()/getStoragePath()/getCachePath()). See extension.md, plugin-development.md.storage/. [5.12+] oauth/generate-keys writes to the ephemeral storage/; set CRAFT_OAUTH_PRIVATE_KEY / CRAFT_OAUTH_PUBLIC_KEY as Console env vars. See extension.md.response, session, cache, mutex, queue, assetManager, the DB connection) in config/app*.php can return HTTP 500 on every request. Attach to the response instance (EVENT_AFTER_PREPARE) from a module instead. No db.php, no CRAFT_DB_*. A local HTTP 200 proves nothing: the extension only runs on Cloud. See extension.md, database.md.tablePrefix is unsupported: run php craft db/drop-table-prefix before migrating (migration.md). MariaDB is not offered.deploy-pipeline.md.plugin-development.md.{{ csrfInput() }} on cacheable pages forces a cookie; it renders async with asyncCsrfInputs [5.1+] (force-enabled on Cloud). See caching-and-edge.md.cookies: [CraftSessionId] under nested cache: → rules:. See caching-and-edge.md..htaccess / nginx config is ignored: use redirects: / rewrites: in craft-cloud.yaml (config-file.md).Craft::info/warning/error() (extension.md).sendmail won't deliver: configure SMTP/Postmark/SES/Resend (limitations.md, Mail).assets-and-transforms.md).429/503: sign with $CRAFT_CLOUD_SIGNING_KEY (RFC 9421) and retry with Retry-After backoff; never expose the key client-side. See headless.md.robots.txt Disallow: / and sleep after ~15 min idle, by design (limitations.md, Environments).deploy-pipeline.md).Read the relevant reference file(s) for your task. Multiple files often apply.
Task examples:
config-file.md + deploy-pipeline.md + extension.mdcraft-cloud.yaml for PHP and Node versions" → config-file.mdcraft-cloud.yaml" → config-file.md (Redirects and Rewrites)deploy-pipeline.mddeploy-pipeline.md (Build-time vs runtime variables)deploy-pipeline.md (Reserved runtime variables)php craft cloud/up do?" → extension.md (cloud/up internals)caching-and-edge.mdcaching-and-edge.mdassets-and-transforms.md + migration.mdplugin-development.mdplugin-development.md (Ephemeral filesystem) + extension.md (App::isEphemeral)domains.mdcommands-and-cron.md (hourly minimum)commands-and-cron.md (Console command runner)limitations.md (Mail) + craftcms/email.mdlocal-dev.mdmigration.mdlimitations.md (Plugin compatibility — community knowledge)headless.mdheadless.md (Request signing)deploy-pipeline.md (Artifact URLs)deploy-pipeline.md (Private Composer packages)limitations.md (Environments)cloud-vs-self-hosted.mdLoad only the reference files your task needs.
| Reference | Scope | ~Lines |
|---|---|---|
references/cloud-vs-self-hosted.md | Full Cloud vs self-hosted comparison table, long form of every cross-cutting pitfall, documentation sources and verification dates | 69 |
references/config-file.md | craft-cloud.yaml keys: php-version, node-version, npm-script, artifact-path, app-path, webroot, cache: → rules:, redirects, rewrites | 156 |
references/deploy-pipeline.md | Build → Migrate → Release, triggers, 15-min build cap, build-time vs runtime vars, reserved vars you must NOT set, artifact URLs (cloud.artifactUrl(), @artifactBaseUrl), private Composer packages, failed-migration rollback | 210 |
references/headless.md | Bot detection 429/503, RFC 9421 signing with $CRAFT_CLOUD_SIGNING_KEY, Retry-After backoff, Next.js/Nuxt/Astro, getRequestSigner() | 107 |
references/extension.md | craftcms/cloud package: bootstrap, App::isEphemeral(), Path service, cloud.esi(), cloud/up internals, asset-bundle CDN publisher, binary response upload, log target, OAuth keys | 256 |
references/assets-and-transforms.md | Cloud filesystem (assets/ subpath), aws s3 sync, edge transform limits (70MB / 100MP / 12,000px, AVIF 1,600px) | 87 |
references/database.md | MySQL 8.0 / Postgres 15, tablePrefix ban, auto-wired connection, backups (30-day retention, 200GB cap), restore | 111 |
references/caching-and-edge.md | Static caching rules (pattern, query-string, cookies, first-match wins), ignored tracking params, logged-in users, opt-outs ({% expires %}, setNoCacheHeaders()), Commerce cart, asyncCsrfInputs [5.1+], cloud.esi(...), tag invalidation | 347 |
references/domains.md | DNS (_cf-custom-hostname TXT, CNAME to edge.craft.cloud, apex), preview URLs, auto SSL, www not auto-added | 104 |
references/commands-and-cron.md | Console command runner (255-char, 15-min caps), scheduled commands (hourly, max 5 per env), auto-processed queue, batched jobs | 141 |
references/plugin-development.md | Cloud-compatible plugin checklist: asset bundles, App::isEphemeral(), logging, queue budgeting, cookie-free design, csrfInput(), sendContentAsFile(), Craft 4.6+ minimum | 302 |
references/migration.md | Self-hosted → Cloud cutover: audit, db/drop-table-prefix, aws s3 sync, DNS cutover, project config | 132 |
references/local-dev.md | DDEV parity: PHP/DB versions, extension no-op locally, CRAFT_EPHEMERAL, S3 emulation | 145 |
references/limitations.md | Unsupported features and hard caps (6MB response, 16KB header, 60s request, 200MB upload), environments facts, plugin compatibility matrix (community knowledge), mail, logging | 239 |
references/review-checklist.md | Code review checklist for Cloud projects, by severity: CSRF tokens in cached pages, runtime asset publishing, tablePrefix, ephemeral file writes, file logging, queue batching | ~42 |
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.
references/assets-and-transforms.md (opens in a new tab)references/caching-and-edge.md (opens in a new tab)references/cloud-vs-self-hosted.md (opens in a new tab)references/commands-and-cron.md (opens in a new tab)references/config-file.md (opens in a new tab)references/database.md (opens in a new tab)references/deploy-pipeline.md (opens in a new tab)references/domains.md (opens in a new tab)references/extension.md (opens in a new tab)references/headless.md (opens in a new tab)references/limitations.md (opens in a new tab)references/local-dev.md (opens in a new tab)references/migration.md (opens in a new tab)references/plugin-development.md (opens in a new tab)references/review-checklist.md (opens in a new tab)scripts/craft-version.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Triggers on: craft-cloud.yaml, craftcms/cloud package, cloud.esi(), php craft cloud/up, App::isEphemeral(), CRAFT_EPHEMERAL, edge.craft.cloud, preview.craft.cloud, CRAFT_CLOUD_PROJECT_ID, CRAFT_CLOUD_SIGNING_KEY request signing (RFC 9421), AssetsFs, ESI islands, deploy or migrate to Craft Cloud, headless 429/503, cloud.artifactUrl(), @artifactBaseUrl. Always use when the project has a craft-cloud.yaml or the task deploys to, hosts on or debugs Craft Cloud. Do NOT trigger for Servd (servd), fortrabbit (craft-fortrabbit) or generic Craft deployment on Forge/bare metal (craftcms/deployment.md). Do NOT trigger for general DDEV local dev unrelated to Cloud parity.
Three short reads, in order
PHP, PostgreSQL, MySQL, AWS
16 skills in this plugin
/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./craft-content-modelingCraft CMS 5 content modeling: sections, entry types, fields, Matrix, relations, project config, and content architecture strategy. Covers choosing section types, designing entry types and field layouts, selecting field types, Matrix and nested entries, relations and eager loading, and multi-site propagation./craft-fortrabbitfortrabbit (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.npx claudepluginhub michtio/craftcms-claude-skills --plugin craftcms-claude-skillsOther plugins' skills for the same job