본문으로 건너뛰기
Skillpedia
에이전트7.8k · #12952

prioritize-context-data

하는 일

이 스킬은 AI 에이전트가 첨부 파일을 확인하고 데이터를 먼저 그 파일에서 가져오도록 합니다. 숫자를 자신의 문서에서 가져오기를 원하는 사람에게 맞습니다.

사용하는 경우

  • ✓CSV나 Excel 파일을 첨부하고 AI가 그 숫자를 쓰기를 원할 때.
  • ✓각 숫자가 어디에서 왔는지 AI가 밝히기를 원할 때.
  • ✓파일에 이미 있는 사실을 AI가 인터넷에서 찾게 하고 싶을 때.

스킬 링크

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

AI에게 요청하는 예시

“첨부한 CSV를 숫자의 근거로 사용하고, 각 숫자가 어느 파일에서 왔는지 알려 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 먼저 작업에 포함된 파일을 나열하고, 맞는 파일을 읽어 필요한 데이터를 꺼냅니다. 최종 답변에서 사용한 파일을 밝히고, 파일에 답이 없을 때만 웹을 검색합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Prioritize Context Data

Objective

Prevent data hallucination and inefficiency by mandating that agents inspect and utilize provided reference files (CSV, XLSX, PDF, TXT, etc.) before attempting web searches or generating synthetic data.

Critical Rule

If a reference file is provided in the task context, it is the source of truth. Do not fabricate data or search the web for information that exists within the provided attachments.

Workflow Steps

1. Scan Context for Attachments

At the start of every task, explicitly list all files provided in the context window or attachment panel.

  • Check for spreadsheets (.xlsx, .csv), documents (.pdf, .docx), or data dumps (.json, .txt).
  • Note the filename and inferred content type.

2. Evaluate Relevance

Determine if any provided file contains the data required to complete the task.

  • Match Keywords: Do filenames or column headers match task requirements?
  • Check Scope: Does the data cover the necessary timeframe or地域 (region)?

3. Extract Data First

If relevant files are found:

  • Read the file content using appropriate tools (e.g., read_file, pandas, pdf_reader).
  • Extract the specific data points needed.
  • Do not proceed to web search until you have confirmed the file lacks the necessary information.

4. Cite Source Explicitly

When presenting data in the final output:

  • Explicitly state which file the data came from.
  • Example: "According to Massabama_active_listings.xlsx..."
  • This verifies to the user that real data was used, not hallucinated.

5. Fallback to Search (Only if Necessary)

If the provided files do not contain the specific data needed:

  • State clearly what was missing from the files.
  • Then proceed with web search or estimation.
  • Mark any non-file data as "External Search" or "Estimated".

Checklist

  • Did I list all attached files?
  • Did I open and read the relevant files?
  • Did I verify the data exists in the files before searching?
  • Did I cite the file name in my output?
  • Did I avoid fabricating numbers that should have come from the file?

Example Usage

Task: Create a report on active property listings. Context: Massabama_active_listings.xlsx is attached.

Incorrect Approach:

  • Ignore the Excel file.
  • Search web for "Massabama property listings".
  • Fabricate numbers based on search snippets.
  • Result: Inaccurate data, ignored source of truth.

Correct Approach:

  • Identify Massabama_active_listings.xlsx in context.
  • Load the Excel file.
  • Count rows and sum prices directly from the sheet.
  • Output: "Based on the 50 entries in Massabama_active_listings.xlsx, the total value is..."
  • Result: Accurate data, verified source.

Warnings

  • Hallucination Risk: Ignoring provided files is a primary cause of data fabrication.
  • Efficiency: Reading a local file is faster and more reliable than web scraping.
  • User Expectation: Users attach files expecting them to be used. Ignoring them is a failure of instruction following.
자주 묻는 질문

에이전트는 숫자의 출처를 어떻게 보여 주나요?

스킬은 데이터를 제시할 때 최종 답변에 출처 파일의 이름을 적으라고 요구합니다.

에이전트가 PDF를 데이터 출처로 쓸 수 있나요?

네, 스킬은 먼저 읽어야 할 참고 파일에 PDF 파일을 포함합니다.

이 스킬은 AI의 웹 사용을 완전히 막나요?

아닙니다. AI가 웹을 검색하기 전에 내 파일을 먼저 확인하라고 요구할 뿐입니다.

상세 정보

작성자의 원본 설명

Ensures agents check and use provided context files for data before attempting external searches.

repo: HKUDS/AgentPilot

인기도

GitHub 스타
7.8k
순위
#12952
라이선스
MIT
업데이트
2026. 11. 1.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬