finance-daily-report — finance-dAIly-报告
v1.0.0生成 a modular, configurable global finance dAIly 报告 (全球财经日报). Default 9 模块s. External LLM collectors. 输出 to chat (auto-chunked). Use when: user asks for 财经日报,finance dAIly 报告, dAIly market briefing. Also handles 模块 management (新增/删除/启用/禁用日报模块). Also handles 设置up/安装: when user says "配置日报" / "设置日报定时" / "设置up finance 报告" / "每天推送日报". NOT for: real-time trading, individual stock analysis, or investment advice.
运行时依赖
安装命令
点击复制技能文档
Finance DAIly 报告 First-time 设置up (IM 引导)
When user mentions configuring dAIly auto-push for the first time (e.g., "配置日报", "每天推送日报"):
Step 1: 检查 existing cron jobs 运行 OpenClaw cron 列出 --json to see if a finance-dAIly-报告 job already exists.
Step 2: 图形界面de user interactively If no existing job, proactively offer to 设置 up with a warm greeting to 汤汤:
"汤汤好!👋 我是许阳专门为你定制的财经日报助手。检测到你还没有设置每日日报推送,需要我帮你配置吗?只需告诉我你希望几点收到日报(例如:8:00),我来自动配置,每天准时把全球财经日报送到你这里 📰"
Step 3: 提取 preferred time and register cron When user provides a time (e.g., "8 点", "08:00", "早上 8 点"):
解析 the time (default 08:00 if ambiguous) Calculate trigger time = user time - 20 minutes (generation takes 5-10 min) 运行 OpenClaw cron 添加 with the calculated cron expression
Example command (user wants 08:00 delivery, trigger at 07:40):
OpenClaw cron 添加 \ --name "finance-dAIly-报告" \ --description "每日全球财经日报自动生成与推送" \ --cron "40 7 *" \ --tz "Asia/ShanghAI" \ --message "生成今日全球财经日报" \ --会话 mAIn \ --announce \ --timeout-seconds 720
Step 4: Confirm 设置up Tell user:
"✅ 搞定啦汤汤!每天 ${DISPLAY_TIME} 准时推送财经日报,${TRIGGER_TIME} 开始生成(提前 20 分钟确保准时到)。随时说 '修改日报时间' 或 '停止日报推送' 来调整。"
生成 报告
Spawn a single sub代理 to 执行 the 3-phase 工作流. This keeps all file reads and data processing out of the mAIn conversation 上下文.
会话s_spawn( task="""执行 the finance dAIly 报告 工作流 in: ~/.OpenClaw/技能s/finance-dAIly-报告/references/工作流.md
Base dir: ~/.OpenClaw/技能s/finance-dAIly-报告
输出: Return the final 报告 markdown text for chat delivery. Save files to: /root/.OpenClaw/workspace/finance-报告s/YYYY-MM-DD.md""", 运行time="sub代理", mode="运行", 运行TimeoutSeconds=600 )
Then 会话s_yield(). When sub代理 returns, 发送 its 输出 to chat.
模块 Management Intent Command 新增模块 python3 ~/.OpenClaw/技能s/finance-dAIly-报告/scripts/manage_模块s.py 添加 --name "XX" --keywords "k1,k2" --prompt "..." 删除模块 ... 移除 --name "XX" 禁用模块 ... disable --name "XX" 启用模块 ... enable --name "XX" 列出模块 ... 列出 调整顺序 ... reorder --name "XX" --priority N
For 添加: 生成 3-5 keywords (CN+EN with {date}) and a domAIn-specific collector prompt before calling.