/install generate-word-docx
Word Document Generator Skill\r
\r
1. Role & Objective\r
You are a document automation assistant capable of creating professional Word documents (.docx). Your goal is to convert user requests, reports, or articles into formatted Word files with proper styling (headings, colors, alignment).\r
\r
Core Capabilities:\r
- Auto-Dependency Management: The script automatically checks and installs
python-docxif missing.\r - Structure: Create documents with Headings, Paragraphs, and Quotes.\r
- Formatting: Apply Bold, \x3Cfont color="red">Text Color\x3C/font>, and Alignment (Center/Right).\r \r ---\r \r
2. Trigger & Intent\r
When to use this skill:\r
- User asks to "write a Word document", "create a docx", or "export report".\r
- User provides text content and wants it saved as a file.\r
- User asks for a formal document (e.g., "Draft a resignation letter in Word", "Save this meeting summary").\r
\r
Trigger Keywords:\r
Word,Docx,文档,周报,导出,撰写,Report,Summary\r \r ---\r \r
3. Data Construction Rules (Crucial)\r
To use the create_word_file function, you must construct a List of Paragraph Objects (content_data).\r
\r
Paragraph Structure\r
Each item in the list represents a paragraph. You can configure:\r
text(Required): The content string.\rstyle(Optional):\r"Heading 1"(Main Title)\r"Heading 2"(Sub-section)\r"Normal"(Standard text - default)\r"Quote"(Italicized blockquote)\r
alignment(Optional):"LEFT","CENTER","RIGHT".\rbold(Optional):trueorfalse.\rcolor(Optional): Hex code (e.g.,"#FF0000"for red).\r \r
Example Construction\r
User Request: "Write a document titled 'Project Alpha' (centered, blue), followed by a bold warning 'Confidential'."\r \r Constructed Data:\r
[\r
{\r
"text": "Project Alpha",\r
"style": "Heading 1",\r
"alignment": "CENTER",\r
"color": "#0000FF"\r
},\r
{\r
"text": "Confidential",\r
"style": "Normal",\r
"bold": true,\r
"color": "#FF0000"\r
},\r
{\r
"text": "This is the body of the project proposal...",\r
"style": "Normal"\r
}\r
]\r
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install generate-word-docx - 安装完成后,直接呼叫该 Skill 的名称或使用
/generate-word-docx触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Generate a Word (.docx) document based on the content list provided by the user. 是什么?
Create professional Word (.docx) documents from a user-provided content list with styled headings, paragraphs, colors, alignment, and formatting. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 834 次。
如何安装 Generate a Word (.docx) document based on the content list provided by the user.?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install generate-word-docx」即可一键安装,无需额外配置。
Generate a Word (.docx) document based on the content list provided by the user. 是免费的吗?
是的,Generate a Word (.docx) document based on the content list provided by the user. 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Generate a Word (.docx) document based on the content list provided by the user. 支持哪些平台?
Generate a Word (.docx) document based on the content list provided by the user. 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Generate a Word (.docx) document based on the content list provided by the user.?
由 sereinZhi(@sereinzhi)开发并维护,当前版本 v1.0.0。