跨境电商店铺健康度自动巡检 Skill。支持多店铺配置,定时检查站点可用性、响应时间、SSL证书健康度、关键页面404/内容缺失,异常时自动推送到飞书。
ini
[DEFAULT]
[shop1]
name = 店铺1
domain = www.example.com
base_url = https://www.example.com
[shop2]
name = 店铺2
domain = shop2.example.com
base_url = https://shop2.example.com
check_paths = /, /products, /collections/all
category_paths = /collections/all
使用提醒:首次使用前,请先配置 config/shops.conf,填入真实的店铺域名和路径。
脚本按以下顺序执行:
bash
cd ~/.openclaw/skills/shop-health-check
python3 scripts/report.py
bash
python3 scripts/report.py --shop shop1
bash
python3 scripts/report.py --help
✅ 店铺健康巡检报告 | 2026-03-30 11:00
📦 shop1 (www.example.com)
✅ 站点可用性:全部正常(2/2 检查点)
- / : 200 (1.2s)
- /c/best-sellers : 200 (0.9s)
✅ SSL证书:正常(剩余 89 天)
🔍 商品页抽检:全部正常(5 个商品)
📦 shop2 (shop2.example.com)
✅ 站点可用性:全部正常(3/3 检查点)
✅ SSL证书:正常(剩余 45 天)
🔍 商品页抽检:全部正常(5 个商品)
🎉 所有店铺健康,无异常。
🚨 店铺健康巡检告警 | 2026-03-30 11:00
📦 shop1 (www.example.com)
❌ 站点可用性:
- /checkout : 超时(>3s)
⚠️ SSL证书:剩余 12 天,请尽快续期
❌ 商品页抽检:
- /products/12345 : 404
📦 shop2 (shop2.example.com)
✅ 无异常
⚡ 共 3 个问题需要处理
| 检查项 | 告警条件 |
|---|---|
| 站点可用性 | HTTP状态码非200,或响应时间超过阈值 |
| SSL证书 |
bash
openclaw cron add \
--name shop-health-check-hourly \
--cron 0 \
--session isolated \
--message 运行店铺健康巡检:cd ~/.openclaw/skills/shop-health-check && python3 scripts/report.py \
--announce \
--channel feishu
bash
pip3 install requests beautifulsoup4 urllib3 python-dateutil
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 shop-health-check-1775936564 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 shop-health-check-1775936564 技能
skillhub install shop-health-check-1775936564
文件大小: 11.21 KB | 发布时间: 2026-4-12 11:22