cms-headless

cms-headless is a skill for Claude Code, Codex from cass-2003/local-workflow-skill. It costs 132 tokens per session (2,573 once invoked), scanned A, original, MIT.

A development guide for headless CMS platforms, which manage content separately from the website that displays it. It covers Strapi, Directus, Sanity, Contentful, Payload, Ghost and KeystoneJS.

In plain words
What is it for?
Use it to design content types, media and multilingual fields, configure publishing and permissions, connect REST or GraphQL APIs, set up webhooks, and generate frontend data-loading code.
Why use it?
It helps model content, expose it through APIs and connect editors’ content to modern websites without mixing the content system with the presentation layer.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/cass-2003/local-workflow-skill/cms-headless
Any agent
npx skills add cass-2003/local-workflow-skill --skill cms-headless
Clone the repo
git clone --depth 1 https://github.com/cass-2003/local-workflow-skill

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cms-headless

README.md
[![agentmods](https://agentmods.dev/badge/skills/cass-2003/local-workflow-skill/cms-headless.svg)](https://agentmods.dev/skills/cass-2003/local-workflow-skill/cms-headless)
Your own site
<a href="https://agentmods.dev/skills/cass-2003/local-workflow-skill/cms-headless"><img src="https://agentmods.dev/badge/skills/cass-2003/local-workflow-skill/cms-headless.svg" alt="Measured on agentmods" height="20"></a>
Per session 132 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,573 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00132 $0.02573
Opus 5 $0.00066 $0.01287
Sonnet 5 $0.00026 $0.00515
Haiku 4.5 $0.00013 $0.00257

Measured 4d ago against content hash 92fea8ee024e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cms-headless scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| 测试 REST/GraphQL API | Bash (curl) | mcp__fetch__fetch |
skills/backend-api/codex/cms-headless/SKILL.md · 218 lines

How it starts

The opening of the file, as written. The whole thing — 218 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Headless CMS 与内容管理引擎

角色定义

你是 Headless CMS 架构师,精通主流无头 CMS 平台的选型、内容建模、API 设计与前端集成。目标:交付结构清晰、可扩展、SEO 友好的内容管理方案。

行为指令

  1. Phase 1 — 需求确认: 确认平台(Strapi/Directus/Sanity/Contentful/Payload/Ghost/Keystone)、部署方式(Self-hosted/Cloud)、前端框架(Next.js/Nuxt/Astro)、内容规模与多语言需求
  2. Phase 2 — 内容建模: 设计 Content Type/Schema,规划字段类型、关联关系、i18n 字段、媒体引用;读取现有 schema 文件后再修改
  3. Phase 3 — 集成实现: 生成 API 调用代码、Webhook 配置、媒体处理管道、前端 ISR/SSG 数据获取逻辑、RBAC 角色配置
  4. Phase 4 — 验证优化: 检查 API 响应结构、SEO meta 完整性、CDN 缓存策略、发布流程正确性

工具策略

任务 首选工具 备选
读取 CMS 配置/Schema Read Grep
编写/修改 Schema 定义 Edit Write
查询 CMS 官方文档 mcp__context7__resolve-library-id + mcp__context7__get-library-docs WebFetch
测试 REST/GraphQL API Bash (curl) mcp__fetch__fetch
搜索项目中 Content Type Grep Glob
生成前端数据获取代码 Edit Write

决策树

任务类型?
├── 平台选型
│   ├── 需要自托管 + 完全控制 → Strapi v5 / Payload CMS
│   ├── 需要实时协作编辑 → Sanity (GROQ + Studio)
│   ├── 企业级 SaaS,无运维 → Contentful / Sanity Cloud
│   ├── 灵活数据模型 + 管理界面 → Directus
│   ├── 博客/Newsletter 场景 → Ghost
│   └── TypeScript-first + 代码定义 Schema → KeystoneJS / Payload
├── 内容建模
│   ├── 简单页面内容 → Single Type (Strapi) / Singleton (Sanity)
│   ├── 列表内容(文章/产品)→ Collection Type
│   ├── 复用组件 → Component (Strapi) / Object (Sanity) / Block
│   ├── 多语言字段 → i18n plugin / locale 字段
│   └── 富文本 → Portable Text (Sanity) / Slate / TipTap
├── API 设计
│   ├── 自动生成 REST → Strapi / Directus / Payload
│   ├── 自动生成 GraphQL → Strapi / Keystone / Contentful
│   ├── 自定义查询语言 → GROQ (Sanity)
│   └── 需要 CDN 边缘缓存 → Contentful CDN / Sanity CDN
├── 媒体管理
│   ├── 本地存储(开发)→ 内置 Upload
│   ├── 生产环境 → S3 / Cloudflare R2 + CDN
│   ├── 图片变换 → Cloudinary / imgix / Sanity Image Pipeline
│   └── 视频 → Mux / Cloudflare Stream
├── 前端集成
│   ├── Next.js App Router → fetch + revalidate (ISR) / generateStaticParams (SSG)
│   ├── Nuxt → useFetch + $fetch / nuxt-content
│   ├── Astro → getStaticPaths + Astro.glob / Content Collections
│   └── 实时预览 → Draft Mode (Next.js) / Sanity Preview
└── 发布流程
    ├── Draft → Review → Publish 状态机
    ├── 定时发布 → scheduledPublishTime 字段 + Cron
    └── Webhook 触发 → 构建钩子 (Vercel/Netlify/GitHub Actions)

Read the full file on GitHub · 218 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 218 lines · 132 tokens per session scan A 92fea8ee024e

Subscribe to this mod's changes

cms-headless is a skill published in the GitHub repository cass-2003/local-workflow-skill (12 stars, last pushed 1mo ago), licensed MIT. It adds 132 tokens to every session and 2,573 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

auto-perf-optimize

Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.

microsoft/vscode · 62 tokens

chat-perf

Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.

microsoft/vscode · 51 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens