/install error-guard
error-guard
⚠️ System‑level skill (Advanced users)
This skill defines the control‑plane safety primitives for OpenClaw. It is intentionally minimal, non‑blocking, and designed to prevent agent freezes, deadlocks, and unrecoverable states when running long‑lived or high‑risk workloads.
Design Principles
Warning: This skill operates at the agent control‑plane level. It should be installed only by users who understand OpenClaw’s execution model and are running workloads that can block, hang, or run for extended periods.
- Main agent never blocks: no long exec, no external I/O, no LLM calls.
- Event-driven: workers emit events; the control plane listens.
- Fail-safe first: recovery commands must always respond.
- Minimal state: track only task metadata (never payloads).
Command Surface (Phase 1)
/status
Report current system health and task registry state.
Returns:
- Active tasks (taskId, type, state)
- Start time and last heartbeat
- Flags for stalled or overdue tasks
Constraints:
- Must run in constant time
- Must not call any model or external API
/flush
Emergency stop.
Immediately:
- Cancel all active tasks
- Kill active exec/process sessions
- Clear pending message queue
- Reset in-memory task registry
Constraints:
- Must always respond
- No waiting on workers
- No model calls
/recover
Safe recovery sequence.
Steps:
- Execute
/flush - Reset control-plane state
- Optionally reload skills/state (no container restart)
Future Extensions (Not Implemented Yet)
- Sub-agent runner helper (event-driven)
- Task watchdogs with TTL and silence detection
- Structured event protocol (task.started, task.heartbeat, task.completed, ...)
- Back-pressure and task classes (interactive / batch / background)
Security & Privacy
- This skill does not store payloads, prompts, messages, or model outputs
- Only minimal task metadata is persisted (taskId, timestamps, state)
- No API keys, credentials, or user data are read or written
- Safe to publish and share publicly
Non-Goals
- No business logic
- No background polling loops
- No user-facing features
- No LLM reasoning paths
This skill is the last line of defense. Keep it small, fast, and reliable.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install error-guard - 安装完成后,直接呼叫该 Skill 的名称或使用
/error-guard触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Error Guard — Control‑Plane Safety 是什么?
System safety and control-plane skill that prevents agent deadlocks and freezes. Provides non-LLM control commands to inspect task state, flush message queues, cancel long-running work, and recover safely without restarting the container. Use when implementing or operating long-running tasks, sub-agents, benchmarks, background monitors (e.g., Moltbook, PNR checks), or when the system becomes unresponsive and needs immediate recovery controls. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 3110 次。
如何安装 Error Guard — Control‑Plane Safety?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install error-guard」即可一键安装,无需额外配置。
Error Guard — Control‑Plane Safety 是免费的吗?
是的,Error Guard — Control‑Plane Safety 完全免费(开源免费),可自由下载、安装和使用。
Error Guard — Control‑Plane Safety 支持哪些平台?
Error Guard — Control‑Plane Safety 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Error Guard — Control‑Plane Safety?
由 Amar1432(@amar1432)开发并维护,当前版本 v1.0.0。