sanity-best-practices

sanity-best-practices is a skill for Claude Code, Codex from vercel/eve. It costs 153 tokens per session (937 once invoked), scanned A, original, Apache-2.0.

A collection of development guidance for Sanity, a content management system, and its related tools. It covers schemas, GROQ queries, images, Portable Text, previews, localization, migrations, and integrations with several web frameworks.

In plain words
What is it for?
Use it when designing content schemas, querying content, setting up a Studio, adding previews or localization, migrating data, or connecting Sanity to a web framework.
Why use it?
It helps developers make consistent decisions when building or changing a Sanity project instead of relying on isolated guesses about each feature.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one.

Good fit Use it when designing content schemas, querying content, setting up a Studio, adding previews or localization, migrating data, or connecting Sanity to a web framework.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vercel/eve/sanity-best-practices
About the project

eve is a filesystem-first framework for building durable AI agents, with agent instructions, tools, and configuration kept in ordinary project files. It is for developers creating agents that can be inspected, extended, and operated through a conventional codebase. The catalogue add-ons support working with eve agents and their workflows.

vercel/eve · 6,115 stars · on GitHub · eve.dev

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add vercel/eve --skill sanity-best-practices
Clone the repo
git clone --depth 1 https://github.com/vercel/eve

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sanity-best-practices

README.md
[![agentmods](https://agentmods.dev/badge/skills/vercel/eve/sanity-best-practices/github.svg)](https://agentmods.dev/skills/vercel/eve/sanity-best-practices)
Your own site
<a href="https://agentmods.dev/skills/vercel/eve/sanity-best-practices"><img src="https://agentmods.dev/badge/skills/vercel/eve/sanity-best-practices/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sanity-best-practices

Your own site · 80×15
<a href="https://agentmods.dev/skills/vercel/eve/sanity-best-practices"><img src="https://agentmods.dev/badge/skills/vercel/eve/sanity-best-practices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 153 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 937 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00153 $0.00937
Opus 5.5 $0.00061 $0.00375
Sonnet 5.5 $0.00031 $0.00187
Haiku 4.5 $0.00015 $0.00094

Measured 12d ago against content hash 42cbd89954ed, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sanity-best-practices scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

5 near-identical copies found in the catalogue:

apps/templates/sanity-copilot-eve-template/agent/skills/sanity-best-practices/SKILL.md · 81 lines

How it starts

The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Sanity Best Practices

Comprehensive best practices and integration guides for Sanity development, maintained by Sanity. Use the quick reference below to load only the one or two topic files that match the task.

When to Apply

Reference these guidelines when:

  • Setting up a new Sanity project or onboarding
  • Integrating Sanity with a frontend framework (Next.js, Nuxt, Astro, Remix, SvelteKit, Hydrogen)
  • Writing GROQ queries or optimizing performance
  • Designing content schemas
  • Implementing Visual Editing and live preview
  • Working with images, Portable Text, or page builders
  • Configuring Sanity Studio structure
  • Setting up TypeGen for type safety
  • Implementing localization
  • Migrating content from other systems
  • Building custom apps with the Sanity App SDK
  • Managing infrastructure with Blueprints
  • Automating content workflows with Sanity Functions

Global Rules

  • Let Sanity generate _id values for ordinary documents. Do not create deterministic UUIDs, slug-derived IDs, or legacy-system IDs when creating documents.
  • Model relationships with reference fields, then resolve related documents with GROQ lookups, source-key fields, or returned _id values from created documents.
  • Use explicit document IDs mainly for singleton documents controlled by Studio Structure, including localized singletons such as homePage-en.

Quick Reference

Integration Guides

  • get-started - Interactive onboarding for new Sanity projects
  • nextjs - Next.js App Router, Live Content API, standalone Studio
  • nuxt - Nuxt integration with @nuxtjs/sanity
  • angular - Angular integration with @sanity/client, signals, resource API
  • astro - Astro integration with @sanity/astro
  • remix - React Router / Remix integration
  • svelte - SvelteKit integration with @sanity/svelte-loader
  • hydrogen - Shopify Hydrogen with Sanity
  • project-structure - Standalone Studio and monorepo patterns
  • app-sdk - Custom applications with Sanity App SDK
  • blueprints - Infrastructure as Code: blueprint files, stacks, plan/deploy workflow, error recovery, CI deploys
  • functions - Automating content workflows with Sanity Functions

Read the full file on GitHub · 81 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago Changed · +3 lines 42cbd89954ed
  2. 16d ago First seen · 78 lines · 153 tokens per session scan A 12b06bd1b651

Subscribe to this mod's changes

sanity-best-practices is a skill published in the GitHub repository vercel/eve (6,115 stars, last pushed today), licensed Apache-2.0. It adds 153 tokens to every session and 937 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-14.

Related

sanity-best-practices compared with skills from other repositories

sanity-best-practices next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sanity-best-practicesvercel/eveSkill6.1ktodayApache-2.0A153Claude Code, Codex
frontmcp-guidesagentfront/frontmcpSkill154todayApache-2.0A157Claude Code, Codex
parameterized-skillagentfront/frontmcpSkill154todayApache-2.0A21Claude Code, Codex
agent-creatorranbot-ai/awesome-skillsSkill15todaynoneA22Claude Code, Codex
animated-github-profileranbot-ai/awesome-skillsSkill15todaynoneA51Claude Code, Codex
api-documentation-generatorranbot-ai/awesome-skillsSkill15todaynoneB25Claude Code, Codex
prisma-8prisma/ormSkill48ktodayApache-2.0A216Claude Code, Codex