sanity-best-practices: a Claude Code skill by Sanity
Official
For developers building or fixing a Sanity project who want Sanity's own patterns for schemas and GROQ. Skip it if your content lives in a different CMS.
- Score
- 76of 100
- Rank
- #104of 239
- Installs
- 33.9Kon skills.sh
- Security
- Mixed 5 scanners
- Updated
- 2026
- Context
- ~210tokens always
Install
npx skills add https://github.com/sanity-io/agent-toolkit --skill sanity-best-practices
Run it in your terminal. View the source
Using the Claude app rather than Claude Code? You can add a skill there too. How to add it in the app
What does sanity-best-practices do?
sanity-best-practices is a skill that points Claude to Sanity's own guides for the task at hand and tells it to load only one or two. Integration guides cover Next.js, Nuxt, Astro, Remix, SvelteKit, Angular, Hydrogen, the App SDK, Dashboard apps, Blueprints and Functions. Topic guides cover GROQ, schema design, Visual Editing, page builders, Portable Text, images, Studio structure, TypeGen, SEO, localization and migration. A few rules apply everywhere: let Sanity create document IDs, model links with reference fields, and never serve production video from file assets; use Media Library or Mux instead.
When should you use sanity-best-practices?
Use it when
- You are designing Sanity schemas or content models
- You are wiring Sanity into Next.js, Nuxt or Astro
- You want to review and fix an existing Sanity codebase
Skip it when
- Your project doesn't use Sanity
Why it scores 76
Strongest on upkeep (100 of 100), weakest on adoption (41).
Is sanity-best-practices safe to install?
At least one scanner raised a medium warning. Read the results below. Scanners often miss what other scanners catch, and a skill can change after a scan. Read its source before you install it.
| Scanner | Result | Date |
|---|---|---|
| Gen Agent Trust Hub | Passed | Oct 27, 2026 |
| Socket | Medium risk | Oct 27, 2026 |
| Snyk | Low risk | Oct 27, 2026 |
| Runlayer | Medium risk | Mar 7, 2026 |
| ZeroLeaks | Passed | Apr 16, 2026 |
Details
- Installs
- 33,913
- Repository stars
- 197
- Last repository change
- Tokens always loaded
- about 210
- Tokens when used
- about 1,166
- License
- MIT
- Data confidence
- High
Did it do the job for you?
Alternatives to sanity-best-practices
All skills for this job-
Get sanity-migrationsanity-migration
For teams moving content from WordPress, Contentful, Drupal, AEM or Markdown into Sanity.
-
Get PrismaPrisma
For TypeScript developers on Prisma ORM who want correct queries, CLI commands and database setup.
-
Get convexconvex
For developers building on Convex or wanting a TypeScript backend with a realtime database.
-
Get tailwind-design-systemtailwind-design-system
For developers setting up a component library or design tokens on Tailwind CSS v4.