delegated-file-edit-verification
ما الذي تفعله
تطلب هذه المهارة من الذكاء الاصطناعي أن يتحقق من الملفات مباشرة بعد أن تُبلغ أداة أو وكيل آخر بأنه انتهى من تعديل. وهي موجهة إلى كل من يستخدم مساعدين ذكيين لإنشاء جداول بيانات أو قواعد بيانات أو ملفات أخرى.
متى تستخدمها
- ✓عندما يقول وكيل آخر إنه حفظ ملفاً أو حدّثه، وأحتاج إلى التأكد من ذلك.
- ✓عندما تعتمد المهمة على وجود ملف في مكان محدد بالضبط.
- ✓عندما يجب أن يكون لجدول البيانات أو ملف البيانات العناوين الصحيحة وعدد الصفوف الصحيح.
رابط المهارة
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/delegated-file-edit-verification/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“يقول مساعد إنه حدّث جدول البيانات الخاص بي. افحص الملف نفسه وأخبرني هل نجح فعلاً.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
قبل تسليم المهمة، يكتب الذكاء الاصطناعي ما يجب أن تحتويه المخرجات. بعد انتهاء المساعد، يتحقق من وجود الملف ومكانه وبنيته وأعداده، ويعيد التشغيل بالمسارات الكاملة إن لم يتطابق التقرير مع الواقع.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Delegated File Edit Verification
Use this workflow whenever another agent, subprocess, or delegated tool claims it successfully created or modified a file. The goal is to prevent false acceptance of incomplete, misplaced, or incorrect edits.
This skill is especially useful for structured files such as spreadsheets, CSVs, databases, and generated artifacts, but the same pattern applies to any delegated file-edit task.
Core principle
Never accept a delegated "done" message on summary alone.
Immediately verify the result yourself in the target workspace using direct commands that inspect:
- file existence
- exact path
- expected structure
- expected size or counts
- key headers, fields, or identifiers
If the delegate's summary and your verification disagree, treat the task as incomplete. Re-run the task using absolute paths and explicit acceptance checks.
When to use this
Use this workflow when:
- a sub-agent says it wrote or updated a file
- the task depends on a specific workspace or output location
- the output is structured and can be checked mechanically
- prior executions showed path confusion, stale files, or inconsistent summaries
- correctness matters more than trusting the delegate's narrative
Procedure
1. Record the intended output contract before delegating
Before handing off the task, write down the minimum facts that must be true if the task succeeds.
Include:
- absolute target path
- required file name
- required file type
- expected sheets, tabs, tables, or sections
- expected row counts or approximate size
- required headers or columns
- any sentinel values that should appear
Example contract:
- file exists at
/workspace/results/report.xlsx - workbook contains sheets
summaryanddata datasheet has more than 1,000 rows- headers include
id,created_at,status
Do not rely on vague goals like "updated spreadsheet correctly."
2. Delegate with explicit acceptance criteria
When delegating, include:
- the absolute input path
- the absolute output path
- the exact required structure
- a request to report what was changed
- a request to include paths actually used
Good delegation prompt:
- Read
/workspace/input/source.xlsx - Write the cleaned workbook to
/workspace/output/cleaned.xlsx - Ensure sheets
summaryandrecordsexist - Ensure
recordsincludes headersid,date,amount - Report the exact absolute path written and row counts per sheet
3. Verify immediately after the delegate reports success
Do not move on. Run direct checks in the target workspace right away.
For all files, verify:
- the file exists at the expected absolute path
- modification time is recent
- file size is plausible
- there is not a second similarly named file in another directory
For structured files, verify the internal structure too:
- workbook sheet names
- CSV header row
- row counts
- required columns
- sample records or sentinel values
4. Prefer direct machine checks over narrative summaries
Trust commands and file inspection, not the delegate's prose.
Examples of useful checks:
- list the exact file path
- print sheet names
- count rows
- print header names
- inspect a few sample rows
- compare timestamps before and after
5. If verification conflicts with the delegated summary, mark the task incomplete
Examples of conflicts:
- delegate says file exists, but it does not
- delegate claims sheet
dataexists, but workbook contains different sheets - reported row count differs materially from actual count
- expected headers are missing
- output was written to a relative or unexpected location
- the delegate inspected one file but wrote another
When this happens:
- do not accept the result
- state the exact mismatch
- rerun the task
- require absolute paths for every input and output
- require a final report tied to those exact paths
6. Re-run with absolute paths and constrained scope
The most common recovery is to eliminate ambiguity.
On rerun:
- provide absolute paths only
- restate the acceptance contract
- instruct the delegate to verify its own output before reporting success
- ask it to print the exact path and structural facts used
Example rerun instruction:
- Re-run using only these absolute paths:
- input:
/workspace/input/source.xlsx - output:
/workspace/output/cleaned.xlsx
- input:
- Before reporting success, verify:
- file exists
- workbook sheets are
summaryandrecords recordsrow count exceeds 1000- headers
الأسئلة الشائعة
ماذا لو كان تقرير المساعد خاطئاً؟
يقول الدليل إن على المهمة أن تُعد غير مكتملة، وأن تُعاد باستخدام المسارات المطلقة وفحوص واضحة.
أي الملفات تناسب هذه الطريقة؟
هي الأكثر فائدة للملفات المنظمة مثل جداول البيانات وملفات CSV وقواعد البيانات.
هل يفحص المحتوى إلى جانب الحجم؟
نعم. يتحقق من العناوين الأساسية والحقول أو المعرّفات، إضافة إلى الحجم والأعداد.
التفاصيل
الوصف الأصلي من المؤلف
Verify delegated file-edit results directly in the target workspace before accepting success, and rerun with absolute paths if the delegate's report conflicts with reality.
repo: HKUDS/AgentPilot
الشعبية
- نجوم GitHub
- 7.8k
- الترتيب
- #12851
- الترخيص
- 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تعلّم وكيلك التحكم في صفحات الويب خطوة بخطوة، بما في ذلك تسجيل الدخول والتبويبات والتعافي عندما تتوقف الصفحة عن الاستجابة.