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.
$npx -y skills add sanity-io/agent-toolkit --skill sanity-best-practicesInstalls into the current project.
Run `npx skills use "https://github.com/sanity-io/agent-toolkit" --skill "sanity-io/agent-toolkit/sanity-best-practices"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/sanity-io/agent-toolkit" that are relevant to the current task. Run `npx skills add "https://github.com/sanity-io/agent-toolkit"` and select the relevant skills, then follow their instructions.