Token导航 LogoToken导航

Agent Skill · 研究检索

dial-your-context(dial your context 搜索)

dial-your-context 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

dial-your-context 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 15,928。

总安装 7,513周安装 301GitHub Stars 4下载 2,432核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:dial-your-context(dial your context 搜索)
来源仓库:https://github.com/sanity-io/agent-context
仓库路径:skills/dial-your-context
安装命令:
npx skills add https://github.com/sanity-io/agent-context --skill dial-your-context
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

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

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

dial-your-context 帮助用户为 Sanity Agent Context MCP 创建定制化指令字段,聚焦纯增量信息补充。适用于补充自动 schema 生成遗漏的关键业务规则或特殊查询逻辑说明。输出简洁的 deltas 内容,插入到预设的 Response Style 与 Tools 配置之间。

安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/dial-your-context

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/sanity-io/agent-context --skill dial-your-cont…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

dial-your-context 怎么安装?

在终端执行 npx skills add https://github.com/sanity-io/agent-context --skill dial-your-context。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

dial-your-context 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

dial-your-context 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

dial-your-context 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

dial-your-context 用的人多吗?

公开数据是累计安装 7,513 次,近一周安装 301 次,下载 2,432 次,GitHub 4 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

dial-your-context 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
dial-your-context

dial your context 搜索 · 本页

7,5134调用外部服务未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Dial Your Context

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

What you're building

The Agent Context MCP already provides the agent with:

  • A compressed schema of all document types and fields
  • A GROQ query tutorial (~194 lines)
  • Response style guidance
  • Tool descriptions for GROQ queries, semantic search, etc.

The Instructions field you're crafting gets injected as a ## Custom instructions section between ## Response style and ## Tools in the MCP's instructions blob. It should contain only what the schema doesn't make obvious:

  • Counter-intuitive field names (e.g., body is actually a slug, hero is a reference to mediaAsset)
  • Second-order reference chains the schema doesn't connect (e.g., "to find products with Dolby Atmos, chain product → productFeature and match on the feature's id field — the schema shows each hop but not the full path")
  • Data quality issues the schema can't reveal (e.g., "the product type has a features array but it's always empty — use support-product instead")
  • Required filters the agent must always apply (locale, draft status, etc.)
  • Known data gaps confirmed by the user (e.g., "the subtitle field is unused — ignore it")
  • Query patterns for common use cases that aren't obvious from the schema
  • Fallback strategies when primary approaches fail

Never duplicate what the schema already communicates clearly.

Prerequisites

You need one of these to run this session:

Path A — Write access (recommended): A Sanity write token or the general Sanity MCP (OAuth). This lets you create a draft context doc, write instructions + filter to it during the session, and promote it to production when done. Production is never touched until you're ready.

Path B — URL params only: Use ?instructions= and ?groqFilter= URL query params on the MCP endpoint to test everything. At the end, provide the final content for the user to enter manually in Sanity Studio. Works with both base and document URLs.

Both paths are safe — neither modifies the production agent during the session.

Critical rules

  1. Pure deltas only. If the schema makes it obvious, don't put it in Instructions.
  2. Never generalize from small samples. Querying 3 docs and concluding "field X is always null" is the #1 failure mode. Every claim must be verified with the user before inclusion.
  3. The user knows their data. Schema dialogue beats data exploration. Present the schema, ask questions, listen.
  4. Verify every claim with evidence. For each line in the draft Instructions, show the query + result that supports it. The user confirms or corrects.
  5. Keep it concise and factual. The compaction step (summarizing findings into Instructions) is where information gets lost or distorted. No creative interpretation. Short declarative sentences.

Workflow

Step 1: Connect & Clean Slate

Goal: Establish MCP access, set up a safe working environment.

Connect to the user's Sanity Agent Context MCP. Get the project ID and dataset from the user if not already known. The slug is only needed if they have an existing Agent Context document.

Set up your working environment:

Path A (write access): Create a new draft context doc by copying the existing one (if any) to a new slug like tuning-draft. All exploration and iteration happens against this draft — the production agent is untouched.

Path B (no write access): Use URL query params throughout the session:

  • ?instructions="" — forces a blank slate (ignores existing instructions)
  • ?groqFilter=<expression> — applies a filter without writing to the context doc

Check if the context document already has instructions content:

  • If yes, present the existing instructions to the user verbatim
  • Ask: "Do you want to keep any of this, or start fresh?"
  • Let the user decide — don't assume existing instructions are wrong
  • If they have existing instructions from a previous session, you'll verify and refine each finding rather than starting from scratch

Verify you can query the dataset by running a simple GROQ query like *[0..2]._type to confirm access.

Output: Confirmed MCP access, safe working environment established (draft doc or URL params), any existing instructions surfaced to user.

Step 2: Schema Dialogue

Goal: Understand the dataset through conversation, not just exploration.

Retrieve the schema (the MCP provides this). Present the document types to the user in a clear list:

Here are the document types in your dataset: - article (14 fields) - author (8 fields) - category (5 fields) - ... Which of these are the ones your agent will need to work with?

This is a conversation, not a monologue. Ask the user:

  1. Which types matter? "Which of these will your agent need to query? Any types here that are internal/system types the agent should ignore?"
  2. What's misleading? "Any field names that don't mean what they sound like? Fields that are unused or deprecated?"
  3. What are the relationships? "How do these types connect? For example, do articles reference authors? How — direct reference, array of references, something else?"
  4. Any required filters? "Does the agent need to always filter by locale, published status, or any other field?"
  5. What's the primary content language? If i18n is involved, clarify the pattern.

Suggest a filter. The MCP supports a groqFilter — a full GROQ expression that scopes which documents the agent can access. This is high-leverage — it reduces noise significantly and prevents the agent from querying irrelevant types.

The filter is a GROQ expression string, not just a type list. This means you can carve out exactly the document set you want:

  • Simple type filter: _type in ["product", "support-article", "productFeature"]
  • Exclude drafts: !(_id in path("drafts.**")) && _type in ["product", "article"]
  • Locale filter: _type in ["product", "article"] && lang == "en-us"
  • Complex: _type in ["product", "article"] &&!(_id in path("drafts.**")) && defined(title)

Based on the conversation, propose a filter:

Based on what you've told me, I'd suggest this filter: `` _type in ["article", "author", "category", "tag"] ` This means the agent won't see siteSettings, redirect, migration`, etc. Does that sound right?

Apply the filter immediately. Once the user agrees:

  • Path A (write access): Write the groqFilter field to the draft context doc
  • Path B (URL params): Add ?groqFilter=<expression> to all subsequent MCP calls

All exploration from this point forward should use the agreed filter.

Output: A shared understanding of which types matter, known quirks, relationships, and an active filter. There's no point exploring types the production agent won't see.

Step 3: Expected Questions

Goal: Get concrete examples of what the production agent will be asked.

Ask the user:

What questions will people ask the agent that uses this context? Give me 5-20 examples — the more realistic, the better.

Examples might be:

  • "Which speakers support Dolby Atmos?"
  • "How do I fix WiFi connection issues?"
  • "What's the return policy for refurbished products?"
  • "Compare the features of product X and product Y"

These questions drive the exploration in Step 4. They tell you what query patterns actually matter.

For simple datasets, 5 questions is fine. For complex ones, push for 15-20.

Output: A numbered list of expected questions.

Step 4: Explore & Verify

Goal: Answer each expected question using the MCP, track what works and what doesn't.

Steps 4–6 are iterative, not sequential. Verify findings with the user as you go. Don't explore 15 questions, draft everything, then discover half your claims don't hold up.

Work through the expected questions one by one (or in logical groups). For each question:

  1. Write a GROQ query to answer it
  2. Run the query via the MCP
  3. Note the result — did it work? Was the data what you expected?
  4. Track findings in a running list:

- ✅ Worked as expected (no instruction needed) - ⚠️ Worked but required non-obvious pattern (instruction needed) - ❌ Failed or returned unexpected results (investigate, then verify with user)

Critical: Do not assume. If a query returns empty results or unexpected data:

  • Do NOT conclude "this field is always empty" from a small sample
  • Instead, ask the user immediately — don't batch null-field findings: "When I query for X, I get Y. Is that expected? Is the data actually there?"
  • The user confirms or explains the discrepancy

Track your findings in a simple table:

#QuestionQueryResultFinding
1"Recent articles"`*[_type == "article"] \order(publishedAt desc)[0..4]`✅ 5 resultsWorks with schema alone
2"Articles by author"*[_type == "article" && references(authorId)]⚠️ EmptyAuthors linked via contributors[].person, not direct ref
3"Published only"*[_type == "article" && status == "published"]❌ No status fieldUser confirms: use !(_id in path("drafts.**")) instead

Adapt to scale:

  • Simple dataset (3-5 types, 5 questions): This step might take 10 minutes
  • Complex dataset (50 types, 20 questions): Group related questions, explore systematically, but still verify each finding

Output: A findings table with verified results for each expected question.

Step 5: Draft Instructions

Goal: Distill findings into concise, factual Instructions content.

Review the findings table from Step 4. Include only items marked ⚠️ or ❌ — things that required non-obvious patterns or failed with the obvious approach.

Write the Instructions as short, declarative statements organized by category:

### Rules

- Always filter drafts: use `!(_id in path("drafts.**"))` — there is no `status` field
- Always include `[_lang == "en"]` for localized content unless user specifies otherwise

### Schema notes

- `contributors` on `article` is an array of objects with a `person` reference to `author` — not a direct author reference
- `hero` on `article` is a reference to `mediaAsset`, not an image field
- `body` on `page` is a Portable Text array, not a string — use `pt::text(body)` for plain text search

### Query patterns

- Articles by author: `*[_type == "article" && contributors[].person._ref == $authorId]`
- Published articles by date: `*[_type == "article" && !(_id in path("drafts.**"))] | order(publishedAt desc)`

### Known limitations

- `subtitle` field on `article` is unused — ignore it
- `relatedArticles` is manually curated and often empty for older content

Keep it tight. Each line should pass this test: "Would an agent with the schema alone get this wrong?" If you're unsure, test it — try answering 2-3 questions with ?instructions="" and see what the model gets wrong on its own. That's your empirical baseline for what actually needs to be here. If no, cut it.

Do not include:

  • General GROQ syntax (the tutorial covers this)
  • Field lists or type descriptions (the schema covers this)
  • Response formatting guidance (the response style section covers this)
  • Anything the agent would figure out on its own

Output: A draft Instructions block, typically 10-40 lines depending on dataset complexity.

Step 6: Verify Claims

Goal: Ensure every line in the draft is backed by evidence.

Go through the draft Instructions line by line. For each claim, show the user:

  1. The claim: e.g., "contributors on article is an array of objects with a person reference"
  2. The evidence: The GROQ query and result that demonstrates it
  3. Ask for confirmation: "Is this accurate? Anything to add or correct?"

Example:

Claim: "Always filter drafts using !(_id in path("drafts.**")) — there is no status field" Evidence: *[_type == "article" && defined(status)][0..2] → 0 results. *[_type == "article" && _id in path("drafts.**")][0..2] → 3 draft documents found. Is this correct?

If the user corrects a claim, update the draft immediately.

If the user adds new information ("oh, and you should also know that..."), add it to the draft and verify it the same way.

Output: A verified Instructions block where every claim has been confirmed by the user.

Step 7: Deploy

Goal: Get the Instructions and filter into production safely.

Present the final Instructions content and filter to the user for one last review:

Here's the final configuration: Filter (GROQ expression): `` _type in ["article", "author", "category", "tag"] `` Instructions: [final instructions block] Ready to deploy?

Path A (write access):

  1. Write the instructions and groqFilter fields to the draft context doc
  2. Verify by querying the draft MCP endpoint — confirm the instructions appear in ## Custom instructions
  3. Promote to production: Either update the production context doc's instructions and groqFilter fields to match, or update the production agent's MCP URL to point to the new slug
  4. Verify the production endpoint serves the correct instructions

Path B (no write access):

  1. Provide the final MCP URL with all params baked in: https://api.sanity.io/vX/agent-context/{project}/{dataset}/{slug}?instructions=<URL-encoded>&groqFilter=<URL-encoded>
  2. Also provide the raw content separately for the user to paste into their Agent Context document in Sanity Studio:

- Instructions field: [final instructions block] - Filter field: [GROQ expression] - Location: Sanity Studio → Agent Context document → Instructions / Filter fields

After deployment, verify: Query the production MCP endpoint and confirm the instructions and filter are active.

Output: Instructions and filter live in production, verified working.

Adaptation guidelines

This workflow scales to any dataset size:

Small dataset (3-5 types, 5 questions):

  • Step 2 might be a 2-minute conversation
  • Step 4 might find zero non-obvious patterns
  • Final Instructions might be 5 lines or even empty (which is fine — it means the schema is self-explanatory)

Large dataset (50+ types, 20 questions):

  • Step 2 needs more structure — group types by domain area
  • Step 3 is critical — without good questions, you'll explore aimlessly
  • Step 4 should group related questions to avoid redundant exploration
  • Final Instructions might be 30-40 lines with multiple sections

The filter matters more for large datasets. A 50-type dataset where the agent only needs 8 types benefits enormously from a filter.

Anti-patterns to avoid

  • Don't explore without the user. Running 50 queries silently and presenting a wall of findings is overwhelming and error-prone. Explore interactively.
  • Don't assume from samples. "I checked 3 articles and none had a subtitle" ≠ "subtitle is unused." Ask the user.
  • Don't duplicate the schema. "The article type has fields: title, body, author, publishedAt..." — the agent already knows this.
  • Don't write prose. Instructions should be scannable bullet points, not paragraphs.
  • Don't over-engineer. If the dataset is simple and the schema is clear, the Instructions might be 3 lines. That's a success, not a failure.
  • Don't skip verification. Every claim needs evidence + user confirmation. This is the quality gate.

Session state tracking

Throughout the session, maintain a mental model of:

- [ ] MCP access verified
- [ ] Working environment set up (draft context doc or URL params)
- [ ] Existing instructions reviewed (if any)
- [ ] Schema discussed with user
- [ ] Filter agreed and applied
- [ ] Expected questions collected
- [ ] Questions explored and findings tracked
- [ ] Draft instructions written
- [ ] Each claim verified with evidence
- [ ] Instructions deployed to production
- [ ] Production deployment verified

This checklist is your progress tracker. Share it with the user periodically so they know where you are in the process.

平台分布

Codex

37.04%
按下载量换算901

Claude

29.88%
按下载量换算727

Cursor

17.57%
按下载量换算427

Gemini CLI

10.55%
按下载量换算257

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills