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
Agent Migration Pack
将AI Agent完整迁移到新环境或分享给其他用户的标准化工具包,包含身份、记忆、技能、风格等完整信息,支持状态迁移
synapse-wiki
Synapse Wiki — 智能知识库管理系统。 自动摄取原始资料,增量构建持久化知识网络,支持智能查询和健康检查。 知识随时间复利积累,越用越聪明。 当用户提到 wiki、知识库、摄取资料、查询知识、整理文档时使用此技能。
human_test
Call real humans to test your product (URL or app). Get structured usability feedback with screen recordings, NPS scores, and AI-aggregated findings.
context-compressor
Intelligently compress context — conversations, code, logs. Preserve key information while reducing token usage. Auto-detects content type and applies optimal compression.
auto-context
智能上下文卫生检查器。分析当前会话的上下文污染程度 (长对话、主题漂移、噪声累积),建议:continue、/fork、/btw 或新会话。 支持手动触发(/auto-context)和自动触发(响应层实现)。 基于 ArXiv 论文和认知心理学研究的多维度评估体系。