brave-search
Web search and content extraction via Brave Search API. Use for searching documentation, facts, or any web content. Lightweight, no browser required.
Best use case
brave-search is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Web search and content extraction via Brave Search API. Use for searching documentation, facts, or any web content. Lightweight, no browser required.
Teams using brave-search should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/brave-search/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How brave-search Compares
| Feature / Agent | brave-search | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Web search and content extraction via Brave Search API. Use for searching documentation, facts, or any web content. Lightweight, no browser required.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Brave Search Web search and content extraction using the official Brave Search API. No browser required. **Script location:** `$PI_CODING_AGENT_DIR/skills/brave-search/` ## 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 (2,000 queries/month free) 3. Create an API key 4. Add to your agenix secrets (`secrets/env-vars.age`): ```bash export BRAVE_SEARCH_API_KEY="your-api-key-here" ``` 5. Dependencies are pre-installed via Nix (no manual npm install needed) ## Search ```bash $PI_CODING_AGENT_DIR/skills/brave-search/search.js "query" # Basic search (5 results) $PI_CODING_AGENT_DIR/skills/brave-search/search.js "query" -n 10 # More results (max 20) $PI_CODING_AGENT_DIR/skills/brave-search/search.js "query" --content # Include page content as markdown $PI_CODING_AGENT_DIR/skills/brave-search/search.js "query" --freshness pw # Results from last week $PI_CODING_AGENT_DIR/skills/brave-search/search.js "query" --freshness 2024-01-01to2024-06-30 # Date range $PI_CODING_AGENT_DIR/skills/brave-search/search.js "query" --country DE # Results from Germany $PI_CODING_AGENT_DIR/skills/brave-search/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 ```bash $PI_CODING_AGENT_DIR/skills/brave-search/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 --- ... --- Rate Limit Info --- Requests remaining: 1999/2000 Plan quota remaining: 1999/2000 Resets at: 2/6/2026, 12:00:00 AM ``` ## Rate Limits (Free Plan) - **2,000 queries/month** included free - 1 query/second rate limit - Rate limit info shown after each search - Paid plans available at https://api-dashboard.search.brave.com/app/plans ## 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
Related Skills
web-search
Web search using DuckDuckGo (free, unlimited). Falls back to pi-web-access extension for content extraction.
writing-clearly-and-concisely
Apply Strunk's timeless writing rules to ANY prose humans will read - documentation, commit messages, error messages, explanations, reports, or UI text. Makes your writing clearer, stronger, and more professional.
web-browser
Interact with web pages using agent-browser CLI. MUST run 'browser connect 9222' FIRST to use existing browser with authenticated sessions.
tmux
Remote control tmux sessions for interactive CLIs (python, gdb, etc.) by sending keystrokes and scraping pane output.
ticket-worker
Work on a single tk ticket end-to-end. Use when the user says 'work on ticket X' or when spawned by work-tickets.sh.
ticket-creator
Create and refine tickets for the tk ticket system. Use when the user says 'create tickets for X', 'refine ticket X', 'break this into tickets', 'seed tickets from plan', or anything about creating or refining tk tickets.
tell
Delegate tasks to other agents - pi sessions or external agents (claude, opencode, aider). Non-blocking with task tracking and completion notifications.
task-pipeline
Structured workflow for research → plan → tickets → work. Use when starting or continuing a task with /task, /plan, or /tickets commands.
preview
Display code, diffs, images, and other content in a tmux pane or popup. Auto-detects nvim/megaterm for floating popups.
mcpctl
Manage MCP server configurations — add, remove, list, inspect, troubleshoot. Use when asked to "add mcp server", "remove mcp", "list mcp servers", "mcp status", "configure mcp", "troubleshoot mcp", or any MCP server management task.
handoff
Save session state for later pickup. Use /handoff when context is degrading, /pickup to resume in a new session.
github
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.