sanity-best-practices
The sanity-best-practices skill provides a reference library for Sanity development, covering schema design, GROQ queries, TypeGen, Visual Editing, and framework integrations. It guides users through project setup, content modeling, and workflow automation using Sanity Functions and Blueprints.
Is sanity-best-practices safe to install?
Safe to install: our audit of sanity-best-practices's source files found 0 shell commands, 0 external URLs, file reads and writes (low risk). Every command and URL listed appears verbatim in the skill's source. The skill reads local reference files to provide guidance and code examples.
How we audit skills: our security review methodology.
Who is this skill for?
Sanity developers and engineers working with Sanity schemas, frontend integrations, or content automation.
What can you do with it?
- Designing content schemas and field definitions
- Writing and optimizing GROQ queries
- Configuring Visual Editing and live preview
- Integrating Sanity with Next.js, Nuxt, Astro, Remix, SvelteKit, Angular, or Hydrogen
- Implementing localization and content migrations
- Managing infrastructure with Sanity Blueprints
- Automating workflows with Sanity Functions
How good is this skill?
Quality score: 5/10. The skill provides a clear, structured reference for Sanity development best practices.
What does the skill file contain?
# 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 - Configu...
Frequently asked questions
Which frontend frameworks does this skill support?
The skill supports Next.js, Nuxt, Astro, Remix, SvelteKit, Angular, and Hydrogen.
Does this skill provide automated content migration tools?
The skill provides documentation and guides for content import, including HTML to Portable Text conversion using @portabletext/block-tools.
How should I handle document IDs in Sanity?
The skill advises letting Sanity generate _id values for ordinary documents, reserving explicit IDs for singleton documents managed by Studio Structure.
Related skills
content-modeling-best-practices
2.5KDevelopers and content architects designing or refactoring content schemas
This skill provides structured content modeling guidance for schema design, content architecture, and taxonomy planning in headless CMS environments.
content-experimentation-best-practices
1.9KDevelopers, content strategists, and product managers planning or implementing content experiments
The content-experimentation-best-practices skill provides guidance on A/B testing, multivariate testing, statistical significance, and experimentation workflows. It offers structured references for experiment design, statistical foundations, CMS integration, and common pitfalls.
nuxt-content
1.7KDevelopers building content-heavy applications with Nuxt 3 who need assistance with schema definitions, content querying, and markdown rendering
The nuxt-content skill provides guidance for developing content-driven applications using Nuxt Content v3. It covers typed collections, SQL-backed queries, MDC rendering, database configuration, and NuxtStudio integration.
applying-cms-brand
1.0KUsers who need to generate content that matches specific brand identities stored in Salesforce CMS
This skill retrieves and applies brand guidelines from Salesforce CMS to generated content. It provides a workflow to search for brands, extract instructions, and ensure generated content adheres to specific voice, tone, and style requirements.