SKILL31.9K installs194

Sanity 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/functions, @sanity/blueprints, sanity.blueprint.ts, event-driven content automation, or when reviewing and fixing a Sanity codebase.

Type
Skill
Author
sanity-io
Category
Frontend
GitHub stars
194
Installs
31.9K
Last updated
October 27, 2026

Install

npx skills add https://github.com/sanity-io/agent-toolkit --skill sanity-best-practices

Use cases


Frequently Asked Questions

Which areas of Sanity does this skill cover?

Schema design, GROQ and defineQuery, TypeGen, Visual Editing, images, Portable Text, Studio structure, localization, migrations, Sanity Functions, webhooks, and Blueprints.

Which frontend frameworks are covered?

It includes integration guidance for Next.js, Nuxt, Astro, Remix, SvelteKit, Angular, Hydrogen, and the App SDK.

Can it help with event-driven content automation?

Yes. It covers documentEventHandler, defineDocumentFunction, @sanity/functions, and Sanity Blueprints.


About this skill

A broad reference for Sanity development covering schema design, GROQ queries, TypeGen, Visual Editing, images, Portable Text, Studio structure, localization, migrations, Sanity Functions, webhooks, and Blueprints. It also addresses framework integrations with Next.js, Nuxt, Astro, Remix, SvelteKit, Angular, Hydrogen, and the App SDK. Use it whenever you're reading, writing, or reviewing a Sanity codebase.

Summary written with AI assistance from the project's public description.


Categories


More from sanity-io


Similar Skills