技能圖譜SKILLSGROVE
技能圖譜/辦公文件/revolover00/Claude-clone/word-documents

word-documents

安裝

$npx skills add https://github.com/revolover00/Claude-clone --skill word-documents
$git clone --depth 1 https://github.com/revolover00/Claude-clone.git /tmp/Claude-clone && mkdir -p ~/.claude/skills && cp -r /tmp/Claude-clone/skills/builtin/word-documents ~/.claude/skills/word-documents
請幫我安裝這個 Agent Skill:https://github.com/revolover00/Claude-clone/tree/1e465ee963ae98afa83b11bb6e2d3e8c912b2613/skills/builtin/word-documents ,先閱讀它的 SKILL.md 和指令碼,確認安全後再安裝到我的技能目錄。

簡介

原文描述 · MITGenerates formatted Microsoft Word (.docx) documents from structured JSON specifications with headings, paragraphs, bullet lists, tables, images, and page numbers. Use when users ask to create Word documents, formal reports, contracts, manuals, or letters in .docx format. Supports English and RTL Arabic typography. Triggers: create word doc, generate docx, word document, write a report in word, إنشاء ملف وورد, مستند وورد, تقرير وورد, وثيقة docx.
以下 SKILL.md 內容轉載自 revolover00/Claude-clone(提交 1e465ee),依據 MIT 許可證轉載正文(文字未改動;僅省略檔案頭後設資料、將圖片顯示為連結,超長內容會截斷);版權歸 2026 Author 所有。許可證:skills/builtin/word-documents/LICENSE.txt。僅展示說明檔案,附帶指令碼請在原倉庫檢視。

Word Documents Creation (.docx)

Use the server function create_document({ format: "docx", title, spec }) to generate a professional Word document.

How to fill the spec

  1. Structure First: Plan the document hierarchy logically:

    • Document Title
    • Headings (level 1 for main sections, level 2 for subsections, level 3 for details)
    • Paragraphs (set bold: true or italic: true where emphasis is needed)
    • Bullet lists (items: string[])
    • Tables (headers: string[], rows: string[][])
    • Page numbers (pageNumbers: true)
    • Page breaks ({ type: "page_break" })
  2. Concise Text: Write polished, structured, and informative text directly into the elements.

  3. Arabic & RTL Handling:

    • For Arabic text or right-to-left layout, set rtl: true at the root spec or element level.
    • The docx generator automatically enables bidirectional paragraph formatting and right-aligned text runs.

Example Call

{
  "format": "docx",
  "title": "Quarterly Performance Report",
  "spec": {
    "rtl": false,
    "pageNumbers": true,
    "elements": [
      { "type": "heading", "level": 1, "text": "Executive Summary" },
      { "type": "paragraph", "text": "This report outlines our strategic deliverables and operational milestones." },
      { "type": "bullet_list", "items": ["Delivered project milestone 1", "Achieved 99.9% uptime"] },
      { "type": "table", "headers": ["Metric", "Target", "Actual"], "rows": [["Revenue", "$1.2M", "$1.4M"], ["NPS", "70", "78"]] }
    ]
  }
}
檢視許可證全文(MIT)
MIT License

Copyright (c) 2026 Author

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.