隐私搜索 · 智能摘要 · 实时问答
简介
Brave Search API 驱动的实时网络搜索工具,提供排名结果与 AI 摘要双模式,适合快速查资料与事实问答
原始描述
Searches the web and returns ranked results or AI-generated summarized answers using the Brave Search API. Use for real-time web lookups and factual Q&A.
通过你的 Agent 添加
安装目录:brave-web-search/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: brave-web-search
description: Searches the web and returns ranked results or AI-generated summarized answers using the Brave Search API. Use for real-time web lookups and factual Q&A.
metadata:
clawdbot:
emoji: "🔍"
requires:
env: ["BRAVE_SEARCH_API_KEY", "BRAVE_ANSWERS_API_KEY"]
bins: ["node"]
primaryEnv: "BRAVE_SEARCH_API_KEY"
category: "Search & Research"
Brave Web Search
Searches the web and fetches AI-generated summarized answers using the Brave Search API. Exposes two commands: brave-search for ranked web results and brave-answer for concise AI summaries.
Instructions
-
Trigger: Activate when the user wants to look something up on the web, check recent news, or get a factual answer to a question.
-
Setup: No installation step is required — this skill has zero external dependencies and runs on native Node.js.
-
Command selection:
- Use
brave-search for general web searches where ranked results with URLs and snippets are useful.
- Use
brave-answer for direct factual questions where a concise AI summary is more appropriate.
-
Execution: Invoke the script by passing the command name and parameters as separate arguments, never by interpolating user input into a shell command string. Use an argument array / execFile-style invocation so the shell never parses user-supplied values. Example (Node-style pseudo-code):
execFile('node', ['index.js', 'brave-search', '--query', userQuery, '--count', '10'])
Do not construct the command as a single concatenated string such as "node index.js brave-search --query " + userQuery.
-
Freshness: For time-sensitive queries, pass --freshness pd (past day), pw (past week), or pm (past month) to the brave-search command.
-
Fallback: If brave-answer returns answer: null, present the fallback_results to the user instead.
-
Completion: Present the results clearly, citing titles and URLs for web search results, or the summary text for answer results.
Security & Privacy
- Shell Injection Prevention: User queries must be passed as discrete arguments (e.g. via
execFile or an argv array), never interpolated into a shell command string. Concatenating user input into a shell string (e.g. shell: true with template literals) enables shell injection and is strictly forbidden.
- Instruction Scope: This skill only sends query strings to the Brave Search and Brave Summarizer APIs.
- Environment: It uses the
BRAVE_SEARCH_API_KEY and BRAVE_ANSWERS_API_KEY provided by the OpenClaw environment.
- Data Access: It does not read local files or .env files. All configuration is handled by the agent.
Trigger: Activate when the user wants to look something up on the web, check recent news, or get a factual answer to a question.
Setup: No installation step is required — this skill has zero external dependencies and runs on native Node.js.
Command selection:
- Use
brave-searchfor general web searches where ranked results with URLs and snippets are useful. - Use
brave-answerfor direct factual questions where a concise AI summary is more appropriate.
Execution: Invoke the script by passing the command name and parameters as separate arguments, never by interpolating user input into a shell command string. Use an argument array / execFile-style invocation so the shell never parses user-supplied values. Example (Node-style pseudo-code):
execFile('node', ['index.js', 'brave-search', '--query', userQuery, '--count', '10'])
Do not construct the command as a single concatenated string such as "node index.js brave-search --query " + userQuery.
Freshness: For time-sensitive queries, pass --freshness pd (past day), pw (past week), or pm (past month) to the brave-search command.
Fallback: If brave-answer returns answer: null, present the fallback_results to the user instead.
Completion: Present the results clearly, citing titles and URLs for web search results, or the summary text for answer results.
- Shell Injection Prevention: User queries must be passed as discrete arguments (e.g. via
execFileor an argv array), never interpolated into a shell command string. Concatenating user input into a shell string (e.g.shell: truewith template literals) enables shell injection and is strictly forbidden. - Instruction Scope: This skill only sends query strings to the Brave Search and Brave Summarizer APIs.
- Environment: It uses the
BRAVE_SEARCH_API_KEYandBRAVE_ANSWERS_API_KEYprovided by the OpenClaw environment. - Data Access: It does not read local files or .env files. All configuration is handled by the agent.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。