create-agent-with-sanity-context

Configure Sanity Agent Context documents with groqFilter and instructions for AI agents.

Updated Mar 21, 2026
One-click install
npx skills add https://github.com/dallasbpeters/tandra-peters-consulting --skill create-agent-with-sanity-context-dallasbpeters
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-agent-with-sanity-context
Source: https://github.com/dallasbpeters/tandra-peters-consulting/tree/main/.agents/skills/create-agent-with-sanity-context
Command: npx skills add https://github.com/dallasbpeters/tandra-peters-consulting --skill create-agent-with-sanity-context-dallasbpeters

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Build AI agents that can reason over Sanity content using Agent Context, enabling schema-aware queries and content-aware guidance in production assistants.

Core Features & Use Cases

  • Provides Studio setup, agent implementation, and advanced patterns for Sanity-powered agents
  • Enables structured content access, GROQ-based querying, and semantic search over Sanity data
  • Suitable for building chatbots or assistants that connect to a Sanity CMS and expose AI tools to end users

Quick Start

Configure a Sanity Agent Context document in Studio and reuse the MCP URL to connect your agent.

Frequently Asked Questions about create-agent-with-sanity-context

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build an AI agent that can query Sanity content using GROQ?

Sanity Agent Context exposes Sanity content to AI agents by publishing an agent.context document with a groqFilter and instructions, allowing schema-aware queries through MCP tool discovery.

What is Sanity Agent Context and how does it connect AI assistants to structured content?

Sanity Agent Context is a Studio plugin mechanism that exposes structured CMS content to AI assistants using a published agent.context document, enabling schema-aware data retrieval via MCP integrations.

Can I use Sanity Studio to set up semantic search over my CMS data for chatbots?

Yes, you can configure semantic search over Sanity data by setting up the agent-context plugin in Studio and publishing an agent.context document, which provides content-aware retrieval for chatbots and assistants.

Do I need an MCP server to expose Sanity content to an AI agent?

You need MCP tool discovery wired to your system prompts to drive agent behavior, utilizing the MCP URL generated from your Sanity Agent Context configuration to connect the agent to your content.

What's the best way to provide schema-aware data access to a Sanity-powered assistant?

The best way to provide schema-aware data access is configuring an agent.context document with a groqFilter in Sanity Studio, enabling structured content querying across Studio, MCP, and client integrations.

Why does my AI agent fail to retrieve specific documents from my Sanity CMS?

Retrieval failures often occur if the agent.context document is not published or the groqFilter is misconfigured, preventing the MCP tool discovery from correctly exposing the schema-aware data to the agent.