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がスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
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.xlsxin 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のウェブ利用は完全に止まりますか?
いいえ。ウェブを検索する前に、まずファイルを確認するよう求めるだけです。
詳細
作者による元の説明
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
コメント
- …
このリポジトリの他のスキル
agentpilot
7.8kエージェントが、作業を準備し、変更案を提案してテストし、評価するAgentPilotのループを実行することで、プロジェクトを段階的に改善できるよう支援します。
openspace
7.8kエージェントが、スキルを保存し取り出すツールであるOpenSpaceをセットアップし、MCPを通じてAIアプリに接続できるよう支援します。
rsi-arena
7.8kエージェントが、AIMEやTerminal-Benchなどの標準的なAIベンチマークテストをセットアップして実行し、異なる改善方法を比較できるよう支援します。
experiment-guide
7.8kエージェントが、プログラムを改善する方法を調べる間に、小さな実験を計画し、その結果を読み、発見を記録できるよう支援します。
似ているスキル
add-model-provider
394k安全なセットアップコマンドで新しいAIモデルプロバイダーをOpenClawに接続し、APIキーを平文で残さず、ライブテストを行うようエージェントを支援します。
acp-router
394kClaude CodeやCursorなどのコーディングアシスタントに、OpenClaw経由でタスクを渡し、その作業がそのツール内で行われるようエージェントを支援します。
browser-automation
394kログイン、タブ、応答しなくなったページからの復旧を含め、Webページを段階的に操作するようエージェントに教えます。