Sanity Schema Manager

•
37
•

Manages the full lifecycle of Sanity CMS schemas, from scaffolding new types to safe field deprecation and data migrations.

The Sanity Schema Manager skill streamlines the development and maintenance of Sanity CMS content models. It automates the creation of documents, objects, and singletons while enforcing best practices such as defineType usage and icon integration. For evolving projects, it provides a safe, multi-step deprecation workflow and generates robust data migration scripts using @sanity/migrate, ensuring that schema changes are always synchronized with your underlying dataset.

Key Features

01Guided data cleanup workflows for safe field deletion
02Automated scaffolding for document, object, and singleton types
03Automatic generation of data migration scripts with @sanity/migrate
0437 GitHub stars
05Enforcement of defineType and defineField development standards
06Safe field deprecation via the ReadOnly-Hidden-Deprecated pattern

Use Cases

01Building a scalable content architecture for a new Headless CMS project
02Refactoring legacy schema fields into more modern data structures
03Performing bulk data patches when modifying existing content models