sequence-diagram-generator

Generate PNG images from Mermaid sequence diagram code via Kroki.io.

Updated Feb 4, 2026
One-click install
npx skills add https://github.com/yuanshenjian-cn/yuanshenjian-cn --skill sequence-diagram-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sequence-diagram-generator
Source: https://github.com/yuanshenjian-cn/yuanshenjian-cn/tree/main/.opencode/skills/sequence-diagram-generator
Command: npx skills add https://github.com/yuanshenjian-cn/yuanshenjian-cn --skill sequence-diagram-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the creation of visual sequence diagrams from textual Mermaid code, eliminating the need for manual drawing tools and ensuring accuracy.

Core Features & Use Cases

  • Mermaid to Image Conversion: Transforms Mermaid syntax into PNG image files.
  • Customizable Output: Allows users to specify the directory where the generated image will be saved.
  • Use Case: When documenting a complex API interaction or a user login flow, you can paste the Mermaid code directly into the AI, and it will generate a clear, shareable sequence diagram image for your documentation.

Quick Start

Use the sequence-diagram-generator skill to create a PNG image from the provided Mermaid code.

Frequently Asked Questions about sequence-diagram-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a sequence diagram from Mermaid code?

To generate a sequence diagram from Mermaid code, paste the Mermaid syntax directly into the AI and specify a custom output directory to receive a rendered PNG image file.

What is the best way to convert Mermaid syntax into a PNG image for documentation?

The best way to convert Mermaid syntax into a PNG image for documentation is using an automated generator that renders the code via the Kroki.io service, eliminating manual drawing tools.

Do I need Node.js and network access to render Mermaid diagrams?

Yes, you need Node.js and active network access to kroki.io to render Mermaid diagrams, as the service handles the image generation remotely before saving the PNG locally.

What are the fallback options if kroki.io fails to generate the sequence diagram?

If kroki.io fails to generate the sequence diagram, the fallback options include routing the Mermaid code through the Mermaid Live Editor or the mermaid.ink service to produce the PNG image.

Can I specify a custom output directory for my generated sequence diagram images?

Yes, you can specify a custom output directory for your generated sequence diagram images, allowing you to save the rendered PNG files directly into your project's documentation folder.