sanity-best-practices

sanity best practices

sanity-io 166 ↓ 14k MIT updated 26d ago
Claude Code
View source ↗

What it does

  • 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

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

sanity best practices

Source

Repository: https://github.com/sanity-io/agent-toolkit

sanity-best-practices FAQ

What does the sanity-best-practices skill do?

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 modeling, Presentation or preview setups, Sanity-powered frontend integrations, event-driven content automation, documentEventHandler, defineDocumentFunction, defineMediaLibraryAssetFunction, @sanity/functions, @sanity/blueprints, sanity.blueprint.ts, event-driven content automation, or when reviewing and fixing a Sanity codebase. Setting up a new Sanity project or onboarding Integrating Sanity with a frontend framework (Next.js, Nuxt, Astro, Remix, SvelteKit, Hydrogen)

How do I install sanity-best-practices?

Run: npx -y skills add https://github.com/sanity-io/agent-toolkit --skill sanity-best-practices --agent claude-code — the source lives at github.com/sanity-io/agent-toolkit.

Maintain sanity-best-practices?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

sanity-best-practices on getagentictools
[![sanity-best-practices on getagentictools](https://getagentictools.com/badge/skills/sanity-io-agent-toolkit-sanity-best-practices.svg)](https://getagentictools.com/skills/sanity-io-agent-toolkit-sanity-best-practices?ref=badge)
npx agentictools info skills/sanity-io-agent-toolkit-sanity-best-practices

The second line is the CLI lookup for this page — handy in READMEs and docs.