diagram-tools

图表工具技能 - 支持 Mermaid、Graphviz、流程图、思维导图等多种图表生成

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "diagram-tools" with this command: npx skills add Zsdadad/diagram-tools

Diagram Tools 图表工具技能

强大的图表生成工具集,支持多种图表格式和渲染引擎。

适用场景

  • 📊 流程图设计
  • 🧠 思维导图
  • 📈 数据可视化
  • 🔄 架构图
  • 📑 UML 图
  • 📅 时间线图

核心功能

1. Mermaid 图表

使用 Mermaid 语法生成各类图表:

  • Flowchart 流程图
  • Sequence 时序图
  • Class 类图
  • State 状态图
  • ER 数据库图
  • Gantt 甘特图
  • Pie 饼图
  • Mindmap 思维导图
  • Timeline 时间线

2. Graphviz 图表

使用 DOT 语言生成:

  • 有向图/无向图
  • 层级图
  • 树形图

3. 数据图表

  • 柱状图
  • 折线图
  • 饼图

Mermaid 语法示例

流程图

graph TD
    A[开始] --> B{判断}
    B -->|是| C[处理1]
    B -->|否| D[处理2]
    C --> E[结束]
    D --> E

思维导图

mindmap
  root((主题))
    分支1
      子主题A
      子主题B
    分支2
      子主题C

时序图

sequenceDiagram
    A->>B: 消息1
    B->>A: 响应

Graphviz 示例

from graphviz import Digraph
dot = Digraph()
dot.node('A', '节点A')
dot.node('B', '节点B')
dot.edge('A', 'B')
dot.render('output', format='png')

支持的图表类型

类型Mermaid 语法
流程图graph TD / graph LR
时序图sequenceDiagram
类图classDiagram
状态图stateDiagram-v2
ER图erDiagram
甘特图gantt
饼图pie
思维导图mindmap
时间线timeline
四象限quadrantChart

主题配置

自定义颜色主题:

{
  "theme": "base",
  "themeVariables": {
    "primaryColor": "#1976d2",
    "lineColor": "#666666",
    "secondaryColor": "#4caf50"
  }
}

使用技巧

  • 使用 graph LR 表示从左到右
  • 使用 graph TD 表示从上到下
  • 保持节点标签简短
  • 使用子图分组相关组件
  • 高清输出使用 -s 2-s 3

相关技能

  • mermaid - Mermaid 图表
  • markdown-tools - Markdown 处理
  • meeting-notes - Word 文档

更新日志

  • v1.0.0 - 初始版本,整合 Mermaid 和 Graphviz

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Infographic Image

将任意主题、长文、报告、纪要或说明文本稳定转换成中文视觉生图提示词, 然后调用 DashScope Qwen 图像模型直接出图。适用于“把这段内容做成信息图”、 “做成故事漫画长图”、“长文转图”、“生成中文生图 prompt”、“根据文档出图” 等场景;默认采用白色磁吸会议板手写风格,也支持切换到其他内置模板。

Registry SourceRecently Updated
1500Profile unavailable
Research

It is designed for scenarios that require direct operating system application and in-depth data analysis. [Forced trigger scenario]: - User mentions reading/writing/manipulating Excel, WPS, Word, TXT, Markdown, RTZ, etc. - User wants to "grab", "extract", and "get" data from any application - User needs to perform "in-depth analysis", "trend research", "anomaly detection", and "prediction" on the data - User requests to generate "charts", "visualizations", "dashboards", "data reports" - users say, "Help me see in this document..." Analyze this data...", "Make a chart presentation..." - Any task involving cross-application data flow [Core Competencies]: System interface calls × Data in-depth analysis × Professional visualization IMPORTANT: As long as it involves any of the file operations, data analysis, and visualization, this skill must be used. Don't skip tasks just because they "look simple" - there are many pitfalls in the underlying interface calls, and there are pitfall avoidance guides in the skills.

专为需要直接操作系统应用并进行深度数据分析的场景设计。 【强制触发场景】: - 用户提及 Excel、WPS、Word、TXT、Markdown、RTZ 等文件的读取/写入/操控 - 用户想从任何应用中「抓取」「提取」「获取」数据 - 用户需要对数据进行「深度分析」「趋势研究」「异常检测」「预测」 - 用户要求生...

Registry SourceRecently Updated
3460Profile unavailable
General

Table To Image

将 Markdown 表格转换为清晰图片。当用户说"表格看不清"、"生成图片"、"转成图片"时触发。

Registry SourceRecently Updated
1880Profile unavailable
General

Atlas Tracker

Work with Atlas Tracker (RedForester) mindmaps via MCP tools. Use when reading, creating, or updating nodes and branches in Atlas Tracker maps — including na...

Registry SourceRecently Updated
2550Profile unavailable