
from openclaw-guardian594
Watchdog for OpenClaw Gateway: periodic health checks, automated repair attempts, git-based rollback, daily snapshots, and optional Discord alerts.
OpenClaw Guardian provides a lightweight watchdog to keep an OpenClaw Gateway healthy. It periodically checks Gateway health, runs openclaw doctor --fix automatically on failures (configurable attempts), and if repairs fail, performs a git rollback to the last stable commit and restarts the gateway. The skill also supports daily snapshot commits and optional Discord webhook alerts for incidents.
Use this skill when you run an always-on OpenClaw Gateway and need automatic self-healing and incident notifications—particularly for unattended servers, homelab deployments, or production-ish setups where manual intervention should be minimized.
git, pgrep, curl, openclaw) and recommended quick-start commands are listed.Agents that can run shell commands and manage services (OpenClaw CLI, shell-runner agents, deployment automation) will be able to install and operate this guardian skill.
OpenClaw Guardian is a watchdog bash script that monitors the OpenClaw Gateway process, attempts auto-repair via doctor --fix, falls back to git-based workspace rollback, takes daily git snapshots, and optionally alerts via Discord webhook. The script timed out during testing (expected behavior for an infinite-loop daemon). SKILL.md is well-written with clear env var docs and quick-start instructions. Main security concern is unguarded git reset --hard which can destroy uncommitted workspace changes.
Not malicious — legitimate OpenClaw watchdog tool by MyClaw.ai. The destructive git reset and process kill are intentional for a self-healing daemon but could cause data loss. No exfiltration, no credential harvesting, no suspicious network calls (Discord webhook is opt-in). The script is functional and well-structured despite the timeout in testing.