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.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
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:
Diagnose — classify the failure as transient (network blip, rate limit, timeout) or structural (wrong selector, missing auth, invalid schema, permission denied).
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.
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
Comments
- …
More skills from this repository
browser-edge-cases
11kHelps your agent fix browser automation that fails on tricky sites such as LinkedIn, X or pages with heavy scripts.
hive.browser-automation
11kTeaches your agent to control your own Chrome browser with the hive-browser tool, using screenshots and clicks.
hive.colony-progress-tracker
11kHelps your agent claim tasks and record its steps and checks in a shared database, so work is tracked as it goes.
hive.context-preservation
11kHelps your agent save key facts from long tool results into notes before older details are removed from its memory.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.