/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
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install generate-word-docx - After installation, invoke the skill by name or use
/generate-word-docx - Provide required inputs per the skill's parameter spec and get structured output
What is 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. It is an AI Agent Skill for Claude Code / OpenClaw, with 834 downloads so far.
How do I install Generate a Word (.docx) document based on the content list provided by the user.?
Run "/install generate-word-docx" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Generate a Word (.docx) document based on the content list provided by the user. free?
Yes, Generate a Word (.docx) document based on the content list provided by the user. is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Generate a Word (.docx) document based on the content list provided by the user. support?
Generate a Word (.docx) document based on the content list provided by the user. is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Generate a Word (.docx) document based on the content list provided by the user.?
It is built and maintained by sereinZhi (@sereinzhi); the current version is v1.0.0.