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.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
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
- Read the command, exit status, standard output, and standard error before choosing a response.
- Confirm the working directory, relevant files, executable availability, permissions, and environment assumptions with minimal read-only probes.
- Classify the failure as syntax, missing dependency, wrong path, permissions, resource pressure, timeout, service state, or task logic.
- Change one relevant condition and retry the narrowest command that can test the diagnosis.
- For a long-running command, use the returned session identifier to poll or provide input instead of launching duplicates.
- 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
Comments
- …
More skills from this repository
odysseus
95kLets your agent read and update your Odysseus data, such as to-dos, email, calendar, memory and documents, through a scoped token.
odysseus
95kLets your agent read and update your Odysseus data, such as to-dos, email, calendar, memory and documents, through a Codex Agent token.
artifact-completion
95kHelps your agent produce a requested file or document early, refine it from real output, and check it before saying it is finished.
tool-discovery
95kHelps your agent find the right tool for a task and check its required inputs before using it, instead of guessing.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.