Architecture and Flowchart Drawing Skill: Generating Diagrams in Agent Conversations

Preface

When writing design documents or review materials, diagrams are often more efficient than long blocks of text: system boundaries, service dependencies, business processes, and data flows can be clarified largely by a single image. The common practice is to switch to draw.io, PlantUML, or a Mermaid online editor, draw the diagram, and then paste it back into Markdown or a Wiki, requiring the context to be moved back and forth between tools and the conversation.

Introduced below is the “Architecture & Flowchart Drawing Skill” (@user_60120345/diagram-builder-pro) on SkillHub. It integrates “generating various technical diagrams based on natural language descriptions” into the Agent’s Skill workflow. It supports two presentation modes: inline SVG (show_widget) and Mermaid code blocks, facilitating direct viewing or secondary editing in clients that support the corresponding capabilities.

What is this

One-sentence positioning: A professional architecture and flowchart drawing Skill for development scenarios.
- Version: 1.0.0
- Coordinate: @user_60120345/diagram-builder-pro
- Source: community
- Category: dev-programming
- Publisher: user_60120345 (Author displayed on SkillHub page: 紫云墨竹)
- Tag: requires_api_key=false, indicating that no additional API Key is required according to official annotations.

The problem it solves: Triggered by keywords within an Agent session, the model generates common technical diagrams—such as system architecture, microservices, topology, business processes, data flows, sequence diagrams, state machines, and ER diagrams—according to Skill conventions, eliminating the need to manually write Mermaid or switch to dedicated drawing tools every time.

Core Features

The following capabilities are derived from the SkillHub introduction and metadata; implementation details not explicitly expanded upon are not speculated upon in this article.

Diagram Type Coverage

  • System Architecture Diagrams, Microservices Architecture
  • Network Topology Diagrams
  • Business Flowcharts, Data Flow Diagrams
  • Sequence Diagrams, State Machines
  • ER Diagrams

Two Output Methods

  1. show_widget Inline SVG Rendering: Presents graphics inline as SVG within environments that support widget display.
  2. Mermaid Code Blocks: Outputs standard Mermaid text, facilitating copying to documents, CI, or Mermaid-supported renderers.

Trigger Keywords

The Skill is more easily matched when the following words appear in the conversation: 架构图 (Architecture Diagram), 流程图 (Flowchart), 时序图 (Sequence Diagram), 状态机 (State Machine), 拓扑图 (Topology Diagram), ER图 (ER Diagram), 数据流图 (Data Flow Diagram), as well as the English words draw, diagram, flowchart, architecture.

Community Data (SkillHub Scraped, 2026-10-20)

  • Rating: 100000
  • Downloads: 4995

Installation and Activation

This Skill follows the standard SKILL.md format. The installation method provided on the official page is: instruct the AI to refer to the SkillHub installation documentation to install the coordinate @user_60120345/diagram-builder-pro.

Installation documentation address:

https://skillhub.cn/install/skillhub.md

If the skillhub CLI is already installed on your machine, you can follow Section 3 of the documentation to install the skill to the skills directory actually used by the current Agent (installing to the wrong directory will prevent the Agent from recognizing it; the documentation requires using --dir during installation):

command -v skillhub && skillhub --version

If the CLI is not installed, the documentation provides a one-click installation script (full installation includes CLI and default Skills):

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

Example of installing this Skill (replace <skills directory> with the path of your current client):

skillhub install @user_60120345/diagram-builder-pro --dir <skills directory>

Commonly used skills directories listed in the documentation include:

  • Claude Code: ~/.claude/skills/
  • Cursor: ~/.cursor/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

Paths vary by client; please refer to your actual environment. If the client requires a restart or Skill reloading after installation, follow the product instructions.

You can also send the following prompt to an Agent that already possesses Skill installation capabilities (consistent with the SkillHub page):

Please install @user_60120345/diagram-builder-pro based on https://skillhub.cn/install/skillhub.md.

Typical Usage

Since the public page does not include the full SKILL.md body, the following only describes reproducible interaction methods and does not fabricate specific Mermaid or widget payloads.

  1. Confirm the Skill is installed in the current Agent’s skills directory and use the trigger words mentioned above in the conversation or explicitly specify the diagram type (e.g., “Draw a microservices architecture diagram,” “Describe the order placement process using a sequence diagram”).
  2. Provide elements using structured natural language: Participants (services/modules/users), relationships (calls, dependencies, data flows), and optional partitions (VPC, Availability Zones, etc.). The Skill’s responsibility is to translate descriptions into a diagram, not to complete business facts you have not provided.
  3. Choose presentation based on client capabilities: For inline previews, rely on the Agent’s support for show_widget; for repository documentation, request Mermaid code block output and paste it into a README or design doc.

If there is no response after installation, prioritize checking whether --dir points to the current client’s skills directory and whether the Skill has been loaded.

Use Cases and Notes

Who is it for

  • Developers who need to quickly generate diagrams for reviews, design explanations, or onboarding documents.
  • Those working in environments supporting Skills (like Cursor, Claude Code, Codex) who wish to reduce the switching cost of “Conversation → External Drawing → Paste Back”.

Limitations and Notes

  • The quality of the diagram depends on the clarity of your description of boundaries, naming, and relationships; the Skill cannot replace architectural decision-making itself.
  • The visible effects of show_widget and Mermaid vary by client; please refer to the specific Agent product you are using.
  • Fields such as installation counts in the metadata will change with SkillHub updates; please refer to the store page for the latest information.

Conclusion

The “Architecture & Flowchart Drawing Skill” integrates the drawing of multiple technical diagram types into an Agent Skill. It supports show_widget inline SVG and Mermaid code blocks and is triggered by Chinese and English keywords, making it suitable for quickly generating diagrams when writing documentation and communicating designs.

  • SkillHub Page: https://www.skillhub.cn/skills/user_60120345/diagram-builder-pro
  • API Coordinate Page: https://api.skillhub.cn/user_60120345/diagram-builder-pro
羽毛球分组比赛记分
小程序二维码

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

Xiaoye