failure-memory
Stop making the same mistakes — turn failures into patterns that prevent recurrence
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/leegitw/failure-memoryfailure-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:
- Detecting failures when they happen (not after)
- Recording observations with R/C/D counters (Recurrence/Confirmations/Disconfirmations)
- Finding patterns within the workspace's
.learnings/directory - 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
| Command | CJK | Logic | Trigger |
|---|---|---|---|
/fm detect | 検出 | fail∈{test,user,API}→record | Next 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:30d | Explicit |
/fm refactor | 整理 | obs[]→merge∨split∨restructure | Explicit |
/fm converge | 収束 | pattern[]→detect(similarity≥0.8) | Explicit |
Arguments
/fm detect
| Argument | Required | Description |
|---|---|---|
| type | Yes | Failure type: test, user, api, error |
| context | No | Additional context for the failure |
/fm record
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-leegitw-failure-memory": {
"enabled": true,
"auto_update": true
}
}
}Tags
Related Skills
autodream-core
通用记忆整理引擎 — 基于适配器模式的跨平台记忆整理技能。自动去重、合并、删除过时条目。| Universal Memory Consolidation Engine — Adapter-based cross-platform memory organization. Auto-dedup, merge, prune stale entries.
context-compressor
Intelligently compress context — conversations, code, logs. Preserve key information while reducing token usage. Auto-detects content type and applies optimal compression.
play-guitar-fretboard
玩转吉他指板 - 快速跳转到吉他指板学习资源网站
auto-context
智能上下文卫生检查器。分析当前会话的上下文污染程度 (长对话、主题漂移、噪声累积),建议:continue、/fork、/btw 或新会话。 支持手动触发(/auto-context)和自动触发(响应层实现)。 基于 ArXiv 论文和认知心理学研究的多维度评估体系。
sealvera
Tamper-evident audit trail for AI agent decisions. Use when logging LLM decisions, setting up AI compliance, auditing agents for EU AI Act, HIPAA, GDPR or SOC 2, or when a user asks about AI decision audit trails, explainability, or SealVera.