一键导入
detect-zero-iteration-failures
Identify and handle pre-execution agent failures occurring before any iterations or tool usage
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Identify and handle pre-execution agent failures occurring before any iterations or tool usage
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Delegate tasks to OpenSpace — a full-stack autonomous worker for coding, DevOps, web research, and desktop automation, backed by an extensive MCP tool and skill library. Skills auto-improve through use, reducing token consumption over time. A cloud community lets agents share and collectively evolve reusable skills.
Incremental audio production with duration mismatch handling, adaptive stem extension, and pre-mix alignment verification
Audio production with diagnostic analysis, timecode parsing from documents, and verified export workflow
Incremental audio production with duration alignment handling, per-stem verification, and adaptive extension strategies
Step-by-step audio production with per-stem verification, timing alignment, and incremental quality gates
End-to-end audio production workflow with stems, effects, archiving, and verification
| name | detect-zero-iteration-failures |
| description | Identify and handle pre-execution agent failures occurring before any iterations or tool usage |
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.
Use this skill when analyzing agent task executions where:
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
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 |
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())
Look for these error patterns in system logs:
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
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
}
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, Agent response x3]
Agent Report: "Could not complete task due to X"
Analysis: EXECUTION_FAILURE
- Agent logic was executed
- Failure occurred during task performance
- Action: Debug agent reasoning and tool usage