Agent Introspection & Self-Debugging
Implements a structured four-phase workflow to diagnose and recover from AI agent failures, loops, and context drift.
The Agent Introspection Debugging skill provides a systematic framework for Claude to debug its own execution failures during complex tasks. When an agent experiences infinite tool loops, token exhaustion, or environment mismatches, this skill guides it through failure capture, root-cause diagnosis, contained recovery, and detailed reporting. By moving away from blind retries and toward evidence-based interventions, it ensures higher reliability and provides human-readable post-mortems for failed sessions.
主要功能
01Four-phase debugging loop: Capture, Diagnosis, Recovery, and Introspection
02Contained recovery heuristics to minimize token burn and avoid unnecessary retries
032 GitHub stars
04Root-cause pattern matching for common failures like tool loops and context overflow
05Automated failure state recording including tool sequences and environment assumptions
06Standardized introspection reports for transparent human-readable debugging
使用场景
01Breaking infinite loops where the agent repeatedly calls the same tool with no progress
02Identifying environment-specific issues like missing files or service timeouts
03Managing context drift and reasoning degradation during long, high-pressure sessions