sanity-best-practices
✓Comprehensive Sanity development best practices covering GROQ performance, schema design, Visual Editing, images, Portable Text, page builders, Studio configuration, TypeGen, localization, and migrations. Use this skill when building, reviewing, or optimizing Sanity applications.
Installation
SKILL.md
Comprehensive best practices guide for Sanity development, maintained by Sanity. Contains rules across 10 categories, prioritized by impact to guide schema design, query optimization, and frontend integration.
| 1 | GROQ Performance | CRITICAL | groq- | | 2 | Schema Design | HIGH | schema- | | 3 | Visual Editing | HIGH | visual- | | 4 | Images | HIGH | image- | | 5 | Portable Text | HIGH | pte- | | 6 | Page Builder | MEDIUM | pagebuilder- | | 7 | Studio Configuration | MEDIUM | studio- | | 8 | TypeGen | MEDIUM | typegen- | | 9 | Localization | MEDIUM | i18n- |
Read individual rule files for detailed explanations and code examples:
Facts (cite-ready)
Stable fields and commands for AI/search citations.
- Install command
npx skills add https://github.com/sanity-io/agent-toolkit --skill sanity-best-practices- Source
- sanity-io/agent-toolkit
- Category
- </>Dev Tools
- Verified
- ✓
- First Seen
- 2026-02-01
- Updated
- 2026-02-18
Quick answers
What is sanity-best-practices?
Comprehensive Sanity development best practices covering GROQ performance, schema design, Visual Editing, images, Portable Text, page builders, Studio configuration, TypeGen, localization, and migrations. Use this skill when building, reviewing, or optimizing Sanity applications. Source: sanity-io/agent-toolkit.
How do I install sanity-best-practices?
Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/sanity-io/agent-toolkit --skill sanity-best-practices Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor
Where is the source repository?
https://github.com/sanity-io/agent-toolkit
Details
- Category
- </>Dev Tools
- Source
- skills.sh
- First Seen
- 2026-02-01