detect-zero-iteration-failures
What it does
This skill is a checklist for spotting agent runs that never started real work. It is for people reviewing agent logs who need to find out whether the problem came from the system.
When to use it
- βWhen an agent run shows no iterations, no tool use and no files created.
- βWhen the conversation log contains only the original instruction and no agent replies.
- βWhen I need to sort a failure into a category such as initialization crash, environment issue or resource exhaustion.
Skill link
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/detect-zero-iteration-failures/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βPlease check my agent log. It shows no tool use and no files, so tell me which category this failure falls into.β
5 new skills a week. 1 minute to read.
How it works
The AI runs through a checklist of indicators, then matches the failure to a category, such as an initialization crash, a missing dependency or exhausted resources.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Detect Zero-Iteration Failures
This skill helps identify and properly categorize agent failures that occur before any task execution begins. These failures require system-level investigation rather than agent-level debugging.
When to Apply
Use this skill when analyzing agent task executions where:
- Iteration count is 0 - The agent completed zero iterations
- No tool usage - No tools were invoked during the execution
- No artifacts created - No files, documents, or outputs were produced
- Minimal or no conversation log - Only the user instruction exists, with no agent responses
Identification Checklist
Check the following indicators to confirm a zero-iteration failure:
[ ] Iterations reported: 0
[ ] Tool invocations: None
[ ] Files created: None
[ ] Conversation turns: 1 (user instruction only)
[ ] Agent self-report: Indicates failure before execution began
Failure Categories
Zero-iteration failures typically indicate one of these pre-execution issues:
| Category | Description | Investigation Focus |
|---|---|---|
| Initialization crash | Agent failed during setup | System logs, environment config |
| Environment issue | Missing dependencies or resources | Infrastructure, permissions |
| Prompt parsing error | Input could not be processed | Prompt format, encoding |
| Resource exhaustion | Quota or limits exceeded | System capacity, rate limits |
Diagnostic Steps
Step 1: Verify Zero-Iteration Indicators
def is_zero_iteration_failure(execution_log):
"""Check if execution shows zero-iteration failure pattern."""
indicators = {
'iterations': execution_log.get('iterations', 0) == 0,
'tools_used': len(execution_log.get('tool_calls', [])) == 0,
'artifacts': len(execution_log.get('files_created', [])) == 0,
'conversation_length': len(execution_log.get('messages', [])) <= 1
}
return all(indicators.values())
Step 2: Check System-Level Indicators
Look for these error patterns in system logs:
- Environment errors: Missing packages, permission denied, path not found
- Initialization errors: Connection failures, timeout during setup
- Resource errors: Memory exceeded, quota limits, rate limiting
- Parsing errors: Invalid JSON, encoding issues, malformed input
Step 3: Route Investigation Appropriately
IF zero-iteration failure detected:
βββ Do NOT debug agent logic or prompt instructions
βββ DO investigate:
βββ System initialization logs
βββ Environment configuration
βββ Resource allocation and limits
βββ Input parsing and validation
Response Actions
For Analysts
- Flag as system-level issue - Do not attribute to agent behavior
- Check infrastructure health - Verify system components are operational
- Review recent changes - Look for deployments, config updates, or quota changes
- Escalate appropriately - Route to infrastructure/platform team, not agent developers
For Automated Systems
def categorize_failure(execution_log):
"""Categorize failure type for routing."""
if is_zero_iteration_failure(execution_log):
return {
'category': 'PRE_EXECUTION_FAILURE',
'severity': 'HIGH',
'investigation_team': 'INFRASTRUCTURE',
'agent_debug_required': False,
'recommended_actions': [
'Check system initialization logs',
'Verify environment configuration',
'Review resource quotas and limits',
'Validate input parsing pipeline'
]
}
else:
return {
'category': 'EXECUTION_FAILURE',
'severity': 'MEDIUM',
'investigation_team': 'AGENT_DEVELOPMENT',
'agent_debug_required': True
}
Example Analysis
Zero-Iteration Failure Example:
Task ID: 69a8ef86-phase1
Iterations: 0
Tools Used: None
Files Created: None
Messages: [User instruction only]
Agent Report: "Failed before executing any iterations"
Analysis: PRE_EXECUTION_FAILURE
- No agent logic was executed
- Failure occurred during initialization
- Action: Investigate system environment, not agent prompts
Normal Execution Failure (for contrast):
Task ID: abc123
Iterations: 3
Tools Used: [read_file, write_file, shell_agent]
Files Created: [output.txt]
Messages: [User instruction, Age
FAQ
What is an initialization crash?
It is a failure while the agent is still starting up, before any task work begins.
Which signs confirm this kind of failure?
Zero iterations reported, no tool invocations, no files created, and only the user instruction in the log.
Who should look into these failures?
The guide says to look at the system side first, such as logs and environment settings.
Details
Original description by the author
Identify and handle pre-execution agent failures occurring before any iterations or tool usage
repo: HKUDS/AgentPilot
Popularity
- GitHub stars
- 7.8k
- Ranking position
- #12854
- License
- MIT
- Updated
- 11/1/2026
Comments
- β¦
More skills from this repository
agentpilot
7.8kHelps your agent improve a project step by step by preparing a task and running the AgentPilot loop that proposes, tests and scores changes.
openspace
7.8kHelps your agent set up OpenSpace, a tool that stores and fetches agent skills, and connect it to your AI app through MCP.
rsi-arena
7.8kHelps your agent set up and run standard AI benchmark tests, such as AIME and Terminal-Bench, to compare different improvement methods.
experiment-guide
7.8kHelps your agent plan small experiments, read their results and record findings while it investigates how to improve a program.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.