content-experimentatio…
Content experimentation and A/B testing guidance covering experiment design, hypotheses, metrics, sample size, statistical…
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,
Claude Code
$ npx -y skills add sanity-io/agent-toolkit --skill sanity-best-practices --agent claude-code
Codex
$ npx skills add sanity-io/agent-toolkit --skill sanity-best-practices -a codex -y
Cursor
$ npx skills add sanity-io/agent-toolkit --skill sanity-best-practices -a cursor -y
Gemini CLI
$ npx skills add sanity-io/agent-toolkit --skill sanity-best-practices -a gemini-cli -y
GitHub Copilot
$ npx skills add sanity-io/agent-toolkit --skill sanity-best-practices -a github-copilot -y
OpenCode
$ npx skills add sanity-io/agent-toolkit --skill sanity-best-practices -a opencode -y
Windsurf
$ npx skills add sanity-io/agent-toolkit --skill sanity-best-practices -a windsurf -y
name: sanity-best-practices description: 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, the App SDK, and Studios or apps running in the Sanity Dashboard (defineApplication). 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/functions, @sanity/blueprints, sanity.blueprint.ts, event-driven content automation, or when reviewing and fixing a Sanity codebase.
Comprehensive best practices and integration guides for Sanity development, maintained by Sanity. Use the quick reference below to load only the one or two topic files that match the task.
Reference these guidelines when:
Start with the single framework or topic guide that best matches the request, then read additional references only when the task crosses concerns. Use these reference files for detailed explanations and code examples:
references/groq.md references/schema.md references/nextjs.md
Each reference file contains:
Content experimentation and A/B testing guidance covering experiment design, hypotheses, metrics, sample size, statistical…
Structured content modeling guidance for schema design, content architecture, content reuse, references versus embedded objects,…
Convert HTML and Markdown content into Portable Text blocks for Sanity. Use when migrating content from legacy CMSs, importing…
Render and serialize Portable Text to React, Svelte, Vue, Astro, HTML, Markdown, and plain text. Use when implementing Portable…
Fix a Sanity Studio custom form component (components.input, components.field, components.item, or a plugin's form.components)…
Plans, implements, and reviews migrations from other CMSes and content systems into Sanity. Use when migrating or replatforming…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.