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 …
Amar1432
@amar1432
Install
$ openclaw skills install @amar1432/error-guarderror-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.
Related skills
Proactive Tasks
@imrkhn03Proactive goal and task management system. Use when managing goals, breaking down projects into tasks, tracking progress, or working autonomously on objectives. Enables agents to work proactively during heartbeats, message humans with updates, and make progress without waiting for prompts.
Task Status
@mightyprime1Send short status descriptions in chat for long-running tasks. Use when you need to provide periodic updates during multi-step operations, confirm task completion, or notify of failures. Includes automated periodic monitoring that sends updates every 5 seconds, status message templates, and a helper function for consistent status reporting.
Adaptive Reasoning
@enzoricciulliAutomatically assess task complexity and adjust reasoning level. Triggers on every user message to evaluate whether extended thinking (reasoning mode) would improve response quality. Use this as a pre-processing step before answering complex questions.
My Tesla
@officialpmControl Tesla vehicles from macOS via the Tesla Owner API using teslapy (auth, list cars, status, lock/unlock, climate, charging, location, and extras). Use when you want to check your car state or run safe remote commands. Designed for Parth Maniar (@officialpm) with local-only auth caching, confirmation gates for disruptive actions, and chat-friendly status output.
Openclaw Command Center
@jontsaiMission control dashboard for OpenClaw - real-time session monitoring, LLM usage tracking, cost intelligence, and system vitals. View all your AI agents in o...
Quick Reminders
@lstpscheZero-LLM one-shot reminders (<48h) via nohup sleep + openclaw message send, operated via {baseDir}/scripts/nohup-reminder.sh.