AI Agent Introspection & Debugging
Implements a structured self-debugging workflow to prevent AI agents from looping, wasting tokens, and drifting during complex tasks.
AI Agent Introspection & Debugging provides a robust framework for AI agents to identify, diagnose, and recover from operational failures autonomously. Instead of blindly retrying failing commands, this skill guides the agent through a rigorous four-phase cycle: capturing the precise failure state, diagnosing root causes like context overflow or environment mismatches, applying minimal corrective actions, and generating a structured introspection report. It is an essential tool for maintaining Engineering Context Control (ECC), reducing token consumption, and ensuring agents remain focused on the primary objective during high-pressure or ambiguous development tasks.