01
It starts by itself
Nightly during migration. Runs in Claude Code routine or cron.
- ↻ Nightly during migration
0 2 * * *
Migration reruns converge, checks pass.
Install the Sanity Migration skill and make it a habit: follow https://gethabit.dev/skills/sanity-io/sanity-migration.md
22K installs192 starsMIT licenceSource on GitHub ↗

Sanity Migration
by sanity-io · 22K installs
The skill
The sanity migration skill plans, builds and reviews moves into Sanity from AEM, Contentful, Strapi, Webflow, WordPress, Payload, Drupal or Markdown, with Portable Text conversion, asset migration, redirects and validation.
Only when you ask.
The habit
Migration reruns converge, checks pass.
↻ Runs by itselfNightly during migration
When does it start? How does it check its work? What does it remember?
Stops after one full rerun per night, with 1 retry on a failed import.
The agent reads references/general.md and the guide for the source platform.
It keeps a short plan for access, scope, schema, extraction, transform, import, validation, redirects and cutover.
It asks you before coding when access, target dataset, scope, media or schema is unclear.
It saves the extracted source data to disk before transforming it.
It converts rich text to Portable Text and imports with stable IDs via createOrReplace, createIfNotExists or sanity datasets import --replace.
It runs count, sample, reference and redirect checks and updates the validation summary.
It writes only in its own folder and asks you before anything goes out.
Read both lists. If the left one sounds like you, the Sanity Migration skill helps.
IDs from source IDs, slugs, paths or hashes let reruns overwrite instead of duplicate.
No. The skill wants NDJSON or scripts for bulk work.
AEM, Contentful, Strapi, Webflow, WordPress, Payload, Drupal and Markdown, with general.md for the rest.
Copy the prompt at the top into your agent. It installs the skill from sanity-io/agent-toolkit and sets up the habit. Or run npx skills add sanity-io/agent-toolkit --skill sanity-migration.
Yes. It is published under MIT. Habit is free too.
Install the Sanity Migration skill and make it a habit: follow https://gethabit.dev/skills/sanity-io/sanity-migration.md
All sanity-io skills →More code skills →
Works in
Made by sanity-io, published under MIT. Habit links to the original and never changes it. Is this your skill?