بنقرة واحدة
tavily-search
使用 Tavily API 搜索互联网,获取最新信息、新闻、技术文档等。支持搜索深度控制和结果数量设置,返回标题、URL 和内容摘要。
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
使用 Tavily API 搜索互联网,获取最新信息、新闻、技术文档等。支持搜索深度控制和结果数量设置,返回标题、URL 和内容摘要。
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
生成 A 股 + 港股每日投资早报。覆盖主要指数行情、用户持仓换手率/量价、操作建议三段。触发关键词:早报 / 今日行情 / 投资报告 / 投资早报 / 每日复盘。如果用户只想要港股早报,请改用 hk-investment-morning-report;只要纯格式日报请改用 daily-summary。
定时任务管理:创建、查看、删除定时任务。支持一次性(at)、周期(every)、cron 表达式三种触发模式。写入 data/cron/tasks.json,CronService 自动热重载生效,无需重启进程。
飞书操作:向用户/群组发送消息(文字/富文本/图片/文件)、读取云文档/表格内容、查询群成员、管理日历事件。适合推送通知、发送处理结果文件、读取共享文档、批量发送报告等场景。
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.
Use this skill any time a .pptx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates, layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx filename, regardless of what they plan to do with the content afterward. If a .pptx file needs to be opened, created, or touched, use this skill.
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.
| name | tavily_search |
| description | 使用 Tavily API 搜索互联网,获取最新信息、新闻、技术文档等。支持搜索深度控制和结果数量设置,返回标题、URL 和内容摘要。 |
| type | task |
| version | 1.0 |
通过 Tavily Search API 进行网络搜索,返回标题、URL 和内容摘要。 凭证由系统在启动时写入,Agent 无需处理认证。
脚本路径:{skill_base}/scripts/search.py
python {skill_base}/scripts/search.py --query "搜索关键词"
python {skill_base}/scripts/search.py \
--query "搜索词" # 必填:搜索内容
--max_results 10 # 可选:返回结果数(1-20,默认10)
--search_depth basic # 可选:搜索深度(basic/advanced,默认basic)
--include_answer true # 可选:是否包含AI生成的答案摘要(默认true)
| 参数 | 说明 | 示例 |
|---|---|---|
--query | 搜索关键词或自然语言问题(必填) | "Python 异步编程最佳实践" |
--max_results | 返回结果数,默认 10,最大 20 | --max_results 5 |
--search_depth | 搜索深度 | basic(快速)/ advanced(深度,更准确但更慢) |
--include_answer | 是否返回AI摘要 | true(默认)/ false |
python {skill_base}/scripts/search.py \
--query "2026年大模型发展动态" \
--max_results 10
python {skill_base}/scripts/search.py \
--query "Python asyncio 死锁排查" \
--max_results 5 \
--search_depth advanced
成功时(stdout JSON):
{
"errcode": 0,
"errmsg": "success",
"query": "搜索词",
"answer": "AI 生成的答案摘要(如果 include_answer=true)",
"total": 10,
"results": [
{
"title": "页面标题",
"url": "https://example.com/article",
"content": "页面内容摘要..."
}
]
}
失败时:
{
"errcode": 1,
"errmsg": "错误说明\n建议:解决方法"
}
/workspace/.config/tavily.json,脚本自动读取--max_results 3~5--max_results 10(默认)--max_results 20basic 即可;需要高精度时用 advancedtavily-python 库,需先安装 pip install tavily-python