Agent skill

Zero Iteration Failure Analysis

by HKUDS in HKUDS/OpenSpace

Identify and handle agent failures with 0 iterations as pre-execution system issues

MITAuto-check passedDevelopment

Install Zero Iteration Failure Analysis

skills CLI
$ npx skills add HKUDS/OpenSpace --skill zero-iteration-failure-analysis -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install HKUDS/OpenSpace zero-iteration-failure-analysis --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/HKUDS/OpenSpace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/benchmarks/gdpval/skills/zero-iteration-failure-analysis .claude/skills/zero-iteration-failure-analysis && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
zero-iteration-failure-analysis
GitHub stars
7.7k
Token cost
~1.1k tokens
SKILL.md length
310 words
Files
2
Skills in repo
199
Repo updated
First seen
Licence
MIT

At a glance

Identify and handle agent failures with 0 iterations as pre-execution system issues

  • Works in 4 steps: Confirm Zero-Iteration Status → Extract Error Context → Route to Appropriate Investigation → …
  • Tasks that involve Root cause analysis
  • SKILL.md covers When to Apply, Identification Checklist, Failure Mode Classification and Investigation Steps, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Zero Iteration Failure Analysis is an agent skill from HKUDS/OpenSpace. Identify and handle agent failures with 0 iterations as pre-execution system issues

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file.

It sits in Development, covering Root cause analysis. The repository describes itself as: "OpenSpace: The Skill Management Layer for AI Agents" -- https://open-space.cloud/. The licence is MIT.

When your agent uses it

  • Tasks that involve Root cause analysis

Example prompts

  • “/zero-iteration-failure-analysis”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Confirm Zero-Iteration Status
  2. Extract Error Context
  3. Route to Appropriate Investigation
  4. Document the Failure Mode

What it can do on your machine

Read from SKILL.md and the folder at commit 3827781. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are python, yaml and json).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Zero Iteration Failure Analysis loads about 1.1k tokens when it runs. Until then it costs about 29 tokens; SKILL.md has 310 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~29
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from HKUDS/OpenSpace at commit 3827781, republished under its MIT licence (© HKUDS). 310 words, ~1,113 tokens.

Download SKILL.mdSave it as .claude/skills/zero-iteration-failure-analysis/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
zero-iteration-failure-analysis
description
Identify and handle agent failures with 0 iterations as pre-execution system issues

Zero-Iteration Failure Analysis

This skill provides a workflow for detecting and responding to agent failures that occur before any iterations are executed. These failures indicate system-level problems rather than task execution issues.

When to Apply

Use this skill when analyzing agent execution results and you observe:

  • 0 iterations reported in the execution summary
  • No tool invocations in the conversation log
  • No artifacts created (no files, outputs, or intermediate results)
  • Error message present but no agent reasoning visible

Identification Checklist

A zero-iteration failure is confirmed when ALL of the following are true:

[ ] Iteration count = 0
[ ] Tool usage count = 0  
[ ] No conversation log beyond initial instruction
[ ] Error/self-report indicates failure before execution began

Failure Mode Classification

IndicatorFailure TypeInvestigation Level
0 iterations, 0 toolsPre-executionSystem-level
1+ iterations, error mid-taskExecutionAgent-level
1+ iterations, wrong outputReasoningAgent-level

Investigation Steps

Step 1: Confirm Zero-Iteration Status
python
def is_zero_iteration_failure(execution_result):
    """Check if failure occurred before any agent iterations."""
    return (
        execution_result.get('iterations', 0) == 0 and
        execution_result.get('tool_calls', []) == [] and
        execution_result.get('artifacts', []) == []
    )
Step 2: Extract Error Context

Examine any error message or self-report for clues:

  • Initialization errors: Environment setup, dependency missing, config invalid
  • Prompt parsing errors: Malformed instruction, missing required fields
  • Resource errors: Memory limits, timeout before start, permission denied
Step 3: Route to Appropriate Investigation
IF zero-iteration failure detected:
    → Escalate to SYSTEM investigation
    → Do NOT attempt agent-level debugging
    → Check: environment, dependencies, prompt format, resource limits
ELSE:
    → Proceed with standard agent failure analysis
Step 4: Document the Failure Mode

Record the failure with appropriate categorization:

yaml
failure_analysis:
  type: zero-iteration
  severity: high
  investigation_level: system
  agent_debugging_appropriate: false
  recommended_actions:
    - Check execution environment health
    - Verify prompt/input formatting
    - Review system logs for initialization errors
    - Validate resource availability

Common Causes and Resolutions

CauseSymptomsResolution
Environment crashImmediate error, no contextRestart environment, check dependencies
Prompt parse failureError mentions instruction formatValidate input schema, fix formatting
Resource exhaustionTimeout or memory error before startIncrease limits, optimize initialization
Permission deniedAccess error on startupCheck file/system permissions

Escalation Criteria

Immediately flag for system-level review when:

  • Zero-iteration failures occur repeatedly (>2 in same session)
  • Error messages indicate infrastructure issues
  • Multiple agents fail with same zero-iteration pattern

Example Analysis

EXECUTION SUMMARY:
- Iterations: 0
- Tools Used: None
- Artifacts: None
- Status: Failed
- Error: "Agent initialization failed: missing required config"

ANALYSIS:
✓ Zero-iteration failure detected
✓ Pre-execution failure mode confirmed
→ Action: Escalate to system investigation
→ Do NOT debug agent reasoning (no reasoning occurred)
→ Check: config loading, environment variables, initialization sequence

Anti-Patterns to Avoid

❌ Don't attempt to debug agent reasoning when 0 iterations occurred ❌ Don't assume the task instructions were unclear (agent never saw them) ❌ Don't retry with modified prompts before checking system health ❌ Don't categorize as "agent performance issue"

Integration with Failure Tracking

When logging failures, Tag zero-iteration failures distinctly:

json
{
  "failure_id": "xyz123",
  "failure_mode": "pre_execution",
  "iteration_count": 0,
  "requires_system_review": true,
  "agent_actionable": false
}

© HKUDS, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in benchmarks/gdpval/skills/zero-iteration-failure-analysis of HKUDS/OpenSpace.

  • SKILL.md
  • .skill_id

Open the folder on GitHubat commit 3827781

Compare with similar skills

Zero Iteration Failure Analysis next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Zero Iteration Failure Analysis compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Zero Iteration Failure Analysis this skillHKUDS/OpenSpace7.7k—~1.1kAutomated safety check: PassMIT
Code Design Rationale Investigatorcursor/plugins10k9 repos~2.6kAutomated safety check: PassNone
OpenLogi macOS Permissions TriageAprilNEA/OpenLogi23k—~2.5kAutomated safety check: NotesApache-2.0
Bug Finder for daisyUIsaadeghi/daisyui43k—~2.3kAutomated safety check: PassMIT
Root Cause Debugginggarrytan/gstack136k—~1.4kAutomated safety check: PassMIT
Review PRapache/shardingsphere21k—~6.4kAutomated safety check: PassApache-2.0

Similar skills

  • Official

    Digs into why code is shaped the way it is by checking git history, pull requests and connected tools in parallel, then reporting a cited read on the tradeoffs.

    10k GitHub starsUsed in 9 repos~2.6k tokens
    DevelopmentAuto-check passed
  • Decides whether an OpenLogi device problem on macOS is a privacy-permission (TCC) problem, using agent log lines, and says which identity needs which grant.

    23k GitHub stars~2.5k tokensUpdated 5 days ago
    DevelopmentAuto-check: notes
  • Bug Finder for daisyUI

    saadeghi/daisyui

    Investigates suspected bugs in the daisyUI monorepo through read-only analysis, then writes a decision-ready fix plan in tmp/bugs without changing any product code.

    43k GitHub stars~2.3k tokensUpdated 8 days ago
    DevelopmentAuto-check passed
  • Root Cause Debugging

    garrytan/gstack

    Investigates bugs, errors and stack traces in phases and requires a root-cause hypothesis to be confirmed before any fix is written.

    136k GitHub stars~1.4k tokensUpdated today
    DevelopmentAuto-check passed
  • Review PR

    apache/shardingsphere

    Review Apache ShardingSphere or user-authorized downstream pull requests and PR discussions from public or authorized repository evidence.

    21k GitHub stars~6.4k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Graph-Based Bug Tracing

    tirth8205/code-review-graph

    Traces a bug through a code knowledge graph, following callers, callees and execution flow before opening source files, within a small token budget.

    32k GitHub starsUsed in 1 repo~287 tokens
    DevelopmentAuto-check passed

More from HKUDS/OpenSpace

All 199 skills in this repo
  • Walks through producing a master audio track plus stems in Python, from checking a reference file and timing sections by BPM to effects, a zip archive and final verification.

    7.7k GitHub stars~2.9k tokensUpdated 1 mo ago
    Auto-check passed
  • Handle cascading data retrieval tool failures by falling back to embedded knowledge generation

    7.7k GitHub stars~765 tokensUpdated 1 mo ago
    Auto-check passed
  • Gives an agent a workaround when its code-execution sandbox keeps failing: save the Python script to a file and run it through the shell instead.

    7.7k GitHub stars~588 tokensUpdated 1 mo ago
    Auto-check passed
  • A recovery routine for agents whose sandboxed code runner keeps failing: save the Python script to disk, then run it through the shell and read the output.

    7.7k GitHub stars~652 tokensUpdated 1 mo ago
    Auto-check passed
  • Fallback ladder for failed sandboxed code runs, plus the habit of fixing the working directory first so generated files land in the right place.

    7.7k GitHub stars~1.1k tokensUpdated 1 mo ago
    Auto-check passed
  • Fallback workflow for executing Python code when executecodesandbox fails repeatedly

    7.7k GitHub stars~1.1k tokensUpdated 1 mo ago
    Auto-check passed

Categories

Questions about Zero Iteration Failure Analysis

What does Zero Iteration Failure Analysis do?

Identify and handle agent failures with 0 iterations as pre-execution system issues. Zero Iteration Failure Analysis is an agent skill from HKUDS/OpenSpace.

When should I use Zero Iteration Failure Analysis?

Zero Iteration Failure Analysis fits situations like: tasks that involve Root cause analysis.

How do I install Zero Iteration Failure Analysis in Claude Code?

Run `npx skills add HKUDS/OpenSpace --skill zero-iteration-failure-analysis -a claude-code`. Or copy the skill folder (benchmarks/gdpval/skills/zero-iteration-failure-analysis in HKUDS/OpenSpace) into .claude/skills/zero-iteration-failure-analysis in your project. Claude Code loads it when a task matches its description.

How do I install Zero Iteration Failure Analysis in Codex?

Run `npx skills add HKUDS/OpenSpace --skill zero-iteration-failure-analysis -a codex`. Or copy the skill folder (benchmarks/gdpval/skills/zero-iteration-failure-analysis in HKUDS/OpenSpace) into .agents/skills/zero-iteration-failure-analysis in your project. Codex loads it when a task matches its description.

Can I use Zero Iteration Failure Analysis in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add HKUDS/OpenSpace --skill zero-iteration-failure-analysis -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/zero-iteration-failure-analysis, .gemini/skills/zero-iteration-failure-analysis, .github/skills/zero-iteration-failure-analysis and .opencode/skills/zero-iteration-failure-analysis in your project.

What does Zero Iteration Failure Analysis need to run?

SKILL.md names no scripts, command-line tools or credentials: Zero Iteration Failure Analysis is instructions for the agent only. Our summary lists: Python 3.

Does Zero Iteration Failure Analysis access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Zero Iteration Failure Analysis safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Zero Iteration Failure Analysis use?

Zero Iteration Failure Analysis is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Zero Iteration Failure Analysis use?

About 1.1k tokens (SKILL.md is roughly 4.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Zero Iteration Failure Analysis?

Skills that share tags, products or a category with Zero Iteration Failure Analysis: Code Design Rationale Investigator (cursor/plugins, 10k stars), OpenLogi macOS Permissions Triage (AprilNEA/OpenLogi, 23k stars), Bug Finder for daisyUI (saadeghi/daisyui, 43k stars) and Root Cause Debugging (garrytan/gstack, 136k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Zero Iteration Failure Analysis?

HKUDS (a GitHub organization) maintains it in HKUDS/OpenSpace, which has 7,749 GitHub stars. The repository holds 199 skills in this directory. The repository was last updated on August 12, 2026.

Source: HKUDS/OpenSpace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.