src/orchestrator/plugins/contentful/SKILL.md
Creates Contentful content types, queries entries via GraphQL/REST, runs CLI migrations, and manages assets and locales. Use when building or modifying Contentful content models, writing queries, or migrating content.
npx skillsauth add etylsarin/opencastle contentful-cmsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
For project-specific configuration, content types, and API keys, see cms-config.md.
sys.publishedAt for cache invalidationinclude parameter to control link resolution depth// Example: Typed GraphQL query
const BLOG_POSTS_QUERY = `
query BlogPosts($limit: Int!, $locale: String!) {
blogPostCollection(limit: $limit, locale: $locale) {
items {
sys { id publishedAt }
title
slug
body { json }
featuredImage { url width height }
}
}
}
`;
// Reference field with validation
blogPost.createField('author')
.type('Link').linkType('Entry')
.validations([{ linkContentType: ['person'] }]);
Prefer typed content types over JSON fields; add validation rules to all required fields.
contentful space migration --space-id <SPACE_ID> --environment-id sandbox migration.js
master (safe rollback), or write a reverse migration and run it.master during a maintenance window.// Example: Migration script (migration.js)
module.exports = function (migration) {
const blogPost = migration.createContentType('blogPost')
.name('Blog Post')
.displayField('title');
blogPost.createField('title').type('Symbol').required(true);
blogPost.createField('slug').type('Symbol').required(true).validations([{ unique: true }]);
blogPost.createField('body').type('RichText');
};
Validation script example (node):
// validate.js — exits non-zero on missing fields
const res = await fetch(`https://cdn.contentful.com/spaces/${SPACE}/environments/sandbox/entries?content_type=blogPost`, {
headers: { Authorization: `Bearer ${TOKEN}` },
});
const { items } = await res.json();
for (const item of items) {
if (!item.fields.slug) throw new Error(`Missing slug on ${item.sys.id}`);
}
console.log('OK —', items.length, 'entries validated');
For longer migration patterns and rollback options see REFERENCE.md.
development
Defines 10 sequential validation gates: secret scanning, lint/test/build checks, blast radius analysis, dependency auditing, browser testing, cache management, regression checks, and smoke tests. Use when running pre-deploy validation or CI checks, CI/CD pipelines, deployment pipeline validation, pre-merge checks, continuous integration, or pull request validation.
development
Generates test plans, writes unit/integration/E2E test files, identifies coverage gaps, and flags common testing anti-patterns. Use when writing tests, creating test suites, planning test strategies, mocking dependencies, measuring code coverage, or test planning.
development
Provides model routing rules, validates delegation prerequisites, supplies cost tracking templates, and defines dead-letter queue formats for Team Lead orchestration. Load when assigning tasks to agents, choosing model tiers, starting a delegation session, running a multi-agent workflow, delegating work, choosing which model to use, or assigning tasks.
testing
Saves and restores session state including task progress, file changes, and delegation history. Use when saving progress, resuming interrupted work, picking up where you left off, or checkpointing current work.