Skip to content
Skillpedia
General coding95k · #1307

terminal-recovery

What it does

This skill guides the AI through fixing a command that failed, timed out or gave unexpected output. It is for anyone running commands who wants a clear diagnosis rather than repeated retries.

When to use it

  • ✓When a command fails and the error message is not clear.
  • ✓When a long-running command times out or stops giving useful output.
  • ✓When a command appears to succeed but the result still does not look right.

Skill link

https://github.com/odysseus-dev/odysseus/blob/dev/resources/skills/agent/terminal-recovery/SKILL.md

Copy 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

Use this skill to help me: https://github.com/odysseus-dev/odysseus/blob/dev/resources/skills/agent/terminal-recovery/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“The build command keeps failing with an error I do not understand. Find out why and fix it.”

5 new skills a week. 1 minute to read.

How it works

The AI reads the exit status and both output streams, then checks likely causes such as a missing tool or wrong path. It changes one condition and runs the narrowest command that tests that idea.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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.
FAQ

Will it keep retrying the same command?

No. The skill says not to rerun an unchanged failing command again and again.

Will it install software on its own?

The skill says to confirm a package is missing and needed before installing anything or changing global settings.

How does it confirm the fix worked?

It reruns the original check and inspects the resulting files or service state.

Details

Original description by the author

Recover from failed terminal commands using evidence-driven diagnosis and bounded retries

repo: odysseus-dev/odysseus

Popularity

GitHub stars
95k
Ranking position
#1307
License
AGPL-3.0
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills