01
It starts by itself
PR touches Sanity code. Runs in GitHub Actions or Claude Code routine.
- ↻ PR touches Sanity code
pull_request paths: schema, GROQ queries, Studio structure, sanity.blueprint.ts
Sanity changes follow house rules.
Install the Sanity Best Practices skill and make it a habit: follow https://gethabit.dev/skills/sanity-io/sanity-best-practices.md
31K installs192 starsMIT licenceSource on GitHub ↗

Sanity Best Practices
by sanity-io · 31K installs
The skill
The sanity best practices skill gives Sanity developers topic guides for schemas, GROQ, TypeGen, Visual Editing, Portable Text, localization, migrations, Functions and framework integrations.
Only when you ask.
The habit
Sanity changes follow house rules.
↻ Runs by itselfPR touches Sanity code
When does it start? How does it check its work? What does it remember?
One pull request per run, at most two topic guides loaded.
The run starts from the changed files in the pull request.
The agent picks the single framework or topic guide that fits, like groq, schema or nextjs.
It opens a second reference file only when the change crosses concerns.
It checks IDs, reference fields and video handling against the skill's global rules.
The project build must pass before the review is posted.
Findings go to the run log with the guide that backs each one.
It writes only in its own folder and asks you before anything goes out.
Read both lists. If the left one sounds like you, the Sanity Best Practices skill helps.
No. The skill asks for the one or two files that match the task, so the review stays focused.
Next.js, Nuxt, Astro, Remix, SvelteKit, Angular, Hydrogen and the App SDK, plus topics like GROQ, TypeGen and localization.
Copy the prompt at the top into your agent. It installs the skill from sanity-io/agent-toolkit and sets up the habit. Or run npx skills add sanity-io/agent-toolkit --skill sanity-best-practices.
Yes. It is published under MIT. Habit is free too.
Install the Sanity Best Practices skill and make it a habit: follow https://gethabit.dev/skills/sanity-io/sanity-best-practices.md
All sanity-io skills →More code skills →
Works in
Made by sanity-io, published under MIT. Habit links to the original and never changes it. Is this your skill?