Skill: Content Modeling Best Practices
by Sanity
Sanity's official CMS-agnostic skill for structured content modelling — separation of concerns, references versus embedding, content reuse and taxonomy design, with Sanity-specific notes.
Sanity's official agent skill — schema design, GROQ, TypeGen, Visual Editing, Portable Text, Studio structure, localization, Functions and Blueprints, plus integration guides for eight frontend frameworks.
Sanity maintains this skill as the reference an agent should load before writing anything against a Sanity project, and it is built around a load-what-you-need index rather than one long document. The SKILL.md is a routing table: twenty-one integration and topic guides plus twenty-six focused best-practice rules, and the instruction is to pull the one or two files that match the task instead of loading the whole set.
Framework coverage is the practical reason to install it: Next.js App Router with the Live Content API and a standalone Studio, Nuxt via @nuxtjs/sanity, Astro via @sanity/astro, React Router / Remix, SvelteKit via @sanity/svelte-loader, Angular with signals and the resource API, and Shopify Hydrogen. Each guide is Sanity's own current wiring, which is where model knowledge tends to be stale.
The global rules are opinionated and specific, and they read like the accumulated result of support tickets. Let Sanity generate _id values for ordinary documents — do not mint deterministic UUIDs, slug-derived IDs or legacy-system IDs. Model relationships with reference fields and resolve them with GROQ lookups. Reserve explicit document IDs mainly for singletons under Studio Structure, including localized ones like homePage-en.
One section is worth reading before you architect anything: the video guidance. Sanity file assets are delivered as raw downloads with no transcoding and no adaptive streaming, so serving production video from them drives very high bandwidth and unexpectedly large bills. The skill tells the agent to use Media Library with Mux-backed adaptive streaming on Enterprise plans with the video add-on, sanity-plugin-mux-input or an external host otherwise, and to keep file fields for short clips only. That is exactly the sort of constraint an agent would otherwise cheerfully violate.
The rest spans GROQ optimization and defineQuery, schema patterns with defineType/defineField, TypeGen for end-to-end type safety, Visual Editing and Presentation preview, images and Portable Text, page builders, Studio customization, localization, migrations, the App SDK, Blueprints for infrastructure-as-code, and Sanity Functions and webhooks for event-driven content automation.
MIT licensed, part of sanity-io/agent-toolkit, and announced alongside Sanity's other agent skills in January 2026.
Once installed, ask your agent something like:
Wire this Next.js App Router site to Sanity with Visual Editing and TypeGen, and review my existing GROQ queries for performance.
The instructions your agent loads, as published by Sanity.
by Sanity
Sanity's official CMS-agnostic skill for structured content modelling — separation of concerns, references versus embedding, content reuse and taxonomy design, with Sanity-specific notes.
Official WordPress skill for Gutenberg block work: block.json, attributes and serialization, dynamic rendering, and the deprecation path that keeps existing content valid.
by Vercel
Vercel's official skill for React component architecture — replace boolean prop proliferation with compound components, lifted state and explicit variants. Includes React 19 APIs.
by Svelte
The Svelte team's own guidance on writing modern Svelte 5 — when to reach for each rune, why effects are an escape hatch, and the reactivity traps models fall into.