使用OpenClaw cron按邮编监控Costco库存,密钥放在技能目录外部。
成本盘点监视器(Costco Socket Monitor).是一项面向实际任务的技能,主要用于Goal. 提供可重复的工作流程,以检查一个或多个产品在多个ZIP代码上的Costco 库存,然后为下游渠道(示例)写一份报告。它将相关步骤、工具调用和结果整理方式集中到统一流程中,帮助使用者更快完成目标并减少重复操作。
实际使用前应先确认任务范围、数据来源、运行环境、必要权限和关键参数,再依据技能说明逐步执行;若输入条件不完整,应先补齐信息或采用保守配置,避免因错误假设导致结果偏离需求。
执行过程中需要关注工具调用是否成功、接口或依赖是否可用、输出格式是否符合预期,并对异常提示、缺失字段和边界情况进行处理;涉及批量任务时,还应保存进度,避免中断后重复操作。
提供一套可重复执行的工作流,用于跨多个邮政编码(ZIP code)检查一个或多个 Costco 商品的库存状态,并生成报告供下游渠道(例如 WeCom)使用。
skills/costco-inventory-monitor 目录仅允许存放脚本、模板和文档文件。skills/ 目录下存储真实的 AK/SK、令牌(token)、密码或代理(proxy)凭据。/root/.openclaw/workspace/.secrets/costco-monitor.env 中。.secrets/ 目录必须保留在 .gitignore 中,且不得提交至版本库。scripts/run_monitor.shscripts/check_costco_inventory.pyconfig/monitor.env.examplereferences/costco-inventory-standard.mdmkdir -p /root/.openclaw/workspace/.secrets cp /root/.openclaw/workspace/skills/costco-inventory-monitor/config/monitor.env.example /root/.openclaw/workspace/.secrets/costco-monitor.env chmod 600 /root/.openclaw/workspace/.secrets/costco-monitor.env
/root/.openclaw/workspace/.secrets/costco-monitor.env,填入实际值:PRODUCT_1、PRODUCT_2 ……ZIP_CODESPROXY_URLOUTPUT_JSONL、STATE_FILE、REPORT_FILE、LOG_FILE)/root/.openclaw/workspace/skills/costco-inventory-monitor/scripts/run_monitor.sh
请使用 OpenClaw 自带的 cron 功能,而非系统级 crontab 来调度本技能。
openclaw cron create --name costco-inventory-monitor-5m --every 5m --session isolated --model hunyuan/hunyuan-t1-latest --delivery none --message 'Run /root/.openclaw/workspace/skills/costco-inventory-monitor/scripts/run_monitor.sh and then return only the contents of /root/.openclaw/workspace/ops/costco-monitor/latest_report.txt.'
当前已创建的生产任务 ID:29515da3-2b5b-491b-b516-69875b4376a6。
4000362984|TCL 55" Q77K|https://www.costco.com/p/-/tcl-55-class-q77k-series-4k-uhd-qled-smart-tv-allstate-3-year-protection-plan-bundle-included-for-5-years-of-total-coverage/4000362984?langId=-103051、97230/root/.openclaw/workspace/ops/costco-monitor/latest_report.txt/root/.openclaw/workspace/ops/costco-monitor/monitor.log/root/.openclaw/workspace/ops/costco-monitor/snapshots.jsonl/root/.openclaw/workspace/ops/costco-monitor/state.jsonskills/costco-inventory-monitor/** 及可选的 ops 封装脚本。/root/.openclaw/workspace/.secrets/**、真实代理/账号凭据、运行时日志、本地状态文件。相关专题
热门下载
相关下载
精品课程
共6课时 | 54.7万人学习
共89课时 | 134.1万人学习
共49课时 | 82.6万人学习
最新文章