hive.error-recovery

仓库创建 2026年1月12日最近提交 1 个月前SkillHot 收录 21 天前
▸ 精选理由

提高代理在不稳定工具调用下的鲁棒性与效率。

这个 Skill 做什么

工具调用失败时按决策树诊断并采取重试或修复措施,而非盲目重试或放弃。

遇到工具调用失败时按决策树来排查:先判断是短暂错误(网络、限流)还是结构性问题(权限、schema、选择器),再决定重试、修输入或记录失败。会在自动化流程、集成调用或接口不稳定时用到,避免盲目无限重试或直接放弃。核心特点是结构化诊断+可修复优先,能更高效恢复服务。

▸ 展开 SKILL.md 英文原文

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

Skill 开发管理错误恢复重试策略故障诊断通用
1.1w
Stars
5.7k
Forks
18
仓库内 Skill
+136
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/aden-hive/hive/main/core/framework/skills/_default_skills/error-recovery/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/aden-hive/hive/main/core/framework/skills/_default_skills/error-recovery/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
## 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 ins
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有