brave-search

badlogic/pi-skills · updated Apr 8, 2026

$npx skills add https://github.com/badlogic/pi-skills --skill brave-search
0 commentsdiscussion
summary

Web search and content extraction using the official Brave Search API. No browser required.

skill.md

Brave Search

Web search and content extraction using the official Brave Search API. No browser required.

Setup

Requires a Brave Search API account with a free subscription. A credit card is required to create the free subscription (you won't be charged).

  1. Create an account at https://api-dashboard.search.brave.com/register
  2. Create a "Free AI" subscription
  3. Create an API key for the subscription
  4. Add to your shell profile (~/.profile or ~/.zprofile for zsh):
    export BRAVE_API_KEY="your-api-key-here"
    
  5. Install dependencies (run once):
    cd {baseDir}
    npm install
    

Search

{baseDir}/search.js "query"                         # Basic search (5 results)
{baseDir}/search.js "query" -n 10                   # More results (max 20)
{baseDir}/search.js "query" --content               # Include page content as markdown
{baseDir}/search.js "query" --freshness pw          # Results from last week
{baseDir}/search.js "query" --freshness 2024-01-01to2024-06-30  # Date range
{baseDir}/search.js "query" --country DE            # Results from Germany
{baseDir}/search.js "query" -n 3 --content          # Combined options

Options

  • -n <num> - Number of results (default: 5, max: 20)
  • --content - Fetch and include page content as markdown
  • --country <code> - Two-letter country code (default: US)
  • --freshness <period> - Filter by time:
    • pd - Past day (24 hours)
    • pw - Past week
    • pm - Past month
    • py - Past year
    • YYYY-MM-DDtoYYYY-MM-DD - Custom date range

Extract Page Content

{baseDir}/content.js https://example.com/article

Fetches a URL and extracts readable content as markdown.

Output Format

--- Result 1 ---
Title: Page Title
Link: https://example.com/page
Age: 2 days ago
Snippet: Description from search results
Content: (if --content flag used)
  Markdown content extracted from the page...

--- Result 2 ---
...

When to Use

  • Searching for documentation or API references
  • Looking up facts or current information
  • Fetching content from specific URLs
  • Any task requiring web search without interactive browsing

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.626 reviews
  • Fatima Iyer· Dec 16, 2024

    brave-search fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Ganesh Mohane· Dec 12, 2024

    We added brave-search from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Camila Bhatia· Dec 12, 2024

    Useful defaults in brave-search — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Dev Mensah· Nov 7, 2024

    I recommend brave-search for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Rahul Santra· Nov 3, 2024

    brave-search reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Diya Johnson· Oct 26, 2024

    Solid pick for teams standardizing on skills: brave-search is focused, and the summary matches what you get after install.

  • Pratham Ware· Oct 22, 2024

    brave-search is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Hassan Reddy· Sep 13, 2024

    brave-search fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Fatima Li· Sep 5, 2024

    brave-search is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Harper Okafor· Aug 24, 2024

    brave-search reduced setup friction for our internal harness; good balance of opinion and flexibility.

showing 1-10 of 26

1 / 3