Pular para o conteúdo
Skillpedia
Agentes7,8 mil · #12843

cascade-fail-recovery

O que ela faz

Esta skill diz à IA o que fazer quando buscas de dados repetidas, como a leitura de páginas da web ou pesquisas, continuam falhando. Ela é para quem tem tarefas de IA travadas quando as ferramentas online quebram.

Quando usar

  • ✓Quando uma ferramenta de leitura de página ou de busca falha duas ou mais vezes seguidas.
  • ✓Quando erros de rede impedem a IA de obter o conteúdo de que precisa.
  • ✓Quando quero que a IA conclua a tarefa em vez de desistir após erros de ferramenta.

Link da skill

https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/cascade-fail-recovery/SKILL.md

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/cascade-fail-recovery/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Minha IA continua falhando ao abrir páginas da web. Termine o relatório mesmo assim e me diga quais partes vieram do conhecimento dela.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

Depois de falhas repetidas, a IA reafirma o objetivo e escreve o resultado a partir do seu conhecimento embutido. Ela registra que as fontes externas não estavam disponíveis.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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:

  1. Acknowledge the limitation: Note that external data sources are unavailable
  2. Activate internal knowledge: Use pre-trained knowledge relevant to the task
  3. Generate content: Use write_file to create the deliverable from available knowledge
  4. 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

  1. Threshold: Trigger fallback after 2 consecutive retrieval failures
  2. No endless retries: Do not attempt more than 1 repair/retry cycle
  3. Preserve objective: Never switch to unrelated tasks when tools fail
  4. Transparency: Clearly mark any content that lacks external verification
  5. Document limitations: Note what could not be verified due to tool failures

Related Skills

  • write-file-fallback: Generate documents when data sources unavailable
  • task-context-preservation: Maintain objective continuity through errors
Perguntas frequentes

A resposta vai usar informações ao vivo?

Não. Este recurso de contingência usa o conhecimento embutido, então fatos mais recentes ou ao vivo podem estar faltando.

A IA diz que usou um recurso de contingência?

Sim. O guia manda registrar a contingência na saída.

Isto é o mesmo que tentar de novo?

Não. O guia manda mudar para o conhecimento embutido depois de falhas repetidas, em vez de continuar tentando consertar.

Detalhes

Descrição original do autor

Handle cascading data retrieval tool failures by falling back to embedded knowledge generation

repo: HKUDS/AgentPilot

Popularidade

Estrelas no GitHub
7,8 mil
Posição no ranking
#12843
Licença
MIT
Atualizada em
01/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas