memory-self-heal
General-purpose self-healing loop that learns from past failures, retries safely, and records reusable fixes.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/dalomeve/memory-self-healMemory Self-Heal Skill
Use this skill when the agent starts failing repeatedly, stalls, or keeps asking the user for steps that could be inferred from prior evidence.
Goals
- Recover execution without user micromanagement
- Reuse previous fixes from memory/logs/tasks
- Escalate only with minimal unblock input when truly blocked
- Leave reusable evidence for future runs
When To Trigger
Trigger when any of these appear:
- Same or similar error occurs 2+ times in one task
- Tool call fails due to argument mismatch, missing config, auth wall, or context overflow
- Agent claims completion without verifiable artifact
- Task progress stalls (no new artifact across 2 cycles)
Inputs
- Current task objective
- Latest error/output
- Available evidence locations (memory, tasks, logs)
Portable Evidence Scan Order
Scan these in order; skip missing paths silently:
memory/(or equivalent workspace memory path)tasks/or queue files- runtime logs / channel logs
- skill docs (
skills/*/SKILL.md) for known fallback recipes - core docs (
TOOLS.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
Failure Classification
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 class
Recovery Policy (3-Tier)
Attempt 1: Direct Fix
- Apply best-known fix from memory for same class/signature
- Re-run the smallest validating action
- Record result
Attempt 2: Safe Fallback
- Switch to alternate tool/path with lower fragility
- Narrow scope (smaller input, shorter query, one target)
- Re-run validation
Attempt 3: Controlled Escalation
- Mark blocked with minimum unblock input
- Provide exact next action user must do (one command or one UI step)
- Do not loop further until new input arrives
Safety Rules
- Never auto-run destructive operations without confirmation
- Never log secrets/tokens in memory files
- Max 3 retries per blocker signature per task
- Prefer deterministic steps over broad speculative retries
Completion Contract
Do not claim done unless all are true:
- At least one artifact exists and is readable (file/link/output)
- The original task objective is explicitly mapped to artifact(s)
- No unresolved blocker for current objective
Required output block:
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-dalomeve-memory-self-heal": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
model-route-guard
Diagnose and fix model routing conflicts. Ensure primary model uses correct provider endpoint without duplicate overrides.
Instruction Anchor Guard
Skill by dalomeve
ui-design-optimizer
Generate practical UI design systems and starter pages using local style/color/typography datasets. Use for landing page or dashboard UI planning and implementation.
Skill Governance Balanced
Skill by dalomeve
evidence-url-verifier
Verify evidence URLs are real and accessible. Check that artifact links resolve to actual content, not placeholders.