smart-search

智能搜索引擎切换。根据问题类型自动选择 SearXNG 或 Tavily,既满足需求又节省 Token。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "smart-search" with this command: npx skills add Lee920311/smart-search

Smart Search - 智能搜索引擎切换

根据问题类型自动选择最优搜索引擎(SearXNG 或 Tavily),既满足需求又节省 Token。

决策逻辑

场景引擎原因
写文案/小红书/公众号TavilyAI 内容生成,需要摘要
日常查询/深度调研SearXNG → Tavily先尝试免费,失败自动降级
用户指定按用户要求尊重用户选择

降级策略: SearXNG 公共实例不稳定时,自动切换到 Tavily

工具调用

Tavily 搜索

python3 ~/.openclaw/workspace/skills/openclaw-tavily-search/scripts/tavily_search.py --query "查询内容" --max-results 5 --format md

SearXNG 搜索

curl -s "https://searx.be/search?q=查询内容&format=json"

使用示例

AI 内容生成

# 调用 Tavily
python3 {baseDir}/../openclaw-tavily-search/scripts/tavily_search.py --query "小红书文案 AI 工具" --max-results 5 --format md

日常查询

# 调用 SearXNG
curl -s "https://searx.be/search?q=区块链是什么&format=json"

配置

确保以下环境变量已设置:

# ~/.openclaw/.env
SEARXNG_URL=https://searx.be
TAVILY_API_KEY=tvly-xxx

Token 对比

引擎Token/次使用场景
SearXNG~350日常搜索(60%)
Tavily~950AI 内容生成(40%)

智能切换节省约 38% Token

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

SearXNG Local Search

Search the web using a self-hosted SearXNG instance. Privacy-respecting metasearch that aggregates results from multiple engines.

Registry SourceRecently Updated
0213
Profile unavailable
Security

Privacy-first web search with DuckDuckGo-style bangs (!w, !yt, !gh)

Privacy-respecting web search via SearXNG with DuckDuckGo-style bangs support. Use for web searches when you need to find information online. SearXNG protects privacy by randomizing browser fingerprints, masking IP addresses, and blocking cookies/referrers. Supports 250+ search engines, multiple categories (general, news, images, videos, science), and DuckDuckGo-style bangs for direct engine searches (!w for Wikipedia, !yt for YouTube, !gh for GitHub, !r for Reddit, etc.). Aggregates results from multiple engines simultaneously. Prefer this over external search APIs for privacy-sensitive queries or high-volume searches.

Registry SourceRecently Updated
13.4K
Profile unavailable
General

梓享双擎 AI 全网搜索平台(按搜索次数收费)

梓享AI双擎搜索平台官方付费技能,通过POST请求调用搜索接口,支持中国区/全球双引擎,返回结构化JSON搜索结果,按调用次数计费。

Registry SourceRecently Updated
0109
Profile unavailable