Grok Search 标志

Grok Search

社区
BlueOcean223
grok-search

Use when the user explicitly asks to search the web, check latest/current facts, fetch a URL, or discover pages on a website. Do not use for local code search or stable offline knowledge unless the user asks for live web access.

概览

发布者BlueOcean223
代码仓库grok-search
技能名称grok-search
星标数
59
复刻数
6
附带文件
63
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 63 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 BlueOcean223 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Grok Search AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/BlueOcean223/grok-search/tree/main
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/BlueOcean223/grok-search.git \
  .claude/skills/grok-search
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Grok Search,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Grok Search。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Grok Search 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Grok Search

Node scripts for web search, URL fetch and site mapping. Run npm install once in {baseDir}, the directory of this SKILL.md.

Choose The Script

  • URL given → scripts/fetch.js.
  • Site named, URL unknown → scripts/map.js, then fetch.js on the URLs you pick.
  • Current/latest information, or URL unknown → scripts/search.js.
  • Question about the user's local machine → inspect local files first; search only to interpret them.

Run the fewest commands that answer the question; run independent sub-questions in parallel. Do not chain map → fetch → search.

Commands

bash
node {baseDir}/scripts/search.js "the question, with what to return"
node {baseDir}/scripts/search.js --instructions "format, language, what to leave out" "the question"
node {baseDir}/scripts/search.js --responses-allowed-domains github.com "the question"
node {baseDir}/scripts/search.js --source x --x-from-date 2026-07-01 "what people say about ..."
node {baseDir}/scripts/fetch.js https://example.com        # a cut page ends with the --offset to continue from
node {baseDir}/scripts/map.js https://docs.example.com --limit 20

Query rules:

  • Only Grok reads the query, so write it as the question you want answered, with the fields you need: "What is the latest stable Go release, the full version number and its release date?" --instructions is optional, for how to answer (format, language, "quote and date only, no advice, say if not found"). Do not send a bag of keywords like GPT Codex 1M 272k context window; Grok fills the gaps with invented background.
  • No code-search operators (repo:, path:, language:). Scope with --responses-allowed-domains.
  • One search per sub-question is usually enough; to check a claim, fetch its source instead of searching again. Search again only for a gap you can name. Do not carry the previous round's conclusion words into the new question; for the same X handle, change the gap, not the phrasing.

Search Source

Default is web. --source x for what people are saying, a named account's posts, a thread, or a claim only circulating on X. --source both for a current event where reporting and reaction both matter. --source x cannot fall back to the web.

  • For "is it available now / current state" questions, start with --x-from-date 60–90 days back; widen only if empty (diagnostics.warnings says when the window read no posts). Old issues explain history, not the present.
  • X posts are personal statements: cite handle and date (both live in answer.text, not the card), keep claims separate from confirmations, confirm facts at the official source.
  • Cost: when an X search reports responses_tool_calls.total above 6, add --responses-parallel-tool-calls false next time: one call per turn, so max_turns caps the count; below 6 it saves nothing.
  • Handle filters, dates, media flags, card fields: references/x-search.md.

Fetch Cost

  • X posts: auto tries Direct first (free, main post with date). --provider firecrawl only for the thread or replies; about 30 credits per post.
  • Fetch only evidence that would change the conclusion: one or two URLs per turn, a representative post or two for experience reports, never re-fetch text you have. Reddit and YouTube return shells from every provider. WeChat articles (mp.weixin.qq.com) need --provider deepseek or --provider firecrawl; the others get a verification page.
  • The same URL again within 15 minutes comes from a local cache (no provider call); a different --provider or --no-cache fetches anew.
  • When citing decisive evidence, record date, model version, client, and login method.

Reading Results

Every script prints one JSON object, also on failure (non-zero exit, stderr line).

  • error: read error.message, error.code, diagnostics.provider_attempts. Change something before retrying (query, --provider, --model). DEADLINE_EXCEEDED: the whole command hit its time budget (default 240s, --deadline N).
  • A line starting with [grok-search] inside content.text or answer.text changes how to read it: the text was cut (the line says where the rest is), the page redirected to the site's home page, or the provider got no text. diagnostics.warnings repeats these and adds the rest: providers skipped (e.g. Firecrawl in cooldown) or failed, a relay serving another model than requested. diagnostics.provider_attempts lists each provider tried.
  • Search: answer.text, then sources.items (up to 12 of Grok's sources, cited ones kept first, so a cited link may appear only in answer.text). source_type citation = used in the answer, searched = only listed; opened: true = Grok read the page. sources.raw_path always points to the run record (full list, answer, tool calls); read it in chunks only when the cards are not enough. Check diagnostics.cost_usd and diagnostics.search_budget (advisory budget vs. calls made).
  • Fetch: content.text, up to --max-chars characters (default 12000) from --offset (default 0); content.chars counts page text only. A cut page ends with a [grok-search] line giving the next --offset and content.full_path: continue from there instead of raising --max-chars. stdout stays under 45KB whatever --max-chars says. Non-HTML files come back as served (JSON re-indented). metadata has title/author/published_at when the provider had them. diagnostics.run_path is the run record.
  • Map: urls; fetch the few you need. A URL with a path maps that path and below, on that site only; map the site root for the whole site.

Provider order, proxy, cooldown, config errors: references/providers.md. Multi-part or conflicting research: references/planning.md first.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

还有 3 个文件。

常见问题

Grok Search AI 技能有什么作用?

Use when the user explicitly asks to search the web, check latest/current facts, fetch a URL, or discover pages on a website. Do not use for local code search or stable offline knowledge unless the user asks for live web access.

为什么在 TypingMind 中使用 Grok Search?

因为您只需安装一次,就能搭配任何模型使用。Grok Search 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Grok Search?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/BlueOcean223/grok-search/tree/main。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Grok Search?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Grok Search 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Grok Search 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Grok Search AI 技能免费吗?

是的。BlueOcean223 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇