Error Recovery Automation for Openclaw

A robust framework for automating the detection and self-healing of common system failures in AI agent environments.

konscious0beast
v1.0.0
Feb 23, 2026
0
2.2k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install error-recovery-automation

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install error-recovery-automation using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Error Recovery Automation?

The Error Recovery Automation skill provides technical patterns for maintaining high availability within your agent infrastructure. By leveraging these Openclaw Skills, developers can implement standardized recovery workflows that automatically detect service unresponsiveness—such as gateway crashes or browser service timeouts—and execute corrective actions without human intervention.

This skill builds upon health-monitoring and diagnostics by introducing active, programmable resilience. It ensures that critical components like the cron scheduler and memory search modules remain functional, reducing system downtime and increasing the overall reliability of autonomous agent operations.

Error Recovery Automation Use Cases

  • Automating the restart of unresponsive gateway services that return non-zero exit codes.
  • Resolving intermittent browser service failures or CDP connection timeouts in automated scraping workflows.
  • Maintaining 24/7 uptime for cron schedulers to prevent missed background tasks.
  • Automatically rebuilding native modules like better-sqlite3 when memory search errors are detected.

How Error Recovery Automation Works

  1. Error Detection: The system uses CLI status commands and log parsing to identify unhealthy states in the gateway, browser, or cron services.
  2. Automated Recovery: Upon detection, pre-defined bash scripts attempt to restore functionality via service restarts or environment repairs.
  3. Verification: After a cooling period, the skill re-verifies the service status to ensure the recovery attempt was successful.
  4. Escalation: If automated attempts fail after a maximum number of retries, the system logs the failure to memory and creates a manual task for developer intervention.

Error Recovery Automation Setup

To implement these Openclaw Skills, create a recovery script and schedule it using the internal cron system.

# Example: Scheduling a browser recovery script
openclaw cron add \
  --name "Browser-Recovery-Automation" \
  --schedule 'every 30 minutes' \
  --session isolated \
  --payload '{"kind":"agentTurn","message":"Run browser recovery automation script"}'

Ensure your recovery scripts are executable and located in a reachable path within your environment.

Error Recovery Automation Data Schema & Taxonomy

The skill organizes its operation and history using the following data structures:

Data Type Location Description
Recovery Logs memory/YYYY-MM-DD.md Daily logs of all detection and recovery events with tags like error-recovery-failed.
Manual Tasks inbox/agent-aufgaben.md Markdown table entries for failures requiring human diagnosis.
Service Status stdout/stderr JSON output from CLI status commands used for detection logic.
Patterns memory/patterns/tools.md Storage for successful recovery logic and reusable scripts.

Error Recovery Automation Advanced Features

  • Isolated Agent Sessions: Executes recovery logic in sandboxed environments to prevent side effects on main agent workflows.
  • Multi-Service Keep-Alive: Single scripts that check dependencies in order (e.g., ensuring the gateway is up before restarting the browser).
  • Native Module Rebuilding: Advanced triggers to run npm rebuild when binary mismatches are detected in the memory engine.
  • Automated Escalation: Integrated task creation in agent-aufgaben.md to bridge the gap between automation and manual maintenance.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*