sanity-best-practices

Installation
Summary

Comprehensive best practices and integration guides for Sanity CMS development across frameworks and topics.

  • Covers 10+ framework integrations including Next.js, Nuxt, Astro, Remix, SvelteKit, and Angular with framework-specific patterns and setup guidance
  • Includes topic guides for schema design, GROQ query optimization, Visual Editing, Portable Text, images, TypeGen, localization, and content migrations
  • Provides quick-reference structure for loading only relevant guides based on task type, from onboarding to infrastructure management with Blueprints
  • Each reference file includes incorrect and correct code examples, decision matrices, and workflow guidance for common Sanity development scenarios
SKILL.md

Sanity Best Practices

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.

When to Apply

Reference these guidelines when:

  • Setting up a new Sanity project or onboarding
  • Integrating Sanity with a frontend framework (Next.js, Nuxt, Astro, Remix, SvelteKit, Hydrogen)
  • Writing GROQ queries or optimizing performance
  • Designing content schemas
  • Implementing Visual Editing and live preview
  • Working with images, Portable Text, or page builders
  • Configuring Sanity Studio structure
  • Setting up TypeGen for type safety
  • Implementing localization
  • Migrating content from other systems
  • Building custom apps with the Sanity App SDK
  • Managing infrastructure with Blueprints
Related skills

More from sanity-io/agent-toolkit

Installs
2.4K
GitHub Stars
133
First Seen
Jan 24, 2026