Convex's official top-level agent skill — routes an agent to the right convex-* skill for the task and to a served capability catalogue that stays current without a reinstall.
Sanity Best PracticesSkill
Summary
Sanity's official agent skill — schema design, GROQ, TypeGen, Visual Editing, Portable Text, Studio structure, localization, Functions and Blueprints, plus integration guides for eight frontend frameworks.
Features
- Routing index: load only the one or two topic files a task needs
- Integration guides for Next.js, Nuxt, Astro, Remix, SvelteKit, Angular and Hydrogen
- GROQ query patterns, defineQuery and performance optimization
- TypeGen setup for end-to-end type safety
- Visual Editing, Presentation preview, Portable Text and page builders
- Explicit video guidance: why file assets are the wrong place for production video
- Blueprints (infrastructure as code) and Sanity Functions for content automation
Install This Skill
Add this skill to your favorite AI agent in a few steps.
Skill Content
Usage Instructions
Learn how to use this skill with different AI agents.
Example Usage
Wire this Next.js App Router site to Sanity with Visual Editing and TypeGen, and review my existing GROQ queries for performance.
Description
Sanity maintains this skill as the reference an agent should load before writing anything against a Sanity project, and it is built around a load-what-you-need index rather than one long document. The SKILL.md is a routing table: twenty-one integration and topic guides plus twenty-six focused best-practice rules, and the instruction is to pull the one or two files that match the task instead of loading the whole set.
Framework coverage is the practical reason to install it: Next.js App Router with the Live Content API and a standalone Studio, Nuxt via @nuxtjs/sanity, Astro via @sanity/astro, React Router / Remix, SvelteKit via @sanity/svelte-loader, Angular with signals and the resource API, and Shopify Hydrogen. Each guide is Sanity's own current wiring, which is where model knowledge tends to be stale.
The global rules are opinionated and specific, and they read like the accumulated result of support tickets. Let Sanity generate _id values for ordinary documents — do not mint deterministic UUIDs, slug-derived IDs or legacy-system IDs. Model relationships with reference fields and resolve them with GROQ lookups. Reserve explicit document IDs mainly for singletons under Studio Structure, including localized ones like homePage-en.
One section is worth reading before you architect anything: the video guidance. Sanity file assets are delivered as raw downloads with no transcoding and no adaptive streaming, so serving production video from them drives very high bandwidth and unexpectedly large bills. The skill tells the agent to use Media Library with Mux-backed adaptive streaming on Enterprise plans with the video add-on, sanity-plugin-mux-input or an external host otherwise, and to keep file fields for short clips only. That is exactly the sort of constraint an agent would otherwise cheerfully violate.
The rest spans GROQ optimization and defineQuery, schema patterns with defineType/defineField, TypeGen for end-to-end type safety, Visual Editing and Presentation preview, images and Portable Text, page builders, Studio customization, localization, migrations, the App SDK, Blueprints for infrastructure-as-code, and Sanity Functions and webhooks for event-driven content automation.
MIT licensed, part of sanity-io/agent-toolkit, and announced alongside Sanity's other agent skills in January 2026.
Related Skills
Official Shopify skill for theme development in Liquid — teaches an agent the modern theme architecture of sections, blocks and snippets, and validates generated templates and schemas.
Shopify's official skill for writing Admin GraphQL queries and mutations — it searches the live API docs and validates every operation against the schema before handing you code.
Planning skill that interrogates your use case before any code is written, then recommends the right Twilio Conversations stack — ConversationRelay, Memory, Intelligence, Orchestrator, TaskRouter — and the implementation skills to follow.