BigHugger
sk Skill · sanity-io

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…

installs 8w
11,503
30-day movement
starts with the next reading
Related entries
1
Connections
0
JavaScript

An agent skill that loads Sanity development best practices covering schema design, GROQ, TypeGen, Visual Editing, Portable Text, Studio structure, localization, migrations, Functions, webhooks, Blueprints, and frontend framework integrations. It is organized into quick-reference topic and framework guides so the agent loads only the relevant one or two guides per task.

It gives your coding agent curated, Sanity-maintained guidance instead of ad-hoc guesses when writing or reviewing Sanity code.

Use it to

  • Design Sanity schemas with defineType and defineField
  • Write type-safe, performant GROQ queries
  • Integrate Sanity with Next.js, Nuxt, Astro, or other frameworks
  • Set up event-driven automation with Sanity Functions and Blueprints
  • Review and fix an existing Sanity codebase

For Developers building or maintaining Sanity-powered projects

Host repository
sanity-io/agent-toolkit
Installs, lifetime
25k
Installs, 8 weeks
12k
Host stars
182
Host language
JavaScript
topicssanitygroqschema-designcontent-modelingframework-integrationsagent-skill