Agent Self-Debugging Workflow
Implements a structured four-phase introspection workflow to diagnose and resolve AI agent loops, drift, and execution failures.
The Agent Introspection Debugging skill provides a systematic approach for Claude to debug its own execution failures before escalating to a human. When an agent gets stuck in a tool loop, consumes excessive tokens without progress, or drifts from its primary task, this workflow guides it through failure capture, root-cause diagnosis, and contained recovery actions. By prioritizing evidence-based checks over blind retries, it produces detailed introspection reports that document the failure state, ensuring that even if a task requires human intervention, the reasoning and environment state are clearly documented for faster resolution.