Brave Web Search

👤 kghamilton89 📦 v1.0.1 ⭐ 4.3 ⬇️ 3.5K 下载
📚 知识管理 免费 🔑 需 API Key

📖 技能介绍


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

  1. Trigger: Activate when the user wants to look something up on the web, check recent news, or get a factual answer to a question.
  2. Setup: No installation step is required — this skill has zero external dependencies and runs on native Node.js.
  3. Command selection:
  4. Use brave-search for general web searches where ranked results with URLs and snippets are useful.
  5. Use brave-answer for direct factual questions where a concise AI summary is more appropriate.
  6. 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):

javascript 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.

  1. Freshness: For time-sensitive queries, pass --freshness followed by pd (past day), pw (past week), or pm (past month) as a separate argument to brave-search.

    想要更强大的技能插件,就来小葱技能站7w4.net看看吧。

  2. Fallback: If brave-answer returns answer: null, present the fallback_results to the user instead.
  3. 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.

🤖 AI 评测

这个 Skill 质量不错,能进行网页搜索和 AI 摘要,使用安全、文档清晰,没有多余依赖。主要优点是轻量、可靠、容易上手。不足是缺少使用示例,对新手不太友好,且版本信息有点混乱。总体来说是个好用的搜索工具,值得一试。

📊 多维度评分

适应性4.3
规范性4.2
有效性4.6
可靠性4.2
可信度4.2

📁 包含文件 (5 个)

📄 SKILL.md 2.7 KB
📄 _meta.json 135 B
📄 index.js 5.3 KB
📄 package-lock.json 195 B
📄 package.json 203 B