Skillpedia
المهام والمشاريع7.8k · #12912

unified-deliverables-flow

ما الذي تفعله

تحدد هذه المهارة طريقة مرحلية لإنشاء عدة أنواع من الملفات في مهمة واحدة، مع ميزانية ثابتة لكل مرحلة. وهي مناسبة لمن يحتاج إلى ملفات Excel وصورة ومستند PDF دون أن يُفقد أي منها.

متى تستخدمها

  • ✓عندما تطلب المهمة ملف Excel وصورة ومستند PDF معًا.
  • ✓عندما أريد نقطة تحقق تؤكد وجود كل ملف قبل بدء الذي يليه.
  • ✓عندما يحتمل حدوث أعطال في الأدوات ويحتاج كل ملف إلى إعادة محاولة.

رابط المهارة

https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/pdf-checklist-workflow-enhanced/SKILL.md

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

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

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

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

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

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

“من فضلك أنشئ جدول Excel وصورة مخطط وتقرير PDF، وتحقق من كل ملف قبل أن تبدأ الذي يليه.”

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

كيف تعمل

يعمل الذكاء الاصطناعي على مراحل: يجهز مساحة العمل، ثم ينشئ جدول البيانات ويتحقق منه، ثم ينشئ المخطط ويتحقق من حجمه، ثم ينشئ PDF ويؤكد مساره.

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

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

Unified Multi-Deliverable Generation Workflow

This skill provides a structured, phased approach for creating multiple deliverable types (spreadsheets, diagrams, PDF reports) in a single cohesive workflow with explicit iteration budgeting to prevent premature exhaustion.

Overview

Use this workflow when you need to:

  • Generate multiple deliverable types (Excel, images, PDFs) in one task
  • Ensure balanced iteration allocation across all deliverables
  • Handle tool failures gracefully with retries and fallbacks
  • Produce downloadable artifacts with verified paths

Critical: Iteration Budget Allocation

Allocate iterations BEFORE starting work:

Phase Deliverable Budget Checkpoint
Phase 1 Spreadsheet 8 iterations File exists + readable
Phase 2 Diagram 8 iterations File exists + >1KB
Phase 3 PDF Report 8 iterations File exists + ARTIFACT_PATH output
Buffer Error recovery 6 iterations Remaining for retries
Total All deliverables 30 iterations All verified

Rules:

  • Complete each phase before moving to the next
  • If a phase exceeds budget, use fallback strategy (see below)
  • Never spend >10 iterations on a single deliverable without checkpoint
  • Verify each deliverable before proceeding

Step-by-Step Instructions

Phase 0: Pre-Work Setup (1 iteration max)

  1. Define all deliverables explicitly:

    Deliverable 1: hardware_selection_table.xlsx (Excel with comparison data)
    Deliverable 2: cnc_workcell_layout.png (PNG diagram of layout)
    Deliverable 3: final_report.pdf (PDF summary report)
    
  2. Verify workspace is accessible:

    run_shell
      command: ls -la /workspace/ && mkdir -p /workspace/artifacts
    
  3. Set path variables for consistency:

    • All files go to /workspace/ or /workspace/artifacts/
    • Use absolute paths in all code
    • Never use relative paths like ./output.xlsx

Phase 1: Spreadsheet Generation (Budget: 8 iterations)

Step 1.1: Choose approach

Method Tool Best For
Direct Python execute_code_sandbox Quick generation, simple tables
Shell agent shell_agent Complex logic, error recovery

Step 1.2: Create spreadsheet code

from openpyxl import Workbook
from openpyxl.styles import Font, Alignment, Border, Side

def create_hardware_table():
    wb = Workbook()
    ws = wb.active
    ws.title = "Hardware Selection"
    
    # Headers with styling
    headers = ["Component", "Option A", "Option B", "Option C", "Recommendation"]
    for col, header in enumerate(headers, 1):
        cell = ws.cell(row=1, column=col, value=header)
        cell.font = Font(bold=True)
        cell.alignment = Alignment(horizontal='center')
    
    # Data rows
    data = [
        ["Controller", "PLC-X100 ($500)", "PLC-Y200 ($650)", "PLC-Z300 ($800)", "PLC-Y200"],
        ["Motor", "Servo-500W ($300)", "Servo-750W ($400)", "Stepper-1kW ($250)", "Servo-750W"],
        ["Sensor", "Proximity-S1 ($50)", "Vision-V2 ($200)", "Laser-L3 ($150)", "Vision-V2"]
    ]
    
    for row_idx, row_data in enumerate(data, 2):
        for col_idx, value in enumerate(row_data, 1):
            ws.cell(row=row_idx, column=col_idx, value=value)
    
    # Auto-adjust column widths
    for col in ws.columns:
        max_length = max(len(str(cell.value)) for cell in col if cell.value)
        ws.column_dimensions[col[0].column_letter].width = min(max_length + 2, 25)
    
    output_path = '/workspace/hardware_selection_table.xlsx'
    wb.save(output_path)
    print(f'SUCCESS: Spreadsheet created at {output_path}')
    print(f'ARTIFACT_PATH:{output_path}')
    return output_path

create_hardware_table()

Step 1.3: Execute with verification

execute_code_sandbox
  code: <spreadsheet code from Step 1.2>
  language: python

Step 1.4: Verify (REQUIRED before proceeding)

run_shell
  command: ls -lh /workspace/*.xlsx && python3 -c "import openpyxl; openpyxl.load_workbook('/workspace/hardware_selection_table.xlsx')"

Checkpoint criteria:

  • ✓ File exists
  • ✓ Size > 1KB
  • ✓ No errors opening file
  • ✗ If failed, retry once with shell_agent, then proceed to Phase 2 with note

Phase 2: Diagram Generation (Budget: 8 iterations)

Step 2.1: Choose diagram type and tool

Diagram Type Tool Library
Flowchart/Bl
الأسئلة الشائعة

ما الذي يُفحص في المخطط؟

يتحقق الدليل من وجود ملف الصورة وأنه أكبر من حجم أدنى.

ما الذي يُفحص في PDF؟

يتحقق الدليل من وجود الملف وأن مساره قد طُبع.

ماذا لو تجاوزت مرحلة حدها؟

يقول الدليل إن على الذكاء الاصطناعي استخدام استراتيجية البديل لتلك المرحلة.

التفاصيل

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

Generate spreadsheets, diagrams, and PDF reports in a phased workflow with explicit iteration budgets and error recovery

repo: HKUDS/AgentPilot

الشعبية

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

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

0

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

التعليقات

  • …

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

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