Agent skill

Error Handling

by EmeaAppGbb in EmeaAppGbb/spec2cloud

Handle failures during spec2cloud execution. An agent skill from EmeaAppGbb/spec2cloud.

MITAuto-check passedAgent Workflows

Install Error Handling

skills CLI
$ npx skills add EmeaAppGbb/spec2cloud --skill error-handling -a claude-code

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

GitHub CLI
$ gh skill install EmeaAppGbb/spec2cloud error-handling --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/EmeaAppGbb/spec2cloud.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/error-handling .claude/skills/error-handling && 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
error-handling
GitHub stars
100
Token cost
~452 tokens
SKILL.md length
233 words
Files
1
Skills in repo
39
Repo updated
First seen
Licence
MIT

At a glance

Handle failures during spec2cloud execution. An agent skill from EmeaAppGbb/spec2cloud.

  • Works in 4 steps: Log the failure in audit.log with the… → Retry the same task — the sub-agent gets… → On retry, include the previous error as… → …
  • Encountering errors
  • SKILL.md covers Sub-Agent Failure, Stuck in a Loop, Corrupted or Missing State and Test Infrastructure Failures
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Error Handling is an agent skill from EmeaAppGbb/spec2cloud. Handle failures during spec2cloud execution. Covers sub-agent failures, stuck loops, corrupted state, and test infrastructure failures. Use when encountering errors, retrying failed tasks, or recovering from corrupted state.

Its SKILL.md is about 450 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows, covering Subagents and Error handling. The licence is MIT.

When your agent uses it

  • Encountering errors
  • Retrying failed tasks
  • Recovering from corrupted state

Example prompts

  • “/error-handling”

Workflow steps

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

  1. Log the failure in audit.log with the error details
  2. Retry the same task — the sub-agent gets another attempt
  3. On retry, include the previous error as context so the sub-agent can adjust
  4. There is no retry limit — loops run indefinitely

What it can do on your machine

Read from SKILL.md and the folder at commit 8e76618. 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

Error Handling loads about 452 tokens when it runs. Until then it costs about 60 tokens; SKILL.md has 233 words of instructions outside code blocks.

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

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 EmeaAppGbb/spec2cloud at commit 8e76618, republished under its MIT licence (© EmeaAppGbb). 233 words, ~452 tokens.

Download SKILL.mdSave it as .claude/skills/error-handling/SKILL.md (or your agent's skills folder).
name
error-handling
description
Handle failures during spec2cloud execution. Covers sub-agent failures, stuck loops, corrupted state, and test infrastructure failures. Use when encountering errors, retrying failed tasks, or recovering from corrupted state.

Error Handling

Sub-Agent Failure

If a sub-agent fails (crashes, produces invalid output, tests don't pass):

  1. Log the failure in audit.log with the error details
  2. Retry the same task — the sub-agent gets another attempt
  3. On retry, include the previous error as context so the sub-agent can adjust
  4. There is no retry limit — loops run indefinitely

Stuck in a Loop

If you detect you're making no progress (same test failing repeatedly, same error recurring):

  1. Keep going. Do not stop autonomously.
  2. The human is watching. Human Ctrl+C is the escape hatch.
  3. Try different approaches on each iteration — don't repeat the exact same fix
  4. Log every attempt so the human can diagnose the pattern

Corrupted or Missing State

If state.json is corrupted or contains invalid data:

  1. Log the corruption in audit.log
  2. Re-assess the project state from the repo itself:
    • Check which spec files exist (specs/prd.md, specs/frd-*.md, specs/features/*.feature)
    • Check which tests exist and whether they pass
    • Check which code exists
    • Check deployment status
  3. Reconstruct state.json from the observed repo state
  4. Continue from the determined phase

Test Infrastructure Failures

If tests fail to compile or the test runner itself fails (not test assertion failures):

  1. Log the infrastructure failure
  2. Attempt to fix the test infrastructure (missing dependencies, config issues)
  3. Re-run tests
  4. If the test infrastructure cannot be fixed, log the blocker and continue attempting

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

Files

Just SKILL.md in .github/skills/error-handling of EmeaAppGbb/spec2cloud.

Open the folder on GitHubat commit 8e76618

Compare with similar skills

Error Handling 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.

Error Handling compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Error Handling this skillEmeaAppGbb/spec2cloud100—~452Automated safety check: PassMIT
O2 Review Loopopenobserve/openobserve22k—~3.7kAutomated safety check: PassAGPL-3.0
V2 Perf Iterationmirage-project/mirage2.5k—~4kAutomated safety check: PassApache-2.0
Clone App Pat Proper-simmons/clone-app-pat-pro-public259—~1.9kAutomated safety check: NotesNone
Kimi Code DelegationCherryHQ/cherry-studio52k—~504Automated safety check: PassAGPL-3.0
Swarm Orchestrationruvnet/ruflo74k2 repos~779Automated safety check: PassMIT

Similar skills

  • O2 Review Loop

    openobserve/openobserve

    Splits a change into planner, coder and independent reviewer roles: you confirm a spec, a subagent implements it, and a separate reviewer checks each round's local WIP commit.

    22k GitHub stars~3.7k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • V2 Perf Iteration

    mirage-project/mirage

    Runtime-V2 performance-iteration workflow. An agent skill from mirage-project/mirage.

    2.5k GitHub stars~4k tokensUpdated 2 days ago
    Agent WorkflowsAuto-check passed
  • Clone App Pat Pro

    per-simmons/clone-app-pat-pro-public

    Clones any web app pixel-for-pixel from a URL. An agent skill from per-simmons/clone-app-pat-pro-public.

    259 GitHub stars~1.9k tokensUpdated 4 mo ago
    Agent WorkflowsAuto-check: notes
  • Kimi Code Delegation

    CherryHQ/cherry-studio

    Delegates one bounded repository task to Kimi Code in non-interactive prompt mode and reads back the final result from its JSON event stream.

    52k GitHub stars~504 tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Coordinates a hierarchical swarm of specialized agents through the claude-flow CLI for work that spans several files or modules at once.

    74k GitHub starsUsed in 2 repos~779 tokens
    Agent WorkflowsAuto-check passed
  • Team Mode

    oil-oil/codex-team-mode

    A skill your agent uses when a task may benefit from a bounded subagent for implementation, large-codebase discovery at task start, independent review, requested or pre-commit code simplification…

    216 GitHub stars~1.3k tokensUpdated 6 days ago
    Agent WorkflowsAuto-check passed

More from EmeaAppGbb/spec2cloud

All 39 skills in this repo
  • Azure Deployment

    EmeaAppGbb/spec2cloud

    Provision Azure infrastructure, deploy to Azure Container Apps, and verify via smoke tests.

    100 GitHub stars~1.8k tokensUpdated 5 mo ago
    Auto-check passed
  • Contract Generation

    EmeaAppGbb/spec2cloud

    Generate API contracts, shared TypeScript types, and infrastructure resource definitions from Gherkin scenarios and test files.

    100 GitHub stars~1.6k tokensUpdated 5 mo ago
    Auto-check passed
  • Ddd Modeling

    EmeaAppGbb/spec2cloud

    Create Domain-Driven Design proposals from product specs or brownfield extraction outputs.

    100 GitHub stars~2.4k tokensUpdated 5 mo ago
    Auto-check passed
  • Implementation

    EmeaAppGbb/spec2cloud

    Write application code to make failing tests pass using contract-driven, slice-based architecture.

    100 GitHub stars~2.8k tokensUpdated 5 mo ago
    Auto-check passed
  • Spec Refinement

    EmeaAppGbb/spec2cloud

    Review PRDs and FRDs through product and technical lenses. An agent skill from EmeaAppGbb/spec2cloud.

    100 GitHub stars~2.2k tokensUpdated 5 mo ago
    Auto-check passed
  • State Management

    EmeaAppGbb/spec2cloud

    Read, write, and maintain .spec2cloud/state.json across phases and increments.

    100 GitHub stars~1.5k tokensUpdated 5 mo ago
    Auto-check passed

Questions about Error Handling

What does Error Handling do?

Handle failures during spec2cloud execution. An agent skill from EmeaAppGbb/spec2cloud. Error Handling is an agent skill from EmeaAppGbb/spec2cloud. Handle failures during spec2cloud execution.

When should I use Error Handling?

Error Handling fits situations like: encountering errors; retrying failed tasks; recovering from corrupted state.

How do I install Error Handling in Claude Code?

Run `npx skills add EmeaAppGbb/spec2cloud --skill error-handling -a claude-code`. Or copy the skill folder (.github/skills/error-handling in EmeaAppGbb/spec2cloud) into .claude/skills/error-handling in your project. Claude Code loads it when a task matches its description.

How do I install Error Handling in Codex?

Run `npx skills add EmeaAppGbb/spec2cloud --skill error-handling -a codex`. Or copy the skill folder (.github/skills/error-handling in EmeaAppGbb/spec2cloud) into .agents/skills/error-handling in your project. Codex loads it when a task matches its description.

Can I use Error Handling 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 EmeaAppGbb/spec2cloud --skill error-handling -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/error-handling, .gemini/skills/error-handling, .github/skills/error-handling and .opencode/skills/error-handling in your project.

What does Error Handling need to run?

SKILL.md names no scripts, command-line tools or credentials: Error Handling is instructions for the agent only.

Does Error Handling 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 Error Handling 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 Error Handling use?

Error Handling 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 Error Handling use?

About 452 tokens (SKILL.md is roughly 1.8k 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 Error Handling?

Skills that share tags, products or a category with Error Handling: O2 Review Loop (openobserve/openobserve, 22k stars), V2 Perf Iteration (mirage-project/mirage, 2.5k stars), Clone App Pat Pro (per-simmons/clone-app-pat-pro-public, 259 stars) and Kimi Code Delegation (CherryHQ/cherry-studio, 52k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Error Handling?

EmeaAppGbb (a GitHub organization) maintains it in EmeaAppGbb/spec2cloud, which has 100 GitHub stars. The repository holds 39 skills in this directory. The repository was last updated on April 16, 2026.

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