Memory Self-Heal

v1.1.0

General-purpose self-healing loop that learns from past failures, retries safely, and records reusable fixes.

1· 660·5 current·5 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for dalomeve/memory-self-heal.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Memory Self-Heal" (dalomeve/memory-self-heal) from ClawHub.
Skill page: https://clawhub.ai/dalomeve/memory-self-heal
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Canonical install target

openclaw skills install dalomeve/memory-self-heal

ClawHub CLI

Package manager switcher

npx clawhub@latest install memory-self-heal
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
medium confidence
Purpose & Capability
Name/description match the instructions: scanning memory, tasks, logs and reusing prior fixes is expected for a self-heal skill. There are no unrelated env vars, binaries, or installs requested.
Instruction Scope
Instructions tell the agent to recursively scan project memory/, tasks/, runtime/channel logs, and skills/*/SKILL.md and to append entries to memory. This is coherent for the stated goal, but the scan is broad and will read many files (possibly containing tokens or secrets). The SKILL.md warns not to log secrets, but it does not prescribe redaction, least-privilege read scopes, or explicit exclusion patterns for sensitive paths.
Install Mechanism
Instruction-only skill with no install spec or code files — lowest-risk delivery mechanism. Nothing is downloaded or written by an installer.
Credentials
No environment variables, credentials, or config paths are requested. The skill does reference runtime logs and memory paths, which is appropriate for its purpose; it does not request unrelated secrets or cloud credentials.
Persistence & Privilege
The skill writes concise self-heal entries back into project memory (expected behavior). always:false and normal autonomous invocation are used. Because it reads and writes project memory and other skill docs, you should verify file permissions and that it cannot modify other skills' configurations.
Assessment
This skill appears to do what it says, but it performs broad filesystem reads (memory/, tasks/, logs/, skills/*/SKILL.md) and appends entries to memory. Before enabling it: 1) Restrict scan roots to only the project-level memory/task directories you trust; avoid allowing it to read system-wide paths. 2) Ensure the agent enforces redaction rules (don’t include secrets/tokens in memory writebacks) and add explicit exclude patterns for known secret/config locations. 3) Limit the skill's write target (single memory file or dedicated folder) and review permissions so it cannot alter other skills or system files. 4) Test the skill in a sandboxed project to observe what it reads/writes. 5) If you need stronger guarantees, require user confirmation before any writeback or before scanning directories that might contain credentials. If you want a different assessment, provide the exact runtime root paths the agent will have access to and any platform-level sandboxing/config restrictions — that would raise confidence to high.

Like a lobster shell, security has layers — review code before you run it.

Runtime requirements

[HEAL] Clawdis
latestvk979m84zna7scyxdq6dhvtwqqn822pbx
660downloads
1stars
2versions
Updated 1mo ago
v1.1.0
MIT-0

Memory 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

  1. Recover execution without user micromanagement
  2. Reuse previous fixes from memory/logs/tasks
  3. Escalate only with minimal unblock input when truly blocked
  4. 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:

  1. memory/ (or equivalent workspace memory path)
  2. tasks/ or queue files
  3. runtime logs / channel logs
  4. skill docs (skills/*/SKILL.md) for known fallback recipes
  5. 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 mismatch
  • auth_or_config: key/token/env/config missing or invalid
  • network_or_reachability: timeout, DNS, handshake, region restrictions
  • ui_login_wall: page requires manual login/attach
  • resource_limit: context window, rate limit, memory pressure
  • false_done: no artifact/evidence but reported complete
  • unknown: 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:

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>

Memory Writeback Template

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>

Generic Known Fixes (Seed Set)

  • Command mismatch on Windows: prefer native PowerShell cmdlets
  • Token mismatch/auth failure: verify active config source and token scope
  • WebSocket/timeouts: test reachability + proxy/no_proxy consistency
  • Context overflow: split task into smaller units and reduce payload
  • False completion: enforce artifact validation before final response

Integration Notes

  • Works with autonomy/task-tracker skills but does not depend on them
  • If a project has custom memory paths, adapt scan roots dynamically
  • Keep entries short to avoid memory bloat

Comments

Loading comments...