Agent Introspection Debugging
Structured self-debugging workflow that captures, diagnoses, and recovers from agent failures before retrying.
- CCM score
- 67 of 100
- skills.sh installs
- 11K
- GitHub stars
- 312.6K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers a four-phase loop: failure capture, root-cause diagnosis, contained recovery, and an introspection report
- Includes a failure-pattern table mapping loops, context overflow,
ECONNREFUSED,429quota errors, and stale file state to checks - Enforces a rule against blind retries, requiring a stated hypothesis and one discriminating check before any change
- Designed for agent runs that loop, drift, or burn tokens without progress, with handoff to
verification-loopafter code changes
Install
$ npx -y skills add affaan-m/ecc --skill agent-introspection-debugging -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Agent Introspection Debugging
Use this skill when an agent run is failing repeatedly, consuming tokens without progress, looping on the same tools, or drifting away from the intended task.
This is a workflow skill, not a hidden runtime. It teaches the agent to debug itself systematically before escalating to a human.
When to Activate
- Maximum tool call / loop-limit failures
- Repeated retries with no forward progress
- Context growth or prompt drift that starts degrading output quality
- File-system or environment state mismatch between expectation and reality
- Tool failures that are likely recoverable with diagnosis and a smaller corrective action
Scope Boundaries
Activate this skill for:
- capturing failure state before retrying blindly
- diagnosing common agent-specific failure patterns
- applying contained recovery actions
- producing a structured human-readable debug report
Do not use this skill as the primary source for:
- feature verification after code changes; use
verification-loop - framework-specific debugging when a narrower ECC skill already exists
- runtime promises the current harness cannot enforce automatically
Four-Phase Loop
Details
- Repository
- github.com/affaan-m/ecc
- Categories
- Debugging, Agent Workflow & Planning
- First seen
- Jul 14, 2026
Questions
What does the agent-introspection-debugging skill do?
The agent-introspection-debugging skill gives an AI agent a structured self-debugging workflow for failed runs. It captures the failure, diagnoses the pattern, applies a contained recovery action, and writes an introspection report instead of blindly retrying.
When should I use the agent-introspection-debugging skill?
Use it when an agent run keeps failing, loops on the same tools, consumes tokens without progress, or drifts from the task. It also fits file or environment mismatches and tool failures that a smaller corrective action might fix.
How do I install the agent-introspection-debugging skill?
Run npx -y skills add affaan-m/ecc --skill agent-introspection-debugging -y in your project. After that, the agent can follow the capture, diagnosis, recovery, and report phases when a run fails.
Where does agent-introspection-debugging rank among debugging skills?
It ranks in the top 50 of the Debugging category on Claude Marketplaces. It sits alongside skills like diagnosing-bugs, safe-debug, and systematic-debugging, but it focuses on debugging the agent's own failed runs rather than application code.
More from affaan-m/ecc
All 257- Agent Payment X40210.9K
- Ck10.9K
- Canary Watch10.9K
- Healthcare Cdss Patterns10.9K
- Security Bounty Hunter10.9K
- Dotnet Patterns10.9K
- Healthcare Eval Harness10.9K
- Llm Trading Agent Security10.8K
- Nodejs Keccak25610.8K
- Github Ops10.8K
- Customer Billing Ops10.8K
- Lead Intelligence10.8K
- Code Tour10.7K
- Finance Billing Ops10.7K
- Api Connector Builder10.7K
- Openclaw Persona Forge10.7K
- Google Workspace Ops10.7K
- Knowledge Ops10.7K
- Workspace Surface Audit10.7K
- Terminal Ops10.7K
- Gan Style Harness10.7K
- Agent Sort10.7K
- Product Capability10.7K
- Csharp Testing10.7K
Similar to Agent Introspection Debugging
More Debuggingcontinuous-agent-loopaffaan-m/ecc12.2K installsPatterns for autonomous agent loops that gate on quality checks, evals, and recovery from failures.
agent-architecture-auditaffaan-m/ecc9.1K installsFull-stack diagnostic that audits twelve agent layers for regressions, memory pollution, and hidden repair loops.
pua-entanweai/pua3K installsTurns a stuck agent into a methodical debugger with a forced escalation ladder and proactive checks.
diagnosing-bugsvinvcn/mattpocock-skills-zh-cn4.6K installsStructured diagnostic loop for stubborn bugs and performance regressions, built around a red-capable feedback loop.
puatanweai/pua9.9K installsEscalating pressure and forced verification turn a stalled agent into one that tries every route before it gives up.