/agent-skills:migrate-to-cloudcannonfrom agent-skills
Orchestrates a full migration of an existing SSG site (Astro, Hugo, Eleventy, Next.js, Nuxt) to CloudCannon across five phases. Use when onboarding a site to CloudCannon or adding CMS support.
Ships in agent-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.
This skill orchestrates a full migration of an existing SSG site to CloudCannon. It coordinates five phases, delegating domain-specific work to standalone skills that can also be used independently.
Model recommendation: Migrations involve multi-file architectural decisions across five phases. Use a high-reasoning model (not a fast/lightweight one) for best results.
MUST: run the migration as its orchestrator. Read orchestration.md before Phase 1, then dispatch each phase to a subagent and keep the user conversation yourself. On a host without subagents, run the phases yourself in order.
cloudcannon-configuration, cloudcannon-snippets, or cloudcannon-visual-editingmake-site-multilingual, then translate-site. Neither is part of the five phases.| File | Covers |
|---|---|
| SKILL.md (this file) | The five phases, handoff readiness, naming conventions, common mistakes |
| astro/overview.md | Start here for Astro — the per-phase guides |
| hugo/overview.md | Start here for Hugo — the per-phase guides |
| eleventy/overview.md | Start here for Eleventy — the per-phase guides |
| nextjs/overview.md | Start here for Next.js — the per-phase guides |
| nuxt/overview.md | Start here for Nuxt — the per-phase guides |
| audit.md | Shared audit rules — classifying static pages |
| page-building.md | Read when the census sends pages to a pages collection or page builder |
| cc-friendly-conventions.md | Shared-UI treatment table |
| orchestration.md | Running phases in subagents, questions, verification, sizing |
| handoff.md | Closing with the user — who tests what, and what to ask back |
| reading-order.md | Which docs to read in which phase, and when to skip them |
| scripts/README.md | Automation scripts for the deterministic steps |
| SSG | Guide |
|---|---|
| Astro | astro/overview.md |
| Hugo | hugo/overview.md |
| Eleventy | eleventy/overview.md |
| Next.js | nextjs/overview.md |
| Nuxt | nuxt/overview.md |
If the site is being generated as part of this task (e.g. converting from WordPress), read the target SSG's scaffolding conventions before scaffolding — Astro: astro/cc-friendly-conventions.md — it covers the structural choices that make the migration smooth. Once scaffolded, return here and run the migration phases.
Run from the project root:
npx @cloudcannon/cli configure detect-ssg
Use the detected SSG to pick the correct guide above. When it returns other, pick the SSG from the framework in package.json dependencies (nuxt, astro, next, @11ty/eleventy), or from a Hugo config file.
Each SSG guide walks through these in order. Phases that delegate to standalone skills are marked below.
cloudcannon-configuration skill.cloudcannon-snippets skill.cloudcannon-visual-editing skill.Not every site needs all phases. Small sites may skip Phase 3 if content is already well-structured. Phase 4 is optional but high-value.
The phase subagent does steps 1–4; the orchestrator does step 5. See orchestration.md.
in_progress before starting it; mark completed only when the checklist item is satisfied. Do not batch-complete tasks at the end of the phase..cloudcannon/migration/<phase>.md with findings, plus two sections later phases rely on:
Why: checklists catch things agents otherwise skim past — data collections missing from collections_config, data_config entries missing for referenced data files, blog/detail page editables skipped while focusing on page-builder blocks, arrays not linked to structures. Per-item tracking makes the skim visible.
These rows define what must be true before the next phase's subagent starts. Cross-phase fixes (per step 3 above) are still fine.
| After phase | Ready for handoff when… |
|---|---|
| 1. Audit | .cloudcannon/migration/audit.md exists, contains the census table, and lists every collection + every page route. Sizing thresholds (orchestration.md § Sizing) have been evaluated; if tripped, .cloudcannon/migration/plan.md exists. |
| 2. Configuration | cloudcannon.config.yml validates against the published JSON schema (no IDE red squigglies). Every collection in the audit has a collections_config entry; every referenced data file has a data_config entry. .cloudcannon/migration/configuration.md written. |
| 3. Content | All structural content changes from Phase 2 are reflected in the files. npm run build (or project equivalent) succeeds. .cloudcannon/migration/content.md written. |
| 4. Visual editing | Every audit census row with a yes in Needs editable region? has been wired or has a documented justification for not being wired. Every component used inside a wrapped section can re-render — registered (Astro: registerComponents.ts) or resolvable (Hugo: a partial; Eleventy: a Liquid include — Nunjucks sections use primitive regions only; Next.js and Nuxt: an entry in componentMap.ts). .cloudcannon/migration/visual-editing.md written. |
| 5. Build and test | Production build succeeds locally. User has run their CloudCannon-side verification (preview, inline edit, save-to-git). .cloudcannon/migration/build.md written. |
Deterministic migration steps are automated as scripts in scripts/. Run these before or during the relevant phase.
All written to .cloudcannon/migration/ (under .cloudcannon/ so the CLI doesn't detect the folder as a collection): one file per phase (audit.md, configuration.md, content.md, visual-editing.md, build.md), plus plan.md if the migration is sectioned. See the per-phase workflow above for the gates that consume each file.
Follow existing project conventions when present. Otherwise:
kebab-case for filescamelCase for JavaScript and JSONsnake_caseFor specific architectural decisions and config-syntax mistakes, see:
| Excuse | Reality |
|---|---|
| "This site is simple enough to skip the audit" | The audit catches structural issues early. Skipping it means discovering problems mid-configuration. |
| "I'll do the checklist at the end" | Read checklists BEFORE starting each phase. They tell you what to aim for. |
| "Content restructuring can wait" | If a missing field blocks configuration, add it now. Phases are sequential, not siloed. |
| "Visual editing is optional so I'll skip it" | It's the highest-value phase for editors. Only skip if the user explicitly says so. |
| "The build passes so we're done" | A passing build doesn't mean the editor works. The user must verify in CloudCannon. |
"I'll call the homepage file home.md — it's more descriptive" | CloudCannon resolves the URL from the slug; home.md with url: "/[slug]/" → /home/. Use the SSG's index filename so the slug collapses to / — Astro: index.md; Hugo: content/_index.md; Eleventy: index.md in the input directory; Next.js: content/pages/index.md, read by app/page.tsx or pages/index. |
| "It's hardcoded, so it's developer-only" | If an editor can see it on the page, they must be able to edit it. The mechanism depends on the page: shared UI (CTA banners, footers, share blocks, author cards) → data file; pages whose sections editors add, remove or reorder → page-builder pages collection entry; long-form prose page → default schema in the pages collection; one-off page whose structure stays with the developer → data-editable="source". See cc-friendly-conventions.md § Shared-UI treatment table and page-building.md § When to reach for a page builder. |
| "This page is unique so it should be source-editable" | Uniqueness isn't the test. Page builder is the default; source editables need every condition in page-building.md § When to reach for a page builder. |
"I'll make a single-entry homepage collection" | Use one pages collection with index.md as one entry. Add our-team.md, about.md, etc. as more entries. CloudCannon collections support multiple schemas per collection — via schemas: config, and in Astro also via Zod z.union in the content config. See ../cloudcannon-configuration/schemas.md. |
| "Page builder is overkill for these few pages" | Page builder is the default when the project owns its layouts and has more than one unique-layout page. Pages a theme renders keep the theme's model — see audit.md § Classifying static pages. The cost is a catch-all route plus a block dispatcher — Astro: [...slug].astro + BlockRenderer; Hugo: a range over content_blocks in the page layout; Eleventy: a for loop over content_blocks in the layout; Next.js: app/[slug]/page.tsx or pages/[slug] + a Blocks renderer over blockMap. All are mechanical. The benefit is editors can add new pages without engineering. |
astro/audit.md (opens in a new tab)astro/build.md (opens in a new tab)astro/cc-friendly-conventions.md (opens in a new tab)astro/content.md (opens in a new tab)astro/overview.md (opens in a new tab)astro/page-building.md (opens in a new tab)audit.md (opens in a new tab)build.md (opens in a new tab)cc-friendly-conventions.md (opens in a new tab)content.md (opens in a new tab)eleventy/audit.md (opens in a new tab)eleventy/build.md (opens in a new tab)eleventy/content.md (opens in a new tab)eleventy/overview.md (opens in a new tab)eleventy/page-building.md (opens in a new tab)handoff.md (opens in a new tab)hugo/audit.md (opens in a new tab)hugo/build.md (opens in a new tab)hugo/content.md (opens in a new tab)hugo/overview.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub cloudcannon/agent-skills --plugin agent-skills11 skills in this plugin
/brainstormingStructured design dialogue before CloudCannon work that has more than one sensible answer — a migration's editability tradeoffs, how to model a collection or page builder, restructuring content or config, or an ambiguous "make this work with CloudCannon". Explores intent and constraints, then presents a design for approval before implementation. Not for single well-defined tasks, clear bug fixes, or a detailed spec./cloudcannon-bookshopUse when a CloudCannon site uses Bookshop — `*.bookshop.yml` files, `@bookshop/*` packages, `_bookshop_name` keys, `bookshop:live`, or `partial "bookshop"` calls or `{% bookshop %}` tags. Covers how Bookshop works, maintaining a site that stays on it, and migrating it to editable regions./cloudcannon-cliUse when running the CloudCannon CLI — logging in, listing or creating sites, reading and writing files on a hosted site, triggering and inspecting builds, changing a site's build configuration, reading form submissions, or finding out which command and flags exist for a task./cloudcannon-configurationUse when configuring a site for CloudCannon for any of the following. Download the JSON schemas before writing any configuration (see the top of SKILL.md).
- Setting up cloudcannon.config.yml or .cloudcannon/initial-site-settings.json - Generating a baseline with the CloudCannon CLI - Adding or modifying Collections, Inputs, Structures, or Select Data - Setting up Structures for Array and Object Inputs - Configuring Collection URLs - Scheduling builds to publish future-dated content (_schedule.txt) - Configuring a site in a monorepo, or several sites in one repository - Troubleshooting missing fields or Input types/cloudcannon-dev-serverUse when running a CloudCannon site locally with `cloudcannon dev` — starting the local editing loop so the user can edit in the CloudCannon editor and see the site rebuild, choosing the build command per SSG, and reading the `/__api` surface the server exposes./cloudcannon-sdkUse when calling the CloudCannon API from code — constructing a client, finding a site or organisation UUID, reading or writing files on a hosted site programmatically, triggering and inspecting builds, or reaching a CloudCannon endpoint the CLI has no command for (DAMs, backups, sync history, site scans, screenshots, provider connections, copying or deleting a site).Other plugins' skills for the same job