Agent skill

Detect Zero Iteration Failure

by HKUDS in HKUDS/OpenSpace

Identify and classify agent failures occurring before execution starts

MITAuto-check passed

Install Detect Zero Iteration Failure

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

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

GitHub CLI
$ gh skill install HKUDS/OpenSpace detect-zero-iteration-failure --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/detect-zero-iteration-failure .claude/skills/detect-zero-iteration-failure && 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
detect-zero-iteration-failure
GitHub stars
7.7k
Token cost
~477 tokens
SKILL.md length
222 words
Files
2
Skills in repo
199
Repo updated
First seen
Licence
MIT

At a glance

Identify and classify agent failures occurring before execution starts

  • Works in 4 steps: Iteration Count: The agent reports 0… → Tool Usage: No tools were invoked during… → Artifacts: No documents, files, or code… → …
  • SKILL.md covers Identification Criteria, Diagnosis Strategy, Action Plan and Example Indicators
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Detect Zero Iteration Failure is an agent skill from HKUDS/OpenSpace. Identify and classify agent failures occurring before execution starts

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

The repository describes itself as: "OpenSpace: The Skill Management Layer for AI Agents" -- https://open-space.cloud/. The licence is MIT.

Example prompts

  • “/detect-zero-iteration-failure”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  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.

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.

    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

Detect Zero Iteration Failure loads about 477 tokens when it runs. Until then it costs about 25 tokens; SKILL.md has 222 words of instructions outside code blocks.

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

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). 222 words, ~477 tokens.

Download SKILL.mdSave it as .claude/skills/detect-zero-iteration-failure/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
detect-zero-iteration-failure
description
Identify and classify agent failures occurring before execution starts

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

text
Status: Failed
Iterations: 0
Tools Called: []
Error: "Session initialization failed: Missing environment variable"

© 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/detect-zero-iteration-failure of HKUDS/OpenSpace.

  • SKILL.md
  • .skill_id

Open the folder on GitHubat commit 3827781

Compare with similar skills

Detect Zero Iteration Failure 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.

Detect Zero Iteration Failure compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Detect Zero Iteration Failure this skillHKUDS/OpenSpace7.7k—~477Automated safety check: PassMIT
Cascading Failure DetectionTencent/AI-Infra-Guard6.8k—~593Automated safety check: PassApache-2.0
Nemoclaw Maintainer Classify CI FailureNVIDIA/NemoClaw23k—~806Automated safety check: PassApache-2.0
Pii Detectruvnet/ruflo74k1 repos~350Automated safety check: NotesMIT
StartDonchitos/Claude-Code-Game-Studios26k—~6.4kAutomated safety check: PassMIT
Detecting API Enumeration Attacksmukul975/Anthropic-Cybersecurity-Skills34k—~3.7kAutomated safety check: PassApache-2.0

Similar skills

  • Cascading Failure Detection

    Tencent/AI-Infra-Guard

    Detect error propagation, chain failures, and single-point breakdowns that cascade across agent workflows.

    6.8k GitHub stars~593 tokensUpdated today
    SecurityAuto-check passed
  • Classify one failed NemoClaw GitHub Actions job using bounded, redacted logs and optional retained artifacts.

    23k GitHub stars~806 tokensUpdated today
    Testing & QAAuto-check passed
  • Pii Detect

    ruvnet/ruflo

    Detect and flag personally identifiable information (PII) in text, code, and configurations.

    74k GitHub starsUsed in 1 repo~350 tokens
    Auto-check: notes
  • Start

    Donchitos/Claude-Code-Game-Studios

    First-time onboarding — asks where you are, then guides you to the right workflow.

    26k GitHub stars~6.4k tokensUpdated 9 days ago
    Game DevelopmentAuto-check passed
  • Detecting API Enumeration Attacks

    mukul975/Anthropic-Cybersecurity-Skills

    Detect API enumeration attacks (BOLA/IDOR, OWASP API1:2023) by writing SIEM detection rules that flag sequential or UUID identifier iteration, parameter tampering, and mixed 200/401/403 response…

    34k GitHub stars~3.7k tokensUpdated 1 mo ago
    SecurityAuto-check passed
  • Detecting AWS Cloudtrail Anomalies

    mukul975/Anthropic-Cybersecurity-Skills

    Detect unusual API call patterns in AWS CloudTrail logs using boto3, statistical baselining, and behavioral analysis to identify credential compromise, privilege escalation, and unauthorized…

    34k GitHub stars~751 tokensUpdated 1 mo ago
    SecurityAuto-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

Questions about Detect Zero Iteration Failure

What does Detect Zero Iteration Failure do?

Identify and classify agent failures occurring before execution starts. Detect Zero Iteration Failure is an agent skill from HKUDS/OpenSpace.

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

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

How do I install Detect Zero Iteration Failure in Codex?

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

Can I use Detect Zero Iteration Failure 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 detect-zero-iteration-failure -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/detect-zero-iteration-failure, .gemini/skills/detect-zero-iteration-failure, .github/skills/detect-zero-iteration-failure and .opencode/skills/detect-zero-iteration-failure in your project.

What does Detect Zero Iteration Failure need to run?

SKILL.md names no scripts, command-line tools or credentials: Detect Zero Iteration Failure is instructions for the agent only.

Does Detect Zero Iteration Failure 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 Detect Zero Iteration Failure 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 Detect Zero Iteration Failure use?

Detect Zero Iteration Failure 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 Detect Zero Iteration Failure use?

About 477 tokens (SKILL.md is roughly 1.9k 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 Detect Zero Iteration Failure?

Skills that share tags, products or a category with Detect Zero Iteration Failure: Cascading Failure Detection (Tencent/AI-Infra-Guard, 6.8k stars), Nemoclaw Maintainer Classify CI Failure (NVIDIA/NemoClaw, 23k stars), Pii Detect (ruvnet/ruflo, 74k stars) and Start (Donchitos/Claude-Code-Game-Studios, 26k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Detect Zero Iteration Failure?

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.