983488728/docx-generator/SKILL.md
创建包含 AI 生成页脚的 Microsoft Word (.docx) 文档。当用户需要编程方式生成 Word 文档时调用,支持标题、段落、列表、表格、代码块、图片等功能。
npx skillsauth add openclaw/skills docx-generatorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
强大的 Open Claw Skill,用于创建带有自动 AI 生成声明的 Microsoft Word (.docx) 文档。
当用户明确请求以下内容时调用:
docx-generator/
├── SKILL.md # Skill 配置和文档
└── scripts/
├── __init__.py # 模块导出
└── docx_generator.py # 核心实现
from scripts.docx_generator import create_simple_document
create_simple_document(
title="我的文档",
content="文档内容...",
output_path="./output/document.docx"
)
from scripts.docx_generator import create_report
sections = [
{"title": "第一章", "content": "第一章的内容"},
{"title": "第二章", "content": "第二章的内容"}
]
create_report(
title="报告标题",
sections=sections,
output_path="./output/report.docx"
)
from scripts.docx_generator import DocxGenerator
(DocxGenerator()
.set_header_text("文档页眉")
.add_title("文档标题", level=1)
.add_paragraph("介绍段落", bold=True)
.add_list(["要点1", "要点2", "要点3"])
.add_code_block("print('Hello, World!')", language="Python")
.add_quote("这是一段引用")
.add_table([["列1", "列2"], ["数据1", "数据2"]])
.save("./output/advanced.docx"))
gen = DocxGenerator()
gen.add_paragraph(
"样式文本",
font_size=14,
bold=True,
italic=True,
color="FF0000",
alignment="center"
)
| 方法 | 说明 |
|------|------|
| set_header_text(text) | 设置文档页眉 |
| set_footer_text(text) | 设置文档页脚 |
| add_title(title, level=1) | 添加标题(级别 1-9) |
| add_paragraph(text, **kwargs) | 添加段落(可选样式) |
| add_list(items, ordered=False) | 添加无序或有序列表 |
| add_table(data, **kwargs) | 添加表格 |
| add_code_block(code, language) | 添加代码块 |
| add_quote(text) | 添加引用块 |
| add_image(path, **kwargs) | 添加图片 |
| add_hyperlink(text, url) | 添加超链接 |
| add_page_break() | 添加分页符 |
| add_spacing(lines) | 添加空行 |
| save(filepath) | 保存文档 |
| 函数 | 说明 |
|------|------|
| create_simple_document() | 快速创建简单文档 |
| create_report() | 创建结构化报告 |
安装方式:
pip install python-docx
Skill 会自动为每页添加 "AI生成,仅供参考" 页脚,样式为灰色、居中、斜体。
输出文档包含:
2.0.0
tools
Use when the user wants to connect to, test, or use the McDonalds service at mcp.mcd.cn, including checking authentication, probing MCP endpoints, listing tools, or calling McDonalds MCP tools through a reusable local CLI.
development
Web scraping platform — Twitter/X data, Vinted marketplace, and general web scraping API
development
SlowMist AI Agent Security Review — comprehensive security framework for skills, repositories, URLs, on-chain addresses, and products (Claude Code version)
data-ai
去除中文文本中的 AI 写作痕迹,使其读起来自然。基于维基百科 AI 写作特征指南,检测 24 种 AI 模式。触发词:humanizer-cn、去除 AI 痕迹、去除 AI 写作痕迹、中文文本人性化。