failure-pattern-learner

Persist failure events to daily JSONL files and load relevant lessons before retries.

3|Updated Feb 28, 2026
One-click install
npx skills add https://github.com/Dalomeve/bot-output --skill failure-pattern-learner
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: failure-pattern-learner
Source: https://github.com/Dalomeve/bot-output/tree/main/skills/failure-pattern-learner
Command: npx skills add https://github.com/Dalomeve/bot-output --skill failure-pattern-learner

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Persist failure events to build a historical ledger and surface reusable lessons to prevent repeating mistakes across tasks.

Core Features & Use Cases

  • Persist failure events to memory/failure-events/YYYY-MM-DD.jsonl to capture a chronological record of issues.
  • Update memory/failure-playbook.md to codify lessons and recommended remediation steps.
  • Before retrying, load relevant lessons for the current context to guide remediation and reduce recurrence.

Quick Start

Run capture-failure.ps1 to log a failure, then run load-lessons.ps1 to fetch relevant lessons before retrying.

Frequently Asked Questions about failure-pattern-learner

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I stop recurring task failures from repeating in automated workflows?▼

You can persist failure events into a chronological JSONL ledger and update a failure playbook, which loads relevant lessons contextually before retries to guide remediation and prevent repeated mistakes.

What is the best way to log failure events for automated tasks and human-in-the-loop processes?▼

The best way to log failure events is capturing them structurally into daily JSONL files, building a historical ledger for both automated tasks and human-in-the-loop processes to derive remediation guidance.

How do I create a failure playbook from past mistakes and misconfigurations?▼

You create a failure playbook by persisting failure events to memory and codifying the derived lessons alongside recommended remediation steps into a markdown file for future reference.

Can I load relevant past lessons before retrying a failed network or token issue?▼

Yes, you can load relevant lessons before retrying by running a script that fetches context-aware guidance from your failure playbook to address recurring network, token, or misconfiguration issues.

Does this failure tracking approach work without external dependencies?▼

Yes, this failure tracking approach works without external dependencies, relying entirely on local scripts to persist events to JSONL files and manage a markdown playbook for lesson lookup.