‹ 首页

detect-zero-iteration-failure

@hkuds · 收录于 5 天前 · 上游提交 1 周前

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作者撰写 · MIT · 2c5cc40

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:

  1. Iteration Count: The agent reports 0 completed iterations.
  2. Tool Usage: No tools were invoked during the session.
  3. Artifacts: No documents, files, or code artifacts were created.
  4. 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:

  1. Environment Health: Check if the runtime environment initialized correctly (e.g., dependencies installed, API keys loaded).
  2. Prompt Parsing: Verify if the initial user instruction was malformed or triggered safety filters immediately.
  3. Initialization Crash: Look for stack traces or panic logs occurring before the first agent step.
  4. Resource Limits: Check if memory or quota limits were hit before execution began.
Action Plan
  1. Tag the Failure: Label the incident as failure_mode: pre_execution rather than failure_mode: agent_logic.
  2. Escalate: Route to infrastructure or platform engineering rather than prompt engineering.
  3. 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 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。