Agent Introspection & Self-Debugging
Implements a structured four-phase workflow for AI agents to diagnose and resolve their own execution failures and loops.
The Agent Introspection Debugging skill empowers Claude to systematically troubleshoot its own process when it encounters repetitive loops, tool failures, or context drift. By guiding the agent through dedicated phases of failure capture, root-cause diagnosis, and contained recovery, this skill prevents wasteful token consumption and ensures a logical path forward. It is specifically designed to handle environment state mismatches, context overflow, and logic errors, providing a detailed introspection report that makes the recovery process transparent to human developers.
Key Features
01Structured 'Failure Capture' templates to record environment and state data
02Heuristic-based recovery actions to minimize risk and avoid blind retries
031 GitHub stars
04Pattern matching for common AI failures like retry storms and context overflow
05Comprehensive introspection reports for human-readable audit trails
06Four-phase self-debugging loop: Capture, Diagnose, Recover, and Report
Use Cases
01Managing context pressure and prompt drift during complex, long-running engineering tasks
02Breaking infinite loops where the agent repeatedly calls the same tool without progress
03Diagnosing environment mismatches such as missing files, port conflicts, or branch drift