当用户在这个工作区里提出以下需求时,使用这个 skill:
trade_candidate_pipeline.py
generate_daily_report.py
trade_execution_plan.py
manual_order_ticket.py
a_share_scores.csv
.venv/Scripts/python.exe
.venv/bin/python
a_share_scores.csv 中的缓存评分。
在 Windows 上执行:
d:/pythonfile/uderestimate/.venv/Scripts/python.exe d:/pythonfile/uderestimate/generate_daily_report.py
在 Linux 服务器上执行:
./.venv/bin/python ./generate_daily_report.py
这一步应当刷新以下输出:
a_share_agent_top5.csv
a_share_agent_execution_plan.csv
a_share_manual_order_sheet.csv
reports/a_share_daily_report_YYYYMMDD.md
a_share_daily_report_latest.md
在 Windows 上执行:
d:/pythonfile/uderestimate/.venv/Scripts/python.exe d:/pythonfile/uderestimate/trade_candidate_pipeline.py
在 Linux 服务器上执行:
./.venv/bin/python ./trade_candidate_pipeline.py
执行:
powershell -ExecutionPolicy Bypass -File d:/pythonfile/uderestimate/register_daily_report_task.ps1
如果要自定义时间:
powershell -ExecutionPolicy Bypass -File d:/pythonfile/uderestimate/register_daily_report_task.ps1 -RunTime 14:40
如果 OpenClaw 当前运行时支持 cron 工具,优先通过 OpenClaw cron 定时触发这个工作区流程。
如果 OpenClaw 当前运行时没有 cron 工具,则使用系统 cron,例如:
50 14 * * 1-5 cd /srv/uderestimate && ./.venv/bin/python ./generate_daily_report.py >> /srv/uderestimate/logs/daily_report.log 2>&1
当你完成一次报告生成后,需要明确说明:
如果用户要求设置定时任务,还需要补充说明:
如果当前 OpenClaw 运行时暴露了 cron 工具,优先创建一个 cron 任务来执行这个工作区流程,并返回一段简短结果摘要。
如果当前运行时没有 cron 工具,就回退到现有的 Windows 计划任务脚本,并明确说明当前交付目标仍然是本地报告文件,而不是外部消息通道。
如果当前环境是 Linux 服务器,则回退目标应改为系统 cron,而不是 Windows 计划任务。
共 1 个版本