Install
openclaw skills install xiaogua-tavily-searchTavily-powered live web search skill for current information, news, online research, source gathering, and fallback web search when built-in web_search is ra...
openclaw skills install xiaogua-tavily-searchA practical Tavily search skill for OpenClaw, optimized for better ranking, cleaner output, and safer day-to-day use.
这是一个面向 OpenClaw 的实用 Tavily 搜索技能,重点优化了排序质量、输出可读性,以及日常长期使用时的稳定性与安全性。
Primary credential / 主要凭据
TAVILY_API_KEYAlso supported / 其他支持方式
--api-key.secrets/tavily.keyNotes / 说明
This skill requires a Tavily API key to run.
The published package does not include any API key.
For public/shared installs, prefer 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。
公开发布的 skill 包不包含任何 API key。
对公共/共享安装场景,优先使用 TAVILY_API_KEY。
.secrets/tavily.key 仅建议用于本地私有环境。
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 路径质量。TAVILY_API_KEY in your environment (recommended).--api-key or a local .secrets/tavily.key file for private setups.python skills/xiaogua-tavily-search/scripts/tavily_search.py "your query"
Use --json if you want raw structured output.
推荐先在环境变量中设置 TAVILY_API_KEY。
本地私有使用场景下,也可使用 --api-key 或本地 .secrets/tavily.key。
运行:
python skills/xiaogua-tavily-search/scripts/tavily_search.py "your query"
--json。Use this skill when:
在这些场景下推荐使用本技能:
built-in web_search is rate-limited or temporarily unavailable
you explicitly want Tavily results
you need a cleaner ranked result list
you care about official docs/releases/issues being surfaced earlier
you want a deterministic script you can inspect and modify locally
内置 web_search 被限流或暂时不可用
你明确想用 Tavily 搜索
你希望搜索结果排序更干净
你希望官方文档 / 官方发布 / 官方 issue 更早浮出来
你希望这是一个可本地审查、可继续修改的确定性脚本
By default, the script behaves like a careful human researcher:
默认情况下,脚本会尽量模拟“认真做检索的人”的行为:
product-specific official domains are preferred
release/changelog queries boost release-note paths
install/configuration queries boost documentation paths
troubleshooting queries boost issues, FAQ, and troubleshooting pages
GitHub community discussions rank below official docs/repo pages for factual product questions
产品相关问题优先官方域名
发布说明/更新日志类问题提升 release 路径权重
安装/配置类问题提升 docs/guide/configure 路径权重
故障排查类问题提升 issue/faq/troubleshooting 路径权重
对事实型产品问题,GitHub 社区讨论会排在官方文档/官方仓库之后
Disable defaults when needed:
如有需要,也可以关闭默认优化:
python skills/xiaogua-tavily-search/scripts/tavily_search.py "query" --no-official-first --no-exclude-noisy-default
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
This published skill should not include any API key.
Put your key in local environment variables or local .secrets files after installation.
Do not commit or publish your real key.
公开发布的 skill 包本身不应包含任何 API key。
请在安装后于本地环境变量或本地 .secrets 文件中放置密钥。
不要把真实密钥提交或发布出去。
tavily_search.py: Tavily search wrapper with source cleanup, intent detection, path scoring, deduplication, and result labeling.tavily_search.py:带来源清洗、意图识别、路径级排序、去重与结果标签能力的 Tavily 搜索脚本。
��去重与结果标签能力的 Tavily 搜索脚本。