
Agent Introspection Debugging
When your agent hits max tool calls, loops on the same command, or burns tokens without progress, this gives it a structured way to debug itself before you step in. It walks through capture, diagnosis, contained recovery, and a final introspection report. The core idea is solid: match the failure to a known pattern like context overflow or service timeouts, then take the smallest reversible action that changes the situation. The four phase loop keeps things systematic instead of retrying blindly with slightly different wording. Pairs naturally with verification-loop after code changes and works best when you need the agent to stop, assess what actually broke, and produce a legible report instead of just claiming it fixed something.
- skills.sh installs
- 5.7K
- GitHub stars
- 300.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add affaan-m/ecc --skill agent-introspection-debugging --agent claude-codeInstalls into .claude/skills of the current project.
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
Sponsors
Details
- Repository
- github.com/affaan-m/ecc
- Categories
- AI & Agent Building, Debugging, Automation & Workflows
- First seen
- Jul 14, 2026
More from affaan-m/ecc
All 263- Laravel Verification5.7K
- Marketing Campaign5.7K
- Motion Foundations5.7K
- Kotlin Testing5.7K
- Ai Regression Testing5.7K
- Dart Flutter Patterns5.7K
- Mysql Patterns5.7K
- Production Audit5.7K
- Documentation Lookup5.7K
- Make Interfaces Feel Better5.7K
- Windows Desktop E2e5.7K
- Motion Advanced5.6K
- Cost Aware Llm Pipeline5.6K
- Mcp Server Patterns5.6K
- Council5.6K
- Fal Ai Media5.6K
- Jpa Patterns5.6K
- Mle Workflow5.6K
- Compose Multiplatform Patterns5.6K
- Llm Trading Agent Security5.6K
- Swiftui Patterns5.6K
- Github Ops5.6K
- Autonomous Loops5.6K
- Data Scraper Agent5.6K