返回顶部
c

costco-inventory-monitorCostco库存监控

Monitor Costco inventory by ZIP and run it safely with OpenClaw cron. Keep secrets outside the skill directory.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.1.0
安全检测
已通过
113
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

costco-inventory-monitor

Costco 库存监控器

目标

提供一个可重复执行的工作流程,用于检查多个邮政编码区域内一个或多个产品的 Costco 库存情况,然后为下游渠道(例如企业微信)生成报告。

仓库安全规则

  • - skills/costco-inventory-monitor 目录只能包含脚本、模板和文档。
  • 切勿在 skills/ 目录内存储真实的 AK/SK、令牌、密码或代理凭证。
  • 运行时真实密钥必须存储在 /root/.openclaw/workspace/.secrets/costco-monitor.env 中。
  • .secrets/ 必须保留在 .gitignore 中,且不应被提交。

文件

  • - 运行器:scripts/runmonitor.sh
  • 库存检查器:scripts/checkcostco_inventory.py
  • 配置模板(可安全提交):config/monitor.env.example
  • 标准参考:references/costco-inventory-standard.md

运行时设置

  1. 1. 根据模板创建真实密钥配置:

bash
mkdir -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

  1. 2. 编辑 /root/.openclaw/workspace/.secrets/costco-monitor.env 并填写真实值:
  • - PRODUCT1、PRODUCT2、...
  • ZIPCODES
  • PROXYURL
  • 输出路径(OUTPUTJSONL、STATEFILE、REPORTFILE、LOGFILE)
  1. 3. 运行一次以验证:

bash
/root/.openclaw/workspace/skills/costco-inventory-monitor/scripts/run_monitor.sh

OpenClaw 定时任务(每 5 分钟)

此技能使用 OpenClaw 定时任务,而非系统 crontab。

bash
openclaw cron create \
--name costco-inventory-monitor-5m \
--every 5m \
--session isolated \
--model hunyuan/hunyuan-t1-latest \
--delivery none \
--message 运行 /root/.openclaw/workspace/skills/costco-inventory-monitor/scripts/runmonitor.sh,然后仅返回 /root/.openclaw/workspace/ops/costco-monitor/latestreport.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=-1
  • 邮政编码:03051、97230

输出位置

  • - 报告:/root/.openclaw/workspace/ops/costco-monitor/latest_report.txt
  • 日志:/root/.openclaw/workspace/ops/costco-monitor/monitor.log
  • 快照 JSONL:/root/.openclaw/workspace/ops/costco-monitor/snapshots.jsonl
  • 状态:/root/.openclaw/workspace/ops/costco-monitor/state.json

GitHub 检查清单

  • - 提交:skills/costco-inventory-monitor/ 和可选的 ops 包装脚本。
  • 不提交:/root/.openclaw/workspace/.secrets/、真实的代理/账户凭证、运行时日志、本地状态文件。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 costco-inventory-monitor-1775872633 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 costco-inventory-monitor-1775872633 技能

通过命令行安装

skillhub install costco-inventory-monitor-1775872633

下载

⬇ 下载 costco-inventory-monitor v1.1.0(免费)

文件大小: 22.78 KB | 发布时间: 2026-4-12 09:36

v1.1.0 最新 2026-4-12 09:36
Costco Inventory Monitor 1.1.0 introduces a safer, OpenClaw-ready workflow:

- Adds shell scripts, Python utilities, and config templates for scheduling inventory checks by ZIP and product.
- Enforces secret management best practices—move all real credentials to a secure, ignored directory outside the skill folder.
- Documents OpenClaw cron scheduling for automated, safe periodic monitoring.
- Provides clear setup, output paths, and example usage.
- Includes updated references and monitoring standard docs.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部