Skip to content
Skillpedia
Agents11k · #11801

hive.error-recovery

What it does

This skill gives an AI a simple decision plan for steps that fail. It is for people who run AI agents that use tools and need them to recover on their own.

When to use it

  • ✓When a tool call fails with a timeout, a rate limit or wrong input.
  • ✓When the same tool keeps failing and the AI should try another approach.
  • ✓When a failed item must be recorded instead of being silently dropped.

Skill link

https://github.com/aden-hive/hive/blob/main/core/framework/skills/_default_skills/error-recovery/SKILL.md

Copy 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

Use this skill to help me: https://github.com/aden-hive/hive/blob/main/core/framework/skills/_default_skills/error-recovery/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“I want you to retry a failed step once and then try a different way instead of giving up.”

5 new skills a week. 1 minute to read.

How it works

The AI first decides whether the failure is temporary or permanent. It retries once for temporary issues, fixes the input when it can and records the failure when it cannot.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Operational Protocol: Error Recovery

When a tool call fails:

  1. Diagnose — classify the failure as transient (network blip, rate limit, timeout) or structural (wrong selector, missing auth, invalid schema, permission denied).

  2. Decide:

    • Transient → retry once.
    • Structural + fixable → fix the input and retry.
    • Structural + unfixable → record the failure and move to the next item.
    • Blocking all progress → escalate.
  3. Adapt — if the same tool has failed {{max_retries_per_tool}}+ times in a row, stop using it and find an alternative approach.

Never silently drop a failed item. If the item is a task in the colony queue, write the failure to the DB instead of an in-memory buffer:

sqlite3 "$DB_PATH" "UPDATE tasks SET status='failed', last_error='<one-sentence reason>', completed_at=datetime('now'), updated_at=datetime('now') WHERE id='<task-id>' AND worker_id='<your-worker-id>';"

The tasks.retry_count column and the stale-claim reclaimer handle auto-retry for crashes; your job is the within-run decision tree above. See hive.colony-progress-tracker for the full queue protocol.

FAQ

What counts as a temporary failure?

A network problem, a rate limit or a timeout counts as temporary and is retried once.

What happens after repeated failures?

The AI stops using that tool and looks for another approach.

Are failed items lost?

No. They are recorded with a reason so they are not dropped silently.

Details

Original description by the author

Follow a structured recovery decision tree when tool calls fail instead of blindly retrying or giving up.

repo: aden-hive/hive

Popularity

GitHub stars
11k
Ranking position
#11801
License
Apache-2.0
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills