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-notesservice-plan.md

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

法律服务方案主题样式配置

专为法律服务方案设计的专业格式,带有律所品牌配色。

主题概述

  • 名称: 法律服务方案主题
  • 适用场景: 法律服务方案、诉讼方案、咨询服务方案
  • 风格: 专业、高端、可视化
  • 预设文件: service-plan.yaml

样式特点

配色方案

  • 主色: #1E3A5F(深蓝)— 表头、一级标题
  • 强调色: #927F76(律所棕)— 方案名称、价格高亮
  • 交替色: #F5F0ED(浅棕)— 表格交替行背景

标题

  • 字体: 微软雅黑(标题)/ 仿宋(正文)
  • H1: 16pt 小二,居中,深蓝色
  • H2: 14pt 小三,左对齐,深蓝色
  • H3: 12pt 小四,左对齐,深蓝色

正文

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

表格

  • 表头: 微软雅黑 12pt 加粗,白色文字,深蓝背景
  • 交替行: 白/浅棕背景交替
  • 高亮行: 浅棕背景(用于标注重点方案)

页面设置

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

使用方法

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

Markdown 写作示例

# 法律服务方案

## 一、案件概况

**客户**: 某某公司
**对方**: 某某集团

## 二、服务方案

| 方案 | 服务内容 | 费用 |
|------|----------|------|
| **基础方案** | 法律咨询、文书审查 | ¥30,000 |
| **标准方案** | 基础方案 + 诉讼代理 | ¥80,000 |
| **高端方案** | 全方位法律服务 | ¥150,000 |

## 三、增值服务

- ✅ 优先预约
- ✅ 全年不限次咨询
- ✅ 专属法律顾问

## 四、律所优势

1. 专业团队......
2. 丰富经验......
3. 高效响应......

配色使用指南

深蓝色 (#1E3A5F)

用于:

  • 文档主标题
  • 表格表头背景
  • 一级章节标题

律所棕 (#927F76)

用于:

  • 方案名称高亮
  • 价格数字
  • 重点标注文本

浅棕色 (#F5F0ED)

用于:

  • 表格奇数行背景
  • 引用块背景
  • 高亮段落背景

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