Intelligent web search with region auto-detection, query intent optimization, and dual-tier content extraction.
Rewrites common natural-language queries for better search results:
After search, auto-fetches top N page contents (default 3):
--filter flag excludes common low-signal domains (zhidao.baidu.com, jingyan.baidu.com, etc.)
All dependencies are installed upfront by the setup script. The skill never runs npm install or pip install at runtime.
DependencyPurposeSizeNode.js >= 18Runtime—cheerioHTML parsingsmallcommanderCLI arg parsingsmalliconv-liteGBK charsetsmallplaywrightBrowser automation50 MBChromium (Playwright)Browser engine150 MB
bash
# Linux / macOS
bash scripts/setup.sh
# Windows
powershell -File scripts/setup.ps1
Auto-detects region and uses npmmirror.com mirrors inside China.
bash
cd skills/smart-web-search
npm install
npx playwright install chromium
# Verify
node scripts/check-env.js
Skip 150 MB download if you have system Chrome:
bash
export CHROMIUM_EXECUTABLE_PATH="/path/to/chrome"
bash
# Search with auto-fetch (top 3 pages)
node scripts/search.js "白银价格"
node scripts/search.js "how to deploy docker" --max=5
# Disable fetch (search only)
node scripts/search.js "xxx" --fetch=0
# Filter low-quality domains
node scripts/search.js "深圳旅游攻略" --filter
# Fetch specific URLs
node scripts/fetch.js "https://example.com/page1" "https://example.com/page2"
bash
node scripts/check-env.js
node scripts/search.js "OpenClaw" --max 2 --fetch 0
Common issues:
node_modules not found → run npm installExecutable doesn't exist → run bash scripts/setup.sh or set CHROMIUM_EXECUTABLE_PATH