skill-woocommerce-stock-monitor

Monitor WooCommerce products for out-of-stock changes and send Telegram alerts. Run daily via cron.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "skill-woocommerce-stock-monitor" with this command: npx skills add Zero2Ai-hub/skill-woocommerce-stock-monitor

skill-woocommerce-stock-monitor v1.0.0

Monitor WooCommerce products for out-of-stock changes and send Telegram alerts. Tracks instock → outofstock transitions and alerts your team daily.

Usage

node scripts/stock-monitor.js

Configuration

Set via environment variables:

VariableDefaultDescription
WOO_API_PATH~/woo-api.jsonPath to WooCommerce API credentials JSON
TELEGRAM_BOT_TOKENTelegram bot token for alerts
TELEGRAM_CHAT_IDTelegram chat/group ID to send alerts to

woo-api.json format

{
  "url": "https://your-store.com",
  "consumer_key": "ck_...",
  "consumer_secret": "cs_..."
}

Cron setup

# Run daily at 07:00 UTC
0 7 * * * TELEGRAM_BOT_TOKEN=xxx TELEGRAM_CHAT_ID=yyy node /path/to/scripts/stock-monitor.js

Behavior

  • First run: Sends a baseline report of all currently OOS products
  • Subsequent runs: Only alerts on new instock → outofstock transitions
  • State file: Saved to memory/stock-state.json (tracks previous run)

Alerts

  • 📦 Stock Monitor — Baseline Report — first run summary
  • ⚠️ Stock Alert — Out of Stock — when products go OOS

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Chronos

通用周期任务管理器 - 支持6种周期类型、每月N次配额、自动cron、统一视图,适用于所有定时任务场景

Registry SourceRecently Updated
General

Football

Analyze football and soccer matches, squads, players, and training plans with tactical frameworks, scouting grids, and session blueprints.

Registry SourceRecently Updated
General

Cctv News Fetcher Litiao

Fetch and parse news highlights from CCTV News Broadcast (Xinwen Lianbo) for a given date.

Registry SourceRecently Updated
General

WeRead Book Finder

输入图书名称,优先在微信读书搜索并加入书架;若微信读书没有可信命中或无法加入书架,则自动回退到 Z-Library 搜索并优先下载非 PDF 格式。适用于“把《xxx》加入微信读书书架,不行就去 Z-Library 下载”这类请求。

Registry SourceRecently Updated