Langsung ke konten
Skillpedia
Menulis7.8k Β· #13031

context-anchored-fallback-report

Fungsinya

Skill ini memandu agent AI untuk tetap pada tujuan laporan awal saat beberapa alat data gagal. Skill ini ditujukan untuk orang yang memerlukan dokumen tetap dibuat meskipun sumbernya tidak tersedia.

Kapan dipakai

  • βœ“Saat dua alat data atau lebih gagal saat agent sedang menulis dokumen atau laporan.
  • βœ“Saat agent berisiko beralih ke tugas yang tidak berhubungan setelah error alat.
  • βœ“Saat laporan tetap harus ditulis dengan pengetahuan agent sendiri dan disimpan ke file.

Link skill

https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/write-file-fallback-report-enhanced-4bc5c2/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/write-file-fallback-report-enhanced-4bc5c2/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œTulis laporan pasar yang saya minta. Alat web terus gagal, jadi gunakan apa yang Anda ketahui, tetap pada topik ini, dan simpan sebagai file.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Setelah dua kegagalan, agent mengunci tujuan awal, berhenti mencoba ulang alat yang gagal, dan menulis laporan dengan pengetahuannya sendiri. Agent menyimpan keluaran dengan alat tulis file dan mencatat batasan sumbernya.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Context-Anchored Fallback Report Generation

Critical Warning: Context Drift Prevention

DO NOT ABANDON THE ORIGINAL TASK when tools fail. The most common failure mode is switching to an unrelated task after encountering tool errors.

CONTEXT_DRIFT_WARNING:
  IF tool_failures occur (read_webpage, search_web, execute_code_sandbox)
  THEN you MUST stay on the ORIGINAL task
  AND you MUST NOT switch to unrelated tasks
  AND you MUST generate output for the original goal using write_file

When to Use This Skill

Activate this workflow when multiple primary data source tools fail during document/report generation:

Trigger Decision Tree

START: Attempting to generate document/report
  β”‚
  β”œβ”€β†’ Tool #1 fails (read_webpage/search_web/read_file/execute_code_sandbox)?
  β”‚   β”‚
  β”‚   β”œβ”€β†’ YES β†’ Count = 1, Continue attempting
  β”‚   β”‚
  β”‚   └─→ NO β†’ Proceed normally with retrieved data
  β”‚
  β”œβ”€β†’ Tool #2 fails (same or different tool)?
  β”‚   β”‚
  β”‚   β”œβ”€β†’ YES β†’ Count = 2, TRIGGER FALLBACK NOW
  β”‚   β”‚         β”‚
  β”‚   β”‚         β”œβ”€β†’ LOCK to original task goal (write it down)
  β”‚   β”‚         β”œβ”€β†’ Stop attempting failing tools
  β”‚   β”‚         └─→ Generate document with write_file + embedded knowledge
  β”‚   β”‚
  β”‚   └─→ NO β†’ Continue with 1-2 more attempts max
  β”‚
  └─→ 2+ consecutive failures without document output?
      β”‚
      └─→ CRITICAL ERROR: You are drifting from task. STOP and apply this skill.

Tool Failure Indicators

FALLBACK_TRIGGERS = {
    "read_file": "returns binary/image data instead of text, or file not found",
    "search_web": "returns unknown error, empty results, or rate limited",
    "read_webpage": "returns unknown error, connection timeout, or blocked access",
    "execute_code_sandbox": "fails with unknown error or timeout repeatedly",
    "any_retrieval_tool": "2+ consecutive failures on data retrieval attempts"
}

Activation threshold: 2+ failures from the above triggers = IMMEDIATE fallback activation.

Step-by-Step Instructions

Step 0: Context Anchor (BEFORE pivoting)

CRITICAL STEP: Before any fallback action, write down the original task:

CONTEXT_ANCHOR = "[Original task goal from user request]"

Example:

CONTEXT_ANCHOR = "Create PACT Act veterans benefits document explaining claim process"

Rule: Every subsequent action must reference and serve this CONTEXT_ANCHOR. Never deviate.

Step 1: Detect and Declare Failure Pattern

When 2+ tool failures occur:

  1. State the limitation clearly (once, briefly):

    Note: External data sources (web search, webpage access) are currently unavailable.
    This report will be generated using established domain knowledge.
    
  2. Declare the pivot explicitly:

    Pivoting to write_file-based document generation with embedded knowledge.
    Task remains: [CONTEXT_ANCHOR]
    
  3. Do NOT:

    • Apologize repeatedly
    • Continue retrying failed tools beyond 2 attempts
    • Suggest the task cannot be completed
    • Switch to a different task

Step 2: Pre-Compute Available Knowledge

Before writing, inventory what you CAN provide:

# Knowledge inventory for the task
available_knowledge = {
    "domain_frameworks": "General best practices, standard procedures",
    "structural_templates": "Professional document formats for this type",
    "actionable_guidance": "Step-by-step processes based on established patterns",
    "placeholder_markers": "Where specific data would enhance (clearly marked)"
}

Step 3: Generate Document with write_file

Create professionally structured content:

# [Document Title - aligned with CONTEXT_ANCHOR]

## Executive Summary
[2-3 sentences on what this document covers, noting data source limitations if relevant]

## Background & Scope
[Context based on embedded domain knowledge]

## Core Content
[Organized sections with:
  - Clear headers (##, ###)
  - Bullet points and numbered lists
  - Tables where appropriate
  - Code blocks for technical content
]

## Data Source Notes
> **Note**: Specific data points that would typically come from [expected sources]
> were unavailable at generation time. Content reflects established practices
> in this domain.

## Actionable Recommendations
1. [Concrete step 1]
2. [Concrete step 2]
3. [Next steps for obtaining specific data if needed]

## Task Completion Status
- **Original Goal**: [CONTEXT_ANCHOR]
- **Completion Method**: Generated via write_file with embedde
Pertanyaan umum

Apa arti context drift di sini?

Artinya beralih ke tugas yang tidak berhubungan setelah error alat, yang diperingatkan oleh skill ini.

Kapan cadangan dimulai?

Skill ini meminta cadangan dipicu setelah percobaan alat kedua yang gagal.

Di mana laporan disimpan?

Agent menyimpannya sebagai file dengan alat penulisan file.

Detail

Deskripsi asli dari pembuat

Generate documents with write_file when retrieval tools fail, with explicit guardrails against task context drift

repo: HKUDS/AgentPilot

Popularitas

Bintang GitHub
7.8k
Peringkat
#13031
Lisensi
MIT
Diperbarui
1/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa