Install
openclaw skills install memory-self-healGeneral-purpose self-healing loop that learns from past failures, retries safely, and records reusable fixes.
openclaw skills install memory-self-healUse this skill when the agent starts failing repeatedly, stalls, or keeps asking the user for steps that could be inferred from prior evidence.
Trigger when any of these appear:
Scan these in order; skip missing paths silently:
memory/ (or equivalent workspace memory path)tasks/ or queue filesskills/*/SKILL.md) for known fallback recipesTOOLS.md, CAPABILITIES.md, AGENTS.md)Shell examples (use whichever shell is active):
# PowerShell
Get-ChildItem -Recurse memory, tasks -ErrorAction SilentlyContinue |
Select-String -Pattern "error|blocked|retry|fallback|auth|token|proxy|timeout|context" -Context 2
# POSIX shell
rg -n "error|blocked|retry|fallback|auth|token|proxy|timeout|context" memory tasks 2>/dev/null
Classify first, then act:
syntax_or_args: command syntax/argument mismatchauth_or_config: key/token/env/config missing or invalidnetwork_or_reachability: timeout, DNS, handshake, region restrictionsui_login_wall: page requires manual login/attachresource_limit: context window, rate limit, memory pressurefalse_done: no artifact/evidence but reported completeunknown: no confident classDo not claim done unless all are true:
Required output block:
DONE_CHECKLIST
- Objective met: yes/no
- Artifact: <path or URL or command output ref>
- Validation: <what was checked>
- Remaining blocker: <none or exact unblock input>
Append one concise entry after each self-heal cycle:
## Self-heal: <date-time> <short task>
- Signature: <normalized error signature>
- Class: <classification>
- Attempt1: <action> -> <result>
- Attempt2: <action> -> <result>
- Final: <success | blocked>
- Artifact/Evidence: <path|url|log ref>
- Reusable rule: <one-line rule>