cascade-fail-recovery
できること
このスキルは、ウェブページの読み取りや検索などのデータ取得が繰り返し失敗するときに、AIがどうすべきかを示します。オンラインのツールが壊れるとAIのタスクが止まってしまう人向けです。
使う場面
- ✓ウェブページの読み取りツールや検索ツールが、2回以上連続で失敗したとき。
- ✓ネットワークのエラーで、必要な内容をAIが取得できないとき。
- ✓ツールのエラーで諦めず、AIにタスクを完了させたいとき。
スキルのリンク
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/cascade-fail-recovery/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“AIがウェブページを開けずに困っています。それでもレポートを完成させ、どの部分が自身の知識によるものかを教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
繰り返し失敗した後、AIは目標を言い直し、内蔵の知識をもとに結果を書きます。外部の情報源が使えなかったことを注記します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Cascade Failure Recovery
Purpose
When multiple data retrieval tools (read_webpage, search_web) fail in succession, immediately fall back to generating content from embedded knowledge rather than attempting repairs or abandoning the task. This preserves task context and ensures completion.
When to Apply
Use this pattern when you observe:
- 2+ consecutive failures from data retrieval tools
- Network/access errors preventing web content retrieval
- Risk of task abandonment due to tool errors
Recovery Procedure
Step 1: Recognize Cascading Failure
Identify the failure pattern:
Iteration N: read_webpage failed - connection error
Iteration N+1: search_web failed - timeout/unavailable
Iteration N+2: [risk] Agent may abandon task or switch objectives
Step 2: Preserve Task Context
Before switching strategies, explicitly restate the original objective:
ORIGINAL OBJECTIVE: [Restate the core task goal]
CONTEXT PRESERVED: [Key requirements, constraints, deliverables]
Step 3: Invoke Fallback Strategy
Immediately switch to embedded knowledge generation:
- Acknowledge the limitation: Note that external data sources are unavailable
- Activate internal knowledge: Use pre-trained knowledge relevant to the task
- Generate content: Use write_file to create the deliverable from available knowledge
- Document the fallback: Note in the output what information could not be verified externally
Step 4: Execute write_file
Generate the required document:
# Fallback to generating from embedded knowledge
write_file(
path="output/document.md",
content="[Generate content from internal knowledge base]"
)
Example Application
Scenario: PACT Act veterans benefits document needed, but web access failing
Wrong approach (observed failure):
Iter 11: read_webpage failed - access error
Iter 12: search_web failed - unavailable
Iter 13: [ABANDONED] Switched to unrelated musician payroll task
Correct approach (with this skill):
Iter 11: read_webpage failed - access error
Iter 12: search_web failed - unavailable
Iter 13: CASCADE FAIL DETECTED - invoking fallback
Iter 14: write_file - generate PACT Act document from embedded knowledge
- Note: "External verification unavailable; content based on training knowledge"
Guidelines
- Threshold: Trigger fallback after 2 consecutive retrieval failures
- No endless retries: Do not attempt more than 1 repair/retry cycle
- Preserve objective: Never switch to unrelated tasks when tools fail
- Transparency: Clearly mark any content that lacks external verification
- Document limitations: Note what could not be verified due to tool failures
Related Skills
write-file-fallback: Generate documents when data sources unavailabletask-context-preservation: Maintain objective continuity through errors
よくある質問
回答は最新の情報を使いますか?
いいえ。この代替策は内蔵の知識を使うため、新しい情報やリアルタイムの情報は含まれないことがあります。
AIは代替策を使ったと伝えますか?
はい。ガイドは、出力に代替策を使ったことを記すよう述べています。
再試行と同じですか?
いいえ。ガイドは、繰り返し失敗した後は修復を続けるのではなく、内蔵の知識に切り替えるよう述べています。
詳細
作者による元の説明
Handle cascading data retrieval tool failures by falling back to embedded knowledge generation
repo: HKUDS/AgentPilot
人気
- GitHubのスター
- 7.8k
- ランキング
- #12843
- ライセンス
- MIT
- 更新日
- 2026/11/1
コメント
- …
このリポジトリの他のスキル
agentpilot
7.8kエージェントが、作業を準備し、変更案を提案してテストし、評価するAgentPilotのループを実行することで、プロジェクトを段階的に改善できるよう支援します。
openspace
7.8kエージェントが、スキルを保存し取り出すツールであるOpenSpaceをセットアップし、MCPを通じてAIアプリに接続できるよう支援します。
rsi-arena
7.8kエージェントが、AIMEやTerminal-Benchなどの標準的なAIベンチマークテストをセットアップして実行し、異なる改善方法を比較できるよう支援します。
experiment-guide
7.8kエージェントが、プログラムを改善する方法を調べる間に、小さな実験を計画し、その結果を読み、発見を記録できるよう支援します。
似ているスキル
add-model-provider
394k安全なセットアップコマンドで新しいAIモデルプロバイダーをOpenClawに接続し、APIキーを平文で残さず、ライブテストを行うようエージェントを支援します。
acp-router
394kClaude CodeやCursorなどのコーディングアシスタントに、OpenClaw経由でタスクを渡し、その作業がそのツール内で行われるようエージェントを支援します。
browser-automation
394kログイン、タブ、応答しなくなったページからの復旧を含め、Webページを段階的に操作するようエージェントに教えます。