optimize-agent-prompt

Installation
SKILL.md

Tune Your Agent

Use this skill to turn a basic agent into a high-quality, conversationally strong, data-aware agent. This is an interactive session — you'll provide exploration data, answer questions about your use case, and get back two artifacts:

  1. Instructions field content — for your Agent Context Document
  2. System prompt — for your agent's code

Prerequisites

  • A working agent — built using the create-agent-with-sanity-context skill or equivalent
  • An Agent Context Document — created in Sanity Studio with the context plugin
  • Exploration data — run the Agent Context Explorer to understand your dataset
npx @sanity/agent-context-explorer \
  --mcp-url https://api.sanity.io/vX/agent-context/PROJECT_ID/DATASET/SLUG \
  --questions ./questions.json \
  --sanity-token $SANITY_API_READ_TOKEN \
  --anthropic-api-key $ANTHROPIC_API_KEY
Related skills

More from sanity-io/agent-context

Installs
20
GitHub Stars
4
First Seen
Feb 13, 2026