Chuyển đến nội dung
Skillpedia
Agent7.8k · #12952

prioritize-context-data

Skill này làm gì

Skill này khiến AI agent kiểm tra các file bạn đính kèm và dùng chúng làm dữ liệu trước hết. Nó dành cho bất kỳ ai muốn số liệu được lấy từ tài liệu của chính họ.

Khi nào nên dùng

  • ✓Khi bạn đính kèm file CSV hoặc Excel và muốn AI dùng các con số trong đó.
  • ✓Khi bạn muốn AI cho biết mỗi con số được lấy từ đâu.
  • ✓Khi bạn đang muốn AI tìm trên internet các dữ kiện vốn đã có trong file của bạn.

Liên kết skill

https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/prioritize-context-data/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/prioritize-context-data/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Dùng file CSV đính kèm để lấy các con số và cho tôi biết mỗi số được lấy từ file nào.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent trước hết liệt kê các file trong nhiệm vụ, đọc những file phù hợp và lấy ra dữ liệu cần thiết. Nó trích dẫn file đã dùng và chỉ tìm trên web khi file không có câu trả lời.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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.
Câu hỏi thường gặp

Agent thể hiện con số lấy từ đâu như thế nào?

Skill yêu cầu agent nêu tên file nguồn khi trình bày dữ liệu trong câu trả lời cuối.

Agent có thể dùng PDF làm nguồn dữ liệu không?

Có, skill liệt kê PDF là một trong các file tham khảo mà agent nên đọc trước.

Điều này có ngăn AI dùng web không?

Không, nó chỉ yêu cầu AI kiểm tra file của bạn trước khi tìm trên web.

Chi tiết

Mô tả gốc của tác giả

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

repo: HKUDS/AgentPilot

Độ phổ biến

Sao GitHub
7.8k
Vị trí xếp hạng
#12952
Giấy phép
MIT
Cập nhật
1/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự