Agent Introspection & Debugging

0•

Provides a structured, four-phase workflow for AI agents to diagnose and recover from operational failures, loops, and context drift.

This skill equips Claude with a systematic self-correction framework to handle scenarios where it gets stuck in loops, consumes excessive tokens, or loses track of its primary objective. By guiding the agent through specific phases of failure capture, diagnosis against known patterns, and contained recovery, it ensures that Claude remains productive and minimizes the need for human intervention during complex tasks. It is particularly valuable for resolving environment mismatches, tool call failures, and reasoning degradation in long-running sessions.

主要功能

01Heuristic-based intervention strategies to minimize token waste
02Structured introspection reports for human-readable handoffs
03Root-cause pattern matching for common AI agent failure modes
04Standardized failure capture templates for precise error recording
050 GitHub stars
06Four-phase recovery loop: Capture, Diagnose, Recover, and Report

使用场景

01Diagnosing environment mismatches such as missing files or stale git states
02Resolving infinite loops or repeated tool-call failures during complex coding tasks
03Recovering from context overflow or reasoning degradation in long-running sessions