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-notesacademic.md

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

学术论文主题样式配置

专为学术论文设计的格式,符合国内高校学位论文规范。

主题概述

  • 名称: 学术论文主题
  • 适用场景: 学位论文、学术期刊文章、研究报告
  • 风格: 规范、严谨、传统
  • 预设文件: academic.yaml

样式特点

标题

  • 字体: 宋体
  • 颜色: 黑色(无彩色装饰)
  • H1: 18pt 二号,居中
  • H2: 14pt 四号
  • H3/H4: 12pt 小四

正文

  • 字体: 宋体
  • 字号: 12pt (小四)
  • 行距: 2.0 倍(双倍行距,符合学位论文规范)
  • 首行缩进: 2字符

摘要与关键词

  • 摘要单独成段
  • 关键词以分号分隔

页面设置

  • 纸张: A4
  • 页边距: 上下 2.54cm,左右 3.0/2.5cm
  • 页眉: 无特殊要求
  • 页脚: 页码居中

使用方法

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

或从 Word 模板提取:

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

Markdown 写作示例

# 论文标题

## 摘要

本文研究了......

**关键词**: 学术论文;格式规范;Markdown

## 一、引言

### 1.1 研究背景

根据已有研究......

## 二、理论框架

### 2.1 核心概念

定义如下......

## 三、结论

1. 第一点结论......
2. 第二点结论......
3. 第三点结论......

---

## 与其他主题的区分

| 特征 | 学术论文 | 法律文书 | 工作报告 |
|------|----------|----------|----------|
| 行距 | 2.0 倍 | 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