Diagram生成器

SKILL前端设计
前端设计 未标注权限 许可证不明确
安装这个技能

通过工具生成与编辑Draw.io/Mermaid/Excalidraw图表,支持网络拓扑/架构/流程图/UML等

一句话选型结论

按资料字段整理

Diagram生成器是前端设计类的 Agent Skill,安装方式未标注,权限级别未标注,许可证不明确,有可直接复制的安装命令。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类前端设计 安装方式未标注 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

未标注
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install zcwl/diagram-generator
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    执行上面的命令安装;也可以把仓库里的 SKILL.md 手动放进客户端的 skills 目录。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

前端设计
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方zcwl仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式未标注安装包 enterprise
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验未标注上游最后核验时间 · 数据更新 1791734504
正文体量8.1 KBSKILL.md 原文大小,越大说明说明书写得越细

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
出页面与组件

按描述生成页面结构和组件草稿。

调整样式与布局

改间距、配色与响应式布局。

生成设计说明

把设计稿整理成开发能接的说明。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在前端设计场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
Diagram生成器当前 未标注权限 未标注 未标注 未标注 有
前端设计 只读 GitHub 仓库 882.3 万 Codex、Claude、Cursor 有
Vercel 组合模式 联网访问 GitHub 仓库 385.9 万 Codex、Claude、Cursor 有
Vercel React native skills 前端 只读 GitHub 仓库 246.9 万 Codex、Claude、Cursor 有
adapt 搜索 浏览器控制 GitHub 仓库 202.7 万 Codex、Claude、Cursor 有
使用我的浏览器 浏览器控制 GitHub 仓库 184.8 万 Codex、Claude、Cursor 有

SKILL.md 全文

8.1 KB
模型实际读到的说明书原文,来自技能仓库

Diagram Generator

Purpose

Create and edit diagrams by converting user intent into a structured JSON specification, then delegating file generation to the mcp-diagram-generator MCP server.

Supported formats:
- Draw.io: .drawio
- Mermaid: .mmd or markdown Mermaid content
- Excalidraw: .excalidraw

Supported work:
- Natural-language diagram creation
- Existing .drawio, .mmd, and .excalidraw edits
- Default output paths under diagrams/{format}/
- Custom filenames and output paths

Required MCP Tools

Before generating a diagram, verify that the MCP server tools are available:
- mcp__mcp-diagram-generator__get_config
- mcp__mcp-diagram-generator__generate_diagram
- mcp__mcp-diagram-generator__init_config

If the tools are missing, configure the MCP server.

Recommended remote configuration:

{
  "mcpServers": {
    "mcp-diagram-generator": {
      "command": "npx",
      "args": ["-y", "mcp-diagram-generator"]
    }
  }
}

After changing configuration, restart the agent environment. On first use, the server creates .diagram-config.json and default output directories. For local development configuration, see the "Tool missing" entry in Troubleshooting.

Main Workflow

1. Intake

For new diagrams, collect the basic options before accepting or processing the full diagram prompt:
- Diagram type
- Output format
- Layout direction
- Usage context
- Optional filename or output directory

Read references/interaction-intake-guide.md before asking intake questions.

Skip intake when the user already provided all required options and the full prompt. For existing-file edits, ask only for the target file and requested changes if missing.

2. Dispatch To A Playbook

Select exactly one primary playbook based on the diagram type:

User Intent Primary Playbook
Network topology, datacenter, zone, router, switch, firewall references/playbook-network-topology.md
System architecture, application architecture, layered component diagram references/playbook-architecture.md
Flowchart, process, decision tree references/playbook-flowchart.md
Swimlane, cross-team handoff, approval workflow by department references/playbook-swimlane.md
Sequence, class, ER, UML-style diagrams references/playbook-uml.md
Whiteboard sketch, hand-drawn style, informal Excalidraw diagram references/playbook-excalidraw.md
Unsure about format references/format-selection-guide.md first, then the matching playbook

Only read the playbook needed for the current diagram. If a playbook points to json-schema-guide.md or network-topology-examples.md, read only the relevant section.
For explicit geometry, also read references/layout-quality-guide.md.

3. Choose Format

Use these defaults unless the user explicitly chooses otherwise:

Diagram Type Default Format Default Direction
Network topology Draw.io Vertical
Architecture Draw.io Vertical or automatic
Flowchart Mermaid Vertical
Swimlane Draw.io Horizontal
Sequence Mermaid Automatic
Class Mermaid Automatic
ER Mermaid Automatic
Whiteboard sketch Excalidraw Automatic

Usage context can override defaults:
- Word: prefer portrait-friendly vertical layouts.
- PPT: horizontal layouts are acceptable when readability improves.
- Code repositories and documentation: prefer Mermaid for simple flow, sequence, class, and ER diagrams.
- Whiteboard collaboration: prefer Excalidraw.
- Complex network or architecture diagrams: prefer Draw.io unless the user explicitly asks for Excalidraw.

4. Build The JSON Specification

Follow references/json-schema-guide.md for the schema. Core structure:

{
  "format": "drawio",
  "diagramType": "architecture",
  "title": "Diagram title",
  "elements": [
    {
      "id": "unique-id",
      "type": "container",
      "name": "Display name",
      "level": "environment",
      "geometry": { "x": 0, "y": 0, "width": 800, "height": 600 },
      "children": []
    },
    {
      "type": "edge",
      "source": "source-id",
      "target": "target-id"
    }
  ]
}

Universal rules:
- elements must be an array.
- IDs must be unique.
- Edges must be top-level elements, never inside children.

Full field reference: references/json-schema-guide.md.

5. Quality Gate

Before calling the MCP server, verify:
- The chosen format matches the intake answer and playbook.
- diagramType is explicit when supported.
- Layout direction is reflected in coordinates or generator-specific fields.
- Complex Draw.io and Excalidraw diagrams have explicit geometry.
- Container hierarchy is valid.
- Edges are top-level elements.
- Text and connector rules for the selected format are followed.

After generation, inspect the saved file enough to confirm the expected format-specific properties exist. For code changes to the MCP server, also run npm run test:diagrams from mcp-diagram-generator/.

6. Generate

Preferred call:

{
  "diagram_spec": "<spec object>"
}

Optional filename:

{
  "diagram_spec": "<spec object>",
  "filename": "my-diagram.drawio"
}

Optional explicit output path:

{
  "diagram_spec": "<spec object>",
  "output_path": "custom/path/to/diagram.drawio"
}

The MCP server validates the schema, creates missing directories, and writes to the configured default directory when no output path is supplied.

Configuration Helpers

Initialize defaults:

init_config()

Set custom paths:

{
  "paths": {
    "drawio": "output/diagrams/drawio",
    "mermaid": "output/diagrams/mermaid",
    "excalidraw": "output/diagrams/excalidraw"
  }
}

Inspect configuration:

get_config()

Update one format path:

{
  "format": "drawio",
  "path": "custom/drawio-path"
}

Troubleshooting

Tool missing:
- Configure the MCP server with the remote (npx) block above and restart the agent environment.
- For local development, use "command": "node", "args": ["/absolute/path/to/mcp-diagram-generator/dist/index.js"] instead.

Schema validation failed:
- Read references/json-schema-guide.md.
- Check required fields, unique IDs, edge source/target, and parent-child structure.

Directory error:
- Check write permissions.
- Run get_config().
- Reinitialize with init_config() if needed.

Wrong extension:
- Draw.io uses .drawio.
- Mermaid uses .mmd or markdown output.
- Excalidraw uses .excalidraw.

Nested container issue:
- Child coordinates are relative to the direct parent.
- Container sizes must fit child bounds plus padding.
- Network topology must follow environment -> datacenter -> zone -> device.

Reference Index

Read only what is needed:

  • references/interaction-intake-guide.md: interactive intake defaults and question template.
  • references/format-selection-guide.md: format selection matrix.
  • references/playbook-network-topology.md: Draw.io and Excalidraw network topology rules.
  • references/playbook-architecture.md: layered architecture rules.
  • references/playbook-flowchart.md: process and decision flow rules.
  • references/playbook-swimlane.md: swimlane and handoff rules.
  • references/playbook-uml.md: sequence, class, and ER rules.
  • references/playbook-excalidraw.md: Excalidraw whiteboard and binding rules.
  • references/layout-quality-guide.md: explicit geometry, spacing, and connector readability rules.
  • references/json-schema-guide.md: schema details and examples.
  • references/network-topology-examples.md: network topology JSON patterns.

Output Discipline

When responding to the user:
- Confirm the selected diagram type, format, direction, and output file.
- Do not paste the full JSON unless the user asks.
- Provide the saved file path.
- Mention any validation or regression command that was run.

常见问题

5 问
答案由本站依据条目字段整理
Diagram生成器怎么安装?

在支持 Skills 的客户端里执行:skillhub install zcwl/diagram-generator。安装方式为未标注。装完刷新技能列表或重开客户端。

Diagram生成器支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

Diagram生成器权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

Diagram生成器收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

Diagram生成器用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 未标注。