Xiaogua Tavily Search
by @taowolf
Tavily-powered live web search skill for current information, news, online research, source gathering, and fallback web search when built-in web_search is ra...
clawhub install xiaogua-tavily-search📖 About This Skill
name: xiaogua-tavily-search description: Tavily-powered live web search skill for current information, news, online research, source gathering, and fallback web search when built-in web_search is rate-limited or insufficient. Primary credential:
TAVILY_API_KEY. Also supports --api-key and local .secrets/tavily.key for private setups. Use when Tavily search is explicitly desired and you want cleaner result ranking, official-source preference, path-level scoring, deduplication, noisy-domain suppression, and readable terminal output. 适用于需要实时网页搜索、新闻检索、在线研究、资料收集,或内置 web_search 限流/效果不足时作为高质量备用搜索通道的场景。主推荐凭据方式:TAVILY_API_KEY;也支持 --api-key 与本地 .secrets/tavily.key(仅适合私有本地环境)。适合希望优先官方来源、按路径质量排序、自动去重、压制低质量噪音站点并输出更易读结果的任务。
Xiaogua Tavily Search / 小瓜 Tavily 搜索
A practical Tavily search skill for OpenClaw, optimized for better ranking, cleaner output, and safer day-to-day use.
这是一个面向 OpenClaw 的实用 Tavily 搜索技能,重点优化了排序质量、输出可读性,以及日常长期使用时的稳定性与安全性。
Credential requirements / 凭据要求
Primary credential / 主要凭据
TAVILY_API_KEYAlso supported / 其他支持方式
--api-key.secrets/tavily.keyNotes / 说明
TAVILY_API_KEY.skills/xiaogua-tavily-search/.secrets/tavily.key is intended for local private setups only, and this published script does not search parent directories for secrets.TAVILY_API_KEY。.secrets/tavily.key 仅建议用于本地私有环境。Key advantages / 当前版本优势
Compared with simpler public Tavily skills, this version adds:
相比更基础的公共 Tavily skill,这个版本额外做了这些增强:
TAVILY_API_KEY is the primary documented credential, while --api-key and .secrets/tavily.key remain supported as secondary paths.TAVILY_API_KEY 作为主推荐凭据,--api-key 和 .secrets/tavily.key 作为补充方式,避免用户混淆。
/releases、/docs、/issues、/discussions 等 URL 路径质量。
Quick start / 快速开始
1. Set TAVILY_API_KEY in your environment (recommended).
2. As alternatives, use --api-key or a local .secrets/tavily.key file for private setups.
3. Run:
python skills/xiaogua-tavily-search/scripts/tavily_search.py "your query"
4. Use --json if you want raw structured output.
1. 推荐先在环境变量中设置 TAVILY_API_KEY。
2. 本地私有使用场景下,也可使用 --api-key 或本地 .secrets/tavily.key。
3. 运行:
python skills/xiaogua-tavily-search/scripts/tavily_search.py "your query"
4. 如需原始结构化结果,使用 --json。
Recommended usage / 推荐使用场景
Use this skill when:
在这些场景下推荐使用本技能:
web_search is rate-limited or temporarily unavailableweb_search 被限流或暂时不可用Ranking behavior / 排序逻辑
By default, the script behaves like a careful human researcher:
默认情况下,脚本会尽量模拟“认真做检索的人”的行为:
Disable defaults when needed:
如有需要,也可以关闭默认优化:
python skills/xiaogua-tavily-search/scripts/tavily_search.py "query" --no-official-first --no-exclude-noisy-default
Common commands / 常用命令
Basic search / 基础搜索:
python skills/xiaogua-tavily-search/scripts/tavily_search.py "OpenClaw latest release notes"
Search with Tavily answer / 带 Tavily 综合回答:
python skills/xiaogua-tavily-search/scripts/tavily_search.py "OpenClaw latest release notes" --include-answer
Raw JSON / 原始 JSON 输出:
python skills/xiaogua-tavily-search/scripts/tavily_search.py "OpenClaw latest release notes" --json
Troubleshooting query / 排障查询:
python skills/xiaogua-tavily-search/scripts/tavily_search.py "WSL localhost proxy NAT not supported fix" --include-answer
News-style query / 新闻查询:
python skills/xiaogua-tavily-search/scripts/tavily_search.py "AI infrastructure funding" --topic news --days 7 --include-answer
Security notes / 安全说明
.secrets files after installation..secrets 文件中放置密钥。Resources / 资源
scripts/
tavily_search.py: Tavily search wrapper with source cleanup, intent detection, path scoring, deduplication, and result labeling.tavily_search.py:带来源清洗、意图识别、路径级排序、去重与结果标签能力的 Tavily 搜索脚本。