Architecture and Flow Diagram Expert: Generate Architecture and Flow Diagrams Directly in an Agent

Preface

Design reviews, interface alignment, or technical documentation often require system architecture diagrams, business flowcharts, or sequence diagrams. The common workflow is to switch to draw.io, PlantUML, or Mermaid Live, manually adjust nodes and connections, and then paste the result back into Markdown or a chat window. If an Agent within a conversation can generate diagrams based on the same specifications and support inline previews or Mermaid source code, the iteration loop becomes much shorter. This article introduces the “Architecture & Flowchart Drawing Expert” on SkillHub, covering how to install and trigger it in environments like Cursor.

What is this

“Architecture & Flowchart Drawing Expert” is an Agent Skill tailored for development scenarios. Its coordinates are @user_04c33885/diagram-builder. The current version is 1.0.3, originating from the community, published by user_04c33885, and categorized under dev-programming. The SkillHub page indicates requires_api_key=false, meaning no additional API Key is needed after installation.

It solves the problem of generating various technical diagrams based on natural language descriptions within a conversation. It delivers results in two formats: show_widget inline SVG or Mermaid code blocks, facilitating direct viewing or secondary editing within Skill-supported clients.

Core Features

According to the SkillHub description, the diagram types covered by this Skill include:

  • System architecture diagrams, microservice architecture
  • Network topology diagrams
  • Business flowcharts, data flow diagrams
  • Sequence diagrams, state machines, ER diagrams

The output takes two forms:

  1. show_widget inline SVG: Suitable for directly viewing diagrams in interfaces that support widget rendering.
  2. Mermaid code blocks: Suitable for repository documentation, Wikis, or CI-readable Markdown, facilitating version control and diffs.

Regarding triggers, the officially listed keywords include: 架构图 (architecture diagram), 流程图 (flowchart), 时序图 (sequence diagram), 状态机 (state machine), 拓扑图 (topology diagram), ER图 (ER diagram), 数据流图 (data flow diagram), as well as the English terms draw, diagram, flowchart, architecture. Including the specific diagram type or the above keywords in a conversation makes it easier to trigger the Skill’s drawing workflow.

Installation & Activation

SkillHub recommends two installation methods: sending the installation prompt to an AI or using the skillhub CLI. Before installing, verify CLI availability:

command -v skillhub && skillhub --version

If not installed, follow the SkillHub installation documentation to perform a complete installation (CLI + Default Skill):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

To install only the CLI:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

When installing this Skill, you must use the --dir flag to point to the current Agent’s skills directory; if installed to the default ./skills/, some clients will not load it automatically. The installation prompt provided on the official page is:

Please install @user_04c33885/diagram-builder according to https://skillhub.cn/install/skillhub.md.

CLI installation example (replace <skills directory> with the path in your current environment):

skillhub install user_04c33885/diagram-builder --dir <skills directory>

Skills directories for common clients (from SkillHub installation docs):

Client skills directory
Cursor ~/.cursor/skills/
Claude Code ~/.claude/skills/
Codex ~/.codex/skills/ or .agents/skills/ under project
Windsurf ~/.codeium/windsurf/skills/ or .windsurf/skills/

After installing to the corresponding directory, refresh or restart your Agent according to your client’s instructions to activate the Skill. The differences between Codex CLI, Claude Code, and Cursor mainly lie in the skills path and whether a restart is required; the installation command itself is identical (skillhub install … --dir …).

Typical Usage

The official materials do not include a fixed example repository; usage is primarily conversation-driven. A reproducible starting approach is as follows:

  1. Confirm the Skill is installed in the current Agent’s skills directory and loaded successfully.
  2. In the conversation, describe the diagram type and content, including trigger words. For example: “Draw a microservice architecture diagram containing a gateway, order service, and payment service” or “Describe the login flow using a sequence diagram”.
  3. Depending on Agent and client capabilities, the result may be a Mermaid fenced code block (copyable to documentation) or an inline SVG rendered via show_widget.

If you need Mermaid source code for long-term maintenance, explicitly request “output Mermaid code block” in the same prompt; if the client supports widgets, state that you prefer an inline preview. Specific layout and syntax details are constrained by the SKILL.md within the Skill; refer to the local Skill file after installation.

Use Cases & Notes

Suitable for: Developers who need to quickly generate diagrams in technical discussions, design explanations, or documentation drafts; users already utilizing Skill-supported environments like Cursor, Claude Code, or Codex who wish to reduce switching between dedicated drawing tools and editors.

Limitations & Notes:

  • Diagram quality depends on how clearly you describe boundaries, component names, and relationships; for complex topologies, it is recommended to complete the diagram step-by-step rather than adding too many nodes at once.
  • Whether show_widget and Mermaid display correctly depends on whether the current client supports the corresponding rendering; if widgets are unsupported, relying primarily on Mermaid code blocks is safer.
  • SkillHub page statistics (as of data scraping) show a rating of 100000 and 78239 downloads; the community-sourced Skill version is 1.0.3. To upgrade, use skillhub to reinstall/update the same coordinates (refer to SkillHub documentation).

Conclusion

“Architecture & Flowchart Drawing Expert” consolidates common technical diagram types—architecture, flow, sequence, state machine, ER—into a single Skill, unifying delivery via inline SVG and Mermaid. If you are already using SkillHub to manage Agent skills, you can install @user_04c33885/diagram-builder via the paths above and trigger it using official keywords in your conversation.

  • SkillHub Page: https://www.skillhub.cn/skills/user_04c33885/diagram-builder
  • Skill API Coordinates Page: https://api.skillhub.cn/user_04c33885/diagram-builder
  • Installation Guide: https://skillhub.cn/install/skillhub.md
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye