context-anchored-fallback-report
यह क्या करती है
यह स्किल AI एजेंट को कई डेटा टूल फेल होने पर भी मूल रिपोर्ट के लक्ष्य से न भटकने का निर्देश देती है। यह उन लोगों के लिए है जिन्हें स्रोत न होने पर भी दस्तावेज़ चाहिए।
कब इस्तेमाल करें
- ✓जब एजेंट दस्तावेज़ या रिपोर्ट लिखते समय दो या अधिक डेटा टूल फेल हो जाएं।
- ✓जब टूल की त्रुटियों के बाद एजेंट किसी असंबंधित काम पर जाने का खतरा हो।
- ✓जब रिपोर्ट अपनी जानकारी से लिखनी हो और फ़ाइल में सेव होनी हो।
Skill का लिंक
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/write-file-fallback-report-enhanced-4bc5c2/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरी मांगी हुई बाज़ार रिपोर्ट लिखिए। वेब टूल बार-बार फेल हो रहे हैं, इसलिए जो आप जानते हैं वही इस्तेमाल कीजिए, इसी विषय पर रहिए और उसे फ़ाइल में सेव कीजिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
दूसरी विफलता के बाद एजेंट मूल लक्ष्य पर टिक जाता है, फेल होने वाले टूल दोबारा आज़माना बंद करता है और अपनी जानकारी से रिपोर्ट लिखता है। वह फ़ाइल लिखने वाले टूल से आउटपुट सेव करता है और अपने स्रोतों की सीमाएं बताता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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:
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.Declare the pivot explicitly:
Pivoting to write_file-based document generation with embedded knowledge. Task remains: [CONTEXT_ANCHOR]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
अक्सर पूछे जाने वाले सवाल
'कॉन्टेक्स्ट ड्रिफ़्ट' का यहां क्या मतलब है?
इसका मतलब है टूल त्रुटियों के बाद किसी असंबंधित काम पर चले जाना, जिससे स्किल आगाह करती है।
फ़ॉलबैक कब शुरू होता है?
स्किल कहती है कि दूसरी असफल कोशिश के बाद यह शुरू करें।
रिपोर्ट कहां सेव होती है?
एजेंट उसे फ़ाइल लिखने वाले टूल से फ़ाइल के रूप में सेव करता है।
जानकारी
लेखक का मूल विवरण
Generate documents with write_file when retrieval tools fail, with explicit guardrails against task context drift
repo: HKUDS/AgentPilot
लोकप्रियता
- GitHub स्टार
- 7.8k
- रैंकिंग में स्थान
- #13031
- लाइसेंस
- MIT
- अपडेट की गई
- 1/11/2026
कमेंट
- …
इस repository की और skills
agentpilot
7.8kआपके एजेंट को AgentPilot से प्रोजेक्ट को चरण-दर-चरण सुधारने में मदद करती है, जिसमें बदलाव सुझाए, परखे और स्कोर किए जाते हैं।
openspace
7.8kआपके एजेंट को OpenSpace सेट करने में मदद करती है, जो एजेंट स्किल्स सहेजता और वापस लाता है, और MCP के ज़रिए आपके AI ऐप से जुड़ता है।
rsi-arena
7.8kआपके एजेंट को AIME और Terminal-Bench जैसे मानक AI बेंचमार्क टेस्ट सेट करने और चलाने में मदद करती है, ताकि सुधार के तरीकों की तुलना हो सके।
experiment-guide
7.8kआपके एजेंट को छोटे प्रयोग बनाने, उनके नतीजे पढ़ने और जाँच के दौरान उपयोगी निष्कर्ष लिखने में मदद करती है।
मिलती-जुलती skills
obsidian-vault-maintainer
394kयह आपके एजेंट को Obsidian के अनुकूल मेमोरी vault व्यवस्थित रखने देती है, जिसमें काम करने वाले wiki लिंक, एक जैसी properties और सुरक्षित जेनरेटेड सेक्शन हों।
wiki-maintainer
394kयह आपके एजेंट को OpenClaw मेमोरी wiki दोहराए जा सकने वाले पेजों, सुरक्षित मैनेज्ड ब्लॉक्स और विरोधाभास या कमियों की जांच के साथ संभालने देती है।
obsidian
394kयह आपके एजेंट को आधिकारिक Obsidian कमांड-लाइन से Obsidian नोट्स, टास्क, लिंक और properties पढ़ने, खोजने, बनाने और बदलने देती है।