Agent Introspection Debugging
Provides a structured self-debugging framework for AI agents to diagnose and recover from failure loops and environment drift.
This skill implements a systematic four-phase workflow—Capture, Diagnosis, Recovery, and Introspection—designed to stop AI agents from wasting tokens on repeated failures. It teaches Claude to pause during infinite loops or tool errors, analyze the root cause (such as context overflow or state mismatches), and execute the smallest possible corrective action before resuming. By transforming failures into structured reports, it ensures that autonomous tasks remain focused and environment-aware, preventing the 'blind retry' patterns that typically lead to wasted compute and degraded output quality.
主要功能
01Contained recovery heuristics to prevent blind retries and token waste
02Environment verification to sync agent assumptions with actual file-system state
03Automated failure state capture including error logs and tool sequences
04Structured introspection reports for human-readable audit trails
05Root-cause diagnosis patterns for common agent failure modes like context overflow
060 GitHub stars
使用场景
01Breaking infinite tool-call loops that consume excessive tokens without making progress
02Recalibrating agent objectives when context growth causes prompt drift and loss of focus
03Resolving environment state mismatches where the agent expects a file or service that isn't present