contentful-migration
Skill by contentful
Writes and runs Contentful content model migration scripts using the contentful-migration library and the Contentful CLI. It is for developers who manage Contentful content models as code.
Install contentful-migration
Built from the published package, never by AI.
git clone --depth 1 https://github.com/contentful/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/contentful-migration ~/.claude/skills/contentful-migrationRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/contentful/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/skills/contentful-migration ~/.gemini/antigravity-cli/skills/contentful-migrationAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install contentful-migration in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
The contentful-migration skill helps an AI assistant write and run Contentful content model migration scripts. Migrations are TypeScript scripts that create, edit, or delete content types, fields, editor interfaces, and entries. The skill covers field types, validations, editor layouts, sidebar widgets, tags, annotations, and the migration context object.
Scripts use the contentful-migration library and run through the Contentful CLI with npx contentful space migration. The skill sets a workflow: confirm environment variables, write the script, test in a sandbox environment, run the migration, then verify the content model in the web app. It is aimed at developers who manage Contentful content models as code and want to test changes before running them against a space.
Written from the project's SKILL.md and checked against it.
What it can do
- Content type operationsCreate, edit, and delete content types using the migration API.
- Field operationsCreate, edit, delete, rename by ID, and move fields.
- ValidationsApply validations such as in, unique, size, range, regexp, and linkContentType to fields.
- Editor interfaceChange the widget for a field, including built-in, extension, and app widgets.
- Entry transformationsTransform existing entries in place with transformEntries.
- Derive linked entriesCreate new linked entries from existing entry data and link them to a reference field.
- Migration executionRun migrations through the Contentful CLI or the programmatic API.
What you need
- A Contentful space ID
- A Contentful CMA token
- npm to install the contentful-migration package
- contentful-cli for running migrations via npx contentful
Try asking
- Write a migration that adds a required title field to my blogPost type
- Create a migration that derives author entries from blogPost authorName
- Move the slug field after the title field in my page content type
Good to know
- Content types must have zero entries before they can be deleted.
- Deleting a field permanently removes its content from all entries.
- Test migrations in a sandbox environment before running them against production.
- SDK client setup and Next.js integration are handled by a different skill (contentful-nextjs).
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/contentful-migration/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: Bash(npx contentful-migration *) Bash(npx contentful space migration *) mcp__contentful-mcp__* mcp__plugin_contentful_contentful-mcp__*
Alternatives to contentful-migration
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
contentful-migration: common questions
How do I run a Contentful migration script?
The skill runs migrations with npx contentful space migration using the Contentful CLI. It can also use the programmatic API.
Can the skill change a field ID without losing content?
Yes. The changeFieldId operation changes only the field ID, and existing content is preserved.
What should I do before running a migration on a live space?
The skill advises creating a sandbox environment and testing the migration there first. It says never to run untested migrations against production.
How do I install contentful-migration?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is contentful-migration free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is contentful-migration safe to use?
It scores 64 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to contentful-migration?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
