All skills
cat-xierluo avatar

/md2word

@ac4a31a

Markdown转Word文档技能。将Markdown文档转换为符合中文排版标准的专业格式Word文档,支持多种预设格式。适用于正式文档、论文、报告等需要规范排版的文档转换。

Use this Skill: https://skilld.dev/gh/cat-xierluo/legal-skills/md2word

This session only. Nothing lands on disk.

assetstheme-notesreport.md

≈480 tokens on demand. Your agent reads this file only when SKILL.md points to it.

工作报告主题样式配置

专为政府机关、企事业单位工作报告设计的格式。

主题概述

  • 名称: 工作报告主题
  • 适用场景: 年度工作报告、项目汇报、工作总结
  • 风格: 正式、清晰、层次分明
  • 预设文件: report.yaml

样式特点

标题

  • 字体: 黑体(标题)/ 仿宋(正文)
  • 颜色: 黑色
  • H1: 16pt 三号,居中
  • H2: 14pt 四号
  • H3: 12pt 小四

正文

  • 字体: 仿宋_GB2312
  • 字号: 12pt (小四)
  • 行距: 1.5 倍
  • 首行缩进: 2字符

结构特点

  • 章节层次清晰
  • 段落间距适中
  • 适合阅读和打印

页面设置

  • 纸张: A4
  • 页边距: 上下 2.54cm,左右 3.0cm
  • 页眉: 可添加单位名称
  • 页脚: 页码居中

使用方法

python scripts/md2word.py input.md --preset=report -o output.docx

或从 Word 模板提取:

python scripts/extract_template_config.py \
  --template assets/templates/report.docx \
  --output assets/presets/report.yaml

Markdown 写作示例

# 2025年度工作报告

## 一、工作总体情况

### 1.1 主要业绩

本年度完成......

### 1.2 重点项目

重点推进以下工作......

## 二、存在问题和改进措施

### 2.1 主要问题

当前存在以下问题......

### 2.2 改进措施

针对上述问题,拟采取以下措施......

## 三、下年度工作计划

1. 继续深化......
2. 加快推进......
3. 着力完善......

**报告人**: 张三
**日期**: 2025 年 12 月 31 日

与法律文书主题的区分

特征 工作报告 法律文书
标题字体 黑体 微软雅黑
正文字体 仿宋_GB2312 仿宋
标题字号 H1=16pt H1=15pt
行距 1.5 倍 1.5 倍
适用场景 政府/企业报告 法律意见书/合同

Source: SKILL.md on GitHub

3 warnings1d4 checks · Risk MEDIUM
  • Gen Agent Trust Hub1d

    The skill converts Markdown to Word and includes features that download external images and render diagrams. It downloads images from arbitrary URLs, which poses a Server-Side Request Forgery (SSRF) risk to internal network resources. Additionally, it executes local rendering tools on user-supplied Mermaid and SVG code, which could lead to resource exhaustion or exploitation of vulnerabilities in those tools.

  • Socket1d

    1 alert: gptAnomaly

  • Snyk1d

    Risk: LOW · No issues

  • Runlayer7mo

    14/14 files flagged

Signed by skilld at ac4a31a. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 18 hours ago.

Activeupdated last week
homepage
https://github.com/cat-xierluo/legal-skills
author
杨卫薪律师(微信ywxlaw)
version
1.3.8

README badge

README badge for cat-xierluo/legal-skills/md2word