Agent Introspection & Debugging
Implements a structured self-debugging workflow for AI agents to diagnose and recover from execution failures and loops.
This skill provides a systematic framework for AI agents to handle repetitive failures, token wastage, and logic drifting without immediate human intervention. By following a rigorous four-phase cycle—Capture, Diagnosis, Recovery, and Introspection—the agent learns to record error states precisely, identify specific failure patterns such as context overflow or environment mismatches, and apply minimal corrective actions. It acts as an internal governance layer that optimizes performance and minimizes cost by breaking unproductive tool-call loops and verifying environmental assumptions before escalating to a human developer.