跳到正文
Skillpedia
智能体7.8k · #12853

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/detect-zero-iteration-failure/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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:

  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"
常见问题

什么算作零迭代失败?

已完成步骤为零、没有工具调用、没有创建文件,且日志提前结束的运行。

会检查哪些原因?

环境、提示词解析、启动崩溃或资源限制等设置问题。

应该先调试智能体的推理吗?

不应。指南要求在排除设置问题之前,先跳过智能体层面的调试。

详情

作者的原始描述

Identify and classify agent failures occurring before execution starts

repo: HKUDS/AgentPilot

热度

GitHub 星标
7.8k
排名
#12853
许可证
MIT
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能