Skip to content

tomrcc/agent-tooling

Repository files navigation

CloudCannon Agent Skills

Agent skills that help AI coding agents migrate existing SSG sites to CloudCannon -- a git-based CMS. Copy the skills into your project, open it in your AI coding agent, and ask it to migrate your site.

Prerequisites

  • An AI coding agent that supports skills (e.g. an agent mode in your IDE)
  • An existing SSG site (see supported SSGs)
  • A CloudCannon account (for final verification)

Supported SSGs

SSG Status
Astro Supported

More SSGs are planned. Each SSG has its own directory within the relevant skills containing SSG-specific guidance.

Available skills

The tooling is split across composable skills that can be used together or independently.

Skill Purpose When to use
migrating-to-cloudcannon Full migration orchestrator Migrating a site to CloudCannon end-to-end (audit, configure, content, visual editing, build)
cloudcannon-configuration CloudCannon config setup Setting up cloudcannon.config.yml, collections, inputs, structures, or the CloudCannon CLI
cloudcannon-snippets Snippet configuration Configuring MDX components or inline HTML for CloudCannon's Content Editor
cloudcannon-visual-editing Visual Editor support Adding editable regions so page content can be edited inline in CloudCannon's Visual Editor
brainstorming Structured design exploration Exploring intent, requirements, and tradeoffs before implementation

For a full migration, start with migrating-to-cloudcannon -- it orchestrates the other skills at the right time. The standalone skills (cloudcannon-configuration, cloudcannon-snippets, cloudcannon-visual-editing) are useful when you only need one piece, e.g. "add visual editing to my existing CloudCannon site".

Getting started

  1. Copy the .ai/skills/ directory from this repo into your project's agent-skills directory (e.g. .ai/skills/, .claude/skills/, or .cursor/skills/ depending on your tool)
  2. Open your project in your AI coding agent
  3. Ask the agent to migrate your site to CloudCannon

The agent picks up skills automatically based on their trigger descriptions in SKILL.md. For a full migration, something like "migrate this site to CloudCannon" is enough to get started.

How it works

A full migration runs through five phases:

  1. Audit -- Analyze the site's content structure, components, routing, and build pipeline
  2. Configuration -- Generate and customize CloudCannon config files (delegates to cloudcannon-configuration and optionally cloudcannon-snippets)
  3. Content -- Restructure content files if needed so they're CMS-friendly
  4. Visual editing -- Add editable regions for inline editing in CloudCannon's Visual Editor (delegates to cloudcannon-visual-editing)
  5. Build and test -- Validate the migration works end-to-end

Each phase has a verification checklist. The agent reads docs just-in-time during each phase rather than front-loading everything. Deterministic steps are automated as scripts to save tokens and improve consistency.

Not every site needs all phases. Small sites may skip content restructuring. Visual editing is optional but high-value.

Contributing

Repo structure

.ai/
  rules/                              # Agent rules for developing the skills (not shipped)
  skills/
    migrating-to-cloudcannon/         # Migration orchestrator
    cloudcannon-configuration/        # Config skill (standalone)
    cloudcannon-snippets/             # Snippets skill (standalone)
    cloudcannon-visual-editing/       # Visual editing skill (standalone)
    brainstorming/                    # Design exploration skill

templates/                            # Test sites for validating the skills
  <name>/
    pristine/                         # Untouched original (never modify)
    migrated/                         # Agent works here

Template workflow

Skills are developed and tested by running migrations against real site templates:

  1. Add a template: npm run add-template -- <name> <repo-url>
  2. Ask an agent to migrate templates/<name>/migrated/ using the skills
  3. Review the result and update skill docs based on what you learn
  4. Test locally: npm run fog-template -- <name> (builds and launches Fog Machine for local CloudCannon testing)
  5. To start fresh, delete migrated/ and copy pristine/ again

Key conventions

  • Scripts first -- Anything deterministic and repetitive should be a script, not an agent task. Saves tokens and improves consistency.
  • Living documents -- Skills and reference docs are actively maintained. Agents are expected to update them when they discover new patterns or edge cases.
  • Just-in-time reading -- Agents read docs as needed during each phase rather than loading everything upfront. The skills are structured to support this.
  • No peeking at previous migrations -- Completed migrations exist in templates/ but agents must never read other templates' migrated/ directories. If the skill docs are insufficient, that's a gap to fix in the docs.

For a detailed walkthrough of how agents traverse the skill files, see GUIDE.md.

About

agent-tooling

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors