Error Guard for Openclaw

A proactive error management and circuit-breaking system designed to prevent AI agent failures through real-time monitoring and automated recovery.

lidekahdjdhdhsjjs-lang
v1.0.0
Feb 22, 2026
0
1.3k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install hz-error-guard

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 hz-error-guard 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 Guard?

Error Guard is a sophisticated error management layer for AI agents, functioning as a proactive shield against system instabilities. It classifies errors into distinct severity levels—ranging from informational logs to fatal system crashes—allowing agents to respond intelligently to different failure modes. By utilizing this within the ecosystem of Openclaw Skills, developers can ensure their agents remain resilient, performing pre-execution checks and executing graceful shutdowns when critical thresholds are met.

Error Guard Use Cases

  • Preventing infinite loops or repeating errors in automated agent workflows.
  • Automatically handling API rate limits and authentication failures without manual intervention.
  • Triggering graceful shutdowns during resource exhaustion like memory leaks or full disks.
  • Implementing circuit breaker patterns to stop cascading failures in complex multi-agent processes.

How Error Guard Works

  1. Pre-Execution Validation: Before any task starts, the system checks for required resources, valid tokens, and rate limit status.
  2. Real-Time Monitoring: During operation, the skill analyzes output streams to identify error patterns such as repetition or cascading failures.
  3. Severity Classification: Errors are instantly categorized into Fatal, Serious, Warning, or Info levels to determine the response priority.
  4. Interception & Circuit Breaking: If thresholds are crossed, the system intercepts the process, pausing or throttling operations to prevent further damage.
  5. Automated Recovery: The skill applies mapped strategies like exponential backoff, resource freeing, or credential refreshing to restore the agent to a healthy state.

Error Guard Setup

To integrate this skill into your environment, use the standard CLI installation for Openclaw Skills:

# Install the error-guard skill
openclaw-skill add error-guard

Configure your error thresholds and recovery mappings in your agent's configuration file to align with your specific API limits and resource constraints.

Error Guard Data Schema & Taxonomy

The skill organizes its monitoring data and logic according to the following schema:

  • Error Taxonomy: Categorization of errors into Fatal, Serious, Warning, and Info tiers.
  • Pattern Registry: Definitions for identifying repeating, accumulated, or cascading error signatures.
  • Recovery Map: Logic mapping specific error types to automated recovery functions (e.g., refresh_and_retry).
  • Contextual Snapshots: Metadata and system state saved during Fatal error events for debugging.

Error Guard Advanced Features

  • Automated circuit breaker activation when a single error occurs 3 times consecutively.
  • Intelligent throttling that reduces operation frequency when error rates exceed 10%.
  • Cascade failure detection to identify and stop chain-reaction errors across services.
  • Pre-execution validation hooks to verify dependencies and resources before consumption.
  • Context-aware recovery strategies including token refreshing and automated resource cleanup.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*