openclaw-guardian

Deploy a Guardian watchdog to monitor and repair OpenClaw Gateway.

1|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/xurenlu/marstaff --skill openclaw-guardian
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openclaw-guardian
Source: https://github.com/xurenlu/marstaff/tree/main/skills/openclaw-guardian
Command: npx skills add https://github.com/xurenlu/marstaff --skill openclaw-guardian

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill ensures your OpenClaw Gateway remains operational and stable, automatically recovering from crashes and preventing data loss due to configuration errors or workspace corruption.

Core Features & Use Cases

  • Automated Health Monitoring: Continuously checks the Gateway's status.
  • Self-Repair: Attempts to fix issues using openclaw doctor --fix.
  • Workspace Rollback: Reverts to a known good state using Git if repairs fail.
  • Daily Snapshots: Creates regular Git backups of your workspace.
  • Discord Alerts: Notifies you of critical events.
  • Use Case: Protect your AI agent instance from unexpected downtime, ensuring continuous operation for critical tasks.

Quick Start

Install the Guardian watchdog script to automatically monitor and repair your OpenClaw Gateway.

Frequently Asked Questions about openclaw-guardian

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate OpenClaw Gateway health monitoring and prevent downtime?

Automate OpenClaw Gateway health monitoring by deploying a Guardian watchdog process that continuously checks status and attempts self-repair to prevent unexpected downtime for critical tasks.

How does automated self-repair work when an OpenClaw instance crashes?

Automated self-repair works by executing `openclaw doctor --fix` to resolve crashes or configuration corruption, and if repairs fail, it reverts the workspace to a known good state using Git rollback.

Do I need Git to use automated workspace rollback for my gateway configuration?

Yes, Git is required for automated workspace rollback and daily snapshots, as it reverts to a known good state and creates regular backups to prevent data loss from configuration errors.

Can I receive Discord alerts when my OpenClaw Gateway encounters critical events?

Yes, you can receive optional Discord alerts that notify you of critical events, ensuring you stay informed about the operational stability and self-healing actions of your OpenClaw instance.

What is the best way to recover corrupted workspace edits in an OpenClaw deployment?

The best way to recover corrupted workspace edits is through Git-based workspace rollback, which reverts bad edits to a known good state after initial `doctor --fix` repair attempts fail.