What the tech

Search

/ opens search from anywhere. Esc closes it.

Tools

Get the newsletter

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).

  • Adoption35 points 41
  • Upkeep20 points 100
  • Trust20 points 94
  • Quality15 points 100
  • Reader answers10 points Not enough answers yet, so this does not count

How the formula works

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.

ScannerResultDate
Gen Agent Trust HubPassedOct 27, 2026
SocketMedium riskOct 27, 2026
SnykLow riskOct 27, 2026
RunlayerMedium riskMar 7, 2026
ZeroLeaksPassedApr 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

Alternatives to sanity-best-practices

All skills for this job
  • sanity-migration

    For teams moving content from WordPress, Contentful, Drupal, AEM or Markdown into Sanity.

    Score 76 23.8K installs Official

    Get sanity-migration
  • Prisma

    For TypeScript developers on Prisma ORM who want correct queries, CLI commands and database setup.

    Score 87 422K installs Official

    Get Prisma
  • convex

    For developers building on Convex or wanting a TypeScript backend with a realtime database.

    Score 77 114K installs Official

    Get convex
  • tailwind-design-system

    For developers setting up a component library or design tokens on Tailwind CSS v4.

    Score 76 73K installs

    Get tailwind-design-system