360 Secure SkillHub
360 安全技能中心

Exec Error Doctor

针对 OpenClaw exec、Shell、GitHub CLI、ClawHub CLI 等执行失败,先按错误文本做模式分类,再对照分类到修复的映射给出针对性处理,并提供 GitHub 仓库搜索与 ClawHub 发布的带重试校验脚本,强调区分瞬时错误与硬错误。

分类:开发
bluebirdback
bluebirdback
热度 29.43
最近更新 2026-05-11 17:25:56

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add bluebirdback/exec-error-doctor
兼容性
通用兼容
联网要求
需要联网
数据出网
可选出网
Metadata
name
exec-error-doctor
description
Diagnose and mitigate exec-related command failures across tools (OpenClaw exec output, shell errors, GitHub CLI, ClawHub CLI, missing binaries, auth failures, JSON field mismatch, permission errors, timeouts, and transient platform states). Use when a command returns non-zero, signal kill, ENOENT, unknown JSON field, or similar execution failures and you need fast triage + concrete next fixes.

Exec Error Doctor

Triage execution failures quickly, classify root cause, and apply targeted fixes instead of random retries.

Quick workflow

  1. Run triage on raw error text:
    • scripts/exec_error_triage.sh <error_text_or_file>
  2. Apply the category fix from references/error-taxonomy.md.
  3. Re-run with safer wrappers when relevant:
    • GitHub CLI search schema drift: scripts/gh_search_repos_safe.sh
    • ClawHub publish visibility lag: scripts/clawhub_publish_safe.sh
  4. Confirm with one clean re-run and capture outcome.

Standard commands

Generic triage

bash scripts/exec_error_triage.sh "Unknown JSON field: nameWithOwner"

Safe GitHub repo search (schema-aware)

bash scripts/gh_search_repos_safe.sh "safe-exec skill" 15

Safe ClawHub publish (retry-aware inspect)

bash scripts/clawhub_publish_safe.sh ./my-skill my-skill "My Skill" 1.0.0 "Initial release"

Rules

  • Prefer classification before fixes.
  • Treat Skill not found right after publish as potentially transient if publish already returned OK.
  • For gh search repos --json, prefer fullName (not nameWithOwner).
  • Distinguish transient errors (retry/backoff) from hard errors (auth, permission, invalid args).

Resources

  • references/error-taxonomy.md: category→fix map.
  • scripts/exec_error_triage.sh: pattern-based classifier.
  • scripts/gh_search_repos_safe.sh: resilient GitHub search wrapper.
  • scripts/clawhub_publish_safe.sh: publish + retry verification wrapper.