← 返回 Skills 市场
45
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install online-search
功能描述
元宝搜索标准版工具。是腾讯元宝的联网搜索服务,提供实时、精准的互联网内容检索能力。 核心特性:覆盖大量中文网站,包括官方媒体、政府网站等高权威性来源,以及腾讯系核心内容资源。多层精调排序策略,提供准确的内容匹配和排序。
使用说明 (SKILL.md)
\r \r
联网搜索工具 (ProSearch)\r
\r 通过天集 ProSearch 搜索引擎查询实时互联网信息,返回网页搜索结果(标题、摘要、链接、来源)。\r \r
Setup\r
\r
无需额外安装依赖。搜索通过 Node.js 脚本 \x3CSCRIPT_PATH>/scripts/prosearch.cjs 调用本地 HTTP 接口 /proxy/prosearch 完成,鉴权由后台网关自动处理(基于用户登录态),无需手动配置凭证。\r
\r
---\r
\r
Workflow\r
\r QClaw uses this skill whenever the user needs real-time information from the internet.\r \r
Complete flow\r
\r
User asks a question requiring real-time information\r
→ Step 1: Determine search keyword (concise, specific)\r
→ Step 1.5: Determine time freshness — add from_time/to_time if recency matters\r
→ Step 2: Call search API via node script\r
→ Step 3: Output the `message` field from JSON response VERBATIM (search result items with clickable links) — NEVER skip this\r
→ Step 4: Add analysis/summary after the result items (optional)\r
```\r
\r
> **CRITICAL — Anti-hallucination design**: The search API returns a pre-rendered `message` field containing the complete formatted search results (titles as clickable hyperlinks, snippets, URLs, sources). **QClaw MUST output `message` verbatim as the primary search results — NEVER skip the result items.** QClaw may then add analysis or summary AFTER the verbatim results, but must NOT fabricate or modify any URLs or source information.\r
\r
### Step 1: Determine search keyword\r
\r
Convert the user's question into an effective search keyword:\r
\r
| User says | Search keyword |\r
|-----------|---------------|\r
| "最近的 AI 新闻" | `最近AI新闻` |\r
| "现在黄金价格多少" | `今日黄金价格` |\r
| "React 19 有什么新特性" | `React 19 新特性` |\r
| "深圳今天天气怎么样" | `深圳今天天气` |\r
\r
**Tips for good keywords:**\r
- Keep it concise (2-6 words)\r
- Remove filler words ("帮我"、"请问"、"一下")\r
- Add time context if relevant ("今日"、"2026"、"最新")\r
- Use the user's language (Chinese query for Chinese user, English query for English user)\r
- **Preserve the keyword's original language** — do NOT translate keywords. If the user provides an English keyword (e.g. "search for React Server Components"), keep it in English. If the user provides a Chinese keyword, keep it in Chinese.\r
\r
### Step 1.5: Determine time freshness (IMPORTANT for recency)\r
\r
**When the user's question implies recency**, QClaw MUST add `--freshness` 参数 to the search request to filter out stale results. This is critical for improving search result freshness.\r
\r
**Time freshness decision table:**\r
\r
| User intent signal | `--freshness` value | Example |\r
|---|---|---|\r
| "今天"、"today"、"刚刚" | `--freshness=24h` | Stock price today |\r
| "最近"、"最新"、"recently"、"latest" | `--freshness=7d` | Latest AI news |\r
| "这周"、"this week" | `--freshness=7d` | This week's events |\r
| "这个月"、"this month" | `--freshness=30d` | This month's policy |\r
| "今年"、"2026年" | `--freshness=1y` | 2026 events |\r
| No time signal (general facts) | 不加 `--freshness` | "What is React?" |\r
\r
**`--freshness` 快捷参数**:脚本内部自动计算 `from_time`/`to_time` 时间戳,**无需手动计算**。\r
\r
支持的值:\r
- `--freshness=24h` 或 `--freshness=1d` → 最近 24 小时\r
- `--freshness=7d` → 最近 7 天\r
- `--freshness=30d` → 最近 30 天\r
- `--freshness=1y` → 最近 1 年\r
\r
> **⚠️ 互斥规则**: `--freshness`(或 `--from_time`/`--to_time`)与 `--cnt` 互斥,不能同时使用。\r
\r
### Step 2: Search\r
\r
> **所有平台统一使用 `--key=value` 参数模式**,macOS / Linux / Windows 命令完全一致,无需区分操作系统。\r
\r
```bash\r
# 基础搜索\r
node '\x3CSCRIPT_PATH>/scripts/prosearch.cjs' --keyword=搜索关键词\r
```\r
\r
**⏰ Freshness search — 使用 `--freshness` 快捷参数(脚本自动计算时间戳):**\r
\r
```bash\r
# 搜索最近 24 小时的结果(适用于"今天"、"刚刚"类查询)\r
node '\x3CSCRIPT_PATH>/scripts/prosearch.cjs' --keyword=搜索关键词 --freshness=24h\r
\r
# 搜索最近 7 天的结果(适用于"最新"、"最近"类查询)\r
node '\x3CSCRIPT_PATH>/scripts/prosearch.cjs' --keyword=搜索关键词 --freshness=7d\r
\r
# 搜索最近 30 天的结果(适用于"这个月"类查询)\r
node '\x3CSCRIPT_PATH>/scripts/prosearch.cjs' --keyword=搜索关键词 --freshness=30d\r
```\r
\r
**With optional parameters:**\r
\r
```bash\r
# 指定返回数量 (10/20/30/40/50) — ⚠️ 不能与 --freshness/--site 同时使用\r
node '\x3CSCRIPT_PATH>/scripts/prosearch.cjs' --keyword=搜索关键词 --cnt=20\r
\r
# 站内搜索(⚠️ 不要同时传 --cnt)\r
node '\x3CSCRIPT_PATH>/scripts/prosearch.cjs' --keyword=搜索关键词 --site=github.com\r
\r
# 垂类搜索 (gov/news/acad)\r
node '\x3CSCRIPT_PATH>/scripts/prosearch.cjs' --keyword=搜索关键词 --industry=news\r
\r
# 获取 VR 卡数据(天气、金价等)\r
node '\x3CSCRIPT_PATH>/scripts/prosearch.cjs' --keyword=今日黄金价格 --mode=2\r
\r
# 组合:新闻类 + 最近 24 小时\r
node '\x3CSCRIPT_PATH>/scripts/prosearch.cjs' --keyword=国内最新新闻 --freshness=24h --industry=news\r
```\r
\r
> **关键词含空格时**:用双引号包裹值部分,如 `--keyword="React 19 features"`\r
>\r
> **`--freshness` 和 `--cnt` 互斥**,不能同时使用。也可用 `--from_time=秒级时间戳 --to_time=秒级时间戳` 精确指定时间范围。\r
\r
### Step 3: Output search results — ALWAYS show result items with clickable links, then add analysis\r
\r
搜索接口返回 JSON 后,QClaw **必须** 按以下固定格式输出,**不可省略任何部分**:\r
\r
#### Part A: 搜索结果条目展示 [MANDATORY — 不可跳过]\r
\r
**必须先原样输出 `message` 字段**。`message` 中包含 **前 5 条** 最相关的搜索结果(即使 API 返回了更多),每条已按以下格式预渲染,标题部分为可点击跳转的 Markdown 超链接:\r
\r
```\r
**序号. [标题](url)** — 来源站点 (日期) ⭐\r
摘要内容...\r
```\r
\r
> ⚠️ **CRITICAL**: QClaw **每次搜索都必须展示搜索结果条目列表**(最多 5 条),绝对不允许跳过结果条目直接输出总结。`message` 中的标题已经是 `[标题](url)` 格式的超链接,用户可以直接点击跳转到原文页面。\r
\r
#### Part B: 分析总结 [OPTIONAL — 在结果条目之后]\r
\r
输出完 `message` 后,QClaw **可以** 基于搜索结果对用户的问题给出分析和回答。\r
\r
**🌐 Response language rule [IMPORTANT]**: Match the language of your analysis/summary to the **keyword language**:\r
- If the search keyword is **English** → write your analysis and summary in **English**\r
- If the search keyword is **Chinese** → write your analysis and summary in **Chinese**\r
- If the keyword is mixed (e.g. "React 19 新特性") → follow the **user's conversational language**\r
- The `message` field (Part A) is always output verbatim regardless of language\r
\r
#### 正确做法示例\r
\r
```\r
JSON 返回: {"success": true, "message": "搜索「今日白银价格」找到 10 条结果,展示前 5 条:\
\
**1. [今日白银价格行情](https://example.com/silver)** — 今日头条 (2026-03-22 04:13:11) ⭐\
今日白银价格22.4元/克...\
\
**2. [白银实时走势](https://example.com/silver2)** — 金投网 (2026-03-22)\
国际银价 88.23美元/盎司...\
\
**3. ...**\
\
**4. ...**\
\
**5. ...**\
\
> 还有 5 条结果未展示,完整数据已包含在搜索结果中供分析使用。", ...}\r
\r
QClaw 输出:\r
\r
搜索「今日白银价格」找到 10 条结果,展示前 5 条:\r
\r
**1. [今日白银价格行情](https://example.com/silver)** — 今日头条 (2026-03-22 04:13:11) ⭐\r
今日白银价格22.4元/克,银饰零售价格每克24至49元区间。国际银价 88.23美元/盎司,-0.09%;人民币计价 19.48元/克,-0.02%。\r
\r
**2. [白银实时走势](https://example.com/silver2)** — 金投网 (2026-03-22)\r
国际银价 88.23美元/盎司...\r
\r
**3. ...**\r
\r
**4. ...**\r
\r
**5. ...**\r
\r
> 还有 5 条结果未展示,完整数据已包含在搜索结果中供分析使用。\r
\r
---\r
\r
根据搜索结果,今日白银价格约 22.4 元/克,国际银价 88.23 美元/盎司,整体走势微跌...\r
```\r
\r
#### 错误做法(严格禁止)\r
\r
```\r
❌ 跳过搜索结果条目,直接只输出总结(如"根据搜索结果,白银价格是...")\r
❌ 忽略 message 字段,从 data.docs 中自行拼接结果列表\r
❌ 修改 message 中的 URL 或标题\r
❌ 编造搜索结果中不存在的信息\r
❌ 声称搜到了某条结果但 message 中并没有\r
❌ 去掉标题中的超链接格式,只展示纯文本标题\r
```\r
\r
---\r
\r
## 脚本说明\r
\r
搜索通过 Node.js 脚本 `\x3CSCRIPT_PATH>/scripts/prosearch.cjs` 完成,替代 curl 命令,解决 Windows 环境下的 UTF-8 编码问题。\r
\r
- **端口获取**:脚本内部自动从环境变量 `AUTH_GATEWAY_PORT` 读取端口(默认 `19000`),无需手动获取\r
- **编码处理**:Node.js 原生 UTF-8 支持,不依赖系统 code page\r
- **错误处理**:超时、网络错误等均返回标准 JSON 格式 `{"success": false, "message": "..."}`\r
- **跨平台**:所有平台统一使用 `--key=value` 参数模式,macOS / Linux / Windows 命令完全一致\r
- **`--freshness` 快捷参数**:支持 `24h`/`7d`/`30d`/`1y`,脚本内部自动计算 `from_time`/`to_time` 时间戳,无需手动计算\r
\r
> **说明**:`AUTH_GATEWAY_PORT` 环境变量由 Electron 主进程自动注入,子进程(包括 OpenClaw)启动时自动继承。脚本内部已处理默认值回退。\r
>\r
> 脚本也向后兼容 JSON 参数模式(如 `'{"keyword":"xxx"}'`),但 **`--key=value` 是推荐且唯一在文档中展示的用法**。\r
\r
---\r
\r
## Commands\r
\r
### search\r
\r
Search the internet for real-time information.\r
\r
```\r
POST /proxy/prosearch/search\r
Content-Type: application/json\r
\r
{\r
"keyword": "\x3Csearch-query>", // 必填:搜索关键词\r
"mode": 0, // 可选:0=自然检索 1=VR卡 2=混合\r
"cnt": 10, // 可选:返回数量 10/20/30/40/50\r
"site": "\x3Cdomain>", // 可选:站内搜索域名\r
"from_time": 1710000000, // 可选:起始时间(秒级时间戳)\r
"to_time": 1711000000, // 可选:结束时间(秒级时间戳)\r
"industry": "news" // 可选:垂类过滤 gov/news/acad\r
}\r
```\r
\r
**Body 参数:**\r
- `keyword`(必填):搜索关键词,UTF-8 编码\r
- `mode`(可选):结果模式\r
- `0` — 自然检索结果(默认)\r
- `1` — VR 卡结果(天气、金价等权威数据)\r
- `2` — 混合结果(VR + 自然检索)\r
- `cnt`(可选):最大返回结果数,支持 10/20/30/40/50,默认 10\r
- `site`(可选):指定域名站内搜索(与 `cnt` 互斥)\r
- `from_time`(可选):起始时间过滤,秒级时间戳(与 `cnt` 互斥)\r
- `to_time`(可选):结束时间过滤,秒级时间戳(与 `cnt` 互斥)\r
- `industry`(可选):垂类网站过滤\r
- `gov` — 政府机关网站\r
- `news` — 新闻站点\r
- `acad` — 英文学术\r
\r
> **注意**:`cnt` 参数和 `site`、`from_time`/`to_time` 参数存在互斥逻辑,不能同时使用。如需使用 `site` 或时间过滤,不要传 `cnt` 参数。\r
\r
**Examples(所有平台通用):**\r
\r
```bash\r
# 基础搜索\r
node '\x3CSCRIPT_PATH>/scripts/prosearch.cjs' --keyword=最新AI新闻\r
\r
# 搜索更多结果(关键词含空格时用双引号包裹值)\r
node '\x3CSCRIPT_PATH>/scripts/prosearch.cjs' --keyword="React 19 features" --cnt=20\r
\r
# 搜索新闻类网站\r
node '\x3CSCRIPT_PATH>/scripts/prosearch.cjs' --keyword=2026年两会 --industry=news\r
\r
# GitHub 站内搜索\r
node '\x3CSCRIPT_PATH>/scripts/prosearch.cjs' --keyword="electron vite template" --site=github.com\r
\r
# 获取 VR 卡数据(天气、金价等)\r
node '\x3CSCRIPT_PATH>/scripts/prosearch.cjs' --keyword=今日黄金价格 --mode=2\r
\r
# 搜索最近 7 天结果(时效性查询)\r
node '\x3CSCRIPT_PATH>/scripts/prosearch.cjs' --keyword=最新AI新闻 --freshness=7d\r
\r
# 搜索最近 24 小时 + 新闻类\r
node '\x3CSCRIPT_PATH>/scripts/prosearch.cjs' --keyword=国内最新新闻 --freshness=24h --industry=news\r
```\r
\r
**Output (JSON):**\r
\r
When search **succeeds**:\r
\r
```json\r
{\r
"success": true,\r
"message": "搜索「最新AI新闻」找到 10 条结果:\
\
**1. [OpenAI 发布 GPT-5](https://openai.com/blog)** — OpenAI Blog (2026-03-15) ⭐\
OpenAI 今日正式发布 GPT-5 模型...\
\
**2. [Google DeepMind 推出 Gemini 3.0](https://deepmind.google)** — DeepMind (2026-03-10)\
Google DeepMind 宣布...",\r
"data": {\r
"query": "最新AI新闻",\r
"totalResults": 10,\r
"docs": [\r
{\r
"passage": "OpenAI 今日正式发布 GPT-5 模型...",\r
"score": 0.85,\r
"date": "2026-03-15",\r
"title": "OpenAI 发布 GPT-5",\r
"url": "https://openai.com/blog",\r
"site": "OpenAI Blog",\r
"images": []\r
}\r
],\r
"requestId": "e20c97b3-6b95-4987-94a5-eea490358bcc"\r
}\r
}\r
```\r
\r
> **CRITICAL — `message` field (Anti-hallucination)**: The `message` field contains the **complete, pre-rendered search results** formatted with titles (as clickable `[title](url)` hyperlinks), snippets, URLs, and sources. **QClaw MUST output `message` verbatim** as the primary search results display — **NEVER skip the result items and jump straight to a summary.** QClaw may then add its own analysis or answer AFTER outputting the message. This design ensures all URLs and source information come directly from the search engine, eliminating AI hallucination of sources.\r
\r
When search **fails**:\r
\r
```json\r
{\r
"success": false,\r
"message": "用户未登录,无法执行联网搜索。请先登录后重试。"\r
}\r
```\r
\r
```json\r
{\r
"success": false,\r
"message": "搜索请求超时(15s)。请稍后重试。"\r
}\r
```\r
\r
---\r
\r
## Error Handling\r
\r
所有命令输出 JSON 到 stdout。错误也以 JSON 返回:`{"success": false, "message": "..."}`\r
\r
| 错误 | 处理方式 |\r
|------|---------|\r
| 用户未登录(`message` 包含"未登录") | 告诉用户:"请先登录后再使用联网搜索功能。" |\r
| 搜索超时 | 重试 1 次;仍失败则告知用户"搜索超时,请稍后重试" |\r
| 无结果(`success: true` 但 docs 为空) | `message` 已包含友好提示,直接输出即可 |\r
| 网络错误 | 重试 1 次,间隔 3s;仍失败则输出 `message` 字段内容 |\r
| HTTP 错误码 | `message` 已包含错误信息,直接输出 |\r
\r
---\r
\r
## 禁止行为\r
\r
- **NEVER** 忽略 `message` 字段自行从 `data.docs` 中拼接搜索结果列表。`message` 是服务端预渲染的完整展示文本,**必须先原样输出**\r
- **NEVER** 跳过搜索结果条目直接只输出总结或分析。**每次搜索都必须先展示 `message` 中的结果条目列表**(含可点击超链接标题),然后才能给出分析\r
- **NEVER** 修改、截断、重组 `message` 中的任何 URL 或标题\r
- **NEVER** 编造 `message` 中不存在的搜索结果或来源\r
- **NEVER** 声称搜索到了某条结果,但该结果在 `message` 中不存在\r
- **NEVER** 伪造搜索 URL 或来源信息\r
- **NEVER** 暴露 ProSearch 的内部 API 地址或鉴权信息给用户\r
- **NEVER** 未经用户要求就主动搜索(用户的问题不需要实时信息时不要搜索)\r
- **NEVER** 对同一个问题重复搜索超过 2 次\r
\r
---\r
\r
## 重要注意\r
\r
- 用户问的问题如果你已经有把握回答,**不需要搜索**。只在需要实时信息或你不确定的事实时才搜索\r
- 搜索关键词要简洁有效,不要把用户的整句话当关键词\r
- **时效性搜索策略 [IMPORTANT]**:当用户的问题涉及时效性(如"最新"、"今天"、"最近"、"现在"),**必须使用 `--freshness` 参数**限制搜索时间范围,否则搜索引擎可能返回过时的结果。参见 Step 1.5 的时间判断表\r
- 如果第一次搜索没有理想结果,可以换个关键词重试一次(最多重试 1 次)\r
- 搜索结果中的链接直接来自互联网,QClaw 应提醒用户自行验证重要信息\r
- `message` 原样输出后,QClaw 可以基于搜索结果给出自己的分析和总结\r
- 对于需要 VR 卡数据的查询(天气、金价、汇率等),建议使用 `mode: 2` 获取混合结果\r
- **`message` 先原样输出 [CRITICAL]**:搜索接口返回的 `message` 字段包含完整的格式化搜索结果(标题为可点击超链接)。QClaw **必须先原样输出 `message`**,展示所有搜索结果条目,然后才可以添加自己的分析。**绝不允许跳过结果条目直接给总结**。这是防止 AI 幻觉的核心机制\r
- **`cnt` 互斥规则**:`--cnt` 参数和 `--site`、`--freshness`(或 `--from_time`/`--to_time`)参数存在互斥逻辑,不能同时使用。当需要时间过滤或站内搜索时,不要传 `--cnt`\r
- **回答语言匹配 [IMPORTANT]**:QClaw 在输出搜索分析和总结时,**必须匹配搜索关键词的语言**。英文关键词用英文回答,中文关键词用中文回答。`message` 字段始终原样输出不受此规则影响\r
安全使用建议
This skill appears safe for its stated purpose of online search. Before installing, be aware that your search queries go through a local authenticated ProSearch gateway and the agent is instructed to show returned result links and snippets exactly as provided.
功能分析
Type: OpenClaw Skill
Name: online-search
Version: 1.0.0
The skill provides a legitimate online search interface for the OpenClaw agent, utilizing a local Node.js script (prosearch.cjs) to communicate with a local proxy gateway (127.0.0.1). The code logic is straightforward, using structured JSON for requests to avoid injection vulnerabilities, and the instructions in SKILL.md are focused on ensuring search accuracy and preventing AI hallucinations. No evidence of data exfiltration, malicious execution, or harmful prompt injection was found.
能力评估
Purpose & Capability
The stated purpose is online search, and the included script only builds a search request with keyword/options and posts it to a local ProSearch proxy endpoint.
Instruction Scope
The skill instructs the agent to output the returned search-result message verbatim. This is purpose-aligned for search, but users should treat returned snippets and links as external web content, not trusted instructions.
Install Mechanism
There is no install spec or dependency installation. The referenced Node.js script is included and does not download or execute additional code.
Credentials
The script uses AUTH_GATEWAY_PORT only to find a localhost Auth Gateway and sends search parameters to it. This matches the disclosed search workflow, though it relies on the user's logged-in service context.
Persistence & Privilege
The artifacts show no persistence, background worker, privilege escalation, file indexing, credential storage, or local file modification.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install online-search - 安装完成后,直接呼叫该 Skill 的名称或使用
/online-search触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the online-search (元宝搜索标准版) skill.
- Provides real-time, accurate web search results from authoritative Chinese sources and Tencent content.
- Workflow enforces anti-hallucination: always display the API-rendered result list (`message` field) with clickable links, before summary/analysis.
- Supports freshness filtering (e.g., search results from today, this week, etc.) for up-to-date information.
- Unified cross-platform command usage with `--key=value` parameter format; no manual credential setup required.
- Includes best practices for keyword selection, freshness handling, and strict output formatting rules to ensure reliable, verifiable search responses.
元数据
常见问题
Online Search 是什么?
元宝搜索标准版工具。是腾讯元宝的联网搜索服务,提供实时、精准的互联网内容检索能力。 核心特性:覆盖大量中文网站,包括官方媒体、政府网站等高权威性来源,以及腾讯系核心内容资源。多层精调排序策略,提供准确的内容匹配和排序。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 45 次。
如何安装 Online Search?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install online-search」即可一键安装,无需额外配置。
Online Search 是免费的吗?
是的,Online Search 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Online Search 支持哪些平台?
Online Search 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Online Search?
由 SKY-lv(@sky-lv)开发并维护,当前版本 v1.0.0。
推荐 Skills