prioritize-context-data
ما الذي تفعله
تجعل هذه المهارة وكيل الذكاء الاصطناعي يفحص الملفات التي ترفقها ويستخدمها للبيانات أولًا. وهي مناسبة لمن يريد أن تُؤخذ الأرقام من مستنداته الخاصة.
متى تستخدمها
- ✓عندما ترفق ملف CSV أو Excel وتريد من الذكاء الاصطناعي استخدام أرقامه.
- ✓عندما تريد من الذكاء الاصطناعي أن يذكر مصدر كل رقم.
- ✓عندما تكون مغريًا بترك الذكاء الاصطناعي يبحث في الإنترنت عن حقائق موجودة أصلًا في ملفاتك.
رابط المهارة
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/prioritize-context-data/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“استخدم ملف CSV المرفق للأرقام، وأخبرني من أي ملف جاءت كل قيمة.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يسرد الوكيل أولًا الملفات الموجودة في المهمة، ويقرأ المناسب منها، ويستخرج البيانات المطلوبة. يذكر الملف الذي استخدمه ولا يبحث في الويب إلا إذا لم يتضمن الملف الإجابة.
المحتوى التقني (ملف 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 ضمن الملفات المرجعية التي يقرؤها الوكيل أولًا.
هل تمنع المهارة الذكاء الاصطناعي من استخدام الويب كليًا؟
لا، تطلب فقط أن يفحص الذكاء الاصطناعي ملفاتك قبل البحث في الويب.
التفاصيل
الوصف الأصلي من المؤلف
Ensures agents check and use provided context files for data before attempting external searches.
repo: HKUDS/AgentPilot
الشعبية
- نجوم GitHub
- 7.8k
- الترتيب
- #12952
- الترخيص
- MIT
- آخر تحديث
- 1/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
agentpilot
7.8kيساعد وكيلك على تحسين مشروع خطوة بخطوة، بتجهيز مهمة وتشغيل حلقة AgentPilot التي تقترح التغييرات وتختبرها وتقيّمها.
openspace
7.8kيساعد وكيلك على إعداد OpenSpace، وهو أداة تخزن مهارات الوكلاء وتسترجعها، وربطه بتطبيق الذكاء الاصطناعي عبر MCP.
rsi-arena
7.8kيساعد وكيلك على إعداد اختبارات معيارية مثل AIME وTerminal-Bench وتشغيلها، لمقارنة طرق التحسين المختلفة.
experiment-guide
7.8kيساعد وكيلك على تخطيط تجارب صغيرة وقراءة نتائجها وتسجيل ما يتعلمه أثناء التحقيق في طرق تحسين برنامج.
مهارات مشابهة
add-model-provider
394kتتيح لوكيلك ربط مزوّد نموذج ذكاء اصطناعي جديد بـ OpenClaw باستخدام أوامر إعداد آمنة، وإبقاء مفاتيح API خارج النص العادي، وإجراء اختبار حي.
acp-router
394kيساعد وكيلك على إرسال مهمة إلى مساعد برمجة مثل Claude Code أو Cursor عبر OpenClaw، فيعمل العمل داخل تلك الأداة.
browser-automation
394kتعلّم وكيلك التحكم في صفحات الويب خطوة بخطوة، بما في ذلك تسجيل الدخول والتبويبات والتعافي عندما تتوقف الصفحة عن الاستجابة.