ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

failure-memory

Stop making the same mistakes — turn failures into patterns that prevent recurrence

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/leegitw/failure-memory
Or

failure-memory (記憶)

Unified skill for failure detection, observation recording, memory search, and pattern convergence. Consolidates 10 granular skills into a single coherent memory system.

Trigger: 失敗発生 (failure occurred)

Source skills: failure-tracker, observation-recorder, memory-search, topic-tagger, failure-detector, evidence-tier, effectiveness-metrics, pattern-convergence-detector, positive-framer, contextual-injection

Installation

openclaw install leegitw/failure-memory

Dependencies: leegitw/context-verifier (for file change detection)

# Install with dependencies
openclaw install leegitw/context-verifier
openclaw install leegitw/failure-memory

Standalone usage: This skill can function independently for basic failure tracking. For full lifecycle management, install the complete suite (see Neon Agentic Suite).

Data handling: This skill operates within your agent's trust boundary. When triggered, it uses your agent's configured model for failure detection and pattern recording. No external APIs or third-party services are called. Results are written to .learnings/ in your workspace.

What This Solves

AI systems often make the same mistakes repeatedly — deleting working code, missing edge cases, forgetting context. This skill turns failures into learning by:

  1. Detecting failures when they happen (not after)
  2. Recording observations with R/C/D counters (Recurrence/Confirmations/Disconfirmations)
  3. Finding patterns within the workspace's .learnings/ directory
  4. Promoting to constraints when evidence threshold is met

The insight: Systems learn better from consequences than instructions. A failure that happened teaches more than a rule that might apply.

Scope note: Pattern detection operates within the current workspace only. Observations are stored in .learnings/ and searched locally. No cross-project data access occurs.

Usage

/fm <sub-command> [arguments]

Sub-Commands

CommandCJKLogicTrigger
/fm detect検出fail∈{test,user,API}→recordNext Steps (auto)
/fm record記録pattern→obs, R++∨C++∨D++Next Steps (auto)
/fm search索引query(pattern∨tag∨slug)→obs[]Explicit
/fm classify分類obs→tier∈{N=1:弱,N=2:中,N≥3:強}Explicit
/fm status状態eligible:R≥3∧C≥2, recent:30dExplicit
/fm refactor整理obs[]→merge∨split∨restructureExplicit
/fm converge収束pattern[]→detect(similarity≥0.8)Explicit

Arguments

/fm detect

ArgumentRequiredDescription
typeYesFailure type: test, user, api, error
contextNoAdditional context for the failure

/fm record

Metadata

Author@leegitw
Stars1656
Views0
Updated2026-02-28
View Author Profile
AI Skill Finder

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 skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-leegitw-failure-memory": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags

#agentic#memory#learning#self-improving#error-tracking#observability#patterns#adaptive#feedback
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.