learn-from-mistake

Community

Automate mistake analysis, prevent recurrence.

Authorcowwoc
Version1.0.0
Installs0

System Documentation

What problem does it solve?

AI agents inevitably make mistakes, leading to delays, rework, and protocol violations. Manually identifying the root cause of these errors and implementing effective, lasting fixes is a time-consuming and complex process that often fails to prevent recurrence. This Skill automates that critical learning loop.

Core Features & Use Cases

  • Root Cause Analysis: Systematically investigates agent conversations to pinpoint the "triggering thought" or context leading to a mistake.
  • Automated Fixes: Designs and applies preventive measures, such as updating agent prompt templates, clarifying documentation, or creating active validation hooks.
  • Reproduction Testing: Critically, it attempts to reproduce the original mistake after applying fixes to verify that the prevention mechanism works, ensuring "AI works, you rest."
  • Use Case: An agent repeatedly creates files in the wrong worktree. This Skill analyzes the conversation, identifies the root cause (e.g., ambiguous working directory instructions), creates a pre-write.sh hook to block future violations, and then attempts to make the same mistake to confirm the hook's effectiveness.

Quick Start

Use the learn-from-mistake skill to analyze the recent error where the 'architect' agent created files in the wrong worktree during the 'implement-formatter-api' task.

Dependency Matrix

Required Modules

jqgit

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: learn-from-mistake
Download link: https://github.com/cowwoc/styler/archive/main.zip#learn-from-mistake

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.