agentleFS
chatquillchatquill/claude-code-websites/.claude/skills/add-cms/SKILL.md

add-cms

Skill1 starsChanged 24 days agoMITView on GitHub

Adds a headless CMS (Sanity, Payload, Strapi, Contentful) or MDX content: content model, typed queries, draft preview, webhook revalidation, images and SEO fields. Use for marketing pages, blogs, docs, landing pages or any content the founder should edit without code.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If stack.cms is null, ask with trade-offs:

    line 23
  2. Very specific:

    Ask: stories (recommended) or direct implementation.

    line 52

≈ “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

Add CMS

Lets non-developers edit content safely while pages stay static and fast.

Inputs

  • project.yaml → stack.cms, stack.frontend, i18n.locales
  • docs/content/content-strategy.md and docs/content/sitemap.md (page types)

Phases

Phase 1: Choose

If stack.cms is null, ask with trade-offs:

  • MDX in the repo: free, versioned, developer-edited
  • Sanity: hosted studio, real-time preview, GROQ
  • Payload: self-hosted in your Next.js app and DB
  • Strapi: self-hosted, REST/GraphQL
  • Contentful: hosted, enterprise-friendly, pricier ADR (template adr), then config-set.sh stack.cms=<value> after approval.

Phase 2: Content model

content-lead + cms-specialist derive types from the sitemap: page, post, author, category, landing section blocks, global settings (nav, footer). Each type gets required SEO fields (title, description, OG image), slug rules, alt text on images, and localisation fields if i18n.locales has more than one entry. Show the model; ask for approval.

Phase 3: Plan

cms-specialist with the frontend specialist:

  • schema/config files in the repo
  • typed client and generated types; queries fetching only needed fields
  • static generation by default; on-demand revalidation via a signed webhook route that revalidates exactly the affected paths
  • draft/preview mode behind auth, preview secret server-only
  • image pipeline via the CMS CDN with explicit sizes
  • redirects when slugs change; sitemap generated from content
  • .env.example placeholders (project ID, dataset, read token, preview secret)
  • tests: query mappers, the revalidation webhook (signature + paths), a Playwright check of a CMS-driven page with fixture content

Ask: stories (recommended) or direct implementation; then /create-stories or /dev-story.

Never

Expose write or preview tokens to the client; hard-code editor-owned copy in components.

Next step

/seo-audit once pages render from the CMS.

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.