Skillpedia
PDF وWord والعروض التقديمية7.8k · #13016

spreadsheet-direct-verification

ما الذي تفعله

تجعل هذه المهارة وكيل الذكاء الاصطناعي يفحص مصنفًا مباشرة ببرنامج عندما تتعارض التقارير عنه. وهي مناسبة لمن يحتاج إلى معرفة ما هو موجود فعلًا في الجدول، لا ما قيل عنه.

متى تستخدمها

  • ✓عندما يقدم وكيل مفوَّض معلومات متعارضة عن مصنف عبر رسائل متعددة.
  • ✓عندما لا تتطابق أسماء الأوراق أو عدد الصفوف أو العناوين في التقارير.
  • ✓عندما يقول وكيل إن الملف حُفظ دون أن يتحقق منه على القرص.

رابط المهارة

https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/spreadsheet-direct-verification/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/spreadsheet-direct-verification/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“يقول وكيل آخر إنه حدّث مصنفي، لكن الأرقام لا تتطابق. افحص الملف نفسه ببرنامج، وأخبرني بما هو موجود فعلًا.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يكتب الوكيل برنامجًا يستخدم openpyxl لقراءة المصنف من القرص. يطبع المسار وأسماء الأوراق والعناوين وعدد الصفوف وما إذا كانت ملفات المخرجات المتوقعة موجودة، ويبني الإجابة النهائية على هذا التقرير.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

Spreadsheet Direct Verification

Use this workflow when a higher-level or delegated agent has interacted with spreadsheet files, but its summaries or claims are inconsistent, incomplete, or hard to trust.

The goal is to replace uncertain narrative summaries with a direct, reproducible inspection from disk before you finalize your answer.

When to use this

Apply this skill when any of the following happen:

  • A delegated agent reports conflicting workbook facts across messages
  • Sheet names, row counts, headers, or output paths are inconsistent
  • The agent says a file was created or modified, but did not verify it from disk
  • The task depends on exact workbook contents, especially after edits
  • You need a trustworthy final summary of what actually exists on disk

Core principle

When spreadsheet state matters, trust a deterministic script over a conversational summary.

Inspect the workbook directly with Python and openpyxl, and print a compact report covering:

  • workbook path
  • whether the file exists
  • sheet names
  • per-sheet headers
  • per-sheet row counts
  • totals for "marked" rows, if relevant to the task
  • whether expected output files exist

Use the script output as the basis for your final response.

Workflow

  1. Identify the workbook(s) and expected output file(s).
  2. Determine what "marked row" means for the task.
    • Examples:
      • rows with a non-empty marker column
      • rows with x, yes, true, or 1
      • rows highlighted by a prior workflow that also wrote a marker column
  3. Run a direct Python inspection on the files from disk.
  4. Compare the script output against any delegated summary.
  5. If they differ, treat the script as authoritative.
  6. Only then provide the final user-facing summary.

Minimum verification checklist

Before finalizing, verify and record:

  • exact input workbook path inspected
    • exact output workbook path inspected
    • whether each file exists
    • all sheet names in each workbook
    • header row for each relevant sheet
    • number of non-empty data rows per sheet
    • number of marked rows per sheet, if applicable
    • whether modifications appear in the saved output file

Production planning validation checklist

For manufacturing and production planning spreadsheets, extend the verification to include:

  1. Max daily minutes per press: Verify that no press exceeds the daily labor minute limit (e.g., 450 minutes per day per press).

    • Sum labor minutes grouped by press and date
    • Flag any press-date combinations exceeding the threshold
  2. Max weekly hours per team member: Verify that no team member exceeds weekly hour limits (e.g., 37.5 hours per week).

    • Sum assigned hours grouped by team member and week
    • Flag any team-member-week combinations exceeding the threshold
  3. Required roles per press: Verify that each press assignment includes all required roles (e.g., 1 operator + 1 water spider per press).

    • Count distinct role assignments per press per shift or date
    • Flag any press assignments missing required roles
  4. Minimum changeover requirements per press: Verify that required changeovers are scheduled (e.g., minimum 3 changeovers per press per week).

    • Count changeover events grouped by press and time period
    • Flag any press-period combinations below the minimum threshold

Example production planning verification script extension

Extend the base inspection script with these production-specific checks:

# Add to the INPUTS list if you have separate labor/assignment sheets
# Extend MARKER_CANDIDATES for production-specific columns
PRODUCTION_MARKER_CANDIDATES = MARKER_CANDIDATES | {"press", "team_member", "role", "changeover", "date", "week"}

# Production constraint thresholds (adjust per task)
MAX_DAILY_MINUTES_PER_PRESS = 450
MAX_WEEKLY_HOURS_PER_MEMBER = 37.5
REQUIRED_ROLES_PER_PRESS = {"operator", "water_spider"}  # or {"Operator", "Water Spider"}
MIN_CHANGEOVERS_PER_PRESS_PER_WEEK = 3

def validate_production_constraints(ws, headers):
    """Return a dict of constraint violations found in the worksheet."""
    violations = {
        "daily_minutes_exceeded": [],
        "weekly_hours_exceeded": [],
        "missing_roles": [],
        "insufficient_changeovers": [],
    }
    
    if not headers:
        return violations
    
    normalized_headers = [normalize(h).lower() for h in headers]
    
    # Find column indices
    press_idx = next((i for i, h in enumerate(normalized_headers
الأسئلة الشائعة

ماذا يعرض البرنامج؟

يعرض مسار المصنف وأسماء أوراقه وعناوينه وعدد صفوفه، وما إذا كانت ملفات الإخراج المتوقعة موجودة.

ما المقصود بالصف المعلَّم؟

تقول المهارة إن ذلك يتوقف على المهمة، كالصفوف التي تحمل قيمة في عمود معين.

لماذا نثق بالبرنامج أكثر من الملخص؟

تقول المهارة إن البرنامج الحتمي يقرأ الملف الفعلي، فتكون نتيجته أوثق من الملخص الحواري.

التفاصيل

الوصف الأصلي من المؤلف

Use a deterministic Python/openpyxl inspection pass to verify workbook structure, counts, marked rows, and output-file existence when delegated spreadsheet summaries seem inconsistent.

repo: HKUDS/AgentPilot

الشعبية

نجوم GitHub
7.8k
الترتيب
#13016
الترخيص
MIT
آخر تحديث
1‏/11‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة