officecli-docx
यह क्या करती है
यह स्किल AI एजेंट को officecli टूल से .docx Word फ़ाइलों के साथ काम करने में मार्गदर्शन देती है। यह उन लोगों के लिए है जो Word दस्तावेज़ लिखते, फ़ॉर्मेट करते या संशोधित करते हैं।
कब इस्तेमाल करें
- ✓जब आप Word रिपोर्ट, पत्र, मेमो या प्रस्ताव को .docx फ़ाइल के रूप में लिखवाना चाहें।
- ✓जब आपको मौजूदा Word फ़ाइल से टेक्स्ट पढ़ना या निकालना हो।
- ✓जब आप टेम्पलेट संपादित करना, विषय-सूची जोड़ना या टिप्पणियों के साथ काम करना चाहें।
Skill का लिंक
https://github.com/iOfficeAI/OfficeCLI/blob/main/skills/officecli-docx/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप एक पेज का पत्र Word फ़ाइल में लिख सकते हैं और फ़ुटर में पेज नंबर जोड़ सकते हैं?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
आपका एजेंट officecli से दस्तावेज़ की संरचना पढ़ता है, सामग्री, styles, headers और footers में बदलाव करता है, फिर नतीजा जाँचता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
OfficeCLI DOCX Skill
Setup
If officecli is missing:
- macOS / Linux:
curl -fsSL https://d.officecli.ai/install.sh | bash - Windows (PowerShell):
irm https://d.officecli.ai/install.ps1 | iex
Verify with officecli --version (open a new terminal if PATH hasn't picked up). If install fails, download a binary from https://github.com/iOfficeAI/OfficeCLI/releases.
⚠️ Help-First Rule
This skill teaches what good docx looks like, not every command flag. When a property name, enum value, or alias is uncertain, consult help BEFORE guessing.
officecli help docx # List all docx elements
officecli help docx <element> # Full element schema (e.g. paragraph, field, numbering, watermark, toc)
officecli help docx <verb> <element> # Verb-scoped (e.g. add field, set section)
officecli help docx <element> --json # Machine-readable schema
Help is pinned to the installed CLI version. When this skill and help disagree, help is authoritative.
Mental Model
A .docx is a ZIP of XML parts (document.xml, styles.xml, numbering.xml, header*.xml, footer*.xml, comments.xml, …). Everything the user sees — headings, tables, page numbers, TOC, tracked changes — is XML inside that ZIP. officecli gives you a semantic-path API (/body/p[1]/r[2]) over it, so you almost never touch raw XML; when you must, use raw-set (see the XML appendix).
Shell & Execution Discipline
docx paths contain []; some prop values contain $. Both are shell metacharacters. Escaping happens at three layers — keep them separate.
- Shell. ALWAYS quote element paths:
"/body/p[1]", not/body/p[1](zsh/bash glob[N]). Single-quote any value containing$:--prop text='$50M'— at any length, the whole value inside one pair of single quotes. Unquoted$50Mis stripped toM; mixing'…$var…'and"…$50…"on one long string is where the$50silently vanishes. - CLI (
text=). The two-char escapes\n,\vand\tARE interpreted in--prop text=(same rule as pptx):\nstarts a new paragraph (each new<w:p>inherits the source paragraph's style),\vis a soft line break within one paragraph (<w:br/>),\ta<w:tab/>. Double the backslash (\\n) for a literal backslash-n (rarely wanted). Row-level table shortcutsc1…cNare the exception: there\nis a<w:br/>line break inside the cell (see recipe (e)). - JSON (batch). Batch does NOT interpret the two-char escapes — a JSON
"\\n"or"\\v"lands as literal text. Use JSON escapes for the real characters:"\n"(a newline) starts a new paragraph,"\u000b"is a soft line break.
If in doubt, view text after writing and compare character-for-character.
Incremental execution. officecli mutates the file on every call. Run commands one at a time and check each exit code — a 50-command script that fails at command 3 cascades silently. After any structural op (new style, table, TOC, section break) run get on it before stacking more.
Open/save lifecycle: officecli open <file> at the start, officecli save <file> at the end to flush to disk — save only writes and leaves the resident warm for follow-up edits; reach for officecli close <file> only to release the resident on a one-shot handoff. Both are always safe (never error or lose work). For many paragraphs of one style, use batch (one pass for the whole array). Flush only at the non-officecli boundary: officecli's own reads always see your edits; run save/close only before a non-officecli program reads the file (python-docx, Word, a renderer, delivery).
$FILE convention. All commands use "$FILE" — set it once (FILE="your-doc.docx"). Never copy a literal doc.docx / review.docx into output — always substitute your actual target.
Requirements for Outputs
Deliverable standards every document MUST meet — know these before reaching for a command.
Clear hierarchy. Every non-trivial document has Title → Heading 1 → Heading 2 → body, not a wall of unstyled Normal paragraphs. If view outline shows one flat list, the hierarchy is missing.
Explicit heading sizes (Word default style sizes drift between templates): H1 ≥ 18pt (20pt for long reports), H2 = 14pt bold, H3 = 12pt bold, body = 11–12pt, line spacing 1.15–1.5x. Prefer style=Heading1 over inline sizes so a retheme touches the definition once — but set explicit sizes when you can't trus
अक्सर पूछे जाने वाले सवाल
क्या मुझे Word इंस्टॉल चाहिए?
नहीं। स्किल कहती है कि officecli Microsoft Office के बिना चलता है।
क्या यह ट्रैक किए गए बदलाव संभाल सकती है?
हाँ। स्किल ट्रैक किए गए बदलाव और टिप्पणियों को कवर करती है।
सटीक प्रॉपर्टी नाम कहाँ से मिलेंगे?
स्किल सटीक प्रॉपर्टी नामों के लिए officecli help कमांड का हवाला देती है।
जानकारी
लेखक का मूल विवरण
Use this skill any time a .docx file is involved -- as input, output, or both. This includes: creating Word documents, reports, letters, memos, or proposals; reading, parsing, or extracting text from any .docx file; editing, modifying, or updating existing documents; working with templates, tracked changes, comments, headers/footers, or tables of contents. Trigger whenever the user mentions 'Word doc', 'document', 'report', 'letter', 'memo', or references a .docx filename.
repo: iOfficeAI/OfficeCLI
लोकप्रियता
- GitHub स्टार
- 33k
- रैंकिंग में स्थान
- #9132
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 30/10/2026
कमेंट
- …
इस repository की और skills
officecli
33kयह आपके एजेंट को officecli टूल से Word, Excel और PowerPoint फ़ाइलें बनाने, पढ़ने, जाँचने और संपादित करने देती है, बिना Office इंस्टॉल किए।
morph-ppt-3d
33kयह आपके एजेंट को 3D GLB मॉडल और स्लाइडों के बीच सहज Morph ट्रांज़िशन वाली PowerPoint डेक बनाने में मदद करती है।
morph-ppt
33kयह आपके एजेंट को सहज Morph ट्रांज़िशन वाली PowerPoint फ़ाइल बनाने में मदद करती है, जिसमें स्लाइडों के बीच आकृतियाँ चलें, बढ़ें या घूमें।
officecli-academic-paper
33kयह आपके एजेंट को उद्धरणों, समीकरणों और जर्नल-शैली लेआउट के साथ शोध पेपर, थीसिस या पांडुलिपि को Word फ़ाइल के रूप में फ़ॉर्मेट करने में मदद करती है।
मिलती-जुलती skills
feishu-doc
394kयह आपके एजेंट को document टूल से Feishu क्लाउड दस्तावेज़ पढ़ने, बनाने और बदलने में मदद करती है, जिसमें टेक्स्ट, इमेज और टेबल शामिल हैं।
feishu-drive
394kयह आपके एजेंट को बॉट के साथ साझा किए गए Feishu क्लाउड फ़ोल्डर में फ़ाइलें देखने, व्यवस्थित करने और उन पर टिप्पणी करने देती है।
feishu-perm
394kयह आपके एजेंट को Feishu फ़ाइल तक किसकी पहुंच है, यह जांचने और बदलने देती है, और आपके अनुरोध के लिए सबसे छोटी अनुमति चुनती है।