brave-search
Skill1 starsChanged 9 months agoMITView on GitHub
Web search and content extraction via Brave Search API. Use for searching documentation, facts, or any web content. Lightweight, no browser required.
- Reads credentials
- Installs packages
6 other projects use a version of this, 4 of them edited.
Adopted by
Most recently taken up by
- cadecode/agent-skillsedited, first seen Oct 20, 2026
- bushuhui/skillstheir own version, first seen Jun 5, 2026
- aiagenta2z/onekey-gatewaytheir own version, first seen Apr 10, 2026
- ferologics/pi-skillsedited, first seen Feb 12, 2026
- sarfraznawaz2005/agent-skills-collectionedited, first seen Feb 5, 2026
- badlogic/pi-skillsedited, first seen Dec 18, 2025
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 4
- badlogic/pi-skills★ 2.5k21% same
- ferologics/pi-skills★ 1421% same
- cadecode/agent-skills★ 116% same
- sarfraznawaz2005/agent-skills-collection★ 121% same
Wrote their own version · 2
- aiagenta2z/onekey-gateway★ 52same name
- bushuhui/skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- hn-distillSkill
- serper-searchSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
Use --preset for common filtering patterns.
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Brave Search
Which Tool
| Need | Tool |
| Search + read content (default) | llm-context.js |
| Just URLs and snippets | search.js |
| Fetch a specific known URL | content.js |
LLM Context (Default)
Single API call — searches the web AND returns pre-extracted content optimized for LLMs.
{baseDir}/llm-context.js "query" # Standard
{baseDir}/llm-context.js "query" --preset code # Filter SEO spam for programming
{baseDir}/llm-context.js "query" --preset research # Boost academic/quality sources
{baseDir}/llm-context.js "query" --preset docs # Only official documentation
{baseDir}/llm-context.js "query" --tokens 16384 --urls 30 # Deep research
{baseDir}/llm-context.js "query" --freshness pw # Last week only
{baseDir}/llm-context.js "query" --goggles '$discard,site=x.com' # Custom inline rulesPresets
Use --preset for common filtering patterns. These are built-in inline goggles rules — tested and working.
| Preset | Effect |
code | Discard 8 SEO farms (w3schools, geeksforgeeks, tutorialspoint, etc.), boost SO + /docs/ paths |
research | Boost arxiv, ACM, HN, lobste.rs; downrank medium; discard SEO farms |
docs | Allow-list only: official docs (Python, MDN, Rust, Go, TS, Node), realpython, SO, GitHub. Everything else discarded. |
Options
--tokens <num>— Max tokens (default: 8192, min: 1024, max: 32768)--urls <num>— Max URLs (default: 20, max: 50)--count <num>— Search results to consider (default: 20, max: 50)--threshold <mode>— Relevance:strict,balanced(default),lenient,disabled--country <code>— Two-letter country code (default: US)--freshness <period>—pd(day),pw(week),pm(month),py(year)--preset <name>— Built-in goggles:code,research,docs--goggles <val>— Hosted goggle URL or custom inline rules (use\nbetween rules). Cannot combine with--preset.
Custom Goggles
For per-query customization beyond presets. See goggles-reference.md for full syntax, hosted goggles catalog, and domain lists.
# Hosted goggle (189 copycat scrapers removed)
{baseDir}/llm-context.js "query" --goggles 'https://raw.githubusercontent.com/brave/goggles-quickstart/main/goggles/copycats_removal.goggle'
# Hosted goggle (allow-list: only HN-popular domains, everything else discarded)
{baseDir}/llm-context.js "query" --goggles 'https://raw.githubusercontent.com/brave/goggles-quickstart/main/goggles/hacker_news.goggle'
# Inline: discard specific domains
{baseDir}/llm-context.js "query" --goggles '$discard,site=pinterest.com\n$discard,site=quora.com'
# Inline: allow-list pattern
{baseDir}/llm-context.js "query" --goggles '$discard\n$boost=5,site=arxiv.org\n$boost=1,site=github.com'Key rules: $boost=N,site=domain (N=1-10), $downrank=N,site=domain, $discard,site=domain, $discard (discard all unmatched). Precedence: discard > boost > downrank.
Search
Returns URLs, snippets, and extra snippets.
{baseDir}/search.js "query" # 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 # Last week
{baseDir}/search.js "query" --goggles 'https://raw.githubusercontent.com/brave/goggles-quickstart/main/goggles/copycats_removal.goggle'Options: -n <num>, --content, --country <code>, --freshness <period>, --goggles <url|rules>
Both hosted goggles (pass URL) and inline rules work with --goggles. See goggles-reference.md for hosted goggles catalog.
Extract Page Content
{baseDir}/content.js https://example.com/articleSetup
Requires BRAVE_API_KEY env var. Get one at https://api-dashboard.search.brave.com — $5/1k requests, $5 free monthly credits.
export BRAVE_API_KEY="your-key" # Add to ~/.zprofile
cd {baseDir} && npm install # Run onceDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

