office-transform
यह क्या करती है
यह टूल किसी मौजूदा फ़ाइल के चुने हुए हिस्से से एक नई दस्तावेज़ फ़ाइल बनाता है। यह Excel, Word, PDF या PowerPoint में से कोई भी हो सकती है। मूल फ़ाइल कभी नहीं बदली जाती।
कब इस्तेमाल करें
- ✓स्प्रेडशीट से कोई टेबल कॉपी करके नई फ़ाइल में डालना।
- ✓Word दस्तावेज़ से कोई खास पैराग्राफ निकालकर नई फ़ाइल में रखना।
- ✓प्रेज़ेंटेशन की कोई स्लाइड लेकर नई फ़ाइल बनाना।
Skill का लिंक
https://github.com/CherryHQ/cherry-studio/blob/main/resources/skills/office-transform/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“'Sales' शीट के कॉलम A से C और रो 5 से 20 का डेटा लेकर एक नई Excel फ़ाइल बनाओ।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
आप दस्तावेज़ का कोई हिस्सा चुनते हैं (जैसे स्प्रेडशीट में कोई रेंज या Word में कोई पैराग्राफ)। फिर टूल उस चुने हुए हिस्से को पढ़ता है और उसी सामग्री के साथ एक बिल्कुल नई फ़ाइल बनाता है, ताकि मूल फ़ाइल बिना बदले रहे।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Office Transform
Turn a structural selection of an Office/PDF document into a new derived file.
Two invariants hold for every operation:
- The source file is read-only. Every result is a new file; both scripts refuse to write to the source path or overwrite an existing file. Never work around this with ad-hoc shell edits to the original.
- Anchors are structural. Selections address the document's own coordinates — worksheet + A1 range, body-level paragraph ordinal, one-based page number — never screen or DOM positions.
When to use which tool
- Only need to read a document to summarize or answer questions → use
mcp__cherry-tools__to_markdowninstead (see the cherry-tool-guide skill); it is lossy but built for reading. - The user wants a file out — an extracted range, a converted fragment, an edited copy → this skill.
Input: selection references
Chat surfaces may hand you a fenced selection-ref block:
{"path": "/abs/report.xlsx", "anchor": {"format": "xlsx", "sheet": "Sheet1", "range": "A1:C10"}, "excerpt": "…", "fileStamp": {"size": 1024, "mtimeMs": 1700000000000}}
The anchor object is exactly what the scripts take via --anchor.
Freshness check. fileStamp.mtimeMs is milliseconds since the Unix epoch, floored to
whole milliseconds. Do not compare it to stat's default output: stat -f %m (macOS) and
stat -c %Y (GNU) give whole seconds, so multiplying by 1000 loses the sub-second part and
never matches. Read whole milliseconds the way the app wrote them:
uv run python -c "import os,sys;st=os.stat(sys.argv[1]);print(st.st_size, st.st_mtime_ns//1_000_000)" '/abs/report.xlsx'
Treat the file as changed when the size differs, or when the mtimes differ by more than 2 ms.
The tolerance is small on purpose: both sides floor the same nanosecond timestamp to
milliseconds, so they agree exactly, and the couple of milliseconds only covers the rounding
of a double that can no longer represent current epoch milliseconds exactly. A wider window
would hide real edits — a same-size change made within it would read as unchanged, which is
why the anchor check below is not optional. On a change, tell the user the file changed since
they selected and ask them to re-select — never silently re-anchor.
Anchor check. Before a patch-copy edit, also verify the anchor still points where the
user thinks: extract the anchored region and compare its text with the reference's excerpt,
normalizing both sides the same way (NFC, collapse each whitespace run to one space, trim).
The two are not equal and are not meant to be — the excerpt is what the user selected, while
the extract is the whole region an edit would replace. A selection sitting inside one region
makes the excerpt the shorter side; a selection running past that region anchors to where it
starts, which makes it the longer one. So the test is containment, whichever way round fits:
the excerpt appears inside the extract, or the extract's tail is where the excerpt begins.
Only when neither holds has the anchor stopped pointing at the selection — then stop and tell
the user, never edit at a mismatched anchor and never go searching for a "close enough"
location. Two cases need care because the two sides are not directly comparable as-is:
- xlsx: the
excerptis tab-separated cells and newline-separated rows, while extraction writes csv or md. Compare cell values, not the raw file — read the csv with a csv reader and join the fields with single spaces before normalizing, so,and|never count as a difference. That join drops the cell boundaries on both sides, so a match proves the text is unchanged, not the grid — the same words re-split across cells still reads as a match. The freshness check above is what catches that; never skip it on a passing anchor check. Number formats are the second asymmetry: theexcerptholds what Excel displays, because that is what the user pointed at (1,234.50,45.67%), while extraction writes the stored value (1234.5,0.4567). Neither side is wrong, so a formatted cell never matches literally. Compare those cells by value, and leave them out of the joined strings so the containment test runs on the text cells alone. Dates, times and durations are the same asymmetry seen from the other side: extraction writes one fixed shape (2024-01-03,
…
अक्सर पूछे जाने वाले सवाल
मूल फ़ाइल का क्या होता है?
मूल फ़ाइल जैसी थी वैसी ही रहती है। टूल उसे न बदलता है, न ओवरराइट करता है।
क्या मैं मूल फ़ाइल को एडिट कर सकता हूँ?
नहीं, यह टूल मूल फ़ाइल के लिए सिर्फ़ पढ़ने वाला (read-only) है। हर काम का नतीजा एक नई फ़ाइल में आता है।
टूल को कैसे पता चलता है कि मुझे दस्तावेज़ का कौन सा हिस्सा चाहिए?
आप दस्तावेज़ में सीधे हिस्सा चुन सकते हैं या उसका वर्णन कर सकते हैं (जैसे 'शीट X, कॉलम A से C')। टूल इसी जानकारी से सही हिस्सा खोजकर कॉपी करता है।
जानकारी
लेखक का मूल विवरण
Derive new Office files from structural selections without touching the original. Use when the user points at part of a spreadsheet, Word document, PDF, or PowerPoint deck (a worksheet range, paragraph, page, slide, shape, or a pasted selection-ref block) and wants it extracted, converted, or edited — the result is always a NEW file; the source file is never modified. Covers xlsx range extraction
repo: CherryHQ/cherry-studio
लोकप्रियता
- GitHub स्टार
- 53k
- रैंकिंग में स्थान
- #3391
- लाइसेंस
- AGPL-3.0
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
code-mate-antigravity
53kआपके एजेंट को कोड का विश्लेषण करने और प्रोग्रामिंग के काम करने देता है। मौजूदा कोड की समीक्षा या सुधार के लिए यह उपयोगी है।
code-mate-claude-code
53kआपके एजेंट को कोड का विश्लेषण और इम्प्लीमेंट करने में मदद करता है। सॉफ़्टवेयर डेवलपमेंट के काम और कोड रिव्यू के लिए यह उपयोगी है।
code-mate-codex
53kआपके एजेंट को कोड का विश्लेषण और इम्प्लीमेंट करने देता है। कोडिंग के नतीजे पाने या दूसरे टूल्स से तुलना करने के लिए यह उपयोगी है।
code-mate-deepseek-harness
53kआपके एजेंट को रिपॉज़िटरी में कोड का विश्लेषण और इम्प्लीमेंट करने में मदद करता है। सीमित दायरे वाले डेवलपमेंट काम और कोड विश्लेषण के लिए यह उपयोगी है।
मिलती-जुलती skills
obsidian-vault-maintainer
394kयह आपके एजेंट को Obsidian के अनुकूल मेमोरी vault व्यवस्थित रखने देती है, जिसमें काम करने वाले wiki लिंक, एक जैसी properties और सुरक्षित जेनरेटेड सेक्शन हों।
wiki-maintainer
394kयह आपके एजेंट को OpenClaw मेमोरी wiki दोहराए जा सकने वाले पेजों, सुरक्षित मैनेज्ड ब्लॉक्स और विरोधाभास या कमियों की जांच के साथ संभालने देती है।
obsidian
394kयह आपके एजेंट को आधिकारिक Obsidian कमांड-लाइन से Obsidian नोट्स, टास्क, लिंक और properties पढ़ने, खोजने, बनाने और बदलने देती है।