Agent skill · Sanity
Sanity Best Practices skill for Claude Code, Codex and Cursor
Officialname: sanity-best-practices★ 194 (repo)pushed 2026-10-23MITSKILL.md on GitHubchecked 2026-11-07
What it does, in the publisher's words
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, the App SDK, and Studios or apps running in the Sanity Dashboard (defineApplication).
The description field of the SKILL.md. The agent reads only this at startup and decides from it when to load the full skill.
Install Sanity Best Practices
The skills CLI copies the skill into the folder of each agent you pick (Claude Code, Codex, Cursor, Copilot, Gemini CLI, OpenCode, Windsurf...). Add -g for all projects. Needs Node.js 22.20+. docs
npx skills add sanity-io/agent-toolkit --skill sanity-best-practices
This repo is a plugin marketplace. Inside Claude Code, add it and install the plugin that holds the skill (sanity), or copy only this skill into ~/.claude/skills. docs
/plugin marketplace add sanity-io/agent-toolkit /plugin install <plugin>@sanity-agent-toolkit # or only this skill: npx skills add sanity-io/agent-toolkit --skill sanity-best-practices -a claude-code
Download the skill folder, zip it, then Customize > Skills > + > Create skill > Upload a skill. Code execution must be on (Settings > Capabilities). docs
git clone --depth 1 https://github.com/sanity-io/agent-toolkit.git /tmp/sanity-best-practices-src cp -r /tmp/sanity-best-practices-src/skills/sanity-best-practices ./sanity-best-practices zip -r sanity-best-practices.zip sanity-best-practices
Codex reads skills from .agents/skills in the repo or ~/.agents/skills. Type $ in Codex to use one. docs
npx skills add sanity-io/agent-toolkit --skill sanity-best-practices -a codex
gh skill (GitHub CLI 2.90+, preview) installs it for Copilot in VS Code, the CLI and the cloud agent. Copilot also reads .github/skills and ~/.copilot/skills. docs
gh skill install sanity-io/agent-toolkit sanity-best-practices
Cursor reads .cursor/skills, .agents/skills and ~/.cursor/skills (and .claude/skills). It does not install loose skills from a GitHub URL, so copy it in. docs
npx skills add sanity-io/agent-toolkit --skill sanity-best-practices -a cursor
Installs from the GitHub repo; --path picks this skill out of the repo. Default scope is user (all projects). docs
gemini skills install https://github.com/sanity-io/agent-toolkit.git --path skills/sanity-best-practices
OpenCode reads .opencode/skills, ~/.config/opencode/skills and the Claude and .agents folders. docs
npx skills add sanity-io/agent-toolkit --skill sanity-best-practices -a opencode
Windsurf (now Devin Desktop) reads .devin/skills, .windsurf/skills and ~/.codeium/windsurf/skills. docs
npx skills add sanity-io/agent-toolkit --skill sanity-best-practices -a windsurf
Works with
Claude Code, Claude.ai and Claude Desktop, Codex, GitHub Copilot, Cursor, Gemini CLI, OpenCode, Windsurf and other agents that read the open Agent Skills format.
What's in the SKILL.md
- When to Apply
- Global Rules
- Video
- Quick Reference
- Integration Guides
- Topic Guides
- How to Use
Bundled files
- references/angular.md
- references/app-sdk.md
- references/astro.md
- references/blueprints.md
- references/dashboard.md
- references/functions.md
- references/get-started.md
- references/groq.md
- references/hydrogen.md
- references/image.md
- references/localization.md
- references/migration-html-import.md
- references/migration.md
- references/nextjs.md
- references/nuxt.md
- references/page-builder.md
- references/portable-text.md
- references/project-structure.md
- references/remix.md
- references/schema.md
- + 5 more
Loaded only when the instructions point to them.
Facts
- Skill name
- sanity-best-practices
- Publisher
- Sanity (official)
- Repo
- sanity-io/agent-toolkit
- License
- MIT
- SKILL.md size
- 670 words, 84 lines
- Bundled files
- 25, 25 docs
- Repo stars
- 194 (as of 2026-10-24)
- SKILL.md checked
- 2026-11-07
Pairs with the Sanity MCP server: the server gives the agent the tools, the skill teaches it how to use them.
Related backend & databases skills
- Optimize EF Core Queries · Microsoft (.NET)
- Durable Objects · Cloudflare
- Supabase · Supabase
- Postgres Best Practices (Supabase) · Supabase
- Firebase Basics · Firebase (Google)
- Cloud Firestore · Firebase (Google)
- MongoDB Schema Design · MongoDB
- Neon Postgres · Neon
FAQ
What does the sanity-best-practices skill do?+
Sanity CMS guidance on schemas, GROQ, TypeGen, Visual Editing, Studio and migrations. In its own SKILL.md, Sanity describes it as: "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, the..."
How do I install the sanity-best-practices skill?+
Run npx skills add sanity-io/agent-toolkit --skill sanity-best-practices and pick your agents, or use the tab for your agent above. In Claude Code the skill ends up in ~/.claude/skills/sanity-best-practices/SKILL.md; in Codex and Cursor in .agents/skills/sanity-best-practices/.
Does Sanity Best Practices work in Codex, Cursor and Copilot, or only Claude?+
It's a standard SKILL.md, so any agent that reads the Agent Skills format can use it: Claude Code, the Claude apps, Codex, GitHub Copilot, Cursor, Gemini CLI, OpenCode, Windsurf and more.
Who maintains Sanity Best Practices?+
Sanity, the company or project behind it, in the sanity-io/agent-toolkit repo on GitHub, last pushed 2026-10-23. License: MIT.
Read a skill's SKILL.md and scripts before you install it: skills aren't verified by any agent vendor. Claude skills marketplace · How to install skills · MCP servers