2025-12-11 17:27:50 +01:00
<p align="center">
<a href="https://sanity.io">
<img src="https://cdn.sanity.io/images/3do82whm/next/d6cf401d52c33b7a5a354a14ab7de94dea2f0c02-192x192.svg" />
</a>
<h1 align="center">Sanity Agent Toolkit</h1>
</p>
2026-05-13 10:37:34 -07:00
Collection of resources to help AI agents build better with [Sanity ](https://www.sanity.io ). Supports Cursor, Claude Code, Codex, VS Code, Lovable, v0, and any other editor/agent compatible with MCP or [Agent Skills ](https://agentskills.io ).
2025-12-11 17:27:50 +01:00
---
## Features
- **MCP server:** Direct access to your Sanity projects (content, datasets, releases, schemas) and agent rules.
2026-02-23 14:47:12 -08:00
- **Agent skills:** Comprehensive best practices skills for Sanity development, content modeling, SEO/AEO, and experimentation. Includes 21 integration/topic guides and 26 focused best-practice rules.
- **Claude Code plugin:** MCP server, agent skills, and slash commands for [Claude Code ](https://docs.anthropic.com/en/docs/agents-and-tools/claude-code/overview ) users.
- **Cursor plugin:** MCP server, agent skills, and commands for the [Cursor Marketplace ](https://cursor.com/marketplace ).
2026-05-13 10:37:34 -07:00
- **Codex plugin:** MCP server and agent skills for [OpenAI Codex ](https://developers.openai.com/codex ) users.
2025-12-11 17:27:50 +01:00
---
## Get started
2025-12-12 11:15:26 +01:00
Choose your path based on how you want agents to work with Sanity:
2025-12-18 12:27:23 +01:00
1. **MCP server ** — Give your agent always up-to-date rules and full access to your Sanity projects. No local files to maintain. Works with Cursor, VS Code, Claude Code, Lovable, v0, and other MCP-compatible clients.
Add Agent Skills following agentskills.io format
Introduces 4 new Agent Skills compatible with Cursor, Claude Code, and other
agents supporting the Agent Skills standard:
- sanity-best-practices: GROQ performance, schema design, Visual Editing,
images, Portable Text, Studio, TypeGen, localization, migrations (26 rules)
- content-modeling-best-practices: Structured content principles
- seo-aeo-best-practices: SEO/AEO with EEAT principles and structured data
- content-experimentation-best-practices: A/B testing methodology
Also includes:
- Updated README with installation instructions (npx skills add)
- Added skills-ref validation (npm run validate)
- Updated MCP documentation to match official docs
- Removed old procedural skills from sanity-plugin/skills/
2026-01-23 15:39:53 -08:00
2. **Agent skills ** — Install best practices skills for Sanity, content modeling, SEO/AEO, and experimentation. Works with Cursor, Claude Code, and any [Agent Skills ](https://agentskills.io )-compatible agent.
2026-02-23 14:47:12 -08:00
3. **Plugin ** — Install the Sanity plugin for Cursor or Claude Code. Bundles MCP server, agent skills, and commands.
4. **Manual installation ** — Copy the skill references locally for offline use. You'll need to update them yourself.
2025-12-12 11:15:26 +01:00
2025-12-11 17:27:50 +01:00
### Option 1: Install MCP server (recommended)
Give agents direct access to Sanity projects and always up-to-date agent rules via the MCP server.
2025-12-18 12:27:23 +01:00
#### Quick install via Sanity CLI
2025-12-11 17:27:50 +01:00
2025-12-11 18:47:11 +01:00
Run in terminal to detect and configure MCP for Cursor, Claude Code and VS Code automatically:
2025-12-11 17:27:50 +01:00
``` bash
npx sanity@latest mcp configure
```
2025-12-18 12:27:23 +01:00
Uses your logged-in CLI user for authentication — no manual tokens or OAuth needed.
2025-12-11 17:27:50 +01:00
2025-12-18 12:27:23 +01:00
#### Client-specific instructions
2025-12-11 17:27:50 +01:00
2025-12-18 12:27:23 +01:00
<details>
<summary><strong>Cursor</strong></summary>
2025-12-11 17:27:50 +01:00
2025-12-18 12:45:31 +01:00
One-click install:<br>
[](https://cursor.com/en-US/install-mcp?name=Sanity&config=eyJ0eXBlIjoiaHR0cCIsInVybCI6Imh0dHBzOi8vbWNwLnNhbml0eS5pbyJ9)
2025-12-18 12:27:23 +01:00
Add Agent Skills following agentskills.io format
Introduces 4 new Agent Skills compatible with Cursor, Claude Code, and other
agents supporting the Agent Skills standard:
- sanity-best-practices: GROQ performance, schema design, Visual Editing,
images, Portable Text, Studio, TypeGen, localization, migrations (26 rules)
- content-modeling-best-practices: Structured content principles
- seo-aeo-best-practices: SEO/AEO with EEAT principles and structured data
- content-experimentation-best-practices: A/B testing methodology
Also includes:
- Updated README with installation instructions (npx skills add)
- Added skills-ref validation (npm run validate)
- Updated MCP documentation to match official docs
- Removed old procedural skills from sanity-plugin/skills/
2026-01-23 15:39:53 -08:00
Or manually: Open **Command Palette ** (`Cmd+Shift+P` / `Ctrl+Shift+P` ) → **View: Open MCP Settings ** → * * + New MCP Server** → add to `mcp.json` :
2025-12-11 17:27:50 +01:00
``` json
{
"mcpServers" : {
"Sanity" : {
"type" : "http" ,
"url" : "https://mcp.sanity.io"
}
}
}
```
2025-12-18 12:27:23 +01:00
</details>
2025-12-11 17:27:50 +01:00
2025-12-18 12:27:23 +01:00
<details>
<summary><strong>Claude Code</strong></summary>
2025-12-11 17:27:50 +01:00
Add Agent Skills following agentskills.io format
Introduces 4 new Agent Skills compatible with Cursor, Claude Code, and other
agents supporting the Agent Skills standard:
- sanity-best-practices: GROQ performance, schema design, Visual Editing,
images, Portable Text, Studio, TypeGen, localization, migrations (26 rules)
- content-modeling-best-practices: Structured content principles
- seo-aeo-best-practices: SEO/AEO with EEAT principles and structured data
- content-experimentation-best-practices: A/B testing methodology
Also includes:
- Updated README with installation instructions (npx skills add)
- Added skills-ref validation (npm run validate)
- Updated MCP documentation to match official docs
- Removed old procedural skills from sanity-plugin/skills/
2026-01-23 15:39:53 -08:00
Run in terminal. Authenticate with OAuth on next launch:
2025-12-11 17:27:50 +01:00
``` bash
claude mcp add Sanity -t http https://mcp.sanity.io --scope user
```
2025-12-18 12:27:23 +01:00
</details>
2026-05-13 10:37:34 -07:00
<details>
<summary><strong>Codex</strong></summary>
Run in terminal. Authenticate with OAuth on next launch:
``` bash
codex mcp add Sanity --url https://mcp.sanity.io
```
Or manually add to `~/.codex/config.toml` :
``` toml
[ mcp_servers . Sanity ]
url = "https://mcp.sanity.io"
```
</details>
2025-12-18 12:27:23 +01:00
<details>
<summary><strong>VS Code</strong></summary>
2025-12-11 17:27:50 +01:00
Add Agent Skills following agentskills.io format
Introduces 4 new Agent Skills compatible with Cursor, Claude Code, and other
agents supporting the Agent Skills standard:
- sanity-best-practices: GROQ performance, schema design, Visual Editing,
images, Portable Text, Studio, TypeGen, localization, migrations (26 rules)
- content-modeling-best-practices: Structured content principles
- seo-aeo-best-practices: SEO/AEO with EEAT principles and structured data
- content-experimentation-best-practices: A/B testing methodology
Also includes:
- Updated README with installation instructions (npx skills add)
- Added skills-ref validation (npm run validate)
- Updated MCP documentation to match official docs
- Removed old procedural skills from sanity-plugin/skills/
2026-01-23 15:39:53 -08:00
Open **Command Palette ** (`Cmd+Shift+P` / `Ctrl+Shift+P` ) → **MCP: Open User Configuration ** → add:
2025-12-11 17:27:50 +01:00
``` json
{
"servers" : {
"Sanity" : {
"type" : "http" ,
"url" : "https://mcp.sanity.io"
}
}
}
```
2025-12-18 12:27:23 +01:00
</details>
<details>
<summary><strong>Lovable</strong></summary>
Add Agent Skills following agentskills.io format
Introduces 4 new Agent Skills compatible with Cursor, Claude Code, and other
agents supporting the Agent Skills standard:
- sanity-best-practices: GROQ performance, schema design, Visual Editing,
images, Portable Text, Studio, TypeGen, localization, migrations (26 rules)
- content-modeling-best-practices: Structured content principles
- seo-aeo-best-practices: SEO/AEO with EEAT principles and structured data
- content-experimentation-best-practices: A/B testing methodology
Also includes:
- Updated README with installation instructions (npx skills add)
- Added skills-ref validation (npm run validate)
- Updated MCP documentation to match official docs
- Removed old procedural skills from sanity-plugin/skills/
2026-01-23 15:39:53 -08:00
**Settings ** → **Connectors ** → **Personal connectors ** → **New MCP server ** → Enter `Sanity` as name and `https://mcp.sanity.io` as Server URL → **Add & authorize ** → Authenticate with OAuth.
2025-12-18 12:27:23 +01:00
</details>
<details>
<summary><strong>v0</strong></summary>
Add Agent Skills following agentskills.io format
Introduces 4 new Agent Skills compatible with Cursor, Claude Code, and other
agents supporting the Agent Skills standard:
- sanity-best-practices: GROQ performance, schema design, Visual Editing,
images, Portable Text, Studio, TypeGen, localization, migrations (26 rules)
- content-modeling-best-practices: Structured content principles
- seo-aeo-best-practices: SEO/AEO with EEAT principles and structured data
- content-experimentation-best-practices: A/B testing methodology
Also includes:
- Updated README with installation instructions (npx skills add)
- Added skills-ref validation (npm run validate)
- Updated MCP documentation to match official docs
- Removed old procedural skills from sanity-plugin/skills/
2026-01-23 15:39:53 -08:00
In the prompt input field, click **Prompt Tools ** → **MCPs ** → **Add New ** → Select **Sanity ** → **Authorize ** → Authenticate with OAuth.
</details>
<details>
<summary><strong>Replit</strong></summary>
Go to [Integrations Page ](https://replit.com/integrations ) → scroll to **MCP Servers for Replit Agent ** → **Add MCP server ** → Enter `Sanity` as name and `https://mcp.sanity.io` as Server URL → **Test & Save ** → Authenticate with OAuth.
</details>
<details>
<summary><strong>OpenCode</strong></summary>
Add to your `opencode.json` :
``` json
{
"$schema" : "https://opencode.ai/config.json" ,
"mcp" : {
"sanity" : {
"type" : "remote" ,
"url" : "https://mcp.sanity.io" ,
"oauth" : { }
}
}
}
```
Then run: `opencode mcp auth sanity`
2025-12-18 12:27:23 +01:00
</details>
<details>
<summary><strong>Other clients</strong></summary>
For any MCP-compatible client, add `https://mcp.sanity.io` as the server URL.
If your client doesn't support remote MCP servers, use a proxy like `mcp-remote` :
``` json
{
"mcpServers" : {
"Sanity" : {
"command" : "npx" ,
"args" : [ "mcp-remote" , "https://mcp.sanity.io" , "--transport" , "http-only" ]
}
}
}
```
</details>
<br />
2025-12-11 17:27:50 +01:00
2025-12-18 12:27:23 +01:00
See the [Sanity MCP docs ](https://www.sanity.io/docs/compute-and-ai/mcp-server ) for authorization options and troubleshooting.
2025-12-11 17:27:50 +01:00
Add Agent Skills following agentskills.io format
Introduces 4 new Agent Skills compatible with Cursor, Claude Code, and other
agents supporting the Agent Skills standard:
- sanity-best-practices: GROQ performance, schema design, Visual Editing,
images, Portable Text, Studio, TypeGen, localization, migrations (26 rules)
- content-modeling-best-practices: Structured content principles
- seo-aeo-best-practices: SEO/AEO with EEAT principles and structured data
- content-experimentation-best-practices: A/B testing methodology
Also includes:
- Updated README with installation instructions (npx skills add)
- Added skills-ref validation (npm run validate)
- Updated MCP documentation to match official docs
- Removed old procedural skills from sanity-plugin/skills/
2026-01-23 15:39:53 -08:00
### Option 2: Install Agent Skills
Install best practices skills that work with any [Agent Skills ](https://agentskills.io )-compatible agent.
``` bash
npx skills add sanity-io/agent-toolkit
```
2026-02-20 11:15:14 -08:00
See [Option 3 ](#option-3-install-plugin ) for plugin installation.
Add Agent Skills following agentskills.io format
Introduces 4 new Agent Skills compatible with Cursor, Claude Code, and other
agents supporting the Agent Skills standard:
- sanity-best-practices: GROQ performance, schema design, Visual Editing,
images, Portable Text, Studio, TypeGen, localization, migrations (26 rules)
- content-modeling-best-practices: Structured content principles
- seo-aeo-best-practices: SEO/AEO with EEAT principles and structured data
- content-experimentation-best-practices: A/B testing methodology
Also includes:
- Updated README with installation instructions (npx skills add)
- Added skills-ref validation (npm run validate)
- Updated MCP documentation to match official docs
- Removed old procedural skills from sanity-plugin/skills/
2026-01-23 15:39:53 -08:00
2026-02-20 11:15:14 -08:00
### Option 3: Install plugin
Add Agent Skills following agentskills.io format
Introduces 4 new Agent Skills compatible with Cursor, Claude Code, and other
agents supporting the Agent Skills standard:
- sanity-best-practices: GROQ performance, schema design, Visual Editing,
images, Portable Text, Studio, TypeGen, localization, migrations (26 rules)
- content-modeling-best-practices: Structured content principles
- seo-aeo-best-practices: SEO/AEO with EEAT principles and structured data
- content-experimentation-best-practices: A/B testing methodology
Also includes:
- Updated README with installation instructions (npx skills add)
- Added skills-ref validation (npm run validate)
- Updated MCP documentation to match official docs
- Removed old procedural skills from sanity-plugin/skills/
2026-01-23 15:39:53 -08:00
2026-02-23 14:47:12 -08:00
Install the Sanity plugin to get MCP server, agent skills, and commands.
2025-12-11 17:27:50 +01:00
2026-02-20 11:15:14 -08:00
#### Claude Code
2025-12-11 17:27:50 +01:00
2025-12-11 17:45:42 +01:00
1. Add the Sanity marketplace:
```
/plugin marketplace add sanity-io/agent-toolkit
```
2. Install the plugin:
2025-12-11 17:27:50 +01:00
```
2025-12-11 17:45:42 +01:00
/plugin install sanity-plugin@sanity-agent-toolkit
```
3. Verify installation: Ask Claude Code: "which skills do you have access to?"
You should see the Sanity skills listed.
4. Start using: Use natural language and skills activate automatically:
2026-03-05 15:29:54 -08:00
> Help me create a blog post schema in Sanity
> Review my GROQ query and Next.js Visual Editing setup
2025-12-11 17:27:50 +01:00
2025-12-11 17:45:42 +01:00
Or run `/sanity` to explore all capabilities.
2025-12-11 17:27:50 +01:00
2026-02-20 11:15:14 -08:00
#### Cursor
In Cursor chat, run:
```
2026-03-05 09:34:51 -08:00
/add-plugin sanity
2026-02-20 11:15:14 -08:00
```
2026-05-13 10:37:34 -07:00
#### Codex
1. Add the Sanity marketplace:
``` bash
codex plugin marketplace add sanity-io/agent-toolkit
```
2. Install the plugin from Codex's plugin directory (select the **Sanity Agent Toolkit ** marketplace, then install **Sanity ** ).
3. Restart Codex. Verify by asking: "which skills do you have access to?" — you should see the Sanity skills listed.
Add Agent Skills following agentskills.io format
Introduces 4 new Agent Skills compatible with Cursor, Claude Code, and other
agents supporting the Agent Skills standard:
- sanity-best-practices: GROQ performance, schema design, Visual Editing,
images, Portable Text, Studio, TypeGen, localization, migrations (26 rules)
- content-modeling-best-practices: Structured content principles
- seo-aeo-best-practices: SEO/AEO with EEAT principles and structured data
- content-experimentation-best-practices: A/B testing methodology
Also includes:
- Updated README with installation instructions (npx skills add)
- Added skills-ref validation (npm run validate)
- Updated MCP documentation to match official docs
- Removed old procedural skills from sanity-plugin/skills/
2026-01-23 15:39:53 -08:00
### Option 4: Manual installation
2025-12-11 17:27:50 +01:00
2026-02-23 14:47:12 -08:00
Install the skill references locally to teach your editor Sanity best practices:
2025-12-11 17:27:50 +01:00
2026-02-23 14:47:12 -08:00
1. Copy `skills/sanity-best-practices/` to your project.
2. (Recommended) Copy `AGENTS.md` to your project root to act as a knowledge router.
2025-12-11 17:27:50 +01:00
---
## Capabilities
### MCP tools
With MCP connected, your AI can use tools like:
- `query_documents` — run GROQ queries directly
2026-02-21 00:35:58 -08:00
- `create_documents_from_json` / `create_documents_from_markdown` — create draft documents
- `patch_document_from_json` / `patch_document_from_markdown` — surgical edits to existing documents
- `publish_documents` / `unpublish_documents` — manage document lifecycle
- `deploy_schema` / `get_schema` — deploy and inspect schemas
- `create_version` — create version documents for releases
- `generate_image` / `transform_image` — AI image generation and editing
- `search_docs` / `read_docs` — search and read Sanity documentation
2025-12-11 17:27:50 +01:00
- `list_sanity_rules` / `get_sanity_rules` — load agent rules on demand
Add Agent Skills following agentskills.io format
Introduces 4 new Agent Skills compatible with Cursor, Claude Code, and other
agents supporting the Agent Skills standard:
- sanity-best-practices: GROQ performance, schema design, Visual Editing,
images, Portable Text, Studio, TypeGen, localization, migrations (26 rules)
- content-modeling-best-practices: Structured content principles
- seo-aeo-best-practices: SEO/AEO with EEAT principles and structured data
- content-experimentation-best-practices: A/B testing methodology
Also includes:
- Updated README with installation instructions (npx skills add)
- Added skills-ref validation (npm run validate)
- Updated MCP documentation to match official docs
- Removed old procedural skills from sanity-plugin/skills/
2026-01-23 15:39:53 -08:00
See the [full list of available tools ](https://www.sanity.io/docs/compute-and-ai/mcp-server#k4ae680bb2e88 ).
2025-12-11 17:27:50 +01:00
Add Agent Skills following agentskills.io format
Introduces 4 new Agent Skills compatible with Cursor, Claude Code, and other
agents supporting the Agent Skills standard:
- sanity-best-practices: GROQ performance, schema design, Visual Editing,
images, Portable Text, Studio, TypeGen, localization, migrations (26 rules)
- content-modeling-best-practices: Structured content principles
- seo-aeo-best-practices: SEO/AEO with EEAT principles and structured data
- content-experimentation-best-practices: A/B testing methodology
Also includes:
- Updated README with installation instructions (npx skills add)
- Added skills-ref validation (npm run validate)
- Updated MCP documentation to match official docs
- Removed old procedural skills from sanity-plugin/skills/
2026-01-23 15:39:53 -08:00
### Agent skills
2025-12-11 17:27:50 +01:00
Add Agent Skills following agentskills.io format
Introduces 4 new Agent Skills compatible with Cursor, Claude Code, and other
agents supporting the Agent Skills standard:
- sanity-best-practices: GROQ performance, schema design, Visual Editing,
images, Portable Text, Studio, TypeGen, localization, migrations (26 rules)
- content-modeling-best-practices: Structured content principles
- seo-aeo-best-practices: SEO/AEO with EEAT principles and structured data
- content-experimentation-best-practices: A/B testing methodology
Also includes:
- Updated README with installation instructions (npx skills add)
- Added skills-ref validation (npm run validate)
- Updated MCP documentation to match official docs
- Removed old procedural skills from sanity-plugin/skills/
2026-01-23 15:39:53 -08:00
Best practices skills that agents like Claude Code, Cursor, GitHub Copilot, etc. can discover and use automatically. Skills follow the [Agent Skills ](https://agentskills.io ) format. See [Option 2 ](#option-2-install-agent-skills ) for installation.
2025-12-11 17:27:50 +01:00
Add Agent Skills following agentskills.io format
Introduces 4 new Agent Skills compatible with Cursor, Claude Code, and other
agents supporting the Agent Skills standard:
- sanity-best-practices: GROQ performance, schema design, Visual Editing,
images, Portable Text, Studio, TypeGen, localization, migrations (26 rules)
- content-modeling-best-practices: Structured content principles
- seo-aeo-best-practices: SEO/AEO with EEAT principles and structured data
- content-experimentation-best-practices: A/B testing methodology
Also includes:
- Updated README with installation instructions (npx skills add)
- Added skills-ref validation (npm run validate)
- Updated MCP documentation to match official docs
- Removed old procedural skills from sanity-plugin/skills/
2026-01-23 15:39:53 -08:00
| Skill | Description |
| :--- | :--- |
2026-02-23 14:47:12 -08:00
| **sanity-best-practices ** | GROQ performance, schema design, Visual Editing, images, Portable Text, Studio, TypeGen, localization, migrations, and framework integration guides |
Add Agent Skills following agentskills.io format
Introduces 4 new Agent Skills compatible with Cursor, Claude Code, and other
agents supporting the Agent Skills standard:
- sanity-best-practices: GROQ performance, schema design, Visual Editing,
images, Portable Text, Studio, TypeGen, localization, migrations (26 rules)
- content-modeling-best-practices: Structured content principles
- seo-aeo-best-practices: SEO/AEO with EEAT principles and structured data
- content-experimentation-best-practices: A/B testing methodology
Also includes:
- Updated README with installation instructions (npx skills add)
- Added skills-ref validation (npm run validate)
- Updated MCP documentation to match official docs
- Removed old procedural skills from sanity-plugin/skills/
2026-01-23 15:39:53 -08:00
| **content-modeling-best-practices ** | Structured content principles: separation of concerns, references vs embedding, content reuse |
| **seo-aeo-best-practices ** | SEO/AEO with EEAT principles, structured data (JSON-LD), technical SEO patterns |
| **content-experimentation-best-practices ** | A/B testing methodology, statistical foundations, experiment design |
2025-12-11 17:27:50 +01:00
### Getting started flow
The onboarding guide follows three phases:
1. **Studio & Schema ** — Set up Sanity Studio and define your content model
2. **Content ** — Import existing content or generate placeholder content via MCP
3. **Frontend ** — Integrate with your application (framework-specific)
Just say: "Get started with Sanity" to begin.
Add Agent Skills following agentskills.io format
Introduces 4 new Agent Skills compatible with Cursor, Claude Code, and other
agents supporting the Agent Skills standard:
- sanity-best-practices: GROQ performance, schema design, Visual Editing,
images, Portable Text, Studio, TypeGen, localization, migrations (26 rules)
- content-modeling-best-practices: Structured content principles
- seo-aeo-best-practices: SEO/AEO with EEAT principles and structured data
- content-experimentation-best-practices: A/B testing methodology
Also includes:
- Updated README with installation instructions (npx skills add)
- Added skills-ref validation (npm run validate)
- Updated MCP documentation to match official docs
- Removed old procedural skills from sanity-plugin/skills/
2026-01-23 15:39:53 -08:00
### Slash commands (Claude Code)
| Command | What it does |
| :--- | :--- |
| `/sanity` | List available skills and help topics |
| `/review` | Review code for Sanity best practices |
| `/typegen` | Run TypeGen and troubleshoot issues |
| `/deploy-schema` | Deploy schema with verification |
2025-12-11 17:27:50 +01:00
---
## Repository structure
2026-02-24 12:27:55 +00:00
> **Note:** The reference files in `skills/sanity-best-practices/references/` are the canonical content for the Sanity MCP server's `list_sanity_rules` / `get_sanity_rules` tools. Each file must have valid `name` and `description` frontmatter — rule names are derived from filenames (e.g., `nextjs.md` → `nextjs`).
2025-12-11 17:27:50 +01:00
``` text
sanity-io/agent-toolkit/
├── AGENTS.md # Knowledge router & agent behavior
├── README.md # This file
2026-05-13 10:37:34 -07:00
├── .agents/plugins/ # Codex marketplace
│ └── marketplace.json # Codex marketplace metadata
2026-02-05 18:47:19 -08:00
├── .claude-plugin/ # Claude Code plugin configuration
│ └── marketplace.json # Plugin metadata and marketplace config
2026-05-13 10:37:34 -07:00
├── .codex-plugin/ # Codex plugin configuration
│ └── plugin.json # Codex plugin manifest
2026-02-20 11:15:14 -08:00
├── .cursor-plugin/ # Cursor plugin configuration
│ ├── marketplace.json # Cursor marketplace metadata
│ └── plugin.json # Per-plugin manifest
2026-02-05 18:47:19 -08:00
├── .mcp.json # MCP server configuration
2026-02-20 11:15:14 -08:00
├── assets/ # Plugin branding
│ └── logo.svg # Sanity logo for marketplace display
├── commands/ # Agent commands
2026-02-05 18:47:19 -08:00
│ ├── sanity.md # /sanity help
│ ├── review.md # /review
│ ├── typegen.md # /typegen
│ └── deploy-schema.md # /deploy-schema
2026-02-20 11:15:14 -08:00
├── scripts/ # Validation and CI scripts
│ └── validate-cursor-plugin.mjs # Cursor plugin validator
2026-02-05 18:47:19 -08:00
└── skills/ # Agent skills (agentskills.io format)
├── sanity-best-practices/ # Comprehensive Sanity skill
2026-02-23 14:47:12 -08:00
│ ├── SKILL.md # Skill definition and quick reference
2026-02-24 12:27:55 +00:00
│ └── references/ # Canonical content (22 guides)
2026-02-23 14:47:12 -08:00
│ ├── get-started.md # Onboarding guide
2026-02-24 12:27:55 +00:00
│ ├── nextjs.md # Next.js integration
│ ├── groq.md # GROQ patterns & performance
│ ├── schema.md # Schema design & validation
│ └── ... # See SKILL.md for full index
2026-04-07 17:29:30 +01:00
├── content-modeling-best-practices/ # Modeling guidance + topic references
├── seo-aeo-best-practices/ # SEO/AEO guidance + topic references
└── content-experimentation-best-practices/ # Experiment design + stats references
2025-12-11 17:27:50 +01:00
```
2026-04-07 17:29:30 +01:00
All skills use `references/` for detailed content loaded on demand. The `sanity-best-practices` references are also the canonical source for the MCP server's Sanity rules.
2026-03-05 15:29:54 -08:00
2025-12-11 17:27:50 +01:00
---
## Resources
- [Create Sanity account ](https://www.sanity.io/get-started )
- [Sanity documentation ](https://www.sanity.io/docs )
- [GROQ language reference ](https://www.sanity.io/docs/groq )
- [Visual Editing guide ](https://www.sanity.io/docs/visual-editing )
- [Sanity TypeGen ](https://www.sanity.io/docs/sanity-typegen )
- [MCP server docs ](https://www.sanity.io/docs/compute-and-ai/mcp-server )
2026-01-26 21:43:48 -07:00
- [Blueprints Infrastructure as Code ](https://www.sanity.io/docs/compute-and-ai/blueprints )
2025-12-11 17:27:50 +01:00
---
## Contributing
2026-04-07 17:26:36 +01:00
Found a better pattern? Missing a framework or best practice? Read the [contributing guide ](CONTRIBUTING.md ) for how skills work and what makes a good contribution, then:
Add Agent Skills following agentskills.io format
Introduces 4 new Agent Skills compatible with Cursor, Claude Code, and other
agents supporting the Agent Skills standard:
- sanity-best-practices: GROQ performance, schema design, Visual Editing,
images, Portable Text, Studio, TypeGen, localization, migrations (26 rules)
- content-modeling-best-practices: Structured content principles
- seo-aeo-best-practices: SEO/AEO with EEAT principles and structured data
- content-experimentation-best-practices: A/B testing methodology
Also includes:
- Updated README with installation instructions (npx skills add)
- Added skills-ref validation (npm run validate)
- Updated MCP documentation to match official docs
- Removed old procedural skills from sanity-plugin/skills/
2026-01-23 15:39:53 -08:00
2025-12-11 17:27:50 +01:00
1. Fork the repo.
2026-04-07 17:26:36 +01:00
2. Install dependencies with `npm install` .
3. Make your changes in `skills/<skill-name>/` .
4. Run `npm run validate:all` to check skill and plugin validity.
5. Submit a PR.
2025-12-11 17:27:50 +01:00
---
## Support
- [Sanity Community (Discord) ](https://www.sanity.io/community/join )
- [GitHub issues ](https://github.com/sanity-io/agent-toolkit/issues )
---
**License: ** MIT