From 9a5ec6d488b5261436ba3e9f2eecd3648712d387 Mon Sep 17 00:00:00 2001 From: hp0912 <809211365@qq.com> Date: Fri, 5 Jun 2026 23:18:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=BD=91=E9=A1=B5=E6=90=9C=E7=B4=A2ski?= =?UTF-8?q?ll?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skills/web-search/SKILL.md | 56 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 skills/web-search/SKILL.md diff --git a/skills/web-search/SKILL.md b/skills/web-search/SKILL.md new file mode 100644 index 0000000..40b6471 --- /dev/null +++ b/skills/web-search/SKILL.md @@ -0,0 +1,56 @@ +--- +name: web-search +description: "网页搜索技能。当用户需要联网搜索、查询最新网页信息、或让你先搜再总结时使用。" +argument-hint: "需要 query" +--- + +# Web Search Skill + +## 描述 + +这是一个网页搜索技能。 + +技能通过浏览器能力访问以下固定搜索接口,并从返回 JSON 中读取结果: + +`https://so.houhoukang.com/search?format=json&q=` + +`q` 参数是搜索关键词。执行时必须对关键词进行 URL 编码后再拼接到 `q=` 后面。 + +## 触发条件 + +- 用户要求你联网搜索某个主题。 +- 用户说「帮我搜一下」「查一下最新信息」「搜索这个问题」。 + +## 入参规范 + +```json +{ + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "搜索关键词" + } + }, + "required": ["query"], + "additionalProperties": false +} +``` + +## 执行步骤 + +1. 提取用户搜索词 `query`。 +2. 对 `query` 做 URL 编码,构造搜索地址: + + `https://so.houhoukang.com/search?format=json&q=<编码后的query>` + +3. 使用浏览器技能访问该地址并读取 JSON 响应。 +4. 解析响应中的 `results` 数组,重点字段: + - `title` + - `content` + - `url` +5. 如果列表数据不够详细,无法获得有效的信息,可以继续访问每条结果的 `url` 获取更多内容。 + +## 回复要求 + +- 返回用户需要的数据