CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

contentful-cms

Contentful content types, GraphQL/REST queries, CLI migrations, assets and locales. Use when changing a Contentful content model, querying Contentful, or migrating its content.

73

Quality

92%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

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.
Repository

monkilabs/opencastle

Path

src/orchestrator/plugins/contentful/skills/contentful-cms/SKILL.md

Last updated
First committed

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.