one-click-uml

A one-click tool to generate Chinese Mermaid UML diagrams, suitable for class diagrams, sequence diagrams, state diagrams, ER diagrams, and system architecture. Automatically checks mmdc, renders diagrams, and delivers the output files.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "one-click-uml" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-66bd4a8ba28c236f25e1a825f0b67fe55616ab926635fa1f36518db2d312a3dc. Verify the upstream source and version against https://skillhub.cn/skills/user_adbca5d8/one-click-uml before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

A one-click tool to generate Chinese Mermaid UML diagrams, suitable for class diagrams, sequence diagrams, state diagrams, ER diagrams, and system architecture. Automatically checks mmdc, renders diagrams, and delivers the output files.

0 Downloads

Introduction source: third_party · user_adbca5d8 · 1.0.4 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Translation pending; see source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: one-click-uml
description: 一键生成中文 Mermaid UML 图,适用于类图、时序图、状态图、实体关系图和系统结构表达,并自动检查 mmdc、渲染图表和交付文件。
slug: one-click-uml
displayName: 一键 UML 图生成技能
version: 1.0.3
summary: 一键生成中文 Mermaid UML 图,适用于类图、时序图、状态图和实体关系图。
license: MIT
iconUrl: https://raw.githubusercontent.com/aquarkgn/mermaid-skill/v1.0.3/skills/one-click-uml/icon.svg

一键 UML 图生成技能

将对象、接口、参与者、状态、数据实体和调用关系整理为适合评审的 Mermaid UML 图。

执行规则

  1. 第一次渲染前检查 mmdc:command -v mmdc && mmdc --version。
  2. 未安装时先引导执行 npm install -g @mermaid-js/mermaid-cli,未获明确授权不要代装。
  3. 本机版本距离 npm 最新版本超过 3 个发布版本时,先询问升级或继续使用旧版本。
  4. 用户没有指定保存位置时,将 .mmd 和导出文件保存到当前项目的 docs/mermaid/。
  5. 渲染失败时区分 Mermaid 语法错误和 Puppeteer 浏览器依赖错误。
  6. 交付时提供源码、导出文件的绝对路径链接和 mmdc 版本。

图表选择

  • 类、接口、继承和依赖使用 classDiagram。
  • 请求、响应、异步消息和调用顺序使用 sequenceDiagram。
  • 生命周期和状态迁移使用 stateDiagram-v2。
  • 数据表、字段和基数关系使用 erDiagram。
  • 节点文本包含括号、冒号、斜杠或长句时使用引号。

模板

classDiagram
  class 用户服务 {
    +创建用户()
    +查询用户()
  }
  class 用户仓库 {
    +保存()
    +查找()
  }
  用户服务 --> 用户仓库 : 调用

输出要求

先确认参与者或实体边界,再生成中文短标签和关系;保存源码后使用 mmdc 导出 SVG、PNG 或 PDF。默认输出目录不存在时先创建;用户明确指定位置时按用户要求保存。

Current listing version

1.0.4

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Highlights

  • 面向开发/设计人员,解决 UML 图生成痛点
  • 支持多种图表类型(类图、时序图、状态图、实体关系图)
  • 提供中文标签支持,符合国内用户习惯
Trigger Precision85/100

Highlights

  • 触发词覆盖全面且边界清晰
  • description 位置正确且内容完整
  • 支持多种 UML 图类型的精准触发
Structure and Standards90/100

Highlights

  • 执行规则清晰(6条完整指引)
  • 提供具体模板示例
  • 输出要求明确,包含路径处理逻辑
Execution Reliability88/100

Highlights

  • 有版本检查和升级询问机制
  • 区分 Mermaid 语法错误和 Puppeteer 依赖错误
  • 默认路径自动创建,用户指定路径优先
Evidence Verifiability (mean of the first four)85/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 19
Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • raw.githubusercontent.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.