# Sanity agent skills for Claude Code, Cursor and RevampKey

> Ready-made Sanity playbooks for AI agents: import content into Sanity as drafts, audit a Sanity content model, check the health of your Sanity setup with AI. Free SKILL.md files for Claude Code, Cursor and Codex, or one click in RevampKey.

## Skills

- [Use the Sanity connector safely](https://revampkey.com/marketplace/sanity/skills/essentials.md): Sets the project, dataset and auth mode before any work, picks read, draft or publish tools in order of risk, and asks for explicit approval before every change to content, schema or configuration.
- [Import content into Sanity as drafts](https://revampkey.com/marketplace/sanity/skills/content-draft-import.md): Turns a markdown or JSON source into Sanity draft documents, mapping fields and checking for collisions first. It writes drafts only and asks before any bulk write or publish.
- [Audit a Sanity content model](https://revampkey.com/marketplace/sanity/skills/content-model-audit.md): Reads your deployed and workspace schemas to find unused types, orphaned fields and risky schema changes, and reports them. It never deploys a change, and it asks before switching projects or workspaces.
- [Check the health of your Sanity setup with AI](https://revampkey.com/marketplace/sanity/skills/dataset-health-check.md): Surveys your Sanity projects, datasets, studios, CORS origins and embeddings indices and reports what is misconfigured or unused. It only reads, and asks before changing anything.
- [Review and clean up stale Sanity drafts](https://revampkey.com/marketplace/sanity/skills/draft-cleanup-review.md): Finds stale or abandoned drafts and versions in a Sanity dataset, sorts them into keep, discard and publish-candidate groups, and asks before discarding or publishing anything.

## Install

- RevampKey: connect Sanity at https://revampkey.com/marketplace/sanity; the skills come with it.
- Any Agent Skills tool, into the current project:

```bash
for s in essentials content-draft-import content-model-audit dataset-health-check draft-cleanup-review; do
  curl -fsSL --create-dirs -o .agents/skills/sanity-$s/SKILL.md https://revampkey.com/marketplace/sanity/skills/$s/SKILL.md
done
```

### What is a Sanity agent skill?

A SKILL.md file: a short playbook an AI agent loads when your request matches it. Each Sanity skill describes one job, which Sanity tools to use in which order, what to check first and when to stop and ask you.

### Do the Sanity skills change anything on their own?

The others tell the agent to show you the change and wait for a yes before it creates, edits or deletes anything in Sanity.

### Which tools can use these skills?

Any agent that reads the open Agent Skills format: Claude Code, Cursor, Codex, VS Code with Copilot and RevampKey. In RevampKey they are attached when you connect Sanity; elsewhere you copy the folders into your project or skills directory.

### Do I need the Sanity MCP server too?

Yes. The skills tell the agent how to do the work; the Sanity MCP server gives it the tools to do it. The Sanity MCP setup guide covers every client.

MCP setup guide: https://revampkey.com/marketplace/sanity.md
