[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-sanity-content-modeling-best-practices":3,"mdc--jz4drq-key":46,"related-repo-sanity-content-modeling-best-practices":225,"related-org-sanity-content-modeling-best-practices":331},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":12,"stars":27,"repoUrl":28,"updatedAt":29,"license":30,"forks":31,"topics":32,"repo":41,"sourceUrl":44,"mdContent":45},"content-modeling-best-practices","apply structured content modeling practices","Structured content modeling guidance for schema design, content architecture, content reuse, references versus embedded objects, separation of concerns, and taxonomies across Sanity and other headless CMSes. Use this skill when designing or refactoring content types, deciding field shapes, debating reusable versus nested content, planning omnichannel content models, or reviewing whether a schema is too page-shaped or presentation-driven.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},"sanity","Sanity","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fsanity.png","sanity-io",[13,17,20,23,24],{"name":14,"slug":15,"type":16},"Architecture","architecture","tag",{"name":18,"slug":19,"type":16},"CMS","cms",{"name":21,"slug":22,"type":16},"Data Modeling","data-modeling",{"name":9,"slug":8,"type":16},{"name":25,"slug":26,"type":16},"Design","design",171,"https:\u002F\u002Fgithub.com\u002Fsanity-io\u002Fagent-toolkit","2026-04-06T18:52:35.944096",null,25,[33,34,35,36,37,38,39,40],"agent-rules","ai-rules","claude-code","claude-code-plugin","cursor-ai","mcp","mcp-server","vs-code",{"repoUrl":28,"stars":27,"forks":31,"topics":42,"description":43},[33,34,35,36,37,38,39,40],"Collection of resources to help AI agents build better with Sanity.","https:\u002F\u002Fgithub.com\u002Fsanity-io\u002Fagent-toolkit\u002Ftree\u002FHEAD\u002Fskills\u002Fcontent-modeling-best-practices","---\nname: content-modeling-best-practices\ndescription: Structured content modeling guidance for schema design, content architecture, content reuse, references versus embedded objects, separation of concerns, and taxonomies across Sanity and other headless CMSes. Use this skill when designing or refactoring content types, deciding field shapes, debating reusable versus nested content, planning omnichannel content models, or reviewing whether a schema is too page-shaped or presentation-driven.\n---\n\n# Content Modeling Best Practices\n\nPrinciples for designing structured content that's flexible, reusable, and maintainable. These concepts apply to any headless CMS but include Sanity-specific implementation notes.\n\n## When to Apply\n\nReference these guidelines when:\n- Starting a new project and designing the content model\n- Evaluating whether content should be structured or free-form\n- Deciding between references and embedded content\n- Planning for multi-channel content delivery\n- Refactoring existing content structures\n\n## Core Principles\n\n1. **Content is data, not pages** — Structure content for meaning, not presentation\n2. **Single source of truth** — Avoid content duplication\n3. **Future-proof** — Design for channels that don't exist yet\n4. **Editor-centric** — Optimize for the people creating content\n\n## References\n\nStart with the reference that matches the modeling decision in front of you, instead of loading every topic at once. See `references\u002F` for detailed guidance on specific topics:\n- `references\u002Fseparation-of-concerns.md` — Separating content from presentation\n- `references\u002Freference-vs-embedding.md` — When to use references vs embedded objects\n- `references\u002Fcontent-reuse.md` — Content reuse patterns and the reuse spectrum\n- `references\u002Ftaxonomy-classification.md` — Flat, hierarchical, and faceted classification\n",{"data":47,"body":48},{"name":4,"description":6},{"type":49,"children":50},"root",[51,59,65,72,77,107,113,158,164,178],{"type":52,"tag":53,"props":54,"children":55},"element","h1",{"id":4},[56],{"type":57,"value":58},"text","Content Modeling Best Practices",{"type":52,"tag":60,"props":61,"children":62},"p",{},[63],{"type":57,"value":64},"Principles for designing structured content that's flexible, reusable, and maintainable. These concepts apply to any headless CMS but include Sanity-specific implementation notes.",{"type":52,"tag":66,"props":67,"children":69},"h2",{"id":68},"when-to-apply",[70],{"type":57,"value":71},"When to Apply",{"type":52,"tag":60,"props":73,"children":74},{},[75],{"type":57,"value":76},"Reference these guidelines when:",{"type":52,"tag":78,"props":79,"children":80},"ul",{},[81,87,92,97,102],{"type":52,"tag":82,"props":83,"children":84},"li",{},[85],{"type":57,"value":86},"Starting a new project and designing the content model",{"type":52,"tag":82,"props":88,"children":89},{},[90],{"type":57,"value":91},"Evaluating whether content should be structured or free-form",{"type":52,"tag":82,"props":93,"children":94},{},[95],{"type":57,"value":96},"Deciding between references and embedded content",{"type":52,"tag":82,"props":98,"children":99},{},[100],{"type":57,"value":101},"Planning for multi-channel content delivery",{"type":52,"tag":82,"props":103,"children":104},{},[105],{"type":57,"value":106},"Refactoring existing content structures",{"type":52,"tag":66,"props":108,"children":110},{"id":109},"core-principles",[111],{"type":57,"value":112},"Core Principles",{"type":52,"tag":114,"props":115,"children":116},"ol",{},[117,128,138,148],{"type":52,"tag":82,"props":118,"children":119},{},[120,126],{"type":52,"tag":121,"props":122,"children":123},"strong",{},[124],{"type":57,"value":125},"Content is data, not pages",{"type":57,"value":127}," — Structure content for meaning, not presentation",{"type":52,"tag":82,"props":129,"children":130},{},[131,136],{"type":52,"tag":121,"props":132,"children":133},{},[134],{"type":57,"value":135},"Single source of truth",{"type":57,"value":137}," — Avoid content duplication",{"type":52,"tag":82,"props":139,"children":140},{},[141,146],{"type":52,"tag":121,"props":142,"children":143},{},[144],{"type":57,"value":145},"Future-proof",{"type":57,"value":147}," — Design for channels that don't exist yet",{"type":52,"tag":82,"props":149,"children":150},{},[151,156],{"type":52,"tag":121,"props":152,"children":153},{},[154],{"type":57,"value":155},"Editor-centric",{"type":57,"value":157}," — Optimize for the people creating content",{"type":52,"tag":66,"props":159,"children":161},{"id":160},"references",[162],{"type":57,"value":163},"References",{"type":52,"tag":60,"props":165,"children":166},{},[167,169,176],{"type":57,"value":168},"Start with the reference that matches the modeling decision in front of you, instead of loading every topic at once. See ",{"type":52,"tag":170,"props":171,"children":173},"code",{"className":172},[],[174],{"type":57,"value":175},"references\u002F",{"type":57,"value":177}," for detailed guidance on specific topics:",{"type":52,"tag":78,"props":179,"children":180},{},[181,192,203,214],{"type":52,"tag":82,"props":182,"children":183},{},[184,190],{"type":52,"tag":170,"props":185,"children":187},{"className":186},[],[188],{"type":57,"value":189},"references\u002Fseparation-of-concerns.md",{"type":57,"value":191}," — Separating content from presentation",{"type":52,"tag":82,"props":193,"children":194},{},[195,201],{"type":52,"tag":170,"props":196,"children":198},{"className":197},[],[199],{"type":57,"value":200},"references\u002Freference-vs-embedding.md",{"type":57,"value":202}," — When to use references vs embedded objects",{"type":52,"tag":82,"props":204,"children":205},{},[206,212],{"type":52,"tag":170,"props":207,"children":209},{"className":208},[],[210],{"type":57,"value":211},"references\u002Fcontent-reuse.md",{"type":57,"value":213}," — Content reuse patterns and the reuse spectrum",{"type":52,"tag":82,"props":215,"children":216},{},[217,223],{"type":52,"tag":170,"props":218,"children":220},{"className":219},[],[221],{"type":57,"value":222},"references\u002Ftaxonomy-classification.md",{"type":57,"value":224}," — Flat, hierarchical, and faceted classification",{"items":226,"total":330},[227,244,252,267,284,302,317],{"slug":228,"name":228,"fn":229,"description":230,"org":231,"tags":232,"stars":27,"repoUrl":28,"updatedAt":243},"content-experimentation-best-practices","design and analyze content experiments","Content experimentation and A\u002FB testing guidance covering experiment design, hypotheses, metrics, sample size, statistical foundations, CMS-managed variants, and common analysis pitfalls. Use this skill when planning experiments, setting up variants, choosing success metrics, interpreting statistical results, or building experimentation workflows in a CMS or frontend stack.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[233,236,239,242],{"name":234,"slug":235,"type":16},"A\u002FB Testing","a-b-testing",{"name":237,"slug":238,"type":16},"Analytics","analytics",{"name":240,"slug":241,"type":16},"Marketing","marketing",{"name":9,"slug":8,"type":16},"2026-04-06T18:52:37.188766",{"slug":4,"name":4,"fn":5,"description":6,"org":245,"tags":246,"stars":27,"repoUrl":28,"updatedAt":29},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[247,248,249,250,251],{"name":14,"slug":15,"type":16},{"name":18,"slug":19,"type":16},{"name":21,"slug":22,"type":16},{"name":25,"slug":26,"type":16},{"name":9,"slug":8,"type":16},{"slug":253,"name":253,"fn":254,"description":255,"org":256,"tags":257,"stars":27,"repoUrl":28,"updatedAt":266},"portable-text-conversion","convert content to Portable Text","Convert HTML and Markdown content into Portable Text blocks for Sanity. Use when migrating content from legacy CMSs, importing HTML or Markdown into Sanity, building content pipelines that ingest external content, converting rich text between formats, or programmatically creating Portable Text documents. Covers @portabletext\u002Fmarkdown (markdownToPortableText), @portabletext\u002Fblock-tools (htmlToBlocks), custom deserializers, and the Portable Text specification for manual block construction.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[258,259,262,265],{"name":18,"slug":19,"type":16},{"name":260,"slug":261,"type":16},"HTML","html",{"name":263,"slug":264,"type":16},"Portable Text","portable-text",{"name":9,"slug":8,"type":16},"2026-04-13T05:19:08.919337",{"slug":268,"name":268,"fn":269,"description":270,"org":271,"tags":272,"stars":27,"repoUrl":28,"updatedAt":283},"portable-text-serialization","serialize Portable Text to frontends","Render and serialize Portable Text to React, Svelte, Vue, Astro, HTML, Markdown, and plain text. Use when implementing Portable Text rendering in any frontend framework, building custom serializers for non-standard block types, converting Portable Text to HTML strings server-side, converting Portable Text to Markdown, extracting plain text from Portable Text, or troubleshooting rendering issues with marks, blocks, lists, or custom types.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[273,274,275,276,279,280],{"name":18,"slug":19,"type":16},{"name":260,"slug":261,"type":16},{"name":263,"slug":264,"type":16},{"name":277,"slug":278,"type":16},"React","react",{"name":9,"slug":8,"type":16},{"name":281,"slug":282,"type":16},"Vue","vue","2026-04-13T05:19:10.157534",{"slug":285,"name":285,"fn":286,"description":287,"org":288,"tags":289,"stars":27,"repoUrl":28,"updatedAt":301},"sanity-best-practices","apply Sanity development best practices","Sanity development best practices for schema design, GROQ queries, TypeGen, Visual Editing, images, Portable Text, Studio structure, localization, migrations, Sanity Functions, webhooks, Blueprints, and framework integrations such as Next.js, Nuxt, Astro, Remix, SvelteKit, Angular, Hydrogen, and the App SDK. Use this skill whenever working with Sanity schemas, defineType or defineField, GROQ or defineQuery, content modeling, Presentation or preview setups, Sanity-powered frontend integrations, event-driven content automation, documentEventHandler, defineDocumentFunction, defineMediaLibraryAssetFunction, @sanity\u002Ffunctions, @sanity\u002Fblueprints, sanity.blueprint.ts, event-driven content automation, or when reviewing and fixing a Sanity codebase.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[290,291,294,297,298],{"name":18,"slug":19,"type":16},{"name":292,"slug":293,"type":16},"Frontend","frontend",{"name":295,"slug":296,"type":16},"Next.js","next-js",{"name":9,"slug":8,"type":16},{"name":299,"slug":300,"type":16},"TypeScript","typescript","2026-07-30T05:31:41.586173",{"slug":303,"name":303,"fn":304,"description":305,"org":306,"tags":307,"stars":27,"repoUrl":28,"updatedAt":316},"sanity-migration","migrate content from other CMSes to Sanity","Plans, implements, and reviews migrations from other CMSes and content systems into Sanity. Use when migrating or replatforming to Sanity from AEM, Adobe Experience Manager, Contentful, Strapi, Webflow, WordPress, Payload, Drupal, Markdown\u002FMDX\u002Ffrontmatter files, WXR\u002FXML exports, CMS APIs, database dumps, static HTML, or when designing extraction, transformation, Portable Text conversion, asset migration, redirects, validation, and cutover workflows.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[308,309,312,315],{"name":18,"slug":19,"type":16},{"name":310,"slug":311,"type":16},"Content Strategy","content-strategy",{"name":313,"slug":314,"type":16},"Migration","migration",{"name":9,"slug":8,"type":16},"2026-07-30T05:31:40.656418",{"slug":318,"name":318,"fn":319,"description":320,"org":321,"tags":322,"stars":27,"repoUrl":28,"updatedAt":329},"seo-aeo-best-practices","implement SEO and AEO best practices","SEO and AEO best practices for metadata, Open Graph, sitemaps, robots.txt, hreflang, JSON-LD structured data, EEAT, and content optimized for search engines and AI answer surfaces. Use this skill when implementing page SEO, technical SEO, schema markup, international SEO, AI-overview readiness, or improving content for Google, ChatGPT, Perplexity, and similar assistants.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[323,324,325,326],{"name":310,"slug":311,"type":16},{"name":240,"slug":241,"type":16},{"name":9,"slug":8,"type":16},{"name":327,"slug":328,"type":16},"SEO","seo","2026-04-06T18:52:34.660246",7,{"items":332,"total":330},[333,340,348,355,364,372,379],{"slug":228,"name":228,"fn":229,"description":230,"org":334,"tags":335,"stars":27,"repoUrl":28,"updatedAt":243},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[336,337,338,339],{"name":234,"slug":235,"type":16},{"name":237,"slug":238,"type":16},{"name":240,"slug":241,"type":16},{"name":9,"slug":8,"type":16},{"slug":4,"name":4,"fn":5,"description":6,"org":341,"tags":342,"stars":27,"repoUrl":28,"updatedAt":29},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[343,344,345,346,347],{"name":14,"slug":15,"type":16},{"name":18,"slug":19,"type":16},{"name":21,"slug":22,"type":16},{"name":25,"slug":26,"type":16},{"name":9,"slug":8,"type":16},{"slug":253,"name":253,"fn":254,"description":255,"org":349,"tags":350,"stars":27,"repoUrl":28,"updatedAt":266},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[351,352,353,354],{"name":18,"slug":19,"type":16},{"name":260,"slug":261,"type":16},{"name":263,"slug":264,"type":16},{"name":9,"slug":8,"type":16},{"slug":268,"name":268,"fn":269,"description":270,"org":356,"tags":357,"stars":27,"repoUrl":28,"updatedAt":283},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[358,359,360,361,362,363],{"name":18,"slug":19,"type":16},{"name":260,"slug":261,"type":16},{"name":263,"slug":264,"type":16},{"name":277,"slug":278,"type":16},{"name":9,"slug":8,"type":16},{"name":281,"slug":282,"type":16},{"slug":285,"name":285,"fn":286,"description":287,"org":365,"tags":366,"stars":27,"repoUrl":28,"updatedAt":301},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[367,368,369,370,371],{"name":18,"slug":19,"type":16},{"name":292,"slug":293,"type":16},{"name":295,"slug":296,"type":16},{"name":9,"slug":8,"type":16},{"name":299,"slug":300,"type":16},{"slug":303,"name":303,"fn":304,"description":305,"org":373,"tags":374,"stars":27,"repoUrl":28,"updatedAt":316},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[375,376,377,378],{"name":18,"slug":19,"type":16},{"name":310,"slug":311,"type":16},{"name":313,"slug":314,"type":16},{"name":9,"slug":8,"type":16},{"slug":318,"name":318,"fn":319,"description":320,"org":380,"tags":381,"stars":27,"repoUrl":28,"updatedAt":329},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[382,383,384,385],{"name":310,"slug":311,"type":16},{"name":240,"slug":241,"type":16},{"name":9,"slug":8,"type":16},{"name":327,"slug":328,"type":16}]