The Sanity Schema Scaffolder streamlines the development of Sanity Studio by automating the creation of new content models. It guides users through an interactive discovery process to define documents, objects, or singletons, ensuring every new schema follows the 'Data > Presentation' philosophy. By managing file generation, template injection, and automatic registration in the project's schema index, this skill eliminates boilerplate work while maintaining high code quality and consistency across your CMS architecture.
主要功能
01Interactive schema discovery and project structure analysis
02Support for @sanity/icons and strict TypeScript integration
03Template-based generation for Documents, Objects, and Singletons
0437 GitHub stars
05Verification of generated code via Sanity Typegen
06Automatic registration of new types in schema index files
使用场景
01Adding new content models like 'Blog Post' or 'Author' to a Sanity Studio project
02Creating reusable data objects for embedded content within other documents
03Setting up singleton documents for global site settings and homepage configurations