Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
yejinlei avatar

Web Search

  • 368 installs
  • 2 repo stars
  • Updated March 3, 2026
  • yejinlei/web-search-skill

web-search is a Claude Code skill that gives coding agents live web search to pull current docs, API changes, error fixes, and market signals while implementing features or debugging unfamiliar stacks.

About

web-search is a yejinlei/web-search-skill agent skill providing multi-engine live search for coding agents without API keys. Version 1.3.0 supports three actions—search, deep_search, and crawl—across four engines: Baidu via Playwright, DuckDuckGo, Bing, and baidusearch library fallback, returning up to 20 structured results with title, URL, and snippet. The Python script uses Playwright browser automation, crawl4ai, and async requests with smart engine fallback when one source fails. Developers reach for web-search when agents need current framework docs, breaking API changes, or stack traces not in local context. First Playwright run downloads Chromium (~100MB). Default num_results is 5 and region defaults to cn-zh, making Baidu-first strategy strong for Chinese-language queries.

  • Real-time external knowledge for agents
  • Reduces stale training-data guesses
  • Supports doc and API lookup during coding
  • Useful for debugging obscure errors
  • Pairs with research and competitor checks

Web Search by the numbers

  • 368 all-time installs (skills.sh)
  • +5 installs in the week ending Jul 27, 2026 (Skillselion tracking)
  • Ranked #2,087 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Jul 27, 2026 (Skillselion catalog sync)
npx skills add https://github.com/yejinlei/web-search-skill --skill web-search

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs368
repo stars2
Last updatedMarch 3, 2026
Repositoryyejinlei/web-search-skill

How do coding agents search the web without API keys?

Give coding agents live web search to pull current docs, API changes, error fixes, and market signals while implementing features or debugging unfamiliar stacks.

Who is it for?

Developers wiring coding agents that need current documentation, release notes, or error solutions without paid search API keys.

Skip if: Production apps that need compliant enterprise search APIs, offline-only workflows, or agents forbidden from browser automation and web scraping.

When should I use this skill?

An agent needs current docs, API changelog details, unfamiliar stack error fixes, or live market signals beyond its training cutoff during implementation.

What you get

Structured search results with title, URL, and snippet JSON, plus optional deep-search page content or single-URL crawl output.

  • structured search result JSON
  • deep-search page excerpts
  • crawled URL content

By the numbers

  • Version 1.3.0 with 3 actions and 4 search engines
  • Returns up to 20 results per query, default 5

Files

SKILL.mdMarkdownGitHub ↗

Web Search Skill

A powerful web search skill supporting multiple search engines without requiring API keys.

Features

  • 🔍 Multi-Engine Support: Baidu (Playwright), Bing, DuckDuckGo
  • 🌐 No API Key Required: Uses browser automation and web scraping
  • 🔄 Smart Fallback: Automatically switches engines when one fails
  • 📊 Structured Results: Returns clean search results with title, URL, and snippet
  • 🚀 High Performance: Async support with Playwright browser automation

Usage

Basic Search

result = main({
    "action": "search",
    "query": "Python tutorial",
    "num_results": 5
})

Deep Search

result = main({
    "action": "deep_search",
    "query": "machine learning latest research",
    "num_results": 5
})

Web Page Crawling

result = main({
    "action": "crawl",
    "url": "https://example.com"
})

Input Parameters

ParameterTypeRequiredDescription
actionstringYesOperation type: "search", "deep_search", or "crawl"
querystringConditionalSearch query (required for search/deep_search)
urlstringConditionalTarget URL (required for crawl)
num_resultsintNoNumber of results, default 5, max 20
regionstringNoRegion code, default 'cn-zh'

Output Format

Search Result

{
    "success": True,
    "query": "search query",
    "engine": "baidu+playwright",
    "num_results": 5,
    "results": [
        {
            "title": "Result title",
            "href": "https://...",
            "body": "Snippet content"
        }
    ],
    "message": "Search completed"
}

Deep Search Result

{
    "success": True,
    "query": "search query",
    "search_results": [...],
    "detailed_info": {
        "extracted_content": "..."
    },
    "message": "Deep search completed"
}

Execution

type: script script_path: scripts/web_search.py entry_point: main dependencies:

  • uv>=0.1.0
  • requests>=2.28.0
  • baidusearch>=1.0.3
  • crawl4ai>=0.8.0
  • playwright>=1.40.0

Search Strategy

1. Primary: baidusearch library (fastest, no browser) 2. Secondary: Playwright + Baidu (most reliable, bypasses anti-bot) 3. Tertiary: DuckDuckGo (privacy-focused) 4. Fallback: Bing (international)

Notes

1. First Run: Playwright will download Chromium browser on first use (~100MB) 2. Rate Limiting: Be mindful of search frequency to avoid temporary blocks 3. Network: Requires internet connection 4. Results: May vary based on search engine algorithms and location

Error Handling

  • Returns {"success": False, "message": "..."} on errors
  • Automatically retries with fallback engines
  • Graceful degradation when optional dependencies are missing

Related skills

How it compares

Pick web-search over paid search API integrations when agents need keyless multi-engine lookup with Playwright fallback and deep page crawling during coding sessions.

FAQ

Which search engines does web-search support?

web-search queries Baidu via Playwright, DuckDuckGo, Bing, and the baidusearch library with four-tier smart fallback. Engines switch automatically when one fails, and no API keys are required for any source.

What actions does web-search expose?

web-search version 1.3.0 exposes three actions: search for keyword results, deep_search to fetch page content from hits, and crawl for a single target URL. Each returns structured JSON with title, URL, and snippet fields.

What are web-search default result limits?

web-search defaults to 5 results per query with a maximum of 20 via the num_results parameter. Region defaults to cn-zh, and Playwright downloads Chromium on first run at roughly 100MB.

AI & Agent Buildingagentsresearchautomation

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.