write-file-fallback-report
하는 일
이 스킬은 데이터 출처가 실패했을 때 AI 에이전트가 파일 쓰기 도구로 보고서를 쓰도록 안내합니다. 최신 데이터가 없어도 명확하고 전문적인 문서가 필요한 사람을 위한 스킬입니다.
사용하는 경우
- ✓파일 읽기 도구가 이진 데이터를 반환하거나 검색 도구가 오류나 결과 없음을 낼 때.
- ✓문서 작업 중 코드 샌드박스가 반복해서 실패할 때.
- ✓전문 보고서가 필요하고 잘 알려진 사실에 의존할 수 있을 때.
스킬 링크
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/write-file-fallback-report/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 주제로 전문적인 브리핑을 쓰고 파일로 저장해 주세요. 검색과 파일 도구가 실패하고 있으니 아는 내용을 사용해 주세요.”
매주 새 스킬 5개. 읽는 데 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
- 업데이트
- 2026. 11. 1.
댓글
- …
이 저장소의 다른 스킬
agentpilot
7.8k작업을 준비하고 AgentPilot 루프를 실행해 변경을 제안, 테스트, 점수화하면서 프로젝트를 단계적으로 개선하도록 돕습니다.
openspace
7.8k에이전트 스킬을 저장하고 가져오는 도구인 OpenSpace를 설정하고, MCP를 통해 AI 앱에 연결하도록 돕습니다.
rsi-arena
7.8kAIME나 Terminal-Bench 같은 표준 AI 벤치마크 테스트를 설정하고 실행해 서로 다른 개선 방법을 비교하도록 돕습니다.
experiment-guide
7.8k프로그램을 개선하는 방법을 조사하면서 작은 실험을 계획하고, 결과를 읽고, 발견 사항을 기록하도록 돕습니다.