Technical & DevelopmentIntermediate
sanity-best-practices
Best practices for Sanity Studio, GROQ queries, and content workflows
Developer Setup
Setup & Installation
bash
npx skills add https://github.com/sanity-io/agent-toolkit --skill sanity-best-practicesnpx skills add https://github.com/sanity-io/agent-toolkit --skill sanity-best-practicesOr paste this URL into your assistant to install:
Overview
What This Skill Does
Best practices and integration guides for Sanity development, maintained by the Sanity team. Covers schema design, GROQ queries, TypeGen, Visual Editing, Portable Text, localization, migrations, and integrations with Next.js, Nuxt, Astro, Remix, SvelteKit, Hydrogen, and the App SDK.
Application
When to use this Skill
- Configuring integration settings for custom agent workflows.
- Optimizing query execution and response latency in production.
- Developing clean, standard-compliant implementations for enterprise services.
- Troubleshooting connection timeouts and authentication handshakes.
- Monitoring API rate limits and execution pipelines programmatically.
Documentation
Show Skills.md file
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
- Automating content workflows with Sanity Functions
Quick Reference
Integration Guides
Lines 1 - 25 of 68
Recommendations