write-file-fallback-report
यह क्या करती है
यह स्किल AI एजेंट को डेटा स्रोत फेल होने पर फ़ाइल लिखने वाले टूल से रिपोर्ट लिखना सिखाती है। यह उन लोगों के लिए है जिन्हें ताज़ा डेटा न होने पर भी साफ़ और पेशेवर दस्तावेज़ चाहिए।
कब इस्तेमाल करें
- ✓जब फ़ाइल रीडर बाइनरी डेटा दे, या खोज टूल त्रुटियां या कोई परिणाम न दे।
- ✓जब दस्तावेज़ के काम में कोड सैंडबॉक्स बार-बार फेल हो।
- ✓जब पेशेवर रिपोर्ट चाहिए और एजेंट जाने-माने तथ्यों पर भरोसा कर सके।
Skill का लिंक
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/write-file-fallback-report/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस विषय पर एक पेशेवर ब्रीफ़िंग लिखकर उसे फ़ाइल में सेव कीजिए। खोज और फ़ाइल टूल फेल हो रहे हैं, इसलिए जो आप जानते हैं वही इस्तेमाल कीजिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट फेल होने वाले टूल आज़माना बंद करता है, सीमा को संक्षेप में बताता है, और फ़ाइल लिखने वाले टूल से सीधे दस्तावेज़ लिखता है। वह अपनी जानकारी से साफ़ खंडों वाले पेशेवर लेआउट में सामग्री सजाता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Write-File Fallback Report Generation
When to Use This Skill
Use this workflow when attempting to generate a document or report, but multiple primary data source tools fail simultaneously:
read_filereturns binary/image data instead of text (common with PDFs)search_webreturns errors or no resultsexecute_code_sandboxfails unexpectedly- Other data retrieval tools are unavailable
Key insight: Rather than getting stuck on failed data retrieval, pivot immediately to generating the document directly with write_file using professionally structured content and embedded domain knowledge.
Step-by-Step Instructions
Step 1: Detect Tool Failure Pattern
Recognize when you're in a fallback scenario:
TOOL_FAILURE_INDICATORS = [
"read_file returns binary or image data",
"search_web returns unknown error or empty results",
"execute_code_sandbox fails repeatedly",
"Multiple consecutive tool failures on data retrieval"
]
Decision point: If 2+ indicators are present, proceed to Step 2.
Step 2: Pivot to Write-File-First Approach
Stop attempting to fix the failing tools. Instead:
- Acknowledge the limitation briefly in your output
- Commit to generating the document with available knowledge
- Use
write_fileas your primary tool (not a last resort)
Step 3: Structure the Document Professionally
Create a well-organized markdown document with:
# [Document Title]
## Executive Summary
[Brief overview of key findings/content]
## Background
[Context and scope - use embedded knowledge]
## Main Content
[Organized sections with headers, lists, tables as appropriate]
## Limitations & Notes
[Transparent about data source limitations if relevant]
## Recommendations/Next Steps
[Actionable guidance based on available information]
Step 4: Leverage Embedded Domain Knowledge
When external data is unavailable:
- Use general domain knowledge appropriately
- Clearly distinguish between verified facts and general guidance
- Include actionable frameworks rather than specific unverified data
- Add placeholder notes where specific data would enhance the document
Example:
> **Note**: Specific [metric/data point] would typically be sourced from
> [expected source]. The guidance below reflects established best practices
> in this domain.
Step 5: Execute and Validate
# Example execution pattern
write_file(
path="output/report.md",
content=professionally_structured_markdown
)
# Verify the file was created successfully
list_dir(path=".") # Confirm file exists
Code Example
# Detection and pivot pattern
def detect_and_pivot(task_goal):
# After detecting tool failures:
report_content = f"""# {task_goal} Report
## Executive Summary
This report was generated using established domain knowledge due to
temporary unavailability of primary data sources.
## Key Frameworks and Guidance
[Structured content with headers, bullets, tables]
## Limitations
- Specific data points from [expected sources] were unavailable
- Recommendations based on general best practices
## Action Items
1. [Concrete step 1]
2. [Concrete step 2]
"""
write_file(path="generated_report.md", content=report_content)
return "Report generated successfully with embedded knowledge"
Best Practices
| Do | Don't |
|---|---|
| Pivot quickly after 2+ tool failures | Keep retrying failing tools 5+ times |
| Be transparent about limitations | Claim unverified specifics as facts |
| Provide actionable frameworks | Leave the task incomplete |
| Use professional document structure | Output unstructured text walls |
| Include next-step recommendations | End without clear guidance |
Common Pitfalls
- Over-apologizing: Acknowledge limitations once, then deliver value
- Under-delivering: A well-structured partial report beats no report
- Misrepresenting certainty: Use appropriate hedging language
- Skipping structure: Professional formatting increases usability
Success Criteria
The skill is successfully applied when:
- Document is generated despite tool failures
- Content is professionally structured (headers, sections, lists)
- Limitations are transparently noted
- Actionable guidance is provided
- File is successfully created and verified
अक्सर पूछे जाने वाले सवाल
पहले फ़ाइल क्यों लिखें?
स्किल फ़ाइल लिखने को मुख्य टूल बनाती है, ताकि दस्तावेज़ बनता रहे और पुनर्प्राप्ति में न अटके।
क्या रिपोर्ट में गायब डेटा का ज़िक्र होगा?
स्किल एजेंट से कहती है कि सीमा को संक्षेप में स्वीकार करे।
रिपोर्ट की संरचना कैसी होगी?
स्किल साफ़ खंडों वाला पेशेवर लेआउट मांगती है।
जानकारी
लेखक का मूल विवरण
Generate professional documents using write_file when primary data sources fail, leveraging embedded domain knowledge instead of external retrieval
repo: HKUDS/AgentPilot
लोकप्रियता
- GitHub स्टार
- 7.8k
- रैंकिंग में स्थान
- #13033
- लाइसेंस
- 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 पढ़ने, खोजने, बनाने और बदलने देती है।