Markitdown
ImCa0/just-laws
Convert files and office documents to Markdown. An agent skill from ImCa0/just-laws.
当用户需要基于模板填充 Word 文档(.docx)、从模板生成报告、创建包含动态数据的合同,或自动化文档生成时使用此技能。包括替换普通占位符 {name} 替换文本、使用 {name|r:x,c:y} 格式标记的智能表格填充(支持从标记行开始向下填充,保留上方内容)、插入图片、批量生成文档等。如果用户提及 .docx 模板、邮件合并功能或以编程方式填写 Word 表单,请使用此技能。
$ npx skills add LeoYeAI/openclaw-master-skills --skill fill-docx-template -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills fill-docx-template --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/fill-docx-template .claude/skills/fill-docx-template && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "fill-docx-template" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/fill-docx-template into .claude/skills/fill-docx-template/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fill-docx-template", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/fill-docx-templateType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add LeoYeAI/openclaw-master-skills --skill fill-docx-template -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills fill-docx-template --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/fill-docx-template .agents/skills/fill-docx-template && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "fill-docx-template" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/fill-docx-template into .agents/skills/fill-docx-template/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fill-docx-template", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add LeoYeAI/openclaw-master-skills --skill fill-docx-template -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills fill-docx-template --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/fill-docx-template .cursor/skills/fill-docx-template && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "fill-docx-template" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/fill-docx-template into .cursor/skills/fill-docx-template/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fill-docx-template", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/LeoYeAI/openclaw-master-skills.git --path skills/fill-docx-template--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add LeoYeAI/openclaw-master-skills --skill fill-docx-template -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills fill-docx-template --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/fill-docx-template .gemini/skills/fill-docx-template && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "fill-docx-template" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/fill-docx-template into .gemini/skills/fill-docx-template/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fill-docx-template", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install LeoYeAI/openclaw-master-skills fill-docx-templateInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add LeoYeAI/openclaw-master-skills --skill fill-docx-template -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/fill-docx-template .github/skills/fill-docx-template && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "fill-docx-template" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/fill-docx-template into .github/skills/fill-docx-template/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fill-docx-template", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add LeoYeAI/openclaw-master-skills --skill fill-docx-template -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills fill-docx-template --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/fill-docx-template .opencode/skills/fill-docx-template && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "fill-docx-template" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/fill-docx-template into .opencode/skills/fill-docx-template/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fill-docx-template", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
fill-docx-template当用户需要基于模板填充 Word 文档(.docx)、从模板生成报告、创建包含动态数据的合同,或自动化文档生成时使用此技能。包括替换普通占位符 {name} 替换文本、使用 {name|r:x,c:y} 格式标记的智能表格填充(支持从标记行开始向下填充,保留上方内容)、插入图片、批量生成文档等。如果用户提及 .docx 模板、邮件合并功能或以编程方式填写 Word 表单,请使用此技能。
Fill DOCX Template is an agent skill from LeoYeAI/openclaw-master-skills. 当用户需要基于模板填充 Word 文档(.docx)、从模板生成报告、创建包含动态数据的合同,或自动化文档生成时使用此技能。包括替换普通占位符 {name} 替换文本、使用 {name|r:x,c:y} 格式标记的智能表格填充(支持从标记行开始向下填充,保留上方内容)、插入图片、批量生成文档等。如果用户提及 .docx 模板、邮件合并功能或以编程方式填写 Word 表单,请使用此技能。
Its SKILL.md is about 3.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files (for example `README.md` and `_meta.json`).
It sits in Documents & Office, covering Word documents. It works with Microsoft Word. The repository describes itself as: 🧠 Curated collection of 1209+ best OpenClaw skills — weekly updated by MyClaw.ai. The licence is MIT.
10 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit e5199b5. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Fill DOCX Template loads about 3.4k tokens when it runs. Until then it costs about 53 tokens; SKILL.md has 140 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from LeoYeAI/openclaw-master-skills at commit e5199b5, republished under its MIT licence (© LeoYeAI). 140 words, ~3,382 tokens.
.claude/skills/fill-docx-template/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.本指南介绍如何使用 Python 向 Word(.docx)模板填充动态数据。支持:
{variable_name} 替换文本{name|r:x,c:y} 标记在表格左侧任意位置,自动从标记行向下填充,保留上方内容,并自动调整表格行列数表格并非总是"提前自动扩展" - 这取决于占位符是否被正确识别:
{name|r:x,c:y} 格式完全正确且位于**该行的最左侧单元格(第一列)**时,表格会在 DocxTemplateFiller 初始化时立即调整为声明的行列数{name | r:5, c:4})、或不在第一列,表格将保持原样,不会自动扩展或收缩from docx import Document
from docx.shared import Inches
from docx.oxml import OxmlElement
from docx.oxml.ns import qn
import re
import os
class DocxTemplateFiller:
def __init__(self, template_path):
if not os.path.exists(template_path):
raise FileNotFoundError(f"模板文件不存在: {template_path}")
self.doc = Document(template_path)
self.template_path = template_path
self.named_tables = {} # 存储表格信息
# 初始化时扫描表格占位符
self._process_table_placeholders()
def _process_table_placeholders(self):
"""
扫描所有表格的每一行第一个单元格,查找 {name|r:x,c:y} 格式
例如:{products|r:5,c:4} 表示从当前行开始,共5行,4列
"""
pattern = re.compile(r'\{(\w+)\|r:(\d+),c:(\d+)\}')
for table_idx, table in enumerate(self.doc.tables):
for row_idx, row in enumerate(table.rows):
if len(row.cells) == 0:
continue
# 检查每行的第一个单元格(最左侧)
first_cell = row.cells[0]
text = first_cell.text.strip()
match = pattern.search(text)
if match:
name = match.group(1)
target_rows = int(match.group(2))
target_cols = int(match.group(3))
# 保存表格配置信息
self.named_tables[name] = {
'table': table,
'start_row': row_idx, # 占位符所在行(从此行开始填充)
'target_rows': target_rows, # 需要填充的总行数(包括占位符行)
'target_cols': target_cols # 目标列数
}
# 调整表格大小:上方保留 row_idx 行,从 row_idx 开始有 target_rows 行
self._resize_table(table, row_idx, target_rows, target_cols)
# 清除占位符文本(可选,因为填充时会覆盖,但清除更干净)
# 保留单元格其他可能的文本(占位符前后文本)
new_text = pattern.sub('', first_cell.text).strip()
if new_text:
first_cell.text = new_text
else:
first_cell.text = "" # 清空等待填充
def _resize_table(self, table, start_row, target_rows, target_cols):
"""调整表格大小:确保从 start_row 开始有 target_rows 行,总列数为 target_cols"""
total_needed_rows = start_row + target_rows
current_rows = len(table.rows)
current_cols = len(table.columns) if table.columns else 0
# 调整行数
if total_needed_rows > current_rows:
# 添加行
for _ in range(total_needed_rows - current_rows):
table.add_row()
elif total_needed_rows < current_rows:
# 删除多余行(从末尾删除,保留前面的)
self._delete_rows_from_end(table, current_rows - total_needed_rows)
# 调整列数
if target_cols != current_cols:
self._resize_columns(table, target_cols)
def _delete_rows_from_end(self, table, num_rows):
"""从表格末尾删除指定行数"""
tbl = table._tbl
for _ in range(num_rows):
if len(table.rows) > 0:
tr = table.rows[-1]._tr
tbl.remove(tr)
def _resize_columns(self, table, target_cols):
"""调整表格列数"""
current_cols = len(table.columns)
tbl = table._tbl
tblGrid = tbl.find(qn('w:tblGrid'))
if target_cols > current_cols:
# 添加列定义
for _ in range(target_cols - current_cols):
gridCol = OxmlElement('w:gridCol')
tblGrid.append(gridCol)
# 为每一行添加单元格
for row in table.rows:
for _ in range(target_cols - current_cols):
tc = OxmlElement('w:tc')
tcPr = OxmlElement('w:tcPr')
tc.append(tcPr)
p = OxmlElement('w:p')
tc.append(p)
row._tr.append(tc)
elif target_cols < current_cols:
# 删除多余列定义
for _ in range(current_cols - target_cols):
if len(tblGrid) > 0:
tblGrid.remove(tblGrid[-1])
# 从每行删除多余单元格
for row in table.rows:
for _ in range(current_cols - target_cols):
tcs = row._tr.findall(qn('w:tc'))
if len(tcs) > target_cols:
row._tr.remove(tcs[-1])
def fill_placeholders(self, data_dict):
"""替换普通占位符 {key}(不包括表格定义格式)"""
# 匹配普通占位符,排除表格定义格式
pattern = re.compile(r'\{(\w+)\}(?!\|r:\d+,c:\d+)')
# 处理段落
for para in self.doc.paragraphs:
self._replace_in_paragraph(para, pattern, data_dict)
# 处理表格内的普通占位符(排除已识别的表格占位符单元格)
for table in self.doc.tables:
for row in table.rows:
for cell in row.cells:
for para in cell.paragraphs:
self._replace_in_paragraph(para, pattern, data_dict)
def _replace_in_paragraph(self, paragraph, pattern, data_dict):
"""在段落中执行替换"""
text = paragraph.text
matches = pattern.findall(text)
if not matches:
return
new_text = text
for key in matches:
if key in data_dict:
placeholder = f'{{{key}}}'
value = str(data_dict[key])
new_text = new_text.replace(placeholder, value)
if new_text != text and paragraph.runs:
paragraph.runs[0].text = new_text
for run in paragraph.runs[1:]:
run.text = ""
def fill_named_table(self, table_name, data):
"""
填充指定名称的表格
从占位符所在行开始(包括该行)向下填充,保留上方内容
:param table_name: 表格名称(来自占位符 {name|r:x,c:y})
:param data: 二维列表,如 [['产品A', '规格1', '10'], [...]]
"""
if table_name not in self.named_tables:
raise KeyError(f"未找到名为 '{table_name}' 的表格,请确保模板中存在 '{{{table_name}|r:x,c:y}}' 格式的占位符在最左侧单元格")
table_info = self.named_tables[table_name]
table = table_info['table']
start_row = table_info['start_row']
target_rows = table_info['target_rows']
target_cols = table_info['target_cols']
# 确保数据不超过声明的行数
if len(data) > target_rows:
data = data[:target_rows]
# 从 start_row 开始填充(包括该行)
for row_offset, row_data in enumerate(data):
actual_row_idx = start_row + row_offset
if actual_row_idx >= len(table.rows):
break
# 确保不超出列数
if len(row_data) > target_cols:
row_data = row_data[:target_cols]
# 填充该行的每一列
for col_idx, value in enumerate(row_data):
if col_idx >= len(table.columns):
break
table.cell(actual_row_idx, col_idx).text = str(value)
def fill_all(self, text_data=None, table_data=None):
"""
一键填充所有内容
:param text_data: 普通占位符字典,如 {'company': 'ABC公司'}
:param table_data: 表格数据字典,如 {'products': [[...], [...]]}
"""
if text_data:
self.fill_placeholders(text_data)
if table_data:
for name, data in table_data.items():
self.fill_named_table(name, data)
def insert_paragraph_at(self, index, text, style=None):
"""在指定位置插入段落"""
if index == -1 or index >= len(self.doc.paragraphs):
p = self.doc.add_paragraph(text)
else:
p = self.doc.paragraphs[index].insert_paragraph_before(text)
if style:
p.style = style
return p
def insert_image(self, paragraph_index, image_path, width=None):
"""在指定段落后插入图片"""
if not os.path.exists(image_path):
raise FileNotFoundError(f"图片不存在: {image_path}")
para = self.doc.paragraphs[paragraph_index]
run = para.add_run()
if width:
run.add_picture(image_path, width=Inches(width))
else:
run.add_picture(image_path)
def save(self, output_path):
self.doc.save(output_path)
print(f"✅ 文档已生成: {os.path.abspath(output_path)}")
使用 {variable_name} 格式:
甲方(购方):{company}
签署日期:{date}
合同编号:{contract_no}
格式:{name|r:x,c:y}
位置:表格最左侧的任意单元格(通常是某一行的第一列)
行为:
示例:
| 序号 | 产品名称 | 规格 | 数量 | 单价 | 金额 |
| ------ | -------- | --- | --- | --- | ---- |
| 1 | 产品A | 规格1 | 10 | 100 | 1000 |
| {items|r:3,c:6} | | | | | |
| | | | | | |
说明:
{items|r:3,c:6} 放在第3行第1列(索引从0开始则为第2行)场景:合同中有两个表格,第一个表格上方有静态说明行
采购合同
甲方:{company}
乙方:{seller}
产品列表(常规采购):
| 产品名称 | 型号 | 数量 | 单价 |
|----------|------|------|------|
| {regular|r:4,c:4} | | | |
| | | | |
| | | | |
| | | | |
紧急采购项(如有):
| 产品名称 | 型号 | 数量 | 要求 |
|----------|------|------|------|
| 说明:紧急采购需24小时内到货 | | | |
| {urgent|r:2,c:4} | | | |
| | | | |
总计金额:{total_amount}
填充代码:
filler = DocxTemplateFiller("template.docx")
filler.fill_all(
text_data={
'company': '北京科技',
'seller': '上海贸易',
'total_amount': '¥50,000'
},
table_data={
'regular': [
['办公椅', '人体工学', '10', '¥800'],
['办公桌', '1.2米', '5', '¥1500'],
['文件柜', '铁皮', '3', '¥600']
# 第4行不会填充,因为只声明了r:3,但提供了3行数据
],
'urgent': [
['投影仪', '4K激光', '1', '急需'],
['幕布', '100寸', '1', '配套']
]
}
)
filler.save("contract.docx")结果:
占位符所在行上方的所有行(包括表头、说明文字、静态数据)完全不会被修改。
# 模板:
# 第0行:表头 | 名称 | 价格 |
# 第1行:说明 | 这是说明文字 |
# 第2行:占位符 {data|r:2,c:2} | |
# 第3行:空行 | |
# 填充 data = [['A', '100'], ['B', '200']]
# 结果:
# 第0行:表头 | 名称 | 价格 | (不变)
# 第1行:说明 | 这是说明文字 | (不变)
# 第2行:A | 100 | (覆盖占位符)
# 第3行:B | 200 | (填充)如果模板中占位符下方没有足够的行,程序会自动添加:
# 模板只有3行,占位符在第2行,声明 {data|r:5,c:3}
# 程序会自动添加行,使从第2行开始有5行(总行数至少为2+5=7行)如果模板中占位符下方行数过多,程序会删除多余行(从末尾删除,保留上方内容)。
无论原表格有多少列,程序会调整为占位符声明的列数:
filler = DocxTemplateFiller("contract.docx")
# 表格占位符在模板中位于第2行(索引2,即第3行),声明 {products|r:5,c:4}
# 第0-1行是表头和说明,会被保留
filler.fill_named_table('products', [
['笔记本电脑', 'ThinkPad X1', '10', '¥5000'], # 填充到第2行(覆盖占位符)
['显示器', 'Dell 27寸', '20', '¥1500'], # 填充到第3行
['键盘', '机械键盘', '30', '¥300'] # 填充到第4行
# 第5-6行保持为空(声明了5行,只提供3行数据)
])
filler.save("output.docx")filler = DocxTemplateFiller("report.docx")
# 模板中有:
# 表1:左上角某行有 {sales|r:10,c:5}
# 表2:左上角某行有 {expenses|r:5,c:3}
filler.fill_all(
table_data={
'sales': [
['一月', '产品A', '100', '¥50', '¥5000'],
['二月', '产品A', '120', '¥50', '¥6000'],
# ... 最多10行
],
'expenses': [
['办公费', '¥2000', '行政部'],
['差旅费', '¥5000', '销售部'],
# ... 最多5行
]
}
)即使模板中的表格只有占位符那一行,声明 r:20 后也会自动扩展:
# 模板表格:
# | 项目 | 数量 | 金额 |
# | {items|r:20,c:3} | | |
filler = DocxTemplateFiller("template.docx") # 自动扩展到20行数据+表头
filler.fill_named_table('items', large_data_list) # 最多填充20行{name|r:数字,c:数字},不能有空格提供的数据行数超过声明的 r:x 时,多余数据会被截断:
# 声明 {data|r:3,c:2},表示从占位符行开始只有3行空间
filler.fill_named_table('data', [
['A', '1'],
['B', '2'],
['C', '3'],
['D', '4'] # 这一行会被忽略,因为只声明了3行
])如果占位符所在行存在合并单元格,填充行为可能不符合预期。建议占位符所在行及下方行为标准行列结构。
填充时会替换单元格的 .text 属性,这可能清除单元格内的特殊格式(如加粗、颜色)。如果需要保留格式,建议使用 python-docx 的低级 API 直接操作 run 对象。
| 功能 | 方法/说明 |
|---|---|
| 加载模板 | filler = DocxTemplateFiller("template.docx") |
| 普通占位符 | {company} → filler.fill_placeholders({'company': '名称'}) |
| 填充表格 | filler.fill_named_table('products', [...]) |
| 一键填充 | filler.fill_all(text_dict, table_dict) |
| 上方内容 | 占位符所在行上方的内容自动保留 |
| 覆盖范围 | 从占位符行开始,向下填充 r:x 行 |
© LeoYeAI, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 3 other files in skills/fill-docx-template of LeoYeAI/openclaw-master-skills.
Open the folder on GitHubat commit e5199b5
Fill DOCX Template next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Fill DOCX Template this skillLeoYeAI/openclaw-master-skills | 2.2k | — | ~3.4k | Automated safety check: Pass | MIT | |
| MarkitdownImCa0/just-laws | 781 | 14 repos | ~3.2k | Automated safety check: Notes | MIT | |
| DOCXrvdbreemen/OTGW-firmware | 207 | 33 repos | ~4.3k | Automated safety check: Pass | Proprietary | |
| Word Document Reader and WriterHKUDS/DeepTutor | 41k | — | ~2.5k | Automated safety check: Pass | Apache-2.0 | |
| Gzh Designisjiamu/gzh-design-skill | 4k | — | ~2.2k | Automated safety check: Pass | AGPL-3.0 | |
| GenOffice Document CLIgenspark-ai/genoffice | 9.2k | — | ~19k | Automated safety check: Pass | Apache-2.0 |
ImCa0/just-laws
Convert files and office documents to Markdown. An agent skill from ImCa0/just-laws.
rvdbreemen/OTGW-firmware
A skill your agent uses whenever the user wants to create, read, edit, or manipulate Word documents (.docx files).
HKUDS/DeepTutor
Reads, creates and edits Word .docx files with python-docx, and drops to raw OOXML for tracked changes, comments and byte-exact edits.
isjiamu/gzh-design-skill
微信公众号文章排版引擎,将 Markdown 转换为可直接粘贴到公众号编辑器的 HTML。主题风格从 references/theme-index.md 注册的自定义主题库中选取,自动章节编号、关键词下划线标记、引言卡片、目录导航、代码块、图片/GIF、作者签名。支持 Markdown / Word(.docx) / PDF / 纯文本输入(非 Markdown…
genspark-ai/genoffice
Creates, converts, reads and edits real pptx, xlsx, docx and PDF files locally through the genoffice command line.
dataelement/bisheng
Builds or edits Word .docx documents inside BiSheng's code executor with python-docx, handling Chinese fonts, tables of contents, page numbers and official-document layout.
LeoYeAI/openclaw-master-skills
Manages pipelines on a DevOps quality and efficiency platform through its OpenAPI: list workspaces and templates, create, update, run and cancel pipelines, and read run records.
LeoYeAI/openclaw-master-skills
Patches OpenClaw's Feishu extension so an edited document triggers an isolated agent session that reads the doc and replies inline, turning it into a live chat space.
LeoYeAI/openclaw-master-skills
Multi-context memory management system for OpenClaw agents with group-isolated storage, global shared memory, workspace organization, and group-specific skills isolation.
LeoYeAI/openclaw-master-skills
Runs a brand's AI-search visibility work end to end: diagnosing how AI platforms represent it, repositioning it, producing AI-optimized content and monitoring ongoing mentions.
LeoYeAI/openclaw-master-skills
Installs and authenticates the gws CLI, then automates Gmail, Drive, Sheets, Calendar, Docs, Chat and Tasks with ready-made recipes, persona bundles and security audits.
LeoYeAI/openclaw-master-skills
Runs four advisor roles, a fitness coach, nutritionist, data analyst and TCM practitioner, to build a health profile and track workouts, diet and wellness over time.
Works with
Categories
当用户需要基于模板填充 Word 文档(.docx)、从模板生成报告、创建包含动态数据的合同,或自动化文档生成时使用此技能。包括替换普通占位符 {name} 替换文本、使用 {name|r:x,c:y} 格式标记的智能表格填充(支持从标记行开始向下填充,保留上方内容)、插入图片、批量生成文档等。如果用户提及 .docx 模板、邮件合并功能或以编程方式填写 Word 表单,请使用此技能。. Fill DOCX Template is an agent skill from LeoYeAI/openclaw-master-skills.
Fill DOCX Template fits situations like: tasks that involve Word documents.
Run `npx skills add LeoYeAI/openclaw-master-skills --skill fill-docx-template -a claude-code`. Or copy the skill folder (skills/fill-docx-template in LeoYeAI/openclaw-master-skills) into .claude/skills/fill-docx-template in your project. Claude Code loads it when a task matches its description.
Run `npx skills add LeoYeAI/openclaw-master-skills --skill fill-docx-template -a codex`. Or copy the skill folder (skills/fill-docx-template in LeoYeAI/openclaw-master-skills) into .agents/skills/fill-docx-template in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add LeoYeAI/openclaw-master-skills --skill fill-docx-template -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/fill-docx-template, .gemini/skills/fill-docx-template, .github/skills/fill-docx-template and .opencode/skills/fill-docx-template in your project.
SKILL.md names no scripts, command-line tools or credentials: Fill DOCX Template is instructions for the agent only. Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Fill DOCX Template is published under the MIT licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.4k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Fill DOCX Template: Markitdown (ImCa0/just-laws, 781 stars), DOCX (rvdbreemen/OTGW-firmware, 207 stars), Word Document Reader and Writer (HKUDS/DeepTutor, 41k stars) and Gzh Design (isjiamu/gzh-design-skill, 4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
LeoYeAI (a GitHub user) maintains it in LeoYeAI/openclaw-master-skills, which has 2,161 GitHub stars. The repository holds 1,235 skills in this directory. The repository was last updated on July 20, 2026.
Source: LeoYeAI/openclaw-master-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.