skills/grok_search/SKILL.md
自适应 AI 搜索与最新信息检索 skill。会先评估任务复杂度,再在 grok-4.20-fast / grok-4.20-auto / grok-4.20-expert 之间做路由,必要时采用“fast 侦察 + fast 补缺 + expert 综合”的组合流程,在速度与质量之间取平衡。
npx skillsauth add escapewu/skills grok_searchInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
使用 Grok 兼容 OpenAI-style endpoint 做最新信息搜索、新闻核验、时间线调查、市场舆情深挖。
不要手写 HTTP 请求;优先使用本 skill 自带脚本:
scripts/grok_search.py当用户要以下事情时,优先考虑这个 skill:
当用户的问题属于技术问题(代码、报错、框架/库、API、版本兼容、部署、数据库、模型/benchmark 等)时,脚本会自动在 prompt 里追加硬性来源要求:必须搜索/覆盖 Reddit 与 Hacker News,同时仍可使用官方文档、GitHub、厂商博客等来源。若 Reddit 或 Hacker News 没有相关结果,最终回答需要显式说明“未找到相关 Reddit/HN 讨论”,不能静默省略。
Grok 当前可用的主要模型:
grok-4.20-fastgrok-4.20-autogrok-4.20-expert本 skill 的默认原则:不要所有任务都用同一个模型。
适用:
默认模型:grok-4.20-fast
目标:
适用:
默认模型:grok-4.20-auto
目标:
适用:
默认流程:
grok-4.20-fast 做 scout(快速侦察与拆题)grok-4.20-fast 做 gap fill(补缺)grok-4.20-expert 做 final synthesis(最终综合)目标:
先评估任务复杂度,再决定模式:
quickbalanceddeep复杂信号包括但不限于:
你应该先拆分问题,将一个问题拆成三个不同方向的子问题。并发执行 grok-4.20-fast:
你应该先拆分问题,将一个问题拆成三个不同方向的子问题。并发执行 grok-4.20-auto:
按三段式执行:
Scout — grok-4.20-auto
Gap Fill — grok-4.20-fast(可选)
Final Synthesis — grok-4.20-expert
对用户回复时:
主脚本:
python /Users/shancw/.hermes/skills/research/grok_search/scripts/grok_search.py --query "latest OpenAI news"
python /Users/shancw/.hermes/skills/research/grok_search/scripts/grok_search.py \
--query "latest verified news on OpenAI today"
脚本会自动判断使用:
python /Users/shancw/.hermes/skills/research/grok_search/scripts/grok_search.py \
--mode quick \
--query "BTC price now"
python /Users/shancw/.hermes/skills/research/grok_search/scripts/grok_search.py \
--mode balanced \
--query "latest verified summary of OpenAI news today"
python /Users/shancw/.hermes/skills/research/grok_search/scripts/grok_search.py \
--mode expert \
--query "compare the latest model releases from OpenAI, Anthropic, and Google"
python /Users/shancw/.hermes/skills/research/grok_search/scripts/grok_search.py \
--mode deep \
--query "Reuters April 2026 timeline of suspicious oil shorts before Iran announcements and whether CFTC formally investigated them" \
--json
python /Users/shancw/.hermes/skills/research/grok_search/scripts/grok_search.py \
--query "latest verified details on unusual oil shorts before Hormuz reopening announcement" \
--show-plan
python /Users/shancw/.hermes/skills/research/grok_search/scripts/grok_search.py \
--query "latest OpenAI news" \
--json
--query:必填,用户问题--mode:auto | quick | balanced | expert | deep--model:强制指定模型;指定后会跳过自动路由--base-url:覆盖 endpoint--api-key:覆盖密钥--max-sources:最多保留多少个来源 URL--language:回答语言,默认 zh-CN--json:输出 JSON--show-reasoning:输出 reasoning--show-plan:输出复杂度评估和模型路由计划config.json 示例:
{
"model": "grok-4.20-auto",
"auto_model": "grok-4.20-auto",
"fast_model": "grok-4.20-fast",
"expert_model": "grok-4.20-expert",
"default_mode": "auto",
"language": "zh-CN",
"technical_required_sources": ["Reddit", "Hacker News"],
"base_url": "https://example.com/v1/",
"api_key": "REPLACE_ME"
}
说明:
model / auto_model:balanced 路径默认模型fast_model:quick / scout / gap-fill 默认模型expert_model:deep 最终综合模型default_mode:默认 autotechnical_required_sources:技术问题搜索时必须覆盖的社区来源,默认 Reddit + Hacker News默认文本模式:
概述:xxxx
搜索结果:
xxxxxxx
来源:
1. xxxx
2. xxxx
若 --show-plan,会先打印:
--json 返回:
querymodelroutebase_urloverviewsearch_resultssourcesreasoningstagesraw_response若任务涉及:
优先考虑 --mode deep,因为这类问题通常天然需要:
当通过 delegate_task 把 grok_search 委派给子 Agent 时,不要用 --mode deep。实测:
--mode deep(scout → gap fill → expert 三段串行):子 Agent 600s 必然超时,无一成功--mode balanced(grok-4.20-auto 三并发子查询):在子 Agent 中大概率超时,成功率不足 50%--mode quick(grok-4.20-fast 三并发子查询):子 Agent 中稳定完成,结果质量对大多数场景足够规则:委派子 Agent 做 grok_search 时,统一用 --mode quick。 如果需要更深度的交叉验证,后续在主 Agent 中单独跑 --mode deep 或 --mode expert 补搜。
从 terminal 调用时,不同模式需要不同超时:
quick:60s 通常够用balanced:建议 90-120s(涉及更长推理)deep:建议 180s+(多阶段串行)expert:建议 120s(单次但重推理)如果 balanced 在 60s 内超时,降级到 quick 模式重试是合理的 fallback。
当在 delegate_task 子代理内部使用 grok_search 做多场景研究时,不要用 --mode deep。deep 模式需要 3 个顺序阶段(scout → gap fill → expert),每个阶段一次 API 调用。当一个 agent 被分配 2 个场景时,每个场景 3 次调用,每次 60-180s,很容易超过 delegate_task 的 600s 超时。
已观察到的时间表现:
推荐模式: 多场景研究任务中,直接在 Hermes 主进程中运行 --mode balanced 的 grok_search(不做 sub-agent 委派),每个场景一个终端调用。这是最可靠的模式。如果必须用 delegate_task,使用 --mode quick 或明确告知 agent 每个场景限用 balanced 模式,并声明不要降级到 deep。
development
Use when working with the news fetcher REST API at <news-fetcher-host> for supported-site lookup, domain article discovery, URL fetching, batch fetch/crawl workflows, fetch history queries, and Bearer-authenticated integration examples.
development
create and refresh repository-specific development standards for an existing local codebase. use when the user wants to analyze a local repository, extract coding conventions from real files, generate docs/ai-dev-standards, create code review checklists, or update existing agents.md or claude.md files so future coding agents load the right standards before development. do not use for generic programming advice detached from a repository.
documentation
analyze postgresql or mysql database schemas from ddl files, schema-only dumps, migration sql, or read-only database metadata. use when the user wants table structure summaries, primary keys, foreign keys, indexes, inferred table relationships, er diagrams, dbml, mermaid erd, schema documentation, or database relationship analysis for postgres/mysql schemas.
tools
Replace with description of the skill and when Claude should use it.