Create Agent With Sanity Context
OfficialInstantly provision new Sanity agents with pre-configured context and workflows for rapid development and deployment.
Install on your platform
Showing Claude Code. One command installs this skill into any of the agents below.
- 1
Run this in your project
terminal$ npx skills add sanity-io/context --skill create-agent-with-sanity-context -a claude-code Uses the open-source
skillsCLI and needs Node.js. Add-gto install it for your user instead of this project.
What we know about this skill
Publisher
sanity-io
Matched to the vendor's own GitHub organisation.
Install target
Live repository
Not pinned. Installing fetches whatever the repository holds at the time you run the command.
Automated safety checks
This skill failed 1 of 6 checks. A failure is not proof of bad intent; it means something in the code needs a human to look at it before you run it.
No undeclared network calls: failed
Contacts 1 host that is neither well-known infrastructure nor declared in the skill's frontmatter: api.sanity.io.
Every host the skill dials — from its scripts, its config endpoints or the commands it tells the agent to run — is either well-known package and API infrastructure or declared in its own frontmatter. Links in documentation are not counted.
Hosts contacted
api.sanity.ioundeclaredWhat it found
- skills/create-agent-with-sanity-context/SKILL.md:75contacts api.sanity.io
curl https://api.sanity.io/v2026-03-03/context/mcp/:projectId/:dataset/:slug/initial-context \ - skills/create-agent-with-sanity-context/SKILL.md:144contacts api.sanity.io
curl -X POST https://api.sanity.io/v2026-03-03/context/mcp/:projectId/:dataset \
Declares what it does: passed
SKILL.md parses and declares a name and a description.
SKILL.md exists, its frontmatter parses, and it declares a name and a description.
No obfuscated payloads: passed
No encoded or obfuscated payloads.
No base64, hex or compressed blob is decoded and then executed, and no encoded shell commands.
No credential access: passed
Reads no keys, tokens, keychains or credential files.
Neither the code nor the SKILL.md instructions read SSH keys, cloud credentials, keychains, token stores, browser cookie databases or dotfiles that hold secrets.
No pipe-to-shell installers: passed
No pipe-to-shell or download-and-run installers.
No `curl … | sh` pattern, in the code or in the instructions, that runs code fetched at run time.
Pinned to a commit: passed
Scanned sanity-io/agent-context at 5e37a030d1.
The exact upstream commit SHA that was scanned is recorded, so the result refers to specific bytes.
- Commit
- 5e37a030d1
- Scanned
- 60 files, 4,750 lines
About this skill
The create-agent-with-sanity-context skill enables developers to provision AI agents with direct, real-time access to Sanity.io's content infrastructure. It allows the agent to query and retrieve specific data from your Sanity dataset without requiring manual API key management or complex backend setup.
When to use it
- You need an autonomous agent to fetch live blog posts, product details, or documentation directly from a Sanity project.
- You want to build a support bot that answers questions based strictly on the current state of your content repository.
- You are prototyping an application where the AI must analyze structured data stored in Sanity before generating responses.
Key capabilities
- Instantly connects new agents to existing Sanity datasets via pre-configured credentials.
- Provides real-time read access to documents, allowing agents to query specific fields and collections.
- Eliminates the need for manual environment variable injection during agent initialization.
Example prompts
- "Retrieve the latest three blog posts from my Sanity project and summarize their key takeaways."
- "Search the product catalog in Sanity for items under $50 and list them with their descriptions."
- "Check if the 'Q3-Report' document exists in the Sanity dataset and extract the revenue figures."
Tips & gotchas
Ensure your Sanity project has public read access configured or that the agent's environment variables include valid API keys for the specific dataset. This skill is designed for data retrieval; it does not grant write permissions to modify content within Sanity.