Agent Skills › odysseus-dev/odysseus › terminal-recovery

terminal-recovery

GitHub

用于从失败的终端命令中恢复,通过证据驱动的故障诊断、最小化只读探测和受限重试来定位并解决命令执行问题。

resources/skills/agent/terminal-recovery/SKILL.md odysseus-dev/odysseus

触发场景

终端命令执行失败 命令超时或输出不完整

安装

npx skills add odysseus-dev/odysseus --skill terminal-recovery -g -y
更多选项

非标准路径

npx skills add https://github.com/odysseus-dev/odysseus/tree/dev/resources/skills/agent/terminal-recovery -g -y

不安装直接使用

npx skills use odysseus-dev/odysseus@terminal-recovery

指定 Agent (Claude Code)

npx skills add odysseus-dev/odysseus --skill terminal-recovery -a claude-code -g -y

安装 repo 全部 skill

npx skills add odysseus-dev/odysseus --all -g -y

预览 repo 内 skill

npx skills add odysseus-dev/odysseus --list

SKILL.md

Frontmatter
{
    "name": "terminal-recovery",
    "tags": [
        "terminal",
        "shell",
        "debugging",
        "recovery"
    ],
    "owner": "",
    "source": "builtin",
    "status": "published",
    "created": "2026-08-30T00:00:00Z",
    "version": "1.0.0",
    "category": "agent",
    "confidence": 1,
    "description": "Recover from failed terminal commands using evidence-driven diagnosis and bounded retries"
}

When to Use

Use when a command fails, times out, produces incomplete output, or behaves differently from what the task requires.

Procedure

  1. Read the command, exit status, standard output, and standard error before choosing a response.
  2. Confirm the working directory, relevant files, executable availability, permissions, and environment assumptions with minimal read-only probes.
  3. Classify the failure as syntax, missing dependency, wrong path, permissions, resource pressure, timeout, service state, or task logic.
  4. Change one relevant condition and retry the narrowest command that can test the diagnosis.
  5. For a long-running command, use the returned session identifier to poll or provide input instead of launching duplicates.
  6. After recovery, run the original acceptance check and inspect the resulting files or service state.

Pitfalls

  • Do not rerun an unchanged failing command repeatedly.
  • Do not install packages or change global configuration before confirming they are missing and necessary.
  • Do not launch a second server or training job before checking for an existing process and port or device conflicts.
  • Do not treat partial output or a zero exit status as proof that the requested state was produced.

Verification

  • The diagnosed cause is supported by command output or environment state.
  • The corrected command exits as expected.
  • The requested artifact, process, or state passes an independent acceptance check.

版本历史

  • 9712a54 当前 2026-10-19 00:03

同 Skill 集合

integrations/claude/skills/odysseus/SKILL.md
integrations/codex/skills/odysseus/SKILL.md
resources/skills/agent/artifact-completion/SKILL.md
resources/skills/agent/tool-discovery/SKILL.md
resources/skills/agent/verified-state-change/SKILL.md
resources/skills/communication/action-evidence-synthesis/SKILL.md
resources/skills/communication/reviewable-external-draft/SKILL.md
resources/skills/communication/scheduling-coordination/SKILL.md
resources/skills/communication/support-triage-and-routing/SKILL.md
resources/skills/dev/developer-docs/SKILL.md
resources/skills/general/test-driven-development/SKILL.md
resources/skills/media/multimodal-evidence/SKILL.md
resources/skills/research/web-research-fallback/SKILL.md

元信息

文件数
0
版本
f7f6abf
Hash
bac44ad4
收录时间
2026-10-19 00:03

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-03 07:47
浙ICP备14020137号-1