본문으로 건너뛰기
Skillpedia
글쓰기7.8k · #13033

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/write-file-fallback-report/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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_file returns binary/image data instead of text (common with PDFs)
  • search_web returns errors or no results
  • execute_code_sandbox fails 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:

  1. Acknowledge the limitation briefly in your output
  2. Commit to generating the document with available knowledge
  3. Use write_file as 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

  1. Over-apologizing: Acknowledge limitations once, then deliver value
  2. Under-delivering: A well-structured partial report beats no report
  3. Misrepresenting certainty: Use appropriate hedging language
  4. 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬