failure-memory is a specialized system for Openclaw Skills that enables AI agents to detect, record, and learn from their own failures to prevent future recurrences.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install failure-memory
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install failure-memory using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
failure-memory is a unified cognitive skill designed to solve the problem of AI agents making the same mistakes repeatedly, such as deleting critical code or ignoring context. By integrating this into your library of Openclaw Skills, you provide your agent with a structured way to transform transient errors into persistent learning patterns. The system operates locally within the workspace trust boundary, ensuring that all observations and data remain private.
This skill consolidates ten granular functionalities—including detection, search, and classification—into a single coherent memory system. It uses a sophisticated R/C/D (Recurrence, Confirmation, Disconfirmation) counter system to evaluate the validity of patterns, allowing the agent to distinguish between one-off anomalies and systemic issues that require new constraints.
To add this capability to your environment, use the following commands to install the skill and its primary dependency:
# Install dependency for file change detection
openclaw install leegitw/context-verifier
# Install the failure-memory skill
openclaw install leegitw/failure-memory
Configuration is managed via .openclaw/failure-memory.yaml, where you can define custom detection patterns and eligibility thresholds.
The skill organizes its data within the .learnings/ directory of your workspace using a clear taxonomy:
| Path | Purpose |
|---|---|
.learnings/ERRORS.md |
A high-level log of command and execution failures. |
.learnings/LEARNINGS.md |
A record of corrections and identified best practices. |
.learnings/observations/ |
A directory containing individual markdown files for each unique pattern (OBS-ID). |
Each observation file tracks metadata including the R/C/D counters, evidence tiers (Weak, Emerging, Strong), and slug taxonomy for easy indexing.
Loading
A public API-backed framework for declaring and publishing an AI agent's ethical boundaries and priority hierarchies.

A foundational verification system that ensures file integrity and detects data drift before an AI agent performs operations.

An expert utility that converts technical code analysis findings into structured search strategies and evidence maps for intellectual property research.

A specialized technical analysis tool that scans repositories to identify, score, and document distinctive code patterns for intellectual property preparation.

A creative tool that synthesizes technical conversations into professionally formatted song lyrics and style tags for Suno.ai.

A local-first knowledge layer for AI agents that validates patterns through repeated successful use to ensure high-reliability memory.








































