扫描现有项目的代码与配置,生成涵盖技术栈、结构、架构、规范、集成、测试和风险的七份文档。为结论标注文件依据和未知项,并指出计划描述与实际实现的差异。
- 了解陌生代码库
- 准备项目交接文档
- 对照设计资料与实际实现
将含 Mermaid 图表的 Markdown 转为 DOCX,嵌入 SVG 以保持放大和打印时清晰,并附带 PNG 兼容图;同时转换常见文档结构并安排较高图表的页面位置。
Export Markdown containing Mermaid code fences to Word (.docx) with embedded SVG diagrams and PNG fallbacks. Use when diagram sharpness, Office-compatible labels, or page-aware placement matters. Not for Word-to-Markdown conversion, editable Office shapes, or general slide creation.
实测评分 未实测
查看安装方法将包含 Mermaid 代码块的 Markdown 文件转换为 Word(.docx)文档。每张图都会以 SVG 形式嵌入,并保留三倍分辨率的 PNG 备用图,以兼顾放大或打印时的清晰度和不同查看环境的兼容性。标题、段落、列表、表格、引用和代码块等常见内容也会转换为 Word 文档内容。纵向较长的图会按页面布局进行放置。转换由随附脚本在本地完成。
适用于需要将含 Mermaid 图表的设计文档、操作手册或报告交付为 Word 文档的情况。图表标签需要在打印时保持易读,或需要避免长图在分页处被拆开时,也可使用。它不会把图表转换成可单独编辑的 Word 图形或连接线。
report.docx,并包含 Mermaid 图表。”需要 Python 3.10 或更高版本、指定的软件包、Node.js、Mermaid CLI、Puppeteer 可使用的本地浏览器,以及包含文档字符的已安装字体。生成文件不需要 Word,但检查矢量图显示效果需要支持 SVG 的 Word 版本。不会覆盖已有输出文件;Mermaid 无效或渲染失败时会停止转换。字体替换情况和最终分页应在查看文档的环境中检查。
本介绍由 AI(OpenAI Codex)根据公开的 SKILL.md 撰写。准确的规格请查看下方原文。
AI 根据 SKILL.md 的内容检查了需要注意的操作和使用前提。评分只依据实际运行的结果(实测对比)。
不计入评分。 由 AI(OpenAI Codex)于 2026年10月26日 评估。仅供参考,安装前请同时查看原文。
安装前可以查看交给 AI 代理的指令内容。
Export technical documents without manually replacing Mermaid fences with screenshots. The bundled converter renders each diagram locally, embeds the SVG through Office OOXML relationships, and retains a 3x PNG fallback. Word is not required to generate the file; an SVG-capable Word version is needed to inspect vector rendering.
For general Markdown-to-DOCX conversion with existing PNG images, a general converter such as md-to-docx may be simpler. This skill focuses on rendering and packaging Mermaid diagrams. SVG embedding does not create editable Word shapes, connectors, or text boxes.
@mermaid-js/mermaid-cli.--font-family to select another installed family.Resolve paths relative to this skill's installation directory, not an assumed repository name. The examples below run from the skill directory. Use the user's selected Python environment (python, python3, or its absolute path).
Before installing dependencies, confirm the environment and obtain permission if required. Reuse an existing Mermaid CLI when available. Otherwise install it into a user-approved local tools directory, not globally:
python -m pip install -r scripts/requirements.txt
npm install --prefix ./run/mermaid-cli @mermaid-js/mermaid-cli
The local executable is ./run/mermaid-cli/node_modules/.bin/mmdc on POSIX and ./run/mermaid-cli/node_modules/.bin/mmdc.cmd on Windows. Keep installed dependencies out of the submitted skill package. Lock the selected dependency versions in the consuming project for reproducible installations.
On Windows the converter detects standard Chrome and Edge paths. For another browser location, set MERMAID_BROWSER_PATH to its absolute executable path:
$env:MERMAID_BROWSER_PATH = "C:\Program Files\Google\Chrome\Application\chrome.exe"
On POSIX, use export MERMAID_BROWSER_PATH=/absolute/path/to/browser, or use Puppeteer's installed browser. Do not disable the browser sandbox just to make a conversion pass.
.docx extension.With mmdc on PATH:
python scripts/markdown_to_word.py input.md --output output.docx
Using a workspace-local CLI on Windows:
python scripts/markdown_to_word.py input.md --output output.docx --mermaid-cli ./run/mermaid-cli/node_modules/.bin/mmdc.cmd
Selecting an installed font:
python scripts/markdown_to_word.py input.md --output output.docx --font-family "Noto Sans JP" --timeout 120
For a reproducible example, convert assets/example.md to a new output path. It includes English and Japanese labels, multiple diagrams, and a tall diagram.
title and descr) includes the section heading or Mermaid accTitle/accDescr plus the diagram type.htmlLabels: false is set globally and for flowcharts to avoid HTML foreignObject labels that Office may not display. Check actual SVG output for unsupported constructs.title becomes the document title; other frontmatter fields are removed from the body. This is not a full YAML metadata parser.Run the test suite from the skill directory:
python -m unittest discover -s tests -v
The ordinary suite mocks Mermaid rendering. To run the real-renderer test as well, set MERMAID_CLI to the CLI executable's absolute path, then run the command again. On Windows PowerShell:
$env:MERMAID_CLI = (Join-Path $env:APPDATA "npm\mmdc.cmd")
python -m unittest discover -s tests -v
That test renders the bundled sample and checks the resulting DOCX's SVG references, PNG fallbacks, labels, and drawing dimensions. It does not automate Word visual inspection.
Before reporting completion:
foreignObject remains in the sample's SVGs.For contribution scope, evaluation cases, and a draft submission description, see references/publication.md. That file is maintainer guidance, not permission to publish.
mmdc.cmd needs Windows command handling; pass its path with --mermaid-cli rather than rewriting the script.还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
扫描现有项目的代码与配置,生成涵盖技术栈、结构、架构、规范、集成、测试和风险的七份文档。为结论标注文件依据和未知项,并指出计划描述与实际实现的差异。
使用AgentRC评估代码仓库对AI智能体的准备情况,并生成可独立打开的HTML报告。查看九个方面的评分和优先改进建议,也可按组织自定评分政策。
使用AgentRC分析项目代码中的语言、框架和开发惯例,生成或更新AI编程代理的指令文件。可集中写入一个文件,也可按主题和项目区域拆分,并在写入前预览改动。
按团队或组织标准调整AgentRC准备度评估。可选择或创建JSON策略,调整检查权重、停用无关检查、设置通过率,并在CI流程中设定自动检查门槛。
分析你提供的广告成效数据,找出浪费支出和表现较好的广告,并整理暂停、加预算或继续测试的候选项。还可比较不同平台、评估A/B测试差异,并提出预算调整建议。
为指定代码文件添加学习注释,解释语法、编程概念和设计选择;可按读者水平调整讲解深度和重复频率,并保持文件结构、编码与语法。