failure-analyzer
Failure analysis and learning system. Root cause analysis, improvement suggestions, experience-based learning. Applies to all skills.
Why use this skill?
Enhance your OpenClaw AI with the Failure Analyzer skill. Automatically identify root causes, track learning patterns, and prevent recurring task failures.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/sa9saq/failure-analyzerWhat This Skill Does
The Failure Analyzer is a robust meta-skill designed for OpenClaw AI agents to facilitate continuous improvement and rigorous root-cause analysis. It operates as an observational layer that tracks failed tasks, analyzes them using the '5 Whys' framework, and stores the resulting lessons in a structured knowledge base. By identifying systemic issues—whether they are technical bugs, operational inefficiencies, or strategic missteps—the agent effectively creates an institutional memory, ensuring that once a mistake is recognized, the probability of repetition is significantly reduced through automated pattern recognition and preventive warning triggers.
Installation
To integrate this skill into your OpenClaw environment, execute the following command in your terminal or command-line interface:
clawhub install openclaw/skills/skills/sa9saq/failure-analyzer
Ensure that your environment has sufficient write permissions to the /moltworker/data/learning/ directory, as the skill requires this space to maintain its internal JSON-based learning database.
Use Cases
- Automated Bug Resolution: When an API integration fails, the system automatically runs a post-mortem analysis to determine if the issue was a transient network flicker or a fundamental logic error.
- Operational Efficiency: If a recurring reporting task consistently misses its KPI, the skill identifies the procedural bottleneck, such as inconsistent data formatting from external sources.
- Strategic Alignment: Helps users understand why a specific marketing or research strategy yielded suboptimal results, allowing the agent to suggest future adjustments based on historical performance.
Example Prompts
- "I attempted to export the quarterly report but the task failed; can you run the failure-analyzer to see why it crashed?"
- "Why does this automation keep timing out? Perform a 5 Whys analysis on the recent task history."
- "Summarize all recent technical failures from the last week and suggest a long-term preventive strategy for each."
Tips & Limitations
To get the best results, ensure your task descriptions are descriptive, as the analysis quality depends heavily on the accuracy of the 'expected' vs 'actual' input data. Note that this skill is reactive; while it provides preventive warnings for future tasks, it requires at least one initial occurrence of a failure to establish a baseline. Avoid clearing the /moltworker/data/learning/ directory unless you intend to reset the agent's learned experiences.
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-sa9saq-failure-analyzer": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, file-write
Related Skills
threat-model
Threat modeling and attack scenario design. Identify risks before they become vulnerabilities. STRIDE, attack trees, risk matrix.
Sns Auto Poster
Schedule and automate social media posts to X/Twitter with cron-based queue management.
security-review
Comprehensive security review for code, configs, and operations. OWASP, prompt injection, crypto security. Auto-triggers on security-related changes.
Process Monitor
Monitor system processes, identify top CPU/memory consumers, and alert on resource thresholds.
Readme Generator
Auto-generate comprehensive README.md files by analyzing project structure and configuration.