Agent Skillsaiming-lab/MetaClaw › graceful-error-recovery

graceful-error-recovery

GitHub

提供系统化错误恢复流程,强调诊断失败根因后再重试或调整策略,避免盲目重试和静默吞错。

memory_data/skills/graceful-error-recovery/SKILL.md aiming-lab/MetaClaw

触发场景

工具调用失败 API请求异常 命令执行报错

安装

npx skills add aiming-lab/MetaClaw --skill graceful-error-recovery -g -y
更多选项

非标准路径

npx skills add https://github.com/aiming-lab/MetaClaw/tree/main/memory_data/skills/graceful-error-recovery -g -y

不安装直接使用

npx skills use aiming-lab/MetaClaw@graceful-error-recovery

指定 Agent (Claude Code)

npx skills add aiming-lab/MetaClaw --skill graceful-error-recovery -a claude-code -g -y

安装 repo 全部 skill

npx skills add aiming-lab/MetaClaw --all -g -y

预览 repo 内 skill

npx skills add aiming-lab/MetaClaw --list

SKILL.md

Frontmatter
{
    "name": "graceful-error-recovery",
    "category": "general",
    "description": "Use this skill when a tool call, command, or API request fails. Diagnose the root cause systematically before retrying or changing approach. Do not retry the same failing call without first understanding why it failed."
}

Graceful Error Recovery

When something fails, diagnose before retrying.

Process:

  1. Read the full error message — do not skip the stack trace.
  2. Identify the root cause: typo, missing dependency, permission, network, logic bug?
  3. Fix the root cause, not just the symptom.
  4. If the fix is uncertain, try the simplest hypothesis first.
  5. If two retries fail, step back and consider an alternative approach.

Anti-patterns:

  • Retrying the same failed call in a loop.
  • Swallowing errors silently with bare except: pass.
  • Blaming the environment before checking your own code.

版本历史

  • 922caf3 当前 2026-07-25 11:08

同 Skill 集合

memory_data/skills/agent-task-handoff/SKILL.md
memory_data/skills/async-communication-etiquette/SKILL.md
memory_data/skills/audience-aware-communication/SKILL.md
memory_data/skills/auth-and-authorization-patterns/SKILL.md
memory_data/skills/avoid-acting-on-assumptions/SKILL.md
memory_data/skills/avoid-hallucinating-specifics/SKILL.md
memory_data/skills/avoid-scope-creep/SKILL.md
memory_data/skills/clarify-ambiguous-requests/SKILL.md
memory_data/skills/codebase-navigation/SKILL.md
memory_data/skills/context-window-management/SKILL.md
memory_data/skills/data-validation-first/SKILL.md
memory_data/skills/debug-systematically/SKILL.md
memory_data/skills/do-not-retry-without-diagnosis/SKILL.md
memory_data/skills/git-workflow/SKILL.md
memory_data/skills/idempotent-script-design/SKILL.md
memory_data/skills/input-validation-and-sanitization/SKILL.md
memory_data/skills/plan-before-multi-step-execution/SKILL.md
memory_data/skills/prioritize-by-impact/SKILL.md
memory_data/skills/professional-email-drafting/SKILL.md
memory_data/skills/robust-error-handling-in-scripts/SKILL.md
memory_data/skills/secrets-management/SKILL.md
memory_data/skills/secure-code-review/SKILL.md
memory_data/skills/source-evaluation/SKILL.md
memory_data/skills/sql-best-practices/SKILL.md
memory_data/skills/structured-logging-and-observability/SKILL.md
memory_data/skills/structured-progress-update/SKILL.md
memory_data/skills/structured-research-workflow/SKILL.md
memory_data/skills/structured-step-by-step-reasoning/SKILL.md
memory_data/skills/task-decomposition/SKILL.md
memory_data/skills/technical-writing-clarity/SKILL.md
memory_data/skills/test-before-ship/SKILL.md
memory_data/skills/tool-selection-strategy/SKILL.md
memory_data/skills/uncertainty-acknowledgment/SKILL.md
memory_data/skills/verify-before-irreversible-action/SKILL.md
memory_data/skills/visualization-selection/SKILL.md

元信息

文件数
0
版本
922caf3
Hash
ab70d1be
收录时间
2026-07-25 11:08

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-27 01:13
浙ICP备14020137号-1 $访客地图$