Stats
Actions
Tags
From nbl-ic-verification
NBL企业定制的 DOCX 转 Markdown 技能。将复杂的 Word 文档转换为完整 Markdown 格式,支持处理图片、Visio 图表、表格,并优化文档结构。特别适用于包含寄存器描述、表项定义等技术文档转换。能够将 [xxx] 格式的寄存器域段、表项标记自动转换为 `[xxx]` 代码格式。
How this skill is triggered — by the user, by Claude, or both
Slash command
/nbl-ic-verification:nbl-docx-to-markdownThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
```bash
python3 scripts/convert.py <input.docx>
使用流程:
convert.py 执行转换# 基本用法(推荐)
# 脚本自动基于 docx 文件名创建工作目录,空格自动转为下划线
python3 scripts/convert.py input.docx
# 指定工作目录(可选)
python3 scripts/convert.py input.docx --output-dir <doc_name>_convert/
参数说明:
--output-dir: 显式指定工作目录路径。注意:不指定此参数时,脚本会自动基于 docx 文件名创建目录,空格自动转为下划线;若显式指定路径,路径中的空格不会自动处理,建议手动替换为_。
输出目录结构(按处理顺序):
<doc_name>_convert/
├── 1. docx_preprocessed/ # 接受修订后的 docx
├── 2. html_source_by_LibreOffice/ # LibreOffice HTML 输出
├── 3. crosscheck_by_Pandoc/ # Pandoc 交叉参考文件
└── 4. markdown_output/ # 最终 Markdown 输出
├── *.md # 主输出文件
└── assets/ # 图片资源
转换脚本会打印详细的标题验证信息,必须关注以下内容:
标题结构列表:
[主输出 - Main Output] 标题结构:
H1 headings (10):
1. 2 模块特性
2. 3 参考文档
...
H2 headings (14):
...
[参考文档 - Pandoc Reference] 标题结构:
H1 headings (0):
(无H1标题)
章节遗漏检测:
⚠️ [章节遗漏检测] H1章节号不连续,以下章节可能缺失: 1
当前章节序列: [2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
预期章节序列: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
说明:
何时需要修复:
2 开始,缺少 1)# 标题修复方法:
4. markdown_output/*.md)1**功能概述** 或普通文本)# 1 功能概述
# 2 模块特性
不要:
修复后确认:
# H1 标题## H2 标题assets/ 目录下)nbl-testplan 等工具能正确解析Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub nebula-matrix/nebula-matrix-skills --plugin nbl-ic-verification