contentful-cms

contentful-cms is a skill for Claude Code, Codex from monkilabs/opencastle. It costs 41 tokens per session (415 once invoked), scanned A, original, MIT.

A guide to Contentful, a content management system for storing structured content, assets, and translations separately from application code. It covers content models, API queries, migrations, and locales.

In plain words
What is it for?
Creating content types, querying entries through REST or GraphQL, migrating content models safely, managing assets, and working with localized content.
Why use it?
It reduces risks when changing content structures and helps ensure that linked entries, required fields, uniqueness rules, and translations behave as intended.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Creating content types, querying entries through REST or GraphQL, migrating content models safely, managing assets, and working with localized content.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/monkilabs/opencastle/contentful-cms
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.

Any agent
npx skills add monkilabs/opencastle --skill contentful-cms
Clone the repo
git clone --depth 1 https://github.com/monkilabs/opencastle

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 contentful-cms

README.md
[![agentmods](https://agentmods.dev/badge/skills/monkilabs/opencastle/contentful-cms/github.svg)](https://agentmods.dev/skills/monkilabs/opencastle/contentful-cms)
Your own site
<a href="https://agentmods.dev/skills/monkilabs/opencastle/contentful-cms"><img src="https://agentmods.dev/badge/skills/monkilabs/opencastle/contentful-cms/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for contentful-cms

Your own site · 80×15
<a href="https://agentmods.dev/skills/monkilabs/opencastle/contentful-cms"><img src="https://agentmods.dev/badge/skills/monkilabs/opencastle/contentful-cms.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 415 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00041 $0.00415
Opus 5.5 $0.00016 $0.00166
Sonnet 5.5 $0.00008 $0.00083
Haiku 4.5 $0.00004 $0.00042

Measured 11d ago against content hash f9dd1ccb8161, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

contentful-cms scanned grade A with 0 findings 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 11d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/orchestrator/plugins/contentful/skills/contentful-cms/SKILL.md · 33 lines

What it actually says

Contentful CMS

Project config, content types, and API keys: .opencastle/stack/cms-config.md. Docs: https://www.contentful.com/developers/docs/

Gotchas

  • Never migrate master directly. Create a sandbox environment, migrate there, validate, then promote or re-run against master in a maintenance window.
  • Rollback is recreate, not undo: delete the sandbox, re-clone from master, re-run a corrected migration. Reverse migrations only work for additive schema changes.
  • Links are not resolved by default — REST needs include (link resolution depth); GraphQL resolves nested selections but each level costs query complexity.
  • Use sys.publishedAt as the cache-invalidation key.
  • Prefer typed content types over JSON fields, and attach validations to every required field — Contentful will not enforce shape otherwise. Uniqueness must be declared explicitly: .validations([{ unique: true }]).
  • Reference fields need an explicit linkContentType validation or any entry type can be linked: blogPost.createField('author').type('Link').linkType('Entry').validations([{ linkContentType: ['person'] }])

Migration command

contentful space migration --space-id <SPACE_ID> --environment-id sandbox migration.js

Migration scripts export function (migration) { ... } and use createContentType / createField / displayField.

Post-migration validation

  1. Query a representative sample of affected entries; assert required fields and unique constraints hold (exit non-zero on a miss).
  2. Build the site against sandbox content to catch render-time failures.
  3. Run integration tests covering the modified content types.
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. 11d ago Changed · -5 tokens per session f9dd1ccb8161
  2. 12d ago First seen · 33 lines · 46 tokens per session scan A d146136eb862

Subscribe to this mod's changes

contentful-cms is a skill published in the GitHub repository monkilabs/opencastle (80 stars, last pushed yesterday), licensed MIT. It adds 41 tokens to every session and 415 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-04.