CoursesAI-powered Sanity developmentAdd best practice skills
AI-powered Sanity development

Add best practice skills

The Sanity Agent Toolkit gives your AI assistant opinionated, Sanity-specific guidance—so it writes better code from the start.
Log in to mark your progress for each Lesson and Task

Without guidance, AI tools write generic Sanity code. They know the APIs, but they won't follow our opinionated best practices—things like how to structure schemas, write GROQ queries, handle localization, or set up Visual Editing. The Sanity Agent Toolkit fixes that.

The Sanity Agent Toolkit (github.com/sanity-io/agent-toolkit) is a collection of resources that helps AI agents build better with Sanity. It includes:

  • 20+ context skills covering schema design, GROQ, Visual Editing, SEO, localization, migrations, and framework integrations
  • A Claude Code plugin with slash commands and interactive skills for common workflows
  • A knowledge router (AGENTS.md) that directs AI to the right guidance based on task keywords

The fastest way to add the toolkit to your project is with the skills CLI. Run this from your project directory:

npx skills add sanity-io/agent-toolkit

This installs the toolkit's rules and skills directly into your project, making them available to your AI assistant in Cursor and other supported editors.

Once installed, your AI assistant will have access to Sanity-specific guidance whenever it's working on your project. You'll notice it makes better decisions about schema design, writes more idiomatic GROQ, and avoids common pitfalls—without you having to explain Sanity conventions in every prompt.

Mark lesson as complete
You have 1 uncompleted task in this lesson
0 of 1