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

xlsx

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

यह स्किल एजेंट को Microsoft Excel फ़ाइलों के साथ काम करना सिखाती है। इसमें मौजूदा शीट पढ़ना, फ़ाइल के बाकी हिस्से को सुरक्षित रखते हुए सावधानी से बदलाव करना, और पंक्तियों की सूची से नई वर्कबुक बनाना शामिल है।

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

  • ✓जब आप चाहते हों कि एजेंट Excel फ़ाइल के भीतर का डेटा ढूंढे या उसका सारांश दे।
  • ✓जब मौजूदा स्प्रेडशीट में कुछ खास सेल बिना उसे खराब किए अपडेट करने हों।
  • ✓जब पंक्तियों या नोट्स की तालिका से नई Excel वर्कबुक बनवानी हो।

Skill का लिंक

https://github.com/TokenRhythm/opensquilla/blob/main/src/opensquilla/skills/bundled/xlsx/SKILL.md

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

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

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

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

इस skill से मेरी मदद करो: https://github.com/TokenRhythm/opensquilla/blob/main/src/opensquilla/skills/bundled/xlsx/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

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

“मेरे पास एक बिक्री स्प्रेडशीट है, और उसके कॉलम F के कुल योग ठीक करने हैं, बिना उसकी फ़ॉर्मेटिंग खोए।”

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

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

एजेंट फ़ाइल के सेल सीधे संभालता है और संख्या, टेक्स्ट, तारीख और फ़ॉर्मूले को अलग प्रकार के मान मानता है। वह वर्कबुक पढ़ने या लिखने के लिए Python टूल इस्तेमाल करता है, फिर तैयार फ़ाइल लौटाता है।

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

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

xlsx

Work with .xlsx workbooks. The format is OOXML SpreadsheetML — a zip container of XML parts. Treat each cell as a typed value: a number, a string, a datetime, or a formula. Mixing the four causes Excel to flag the workbook or compute incorrect totals.

Decide the path first

You have Goal Path
Existing .xlsx Read sheets and cells A. Inspect
Existing .xlsx Modify specific cells B. Edit-in-place
Nothing or a brief Build a new workbook C. Create from scratch

If the user provides a workbook to update, default to path B and treat the input as the formatting baseline. Choose path C only when the user says "start fresh".

Execution and delivery

Use execute_code with the Python examples below when it is available. Keep all input and output files in the active workspace, then call publish_artifact(path="out.xlsx") to deliver the finished workbook. In a restricted channel, use openpyxl directly; the shell commands below are optional shortcuts for sessions that expose exec_command. Do not use Python subprocesses to bypass an unavailable shell tool or request host execution when the sandbox fails. If execution or a required library is unavailable, report that limitation and keep the session read-only.


Path A: Inspect

With execute_code:

from openpyxl import load_workbook
wb = load_workbook("book.xlsx", data_only=False)
for ws in wb.worksheets:
    print(ws.title, list(ws.values))
wb.close()
python {baseDir}/scripts/inspect_xlsx.py /path/to/book.xlsx

Output:

{
  "sheets": [
    {
      "name": "Q3",
      "max_row": 10,
      "max_col": 5,
      "rows": [
        [
          {"value": "Metric", "type": "s"},
          {"value": "Value", "type": "s"}
        ],
        [
          {"value": "Revenue", "type": "s"},
          {"value": 2100000, "type": "n"}
        ]
      ]
    }
  ]
}

type follows openpyxl conventions: n (number), s (string), d (datetime), f (formula), b (bool), e (error), inlineStr (inline string). The helper script reads with data_only=False so formula expressions are returned literally; pass --data-only to get the cached computed result instead.


Path B: Edit in place

With execute_code:

from openpyxl import load_workbook
wb = load_workbook("book.xlsx")
wb["Q3"]["B2"] = "=SUM(B3:B10)"
wb.save("edited.xlsx")
wb.close()
python {baseDir}/scripts/edit_xlsx.py book.xlsx ops.json --out edited.xlsx

ops.json:

[
  {"op": "set_cell", "sheet": "Q3", "row": 2, "col": 2, "value": "=SUM(B3:B10)"},
  {"op": "set_cell", "sheet": "Q3", "row": 5, "col": 1, "value": "Net margin"},
  {"op": "rename_sheet", "old": "Sheet1", "new": "Summary"}
]

Rules:

  • Rows and columns are 1-based (Excel convention).
  • Strings starting with = are written as formulas (cell.value = "=..."), matching openpyxl behavior. To write a literal =hello use '=hello (Excel's leading-apostrophe escape) or pass an explicit as_text: true.
  • Datetimes go in as ISO 8601 strings ("2026-05-06T09:00:00"); the helper parses them back to datetime objects so Excel renders the cell with date format.
  • Editing a cell does not recalculate dependent formulas. Excel and LibreOffice recalculate on open. If you need cached values immediately, use a calculation engine (out of scope here).

Path C: Create from scratch

python {baseDir}/scripts/create_xlsx.py spec.json --out out.xlsx

Spec:

{
  "sheets": [
    {
      "name": "Sales",
      "rows": [
        ["Region", "Revenue", "Growth"],
        ["NA", 1200000, "=B2/SUM($B$2:$B$4)"],
        ["EU", 850000, "=B3/SUM($B$2:$B$4)"]
      ],
      "merged": [{"range": "A1:C1"}],
      "freeze": "A2"
    }
  ]
}

For programmatic use:

from openpyxl import Workbook
wb = Workbook()
ws = wb.active
ws.title = "Sales"
ws.append(["Region", "Revenue"])
ws.append(["NA", 1_200_000])
ws["C2"] = "=B2*1.05"          # formula
ws.merge_cells("A1:B1")
ws.freeze_panes = "A2"
wb.save("out.xlsx")

See references/openpyxl.md for styles, conditional formatting, charts, and formula references.


Common pitfalls

Symptom Cause Fix
Cell shows =SUM(...) as text, not the result Wrote the string with as_text: true or workbook lacks cached values Open in Excel and save once; or use a calc engine
Date renders as a ser
अक्सर पूछे जाने वाले सवाल

क्या एजेंट फ़ाइल बदलते समय मेरी मौजूदा फ़ॉर्मेटिंग रखेगा?

हाँ। मौजूदा वर्कबुक के लिए स्किल आपकी फ़ाइल को फ़ॉर्मेटिंग का आधार मानती है और केवल आपके माँगे सेल बदलती है।

क्या एजेंट हमेशा नई वर्कबुक शुरू से बनाता है?

नहीं। वह नई शुरुआत तभी करता है जब आप कहें। वरना आपकी दी हुई फ़ाइल संपादित करता है।

अगर एजेंट अपने Python टूल न चला सके तो?

स्किल कहती है कि सीमा बताएँ और सत्र को केवल-पढ़ने वाला रखें, उस टूल के बिना काम निकालने की कोशिश न करें।

जानकारी

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

Read, inspect, edit, or create Microsoft Excel `.xlsx` workbooks, including structured data extraction, formula-aware cell edits, and workbook generation from rows.

repo: TokenRhythm/opensquilla

लोकप्रियता

GitHub स्टार
7.1k
रैंकिंग में स्थान
#13595
लाइसेंस
Apache-2.0
अपडेट की गई
2/11/2026

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

0

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

कमेंट

  • …

इस repository की और skills

browser-use

7.1k

यह आपके एजेंट को OpenSquilla Desktop के साइडबार ब्राउज़र में वेब पेज खोलने, पढ़ने और चलाने देती है, जिसमें फ़ॉर्म और विज़ुअल जाँच शामिल हैं।

प्रोडक्टिविटीऑटोमेशन

deep-research

7.1k

यह आपके एजेंट को सहेजी गई योजना, ट्रैक किए गए स्रोतों और उद्धरणों वाली लंबी रिपोर्ट के साथ कई दौर का गहन शोध करना सिखाती है।

लेखन और डॉक्यूमेंटरिसर्च

docx

7.1k

यह आपके एजेंट को Word .docx फ़ाइलें पढ़ने, बदलने या बनाने में मदद करती है, और फ़ॉर्मेटिंग, ट्रैक्ड बदलाव और ढाँचा बना रहता है।

लेखन और डॉक्यूमेंटPDF, Word और स्लाइड

html-coder

7.1k

यह आपके एजेंट को सुलभ फ़ॉर्म और HTML5 फ़ीचर वाले साफ़ HTML पेज लिखने और उन्हें वेब प्रीव्यू में खोलने में मदद करती है।

कोडिंगवेबसाइट और UI (frontend)

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