web-search-fallback
Autonomous agent-based web search fallback for when WebSearch API fails or hits limits
npx skills add majiayu000/claude-skill-registry --skill web-search-fallback-bejranonda-llm-autonomous-agent-2 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Web Search Fallback Skill ## Overview Provides robust web search capabilities using the **autonomous agent approach** (Task tool with general-purpose agent) when the built-in WebSearch tool fails, errors, or hits usage limits. This method has been tested and proven to work reliably where HTML scraping fails. ## When to Apply - WebSearch returns validation or tool errors - You hit daily or session usage limits - WebSearch shows "Did 0 searches" - You need guaranteed search results - HTML scraping methods fail due to bot protection ## Working Implementation (TESTED & VERIFIED) ### ✅ Method 1: Autonomous Agent Research (MOST RELIABLE) ```python # Use Task tool with general-purpose agent Task( subagent_type='general-purpose', prompt='Research AI 2025 trends and provide comprehensive information about the latest developments, predictions, and key technologies' ) ``` **Why it works:** - Has access to multiple data sources - Robust search capabilities built-in - Not affected by HTML structure changes - Bypasses bot protection issues ### ✅ Method 2: WebSearch Tool (When Available) ```python # Use official WebSearch when not rate-limited WebSearch("AI trends 2025") ``` **Status:** Works b
- Overview
- When to Apply
- Working Implementation (TESTED & VERIFIED)
- ✅ Method 1: Autonomous Agent Research (MOST RELIABLE)
- ✅ Method 2: WebSearch Tool (When Available)
- ❌ BROKEN Methods (DO NOT USE)
- Why HTML Scraping No Longer Works
- Recommended Fallback Strategy
- Implementation for Agents
- In Your Agent Code
- Example Usage
- Why Autonomous Agents Work
- Migration Guide
- Old (Broken) Approach
This no longer works curl "https://html.duckduckgo.com/html/?q=query" | grep 'result__a'
What does the web-search-fallback skill do?
Autonomous agent-based web search fallback for when WebSearch API fails or hits limits
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill web-search-fallback-bejranonda-llm-autonomous-agent-2 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
