What problem does it solve?
Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports.
This skill provides a disciplined, repeatable approach to diagnosing and recovering from stubborn agent failures, reducing token waste and drift by capturing failure state, pinpointing root causes, applying contained recovery actions, and producing structured introspection reports for humans.
Core Features & Use Cases
- Failure capture: records error type, last successful step, environment details, and notable context to reproduce the issue.
- Root-cause diagnosis: maps failures to known patterns, asks diagnostic questions, and suggests targeted remedies.
- Contained recovery: executes the smallest safe action to restore progress without broad re-execution.
- Introspection reporting: final report that summarizes failure, root cause, remediation, and follow-up steps.
- ECC integration: works with verification loops and human-in-the-loop gates to ensure safe rollback.
Quick Start
Initiate a session with agent-introspection-debugging to capture a failure state, diagnose the root cause, apply a contained recovery, and generate an introspection report.