web-search
Skill15 starsChanged 10 months agoApache-2.0View on GitHub
Web search and content extraction skill for AI coding agents. Zero API keys required. Decision tree with fallback chains across 5 tools.
- Reads credentials
- Installs packages
49 other projects use a version of this.
Adopted by
Most recently taken up by
- Suge8/skillstheir own version, first seen Oct 5, 2026
- delorenj/skillstheir own version, first seen Oct 2, 2026
- devskale/skale-skillstheir own version, first seen Oct 2, 2026
- velonx/agent-skillstheir own version, first seen Sep 24, 2026
- zengzhu2013/zhilian-ai-labtheir own version, first seen Sep 24, 2026
- Vivswan/copilot-envtheir own version, first seen Sep 19, 2026
Used with
Projects with it also use gift-evaluator, Podcast Generate and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
jjyaoaoSkillgift-evaluator
The PRIMARY tool for Spring Festival gift analysis and social interaction generation. Use this skill when users upload photos of gifts (alcohol, tea, supplements, etc.) to inquire about their value, authenticity, or how to respond socially. Integrates visual perception, market valuation, and HTML card generation.
Also in 4 projects that use this
jjyaoaoSkillPodcast Generate
Generate podcast episodes from user-provided content or by searching the web for specified topics. If user uploads a text file/article, creates a dual-host dialogue podcast (or single-host upon request). If no content is provided, searches the web for information about the user-specified topic and generates a podcast. Duration scales with content size (3-20 minutes, ~240 chars/min). Uses z-ai-web-dev-sdk for LLM script generation and TTS audio synthesis. Outputs both a podcast script (Markdown) and a complete audio file (WAV).
Also in 4 projects that use this
MindrallySkillllm
Large Language Model development, training, fine-tuning, and deployment best practices.
Also in 4 projects that use this
SuperInstanceSkillaminer-data-search
使用 AMiner 开放平台 API 进行学术数据查询与分析。当用户需要查询学者信息、论文详情、机构数据、期刊内容或专利信息时使用此 skill。 触发场景:提到 AMiner、学术数据查询、查论文/学者/机构/期刊/专利、学术问答搜索、引用分析、科研机构分析、学者画像、论文引用链、期刊投稿分析等。 支持 6 大组合工作流(学者全景分析、论文深度挖掘、机构研究力分析、期刊论文监控、学术智能问答、专利链分析)以及 28 个独立 API 的直接调用。 即使用户只说"帮我查一下 XXX 学者"或"找找关于 XXX 的论文",也应主动使用此 skill。
Also in 3 projects that use this
SuperInstanceSkillauto-target-tracker
自动目标进度追踪器。在对话中检测到目标相关图片(笔记、进度、截图、记录)时,自动调用 VLM 识别关键信息并记录到目标日记。适用于学习管理、健身追踪、工作进度、习惯养成、创作记录等所有目标管理场景。
Also in 3 projects that use this
- +2 more from jjyaoao
- +5 more from SuperInstance
Other versions49 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 49
- jjyaoao/HelloAgents★ 3.2ksame name
- freestylefly/wesight★ 941same name
- bear2u/my-skills★ 931same name
- claude-office-skills/skills★ 497same name
- OpenMinis/MinisSkills★ 438same name
- brave/brave-search-skills★ 182same name
- ntorga/agent-starter-kit★ 146same name
- aymenfurter/polyclaw★ 87same name
- ogulcancelik/agent-skills★ 80same name
- matyasstoch/david-skills★ 59same name
39 more not listed
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 repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- browser-opsSkill
- chatgpt-searchSkill
- google-workspace-opsSkill
- gsd-coordinatorSkill
- image-genSkill
- peekabooSkill
- summarizeSkill
- trueskill-rankSkill
- vaultSkill
- video-genSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. 0 are common, 14 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 41 edited versions we read keep these.
14
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 31
After installing, tell your agent: "Check UPDATES.md in the web-search skill for any new features or changes."
- Very specific: line 33
When updating, tell your agent: "Read UPDATE-GUIDE.md and apply the latest changes from UPDATES.md."
- Very specific: line 35
Follow UPDATE-GUIDE.md so customized local files are diffed before any overwrite.
- Distinctive: line 41
Run this minimal fallback-safe sequence:
- Very specific: line 54
Use this routing rule: search with WebSearch first, extract with Jina/WebFetch for simple pages, escalate to Crawl4AI for JS-heavy targets.
- Distinctive: line 88
Weaknesses: No direct SDK/CLI access (tool-only), results are search-result blocks not raw JSON
- Distinctive: line 99
Returns: Search result blocks with titles, URLs, and content snippets.
- Distinctive: line 117
When redirected to a different host, returns redirect URL instead of content
- Very specific: line 141
API key: Not required. JINA_API_KEY is optional and only increases rate limits.
- Distinctive: line 143
Weaknesses: No JS rendering, rate limited without API key
- Distinctive: line 181
When: Need factual answers or find relevant pages
- Distinctive: line 190
When: Have a URL, need its content as clean text/markdown
- Distinctive: line 200
When: Need comprehensive research on a topic with multiple sources
- Distinctive: line 205
If any extraction fails (JS site), use the other tool
- Distinctive: line 212
When: Need content from multiple URLs (5+)
- Distinctive: line 231
When: Primary tool fails
- Distinctive: line 233
Search chain: WebSearch (built-in) --> Jina s.jina.ai --> duckduckgo-search
- Distinctive: line 237
Always try the primary tool first, escalate on failure.
- Distinctive: line 260
Zero API keys required: All tools work out of the box.
“Common” is measured: kept by at least 6 in 10 of the 41 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
Web Search
Web search, scraping, and content extraction for AI coding agents. Zero API keys required. Five tools organized in fallback chains: WebSearch and Crawl4AI as primary, Jina as secondary, duckduckgo-search and WebFetch as fallbacks. Use when your agent needs web information -- finding pages, extracting content, or conducting research.
Terminology used in this file:
- Playwright: Browser automation framework used by Crawl4AI for JavaScript-rendered pages.
- SPA: Single-page application; content is rendered dynamically in JavaScript.
- MCP: Model Context Protocol, a standard for exposing tool servers to AI agents.
Setup
python3 -m pip install crawl4ai duckduckgo-search
crawl4ai-setup- Claude Code: copy this skill folder into
.claude/skills/web-search/ - Codex CLI: append this SKILL.md content to your project's root
AGENTS.md
For the full installation walkthrough (prerequisites, verification, troubleshooting), see references/installation-guide.md.
Staying Updated
This skill ships with an UPDATES.md changelog and UPDATE-GUIDE.md for your AI agent.
After installing, tell your agent: "Check UPDATES.md in the web-search skill for any new features or changes."
When updating, tell your agent: "Read UPDATE-GUIDE.md and apply the latest changes from UPDATES.md."
Follow UPDATE-GUIDE.md so customized local files are diffed before any overwrite.
Quick Start
Run this minimal fallback-safe sequence:
# 1) Find candidate pages
python3 -c "from duckduckgo_search import DDGS; import json; print(json.dumps(DDGS().text('your query', max_results=5), indent=2))"
# 2) Extract one page quickly (no local deps)
curl -s "https://r.jina.ai/http://example.com/article" | head -80
# 3) Escalate to Crawl4AI if JS rendering is needed
crwl https://example.com/app --f markdown --bypass-cacheUse this routing rule: search with WebSearch first, extract with Jina/WebFetch for simple pages, escalate to Crawl4AI for JS-heavy targets.
Decision Tree
Need info from the web?
|
+-- Need to SEARCH for pages/answers?
| +-- Default first choice --> WebSearch (built-in, zero setup)
| +-- WebSearch unavailable? --> Jina s.jina.ai (no key needed)
| +-- Both fail? --> duckduckgo-search Python lib (emergency fallback)
|
+-- Need to EXTRACT content from a known URL?
| +-- JS-heavy SPA, dynamic content? --> Crawl4AI crwl (full browser rendering)
| +-- Simple text page (article, docs, blog)? --> Jina r.jina.ai (fast, no install)
| +-- Jina/Crawl4AI unavailable? --> WebFetch (built-in, AI-summarized)
| +-- Need structured data extraction? --> Crawl4AI with extraction strategy
| +-- Multiple URLs in batch? --> Crawl4AI batch mode
|
+-- Need DEEP RESEARCH (search + extract + combine)?
--> WebSearch to find URLs --> Crawl4AI/Jina extract each --> synthesize
Rule of thumb: WebSearch for finding, Jina for reading, Crawl4AI for rendering.Tool Reference
WebSearch (Built-in) -- Primary Search
What: Claude Code built-in web search tool. Returns search results with links and snippets. Install required: None (built-in to Claude Code) Strengths: Zero setup, zero API keys, integrated into agent workflow, always available Weaknesses: No direct SDK/CLI access (tool-only), results are search-result blocks not raw JSON
# Invoked as a Claude Code tool:
WebSearch(query="your search query")
# Supports domain filtering:
WebSearch(query="your query", allowed_domains=["docs.python.org"])
WebSearch(query="your query", blocked_domains=["pinterest.com"])Returns: Search result blocks with titles, URLs, and content snippets.
WebFetch (Built-in) -- Fallback URL Extraction
What: Claude Code built-in URL fetcher. Fetches page content, converts HTML to markdown, processes with AI. Install required: None (built-in to Claude Code) Strengths: Zero setup, AI-processed output, handles redirects, 15-min cache Weaknesses: Cannot handle authenticated/private URLs, may summarize large content
# Invoked as a Claude Code tool:
WebFetch(url="https://example.com/page", prompt="Extract the main content")Limitations:
- Will fail for authenticated URLs (Google Docs, Confluence, Jira, private GitHub)
- HTTP auto-upgraded to HTTPS
- Large content may be summarized rather than returned in full
- When redirected to a different host, returns redirect URL instead of content
Crawl4AI -- JS-Rendering Web Scraper
What: Open-source scraper with full Playwright browser rendering. Outputs LLM-friendly markdown.
Install required: pip install crawl4ai && crawl4ai-setup
Strengths: Full JS rendering, handles SPAs, batch crawling, structured extraction
Weaknesses: Requires Playwright install, heavier than Jina
# CLI (simplest)
crwl https://example.com
crwl https://example.com -o markdown
# Python API
from crawl4ai import AsyncWebCrawler
async with AsyncWebCrawler() as crawler:
result = await crawler.arun(url='https://example.com')
print(result.markdown)Jina Reader/Search -- Zero-Install Extraction & Search
What: URL-to-markdown converter and search via HTTP API. No install needed -- just curl.
API key: Not required. JINA_API_KEY is optional and only increases rate limits.
Strengths: Zero install, fast (~1s), works everywhere curl works, search + extract in one service
Weaknesses: No JS rendering, rate limited without API key
# Read a URL (returns markdown)
curl -s 'https://r.jina.ai/https://example.com'
# Search (returns search results)
curl -s 'https://s.jina.ai/your+search+query'
# With API key (higher rate limits, optional)
curl -s -H "Authorization: Bearer $JINA_API_KEY" 'https://r.jina.ai/https://example.com'duckduckgo-search -- Emergency Search Fallback
What: Python library for DuckDuckGo search. Zero API keys, zero registration.
Install required: pip install duckduckgo-search
Strengths: Completely free, no API key, no rate limit concerns, reliable fallback
Weaknesses: Less AI-optimized results than WebSearch, Python-only
from duckduckgo_search import DDGS
results = DDGS().text("your query", max_results=5)
for r in results:
print(r['title'], r['href'], r['body'])# One-liner from CLI
python3 -c "from duckduckgo_search import DDGS; import json; print(json.dumps(DDGS().text('your query', max_results=5), indent=2))"Core Workflows
Pattern 1: Quick Web Search
When: Need factual answers or find relevant pages
- Use WebSearch:
WebSearch(query="your query here") - Parse results: each result has title, URL, and content snippet
- Fallback:
curl -s 'https://s.jina.ai/your+query+here' - Emergency:
python3 -c "from duckduckgo_search import DDGS; ..."
Pattern 2: URL Content Extraction
When: Have a URL, need its content as clean text/markdown
a) JS-heavy site: crwl URL (Crawl4AI, full rendering)
b) Lightweight static page: curl -s 'https://r.jina.ai/URL' (Jina)
c) Both fail: WebFetch(url="URL", prompt="Extract the main content")
Decision: Is it a SPA/JS-heavy? Use Crawl4AI. Static content? Use Jina first. If output is empty/broken, escalate.
Pattern 3: Deep Research
When: Need comprehensive research on a topic with multiple sources
- WebSearch to find relevant pages
- Pick top 3-5 URLs from results
- Extract each with Crawl4AI or Jina
- If any extraction fails (JS site), use the other tool
- Synthesize extracted content into research summary
Token budget: ~5K per extracted page, budget 25K total for 5 pages
Pattern 4: Batch URL Scraping
When: Need content from multiple URLs (5+)
import asyncio
from crawl4ai import AsyncWebCrawler
urls = ['url1', 'url2', 'url3']
async def batch():
async with AsyncWebCrawler() as crawler:
for url in urls:
result = await crawler.arun(url=url)
print(f'--- {url} ---')
print(result.markdown[:2000])
asyncio.run(batch())Pattern 5: Fallback Chain
When: Primary tool fails
Search chain: WebSearch (built-in) --> Jina s.jina.ai --> duckduckgo-search
Extract chain: Crawl4AI crwl --> Jina r.jina.ai --> WebFetch (built-in)
Always try the primary tool first, escalate on failure.
MCP Configuration
Jina MCP (optional enhancement, not required):
{
"jina-reader": {
"command": "npx",
"args": ["-y", "jina-ai-reader-mcp"]
}
}MCP (Model Context Protocol) is optional. Your agent can use CLI/Python/built-in tools directly.
Environment Setup
Zero API keys required. All tools work out of the box.
Optional:
JINA_API_KEY(get from https://jina.ai) -- increases rate limits, not required
export JINA_API_KEY='jina_...' # optionalInstall:
pip install crawl4ai duckduckgo-searchcrawl4ai-setup# installs Playwright browsers
Built-in tools (WebSearch, WebFetch) require no installation.
Verify: ./scripts/search-check.sh
Anti-Patterns
| Do NOT | Do instead |
| Use Crawl4AI for simple text pages | Use Jina r.jina.ai (zero overhead) |
| Use Jina for JS-heavy SPAs | Use Crawl4AI (Jina has no JS rendering) |
| Skip the fallback chain | Always have a backup: WebSearch->Jina->duckduckgo, Crawl4AI->Jina->WebFetch |
| Extract full pages when you need one fact | Use WebSearch (returns relevant snippets directly) |
| Batch with Jina for 10+ URLs | Use Crawl4AI batch mode (designed for it) |
| Forget rate limits | Jina without API key has stricter limits |
| Use WebFetch for authenticated URLs | It will fail; use browser-ops skill or direct API access |
Error Handling
| Symptom | Tool | Cause | Fix |
| No results returned | WebSearch | Query too specific or topic too niche | Broaden query, try Jina s.jina.ai or duckduckgo-search |
| Redirect notification | WebFetch | URL redirects to different host | Make a new WebFetch request with the provided redirect URL |
| Auth failure | WebFetch | Authenticated/private URL | Use browser-ops skill or direct API access instead |
| Content summarized | WebFetch | Page content too large | Use Jina r.jina.ai or Crawl4AI for full content |
| 429 Too Many Requests | Jina | Rate limit hit | Add JINA_API_KEY header, or add delay between requests |
| Empty/truncated output | Jina | JS-rendered content not captured | Escalate to Crawl4AI: crwl URL |
| crwl: command not found | Crawl4AI | Not installed or not on PATH | pip install crawl4ai && crawl4ai-setup |
| Playwright browser not found | Crawl4AI | crawl4ai-setup not run | Run: crawl4ai-setup |
| TimeoutError | Crawl4AI | Page too slow or blocking | Add timeout parameter, check if site blocks bots |
| SSL certificate error | Any | Expired or self-signed cert | Retry; for Crawl4AI add ignore_https_errors=True |
| 403 Forbidden | Jina/Crawl4AI | Site blocking automated access | Try different tool from fallback chain |
| ImportError: duckduckgo_search | duckduckgo-search | Package not installed | pip install duckduckgo-search |
| RatelimitException | duckduckgo-search | Too many requests too fast | Add 1-2s delay between calls, or switch to WebSearch |
Bundled Resources Index
| Path | What | When to load |
./UPDATES.md | Structured changelog for AI agents | When checking for new features or updates |
./UPDATE-GUIDE.md | Instructions for AI agents performing updates | When updating this skill |
./references/installation-guide.md | Detailed install walkthrough for Claude Code and Codex CLI | First-time setup or environment repair |
./references/tool-comparison.md | Side-by-side comparison: latency, cost, JS support, accuracy | When choosing between tools for a specific use case |
./references/error-patterns.md | Detailed failure modes and recovery per tool | When debugging a failed extraction or search |
./scripts/search-check.sh | Health check: verifies all tools are available | Before first web search task in a session |
./scripts/setup.sh | One-shot installer for all dependencies | First-time setup or after environment reset |
Does 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.

