detect-zero-iteration-failure
它能做什么
这项技能帮助 AI 及其维护者,对在执行任何步骤之前就失败的智能体运行进行分类。它适合审查和调试 AI 智能体运行、需要判断问题从哪里开始的人。
适用场景
- ✓当一次智能体运行报告零步骤,没有使用任何工具或文件的时候。
- ✓当运行日志在第一条指令后就结束,没有任何推理的时候。
- ✓当我想在查看智能体逻辑之前,先把一次失败标记为设置问题的时候。
技能链接
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/detect-zero-iteration-failure/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我的智能体运行结束时零步骤、没有文件。请检查它是否在开始之前就已失败。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会检查运行中是否为零步骤、没有工具使用且没有输出,然后检查环境、提示词和资源限制等设置项,而不是去看智能体的推理。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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"
常见问题
什么算作零迭代失败?
已完成步骤为零、没有工具调用、没有创建文件,且日志提前结束的运行。
会检查哪些原因?
环境、提示词解析、启动崩溃或资源限制等设置问题。
应该先调试智能体的推理吗?
不应。指南要求在排除设置问题之前,先跳过智能体层面的调试。
详情
热度
- GitHub 星标
- 7.8k
- 排名
- #12853
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …
同一仓库的更多技能
agentpilot
7.8k帮你的智能体准备任务并运行 AgentPilot 循环,逐步改进项目:循环会提出修改、测试修改并为其打分。
openspace
7.8k帮你的智能体设置 OpenSpace,这是一个用于存储和获取智能体技能的工具,并通过 MCP 将其连接到你的 AI 应用。
rsi-arena
7.8k帮你的智能体设置并运行标准 AI 基准测试,例如 AIME 和 Terminal-Bench,用来比较不同的改进方法。
experiment-guide
7.8k帮你的智能体规划小型实验、阅读实验结果并记录发现,同时研究如何改进一个程序。