← Back to Skills Marketplace
voidlight00

Failure Memory Log

by Voidlight · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
419
Downloads
2
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install failure-memory-log
Description
Automatic failure pattern recording and recall system. Prevents repeating the same mistakes by logging errors with context, root cause, and resolution. Use w...
README (SKILL.md)

Failure Memory

Record failures. Learn from them. Never repeat them.

Core Concept

Every failure has three parts:

  1. What happened (error message, symptom)
  2. Why it happened (root cause)
  3. How to fix/avoid it (resolution)

This skill stores them in a searchable markdown file and provides a recall mechanism before starting similar tasks.

File Structure

memory/
└── failures.md      # All failure records (append-only log)

Recording a Failure

When an error occurs during work, append to memory/failures.md:

## [YYYY-MM-DD HH:mm] \x3Cshort title>

- **Category:** \x3Cbuild|deploy|config|api|permissions|data|logic|network|dependency>
- **Context:** \x3Cwhat you were trying to do>
- **Error:** `\x3Cexact error message or symptom>`
- **Root Cause:** \x3Cwhy it happened>
- **Resolution:** \x3Cwhat fixed it>
- **Prevention:** \x3Chow to avoid next time>
- **Tags:** \x3Ccomma-separated keywords for search>

When to Record

Record AUTOMATICALLY when:

  • A shell command exits non-zero and you identify why
  • An API call fails and you find the cause
  • A config/setup step fails and you resolve it
  • You catch yourself repeating a previously-solved mistake
  • A sub-agent reports an error with resolution

Do NOT record:

  • Transient network timeouts (unless pattern emerges)
  • Intentional test failures
  • User-cancelled operations

Pre-Task Recall

Before starting any significant task, search failures for relevant history:

grep -i "\x3Ckeyword>" memory/failures.md

Or use memory_search if vector search is available:

memory_search query="\x3Ctask description> failure error"

If matches found, mention them briefly:

⚠️ Known pitfall: [title] — [prevention tip]

Failure Report

When asked for a failure report or review, generate a summary:

  1. Read memory/failures.md
  2. Group by category
  3. Identify repeat patterns (same root cause appearing multiple times)
  4. Suggest systemic fixes for patterns

Report Format

# Failure Report — YYYY-MM-DD

## Stats
- Total: N failures recorded
- Top category: \x3Ccategory> (N occurrences)
- Repeat offenders: N patterns seen 2+ times

## Repeat Patterns
### \x3Cpattern name>
- Seen: N times
- Root cause: \x3Cshared cause>
- Systemic fix: \x3Crecommendation>

## Recent Failures (last 7 days)
- [date] \x3Ctitle> — \x3Cresolution>

Initialization

Run scripts/init.sh to set up the failures file:

bash scripts/init.sh [memory_dir]

Default memory_dir: ./memory

Best Practices

  1. Be specific — "EACCES on /var/run/docker.sock" beats "permission error"
  2. Include the exact error — Future grep depends on it
  3. Tag generously — More tags = better recall
  4. Review monthly — Patterns reveal systemic issues
  5. Link to fixes — Reference commits, PRs, or config changes when possible
Usage Guidance
This skill appears coherent and low-risk for its stated purpose, but take these precautions before installing: (1) Run scripts/init.sh in a controlled repository/directory so the failures file is stored where you expect. (2) Decide and enforce file permissions (e.g., chmod 600) and retention/rotation so sensitive logs aren't broadly accessible. (3) Add or require redaction/sanitization rules before automatic recording — error messages and stack traces often contain secrets. (4) If you enable or connect a vector search (memory_search), verify the vector DB/service is private and encrypted; sending logs to a third-party vector service can leak secrets. (5) Review any agent components that will perform automated appends to ensure they only write intended failure info and don't capture unrelated files or credentials. Following these steps will reduce the risk of accidental data exposure while keeping the skill's benefits.
Capability Analysis
Type: OpenClaw Skill Name: failure-memory-log Version: 1.0.0 The skill bundle is classified as suspicious due to a significant shell injection vulnerability identified in `SKILL.md`. The instruction for the agent to execute `grep -i "<keyword>" memory/failures.md` directly uses a potentially unsanitized `<keyword>` derived from agent/user input, allowing for arbitrary command execution. Additionally, the `bash scripts/init.sh [memory_dir]` instruction could also be vulnerable if the `[memory_dir]` parameter is not properly sanitized by the agent, potentially leading to path traversal or command injection. While the stated purpose of the skill is benign (logging failures), these vulnerabilities pose a high risk without clear malicious intent.
Capability Assessment
Purpose & Capability
The name/description say "failure memory" and the skill implements an append-only markdown log (memory/failures.md), search guidance (grep / optional memory_search), and an init script to create the file. No unrelated credentials, binaries, or installs are requested. The requested artifacts are proportional to the stated purpose.
Instruction Scope
SKILL.md confines activity to creating, appending, searching, and summarizing memory/failures.md which is consistent with purpose. However, it instructs automatic recording of errors and to include exact error messages and context; that can inadvertently capture sensitive information (secrets, tokens, PII) from stack traces or command output. The skill does not provide sanitization, redaction, or retention guidance beyond 'don't record certain things', and it references optional 'memory_search' (vector search) which could imply an external service — ensure any vector DB used is trusted. This is a privacy/data-leakage caution rather than a coherence problem.
Install Mechanism
Instruction-only skill with a small local init script (scripts/init.sh) that creates the memory directory and a markdown file. The script is straightforward, uses only local filesystem operations, and performs no network or unexpected actions. No install-time risks detected.
Credentials
No environment variables, credentials, or config paths are requested. The lack of sensitive requirements is proportional to the described functionality.
Persistence & Privilege
The skill does not request 'always: true', does not modify other skills' configs, and only writes a file under the specified memory directory. Autonomous invocation on the platform is allowed by default but not excessive for this kind of helper.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install failure-memory-log
  3. After installation, invoke the skill by name or use /failure-memory-log
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release: automatic failure pattern recording, pre-task recall, and failure report generation
Metadata
Slug failure-memory-log
Version 1.0.0
License
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Failure Memory Log?

Automatic failure pattern recording and recall system. Prevents repeating the same mistakes by logging errors with context, root cause, and resolution. Use w... It is an AI Agent Skill for Claude Code / OpenClaw, with 419 downloads so far.

How do I install Failure Memory Log?

Run "/install failure-memory-log" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Failure Memory Log free?

Yes, Failure Memory Log is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Failure Memory Log support?

Failure Memory Log is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Failure Memory Log?

It is built and maintained by Voidlight (@voidlight00); the current version is v1.0.0.

💬 Comments