sanity-io/sanity-best-practices
Best practices for Sanity Studio, GROQ queries, and content workflows
Description
The Sanity best practices skill gives a coding agent opinionated patterns for building with Sanity, maintained by the Sanity team. It covers schema design, type-safe GROQ queries with defineQuery and TypeGen, Visual Editing and live preview, Portable Text for rich content, localization and migrations. It also has integration guidance for Next.js, Nuxt, Astro, Remix, SvelteKit, Hydrogen and the App SDK, and configuration of the Sanity Studio structure, such as singletons. Each topic includes wrong-versus-right code examples, so the agent can compare its output against recommended patterns. It suits developers building a Sanity project who want the agent to follow current practice instead of searching through scattered docs. Install it with the npx skills command in the skill's install section.…
Highlights
- Schema design and type-safe GROQ with TypeGen
- Visual Editing and live preview
- Portable Text and localization
- Integration guides for Next.js, Astro, SvelteKit and more
- Wrong-versus-right code examples
Ratings & Reviews
No ratings yet
Be the first to rate sanity-io/sanity-best-practices.
People also visit

sanity-best-practices
Sanity development best practices for schema design, GROQ queries, TypeGen
sanity-io/sanity-best-practices FAQ
What does this skill do?
It gives a coding agent best-practice patterns for Sanity Studio, GROQ queries, Visual Editing and framework integrations.
Which frameworks are covered?
Next.js, Nuxt, Astro, Remix, SvelteKit, Hydrogen and the App SDK.
How do I install it?
Run npx skills add https://github.com/sanity-io/agent-toolkit --skill sanity-best-practices, or paste the repository link into your coding assistant.
Who maintains it?
The Sanity team, according to the skill page.
What are the best sanity-io/sanity-best-practices alternatives?
Popular alternatives to sanity-io/sanity-best-practices include sanity-best-practices, sanity-migration and nuxt-studio. See all sanity-io/sanity-best-practices alternatives













