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-noteslaw-firm.md

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

律师事务所主题样式配置

专为法律文书设计的专业主题,庄重、严谨。

主题概述

  • 名称: 律师事务所主题
  • 适用场景: 法律意见书、合同、诉状、备忘录
  • 风格: 庄重、专业、传统
  • 模板文件: law-firm.docx

样式特点

标题

  • 字体: 思源宋体 / 宋体
  • 颜色: 深蓝黑 (#1A1A2E)
  • H1: 16pt 小四 / H2: 14pt 五号 / H3: 12pt 小五

正文

  • 字体: 宋体
  • 字号: 12pt (小四)
  • 行距: 1.5 (固定值 22pt)
  • 首行缩进: 2字符

特殊元素

  • 章节编号: 自动编号 (一、二、三...)
  • 条款编号: 自动编号 (1.1、1.2、1.3...)
  • 引用法条: 特殊样式

页面设置

  • 纸张: A4
  • 页边距: 上下 2.54cm,左右 3.17cm
  • 页眉: 律所名称 / 文档标题
  • 页脚: 页码 / 保密声明

使用方法

python scripts/extract_template_config.py \
  --template assets/templates/law-firm.docx \
  --output assets/presets/law-firm.yaml \
  --profile law-firm

推荐字体安装

macOS

brew install --cask font-source-han-serif

Windows

从思源字体官网下载:


待修改配置

当前为默认模板副本,需手动调整:

  1. 打开 law-firm.docx
  2. 修改标题字体为思源宋体
  3. 调整正文字号为 12pt
  4. 设置行距为 1.5 倍
  5. 添加首行缩进
  6. 调整页边距

法律文书写作建议

Markdown 结构示例

# 法律意见书

**案号**: (2025) 京律意字第 001 号

**委托人**: 甲公司

**关于**: 乙公司合同纠纷事宜

## 一、事实概述

根据委托人提供的材料...

## 二、法律分析

### 2.1 合同效力

根据《民法典》第 143 条...

### 2.2 违约责任

依据合同约定...

## 三、法律建议

1. 建议先行协商...
2. 必要时提起诉讼...

**律师**: 张三
**日期**: 2025 年 1 月 21 日

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