Supermarket Offer Watcher
Overview
Use this skill to maintain a local product watchlist and run recurring nearby-offer checks across supermarket chains.
Configurable after installation:
- - Home location (text)
- Radius (km)
- Product list
- Check frequency (daily or weekly)
- Check time and timezone
Default data file:
Quick setup
Run from the skill folder.
1) Initialize config:
CODEBLOCK0
2) Add products:
CODEBLOCK1
3) Inspect config:
CODEBLOCK2
Manage configuration later
Update location/radius:
CODEBLOCK3
Update schedule:
CODEBLOCK4
Remove product:
CODEBLOCK5
Offer-check workflow
- 1. Load watchlist config from
/data/workspace/data/supermarkt-watchlist.json. - For each product, run 2–4
web_search queries (product + "offer/deal" + location + optional chain). - Open promising result pages using
web_fetch. - Validate each hit before reporting:
- Product (or alias) is explicit
- Store/chain is clear
- Date window is currently valid (today/in current week)
- Price or discount is visible
- 5. Deduplicate same product/store/date combinations.
- Send compact alert summary.
Alert format
Use this line format per valid deal:
INLINECODE4
If no safe deals are found, send:
INLINECODE5
Cron setup guidelines
Use cron.add with sessionTarget: "isolated" and payload.kind: "agentTurn".
- - Daily cron expression: INLINECODE9
- Weekly cron expression example (Monday): INLINECODE10
- Always set timezone from config (e.g.,
Europe/Berlin).
In the cron prompt, instruct the agent to:
- - read watchlist config,
- run offer checks,
- report only validated deals.
超市优惠监控器
概述
使用此技能维护本地商品监控列表,并在多家连锁超市中定期检查附近优惠信息。
安装后可配置:
- - 家庭位置(文本)
- 搜索半径(公里)
- 商品列表
- 检查频率(每日或每周)
- 检查时间及时区
默认数据文件:
- - /data/workspace/data/supermarkt-watchlist.json
快速设置
在技能文件夹中运行。
1) 初始化配置:
bash
python3 scripts/watchlist.py init --location <邮编 城市> --radius-km 15 --mode daily --time 07:00 --tz Europe/Berlin
2) 添加商品:
bash
python3 scripts/watchlist.py add Senseo咖啡胶囊 --aliases Senseo胶囊 --stores REWE,EDEKA,Lidl,Aldi,Kaufland,Netto,Penny
3) 查看配置:
bash
python3 scripts/watchlist.py list
后续配置管理
更新位置/半径:
bash
python3 scripts/watchlist.py set-home --location 00001 Berlin --radius-km 20
更新计划:
bash
每日07:00
python3 scripts/watchlist.py set-schedule --mode daily --time 07:00 --tz Europe/Berlin
每周一07:00
python3 scripts/watchlist.py set-schedule --mode weekly --weekday monday --time 07:00 --tz Europe/Berlin
删除商品:
bash
python3 scripts/watchlist.py remove Senseo咖啡胶囊
优惠检查流程
- 1. 从/data/workspace/data/supermarkt-watchlist.json加载监控列表配置。
- 对每个商品,执行2-4次websearch查询(商品名称 + 优惠/特价 + 位置 + 可选连锁店)。
- 使用webfetch打开有潜力的结果页面。
- 在报告前验证每条匹配信息:
- 商品(或别名)明确提及
- 商店/连锁店清晰可辨
- 日期窗口当前有效(今日/本周内)
- 价格或折扣可见
- 5. 去重相同商品/商店/日期的组合。
- 发送简洁的提醒摘要。
提醒格式
每条有效优惠使用以下行格式:
✅ <商品> — <商店> — <价格/折扣> — 有效期至 <日期> —
如果未找到可靠优惠,则发送:
今日未发现可靠的附近优惠。
Cron设置指南
使用cron.add,设置sessionTarget: isolated和payload.kind: agentTurn。
- - 每日cron表达式:0 7
- 每周cron表达式示例(周一):0 7 * 1
- 始终从配置中设置时区(例如Europe/Berlin)。
在cron提示中,指示代理:
- - 读取监控列表配置,
- 运行优惠检查,
- 仅报告已验证的优惠。