Agent Introspection & Debugging
Implements a structured self-debugging workflow for AI agents to resolve loops, tool failures, and context drift.
This skill empowers Claude to identify and resolve its own operational failures through a systematic four-phase process: capture, diagnosis, recovery, and reporting. Instead of retrying actions blindly, the agent uses this framework to analyze stack traces, classify failure patterns—such as context overflow or environment mismatches—and execute minimal corrective actions. It is particularly effective for breaking out of infinite loops, managing token-heavy context growth, and ensuring the agent remains aligned with the primary objective during complex, multi-step tasks.
Key Features
01Failure state recording including environment assumptions and tool sequences
02Contained recovery heuristics to minimize token waste and prevent state corruption
03Structured four-phase debugging loop: Capture, Diagnose, Recover, and Report
04Pattern matching for common failures like loop-limits and context overflow
05Detailed introspection reports that document root causes for human review
060 GitHub stars
Use Cases
01Resolving repetitive tool-call loops where the agent is stuck in an observer path
02Diagnosing environment mismatches such as missing files or incorrect service states
03Restoring reasoning quality when context pressure or prompt drift degrades output