मुख्य सामग्री पर जाएँ
Skillpedia
PDF, Word और स्लाइड7.8k · #13017

spreadsheet-create-verify-gate

यह क्या करती है

यह वर्कफ़्लो AI एजेंट को नई Excel वर्कबुक बनाने या मौजूदा को बदलने, और फिर उसे आपकी विशिष्टता के मुकाबले साबित करने के लिए मार्गदर्शन देता है। यह उन लोगों के लिए है जिन्हें सटीक शीट, कॉलम और गिनती चाहिए, साथ में उसका सबूत भी।

कब इस्तेमाल करें

  • ✓जब आपको तय ढांचे के साथ नई Excel वर्कबुक शुरू से बनवानी हो।
  • ✓जब मौजूदा वर्कबुक बदलनी हो और कई मिलती-जुलती फ़ाइलें लक्ष्य हो सकती हों।
  • ✓जब काम को पूरा बताने से पहले हर शर्त पूरी होने का सबूत चाहिए।

Skill का लिंक

https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/spreadsheet-proof-gate-merged-fedf41/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/spreadsheet-proof-gate-merged-fedf41/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरी विशिष्टता में दी गई शीट और गिनती वाली वर्कबुक बनाइए, फिर पूरा होने से पहले Python जाँच से हर शर्त का सबूत दीजिए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट पहले लक्ष्य फ़ाइल की पुष्टि करता है, फिर वर्कबुक बनाता या बदलता है और जाँच स्क्रिप्ट को .py फ़ाइल में सेव करता है। वह उसे openpyxl से चलाकर सेव की गई फ़ाइल जाँचता है, और हर शर्त पास होने पर ही सफलता बताता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Spreadsheet Create/Verify Gate

Use this skill when you must create from scratch or modify an Excel workbook and the result must be proven against a user specification rather than merely described.

This skill extends the spreadsheet-proof-gate methodology with explicit support for:

  • Workbook creation from scratch (not just editing existing files)
  • openpyxl-specific pitfall handling (MergedCell, worksheet creation, formula handling)
  • Tool failure resilience with clear escalation paths
  • Pre-edit audit phases that catch common openpyxl errors before they occur

This is a workflow skill requiring a direct Python verification pass with openpyxl before reporting success. The verification script must be saved to a .py file and executed via run_shell (NOT execute_code_sandbox).

When to use

Use this skill when ANY of the following are true:

Creation scenarios:

  • You must create a new Excel workbook from scratch
  • No existing template is provided
  • You need to establish the initial workbook structure

Editing scenarios:

  • The workbook path must be discovered
  • Multiple similar Excel files may exist
  • The user requires exact sheet names, columns, counts, or samples
  • Prior summaries are inconsistent or not trustworthy
  • Exact post-edit workbook state matters

General:

  • You must prove that mandatory criteria were satisfied
  • A delegated agent may perform spreadsheet work
  • Tool instability has been observed in prior attempts

Core rules

Rule 1: Creation vs. Editing distinction

Before starting, determine which path applies:

Creation path (new workbook):

  • No existing workbook at the target path
  • You are establishing the initial structure
  • Pre-edit audit focuses on workspace validation and structure planning

Editing path (existing workbook):

  • Existing workbook at the target path
  • You are modifying structure or content
  • Pre-edit audit includes full workbook structure inspection

Rule 2: Openpyxl pitfall awareness

The following openpyxl-specific issues must be handled explicitly:

MergedCell errors:

  • Accessing .value on merged cells raises MergedCell exception
  • Solution: Check ws.merged_cells.ranges and handle merged regions specially
  • Pre-edit check: Identify all merged ranges before accessing cell values

Worksheet creation patterns:

  • wb.create_sheet() is the correct method, not direct assignment
  • Sheet names must be unique and ≤31 characters
  • Invalid characters (\ / ? * [ ]) are not allowed in sheet names

Formula handling:

  • Set data_only=False when loading to preserve formulas
  • Use wb.save() after modifications, not wb.close()
  • Formula cells need explicit formula strings, not calculated values

Cell value type handling:

  • Dates, numbers, and strings may need explicit type handling
  • Use cell.value not direct cell access for safety

Rule 3: Never finalize from narrative summary alone

A workbook task is only complete when:

  1. The target workbook path was identified (for editing) or chosen (for creation)
  2. Pre-edit structure matched the intended operation
  3. The edit/creation was performed on the correct file
  4. The saved workbook was directly re-read from disk
  5. Every requested criterion was checked in a deterministic verification report
  6. Each criterion is marked as one of: PASS, FAIL, or UNAVAILABLE-IN-SOURCE
  7. Any non-pass result is explicitly reconciled before finalizing

Rule 4: Workspace anchoring is absolute

All discovery, reads, writes, and verification must be anchored to the exact workspace path provided for the task.

  • Treat the provided workspace path as the authoritative root
  • Resolve workbooks to exact paths under that root
  • Do not silently switch to similarly named files elsewhere
  • If the anchored file cannot be found for editing, stop rather than guessing
  • For creation, ensure the output directory exists

Outcome contract

Your output should be based on proof, not inference.

For every task using this workflow, maintain these artifacts internally:

  1. Workbook inventory: path, existence status, sheet structure (for editing) OR planned structure (for creation)
  2. Pre-edit audit checklist: workbook structure before modification
  3. Post-write proof checklist: deterministic verification of every criterion

The post-write proof checklist is decisive.

Workflow

Phase 1: Determine creation vs. editing path

Step 1.1: Check for existing w

अक्सर पूछे जाने वाले सवाल

क्या एजेंट सेव की गई फ़ाइल जाँचता है?

हां, जाँच स्क्रिप्ट वर्कबुक लिखे जाने के बाद डिस्क से पढ़ती है।

जाँच स्क्रिप्ट किससे चलती है?

स्किल कहती है कि उसे .py फ़ाइल के रूप में सेव करके शेल से चलाया जाए, सैंडबॉक्स से नहीं।

openpyxl की दिक्कतों का क्या?

स्किल में मर्ज्ड सेल और वर्कशीट बनाने जैसी openpyxl समस्याओं का उल्लेख है, और एजेंट से उन्हें संभालने को कहा गया है।

जानकारी

लेखक का मूल विवरण

Create or edit Excel workbooks with openpyxl-specific pitfall handling, anchored preflight audit, and deterministic post-write proof that every criterion is satisfied

repo: HKUDS/AgentPilot

लोकप्रियता

GitHub स्टार
7.8k
रैंकिंग में स्थान
#13017
लाइसेंस
MIT
अपडेट की गई
1/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills