营销与写作

dial-your-context

sanity-io/context

Interactive session to create Instructions field content for the Sanity Context MCP server. Use this skill whenever users mention tuning agent context, improving agent responses to Sanity data, configuring MCP instructions, setting up content filters, or when their agent gives wrong results from Sanity queries. Also trigger when users say their agent is confused about schema relationships, needs data-specific guidance, or wants to optimize which content the agent can access.

  • 1090 次安装
  • 7 星标
  • 收录于

安装命令

npx skills add https://github.com/sanity-io/context --skill dial-your-context

SKILL.md

Dial Your Context

Help a user create the Instructions field content for the Sanity Context MCP server. The goal is a concise set of pure deltas — only information the agent can't figure out from the auto-generated schema.

This skill is for GROQ mode endpoints (a dataset source). For a Knowledge Base mode endpoint, answers improve in the Context app instead, by resolving issues and fixing sources; see Resolve Knowledge Base issues.

What you're building

The Sanity Context MCP server already provides the agent with:

  • A compressed schema of all document types and fields
  • Efficiency and accuracy guidance
  • A GROQ query tutorial in the groq_query tool description
  • Tool descriptions for GROQ queries, semantic search, etc.

The Instructions field you're crafting is the MCP endpoint's Instructions field in the Context app. It appears under a Context Instructions heading at the top of the initial context, ahead of the efficiency, accuracy, tools, and schema sections. It should contain only what the schema doesn't make obvious: