Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports.
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "agent-introspection-debugging" 技能: 1. 下载 https://raw.githubusercontent.com/affaan-m/ECC/main/skills/agent-introspection-debugging/SKILL.md 2. 保存为 ~/.claude/skills/agent-introspection-debugging/SKILL.md 3. 装好后重载技能,告诉我可以用了
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.
Activate this skill for:
Do not use this skill as the primary source for:
verification-loopBefore trying to recover, record the failure precisely.
Capture:
Minimum capture template:
## Failure Capture
- Session / task:
- Goal in progress:
- Error:
- Last successful step:
- Last failed tool / command:
- Repeated pattern seen:
- Environment assumptions to verify:
Match the failure to a known pattern before changing anything.
| Pattern | Likely Cause | Check |
|---|---|---|
| Maximum tool calls / repeated same command | loop or no-exit observer path | inspect the last N tool calls for repetition |
| Context overflow / degraded reasoning | unbounded notes, repeated plans, oversized logs | inspect recent context for duplication and low-signal bulk |
ECONNREFUSED / timeout | service unavailable or wrong port | verify service health, URL, and port assumptions |
429 / quota exhaustion | retry storm or missing backoff | count repeated calls and inspect retry spacing |
| file missing after write / stale diff | race, wrong cwd, or branch drift | re-check path, cwd, git status, and actual file existence |
| tests still failing after “fix” | wrong hypothesis | isolate the exact failing test and re-derive the bug |
Diagnosis questions:
Recover with the smallest action that changes the diagnosis surface.
Safe recovery actions:
Do not claim unsupported auto-healing actions like “reset agent state” or “update harness config” unless you are actually doing them through real tools in the current environment.
Contained recovery checklist:
## Recovery Action
- Diagnosis chosen:
- Smallest action taken:
- Why this is safe:
- What evidence would prove the fix worked:
…
自动录制专业感网页应用界面演示视频,适合讲解、教程与产品展示
通过逐步细化检索上下文,提升子代理任务理解与结果质量。
统一管理多渠道通知流,完成路由去重、升级处理与收件箱收敛。
帮助你审计、规划并落实技术与内容层面的 SEO 优化,提升搜索可见性。
帮助开发者与设计师实现 iOS 液态玻璃动态界面与交互效果。
调用最新框架与库文档,快速回答配置、API与代码示例问题