detect-zero-iteration-failure
Identify and classify agent failures occurring before execution starts
适合你,如果经常遇到代理在开始执行前就失败的情况
/ 通过 npx 安装 校验哈希
npx oh-my-skill add hkuds/openspace/detect-zero-iteration-failure/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- hkuds/openspace/detect-zero-iteration-failure/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify hkuds/openspace/detect-zero-iteration-failure安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
6920GitHub stars
~384上下文体积 · 单文件
索引托管
怎么用
商店整理自技能原文 · 版本 2c5cc40 · 表述以原文为准它做什么
Claude 会识别并分类那些在任务开始执行前就失败的 Agent 运行,标记为“零迭代失败”,并建议检查系统环境而非 Agent 逻辑。
什么时候触发
当任务报告 0 次迭代、无工具调用、无产出物,且日志以初始错误消息突然结束时触发。
装好后可以这样说
Claude 会检查迭代次数、工具调用和日志。
Claude 会标记失败模式并建议排查环境问题。
技能原文 SKILL.md
Detect Zero-Iteration Failure
This skill provides a workflow for identifying and classifying agent failures that occur prior to any task execution.
Identification Criteria
Flag a task execution as a Zero-Iteration Failure if all of the following conditions are met:
- Iteration Count: The agent reports 0 completed iterations.
- Tool Usage: No tools were invoked during the session.
- Artifacts: No documents, files, or code artifacts were created.
- Conversation Log: The log ends abruptly or contains only an initial error message without agent reasoning steps.
Diagnosis Strategy
When a Zero-Iteration Failure is detected, do not attempt standard agent-level debugging (e.g., analyzing reasoning chains or tool parameters). Instead, investigate system-level causes:
- Environment Health: Check if the runtime environment initialized correctly (e.g., dependencies installed, API keys loaded).
- Prompt Parsing: Verify if the initial user instruction was malformed or triggered safety filters immediately.
- Initialization Crash: Look for stack traces or panic logs occurring before the first agent step.
- Resource Limits: Check if memory or quota limits were hit before execution began.
Action Plan
- Tag the Failure: Label the incident as
failure_mode: pre_executionrather thanfailure_mode: agent_logic. - Escalate: Route to infrastructure or platform engineering rather than prompt engineering.
- Retry Strategy: If automating retries, reset the environment context before retrying, as the previous context may be poisoned.
Example Indicators
Status: Failed Iterations: 0 Tools Called: [] Error: "Session initialization failed: Missing environment variable"
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →
评论
登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。
…