terminal-recovery
できること
このスキルは、失敗した、タイムアウトした、または想定外の出力を返したコマンドを直す過程をAIに導きます。コマンドを実行していて、繰り返しの再試行ではなく明確な原因の診断がほしい人向けです。
使う場面
- ✓コマンドが失敗し、エラーメッセージの意味が分からないとき。
- ✓長く動くコマンドがタイムアウトし、役に立つ出力を返さなくなったとき。
- ✓コマンドは成功したように見えるが、結果がまだおかしいとき。
スキルのリンク
https://github.com/odysseus-dev/odysseus/blob/dev/resources/skills/agent/terminal-recovery/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“ビルドコマンドが、私が理解できないエラーで失敗し続けています。原因を見つけて直してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
AIは終了ステータスと両方の出力ストリームを読み、不足しているツールや誤ったパスなどの考えられる原因を確認します。1つの条件だけを変え、そのアイデアを試す最も狭いコマンドを実行します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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.
よくある質問
同じコマンドを繰り返し再実行しますか?
いいえ。スキルは、変更のない失敗したコマンドを何度も再実行しないよう述べています。
勝手にソフトウェアをインストールしますか?
スキルは、パッケージが不足していて必要だと確認してから、インストールやグローバル設定の変更をするよう述べています。
修正がうまくいったとどう確認しますか?
元の確認を再実行し、結果のファイルやサービスの状態を調べます。
詳細
作者による元の説明
Recover from failed terminal commands using evidence-driven diagnosis and bounded retries
repo: odysseus-dev/odysseus
人気
- GitHubのスター
- 95k
- ランキング
- #1307
- ライセンス
- AGPL-3.0
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
odysseus
95kエージェントが、スコープ付きトークンを通して、ToDo、メール、カレンダー、メモリ、ドキュメントなどのOdysseusのデータを読み書きできるよう支援します。
odysseus
95kエージェントが、Codex Agentトークンを通して、ToDo、メール、カレンダー、メモリ、ドキュメントなどのOdysseusのデータを読み書きできるよう支援します。
artifact-completion
95kエージェントが、要求されたファイルや文書を早めに作成し、実際の出力をもとに改良して、完成と報告する前に確認できるよう支援します。
tool-discovery
95kエージェントが、タスクに合ったツールを見つけ、使う前に必要な入力を確認できるよう支援します。推測で使わないようにします。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。