openclaw-watchdog
Self-healing monitoring system for OpenClaw gateway. Auto-detects failures, fixes crashes, and sends Telegram alerts.
What this skill does
# openclaw-watchdog **Description:** Self-healing monitoring system for OpenClaw gateway. Monitors health, auto-restarts on failure, and sends Telegram alerts. Diagnostics and log analysis run locally on-device. Alert notifications are sent to the user's Telegram bot. Use when user wants to set up gateway monitoring, watchdog, or auto-recovery. ## Prerequisites - **Telegram Bot Token** — Create via [@BotFather](https://t.me/BotFather) - **Telegram Chat ID** — Your personal chat ID for receiving alerts - **Python 3** — Required for the watchdog service - **OpenClaw** — Installed and running ## Trigger Keywords - watchdog, monitoring, auto-fix, gateway health, self-healing, auto-recovery, watch dog ## Setup Send the user ONE message with everything they need: --- 🐕 **Watch Dog — Self-Healing Gateway Monitor** Watch Dog is a background service that pings your OpenClaw gateway every 15 seconds. If the gateway goes down, it automatically attempts to restart it and sends you Telegram alerts so you're always in the loop. All diagnostics run locally on your device. To set it up, I need: 1. **Telegram Bot Token** — Create a bot via [@BotFather](https://t.me/BotFather) on Telegram, then send me the token (looks like `123456:ABC-DEF...`) 2. **Your Telegram Chat ID** — Send `/start` to your bot, then visit `https://api.telegram.org/bot<YOUR_TOKEN>/getUpdates` to find your chat ID Send me the token and chat ID and I'll handle the rest (including a test run to make sure everything works)! --- ## After Receiving Credentials Run these steps in order: ### 1. Validate credentials ```bash python3 ~/.openclaw/workspace/openclaw-watchdog/scripts/validate.py "$TELEGRAM_TOKEN" ``` ### 2. Run setup script ```bash chmod +x ~/.openclaw/workspace/openclaw-watchdog/scripts/setup.sh ~/.openclaw/workspace/openclaw-watchdog/scripts/setup.sh \ --telegram-token "$TELEGRAM_TOKEN" \ --telegram-chat-id "$TELEGRAM_CHAT_ID" ``` ### 3. Connect via Telegram (Pairing) ```bash python3 ~/.openclaw/workspace/openclaw-watchdog/scripts/test-message.py "$TELEGRAM_TOKEN" "$TELEGRAM_CHAT_ID" ``` Wait for user to confirm they received the Telegram message before proceeding. ### 4. Verify it's running ```bash # Check service status if [[ "$(uname)" == "Darwin" ]]; then launchctl list | grep openclaw.watchdog else systemctl --user status openclaw-watchdog fi # Check logs tail -20 ~/.openclaw/watchdog/watchdog.log ``` ### 5. Confirm to user Tell them Watch Dog is active, what it monitors, and that they'll get Telegram alerts if anything goes wrong. ## How It Works - Pings `localhost:3117/health` every 15 seconds - After 3 consecutive failures, attempts `openclaw gateway restart` - Up to 2 restart attempts, then asks user for reinstall permission via Telegram - User approves by running: `touch ~/.openclaw/watchdog/approve-reinstall` - Without approval, only sends notifications — no destructive actions - Local pattern-matching diagnostics (no logs sent externally) - Runs as macOS LaunchAgent or Linux systemd user service - Credentials encrypted with AES-256 using machine-specific key ## Uninstall ```bash if [[ "$(uname)" == "Darwin" ]]; then launchctl unload ~/Library/LaunchAgents/com.openclaw.watchdog.plist 2>/dev/null rm -f ~/Library/LaunchAgents/com.openclaw.watchdog.plist else systemctl --user stop openclaw-watchdog 2>/dev/null systemctl --user disable openclaw-watchdog 2>/dev/null rm -f ~/.config/systemd/user/openclaw-watchdog.service fi rm -rf ~/.openclaw/watchdog ```
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.