Brave Search Skill: Web Search and Content Extraction via Brave Search API

Preface

When an Agent needs to consult documentation, verify facts, or fetch webpage content, common approaches include browser automation or hand-written crawlers. The former is heavy and fragile; the latter requires handling anti-scraping and content extraction yourself. If you want to accomplish “search + optional content extraction” via an API without installing a full browser in your environment, you can take a look at the Brave Search Skill built on the Brave Search API.

Below, we introduce the positioning, capabilities, and installation method of this Skill, and provide reproducible command examples from the upstream repository.

What This Is

Brave Search Skill (SkillHub coordinate @clawhub_steipete/brave-search, current version 1.0.1) performs web search and content extraction via the Brave Search API, targeting tasks such as “search documentation, look up facts, or fetch arbitrary webpage content.” The description emphasizes lightweight operation with no browser required.

The Skill’s description on SkillHub matches the upstream: it performs web search and content extraction via the Brave Search API, suitable for searching documents, facts, or any webpage content.

Core Capabilities

Based on the SkillHub and ClawHub upstream documentation, the verifiable capabilities include:

  1. Web Search: Retrieve web results using a query string (the default number of results can be controlled via parameters).
  2. Optional Content Extraction: When searching, you can enable a flag to return readable content extracted from result pages in Markdown form.
  3. Single URL Content Extraction: Fetch and extract readable content (Markdown) from a specified URL.
  4. Headless Operation: Does not rely on an interactive browser, making it suitable for use within scripts or Agent workflows.

Output format examples are provided in the upstream documentation: each result includes Title, Link, and Snippet; when using --content, a Markdown content block extracted from the page is appended.

Installation and Activation

Install via SkillHub (commonly used in China)

The installation guide provided on the SkillHub page is: first read SkillHub Installation and Priority Source Configuration, then install the coordinate @clawhub_steipete/brave-search.

  1. Confirm that the skillhub CLI is available locally (if it is not installed, follow the official documentation to run the installation script):
command -v skillhub && skillhub --version
  1. When installing the Skill, you must use --dir to point to the current Agent’s skills directory; otherwise, it may be installed to the default ./skills/ path and not recognized:
skillhub install clawhub_steipete/brave-search --dir <skills directory>

Example skills paths for some clients listed in the SkillHub documentation:

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

After installing or updating skills, restart or refresh the Agent according to the instructions for your client so that the new Skill takes effect.

Install via ClawHub / OpenClaw

The installation command provided on the upstream ClawHub page is:

openclaw skills install @steipete/brave-search

API Key and Dependencies

The upstream Setup section states:

  • Before first use, run npm ci in the Skill’s directory (the example path is ~/Projects/agent-scripts/skills/brave-search; use the actual directory where you installed it).
  • Environment variable: BRAVE_API_KEY (Brave Search API key).

Without a valid key configured, search and extraction requests cannot be completed via the API.

Typical Usage

The following commands come from the ClawHub upstream repository documentation and assume npm ci has been run and BRAVE_API_KEY is configured (script names and paths depend on the installed Skill package).

Basic Search (defaults to about 5 results):

./search.js "query"

Adjust the number of results:

./search.js "query" -n 10

Search and include page content as Markdown:

./search.js "query" --content
./search.js "query" -n 3 --content

Extract content from a single URL:

./content.js https://example.com/article

After enabling the Skill on the Agent side, you can encapsulate the above capabilities into conversations: for example, ask the model to “check the official documentation of a certain API and summarize key points,” with the Skill guiding calls to search or content.js to fetch pages.

Use Cases and Notes

Suitable for:

  • Looking up documentation, API references, or technical facts when web retrieval is needed without launching a browser.
  • When you already have a URL and need readable Markdown content for summarization or citations.
  • Workflows requiring a privacy-first search API solution (both the Skill introduction and the English description refer to the Brave Search API).

Notes:

  • You must provide your own Brave Search API key (requires_api_key=true).
  • Depends on the Node ecosystem: the upstream requires running npm ci within the Skill directory.
  • The number of search results and whether to fetch full text are controlled via parameters; fetching full text increases API calls and latency.
  • SkillHub statistics (based on the retrieved data): rating 100000, downloads 89167, installs 7921; refer to the live numbers shown on the SkillHub page for the most accurate figures.

Closing

Brave Search Skill consolidates “search + optional content extraction” into the Brave Search API and a few script commands, making it suitable for adding web retrieval capabilities to an Agent while controlling environment complexity. For installation and coordinates, refer to SkillHub; for behavior and command examples, refer to the upstream ClawHub repository.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye