diagram

Render Mermaid diagrams as ASCII art or themed SVG files.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/justinmoon/configs --skill diagram-justinmoon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: diagram
Source: https://github.com/justinmoon/configs/tree/main/home/skills/diagram
Command: npx skills add https://github.com/justinmoon/configs --skill diagram-justinmoon

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires beautiful-mermaid, bun, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill transforms textual descriptions of diagrams into visual representations, making complex architectures, data flows, and state machines easy to understand.

Core Features & Use Cases

  • Mermaid Diagram Rendering: Supports flowcharts, sequence diagrams, state diagrams, class diagrams, and ER models.
  • Output Formats: Generates both terminal-friendly ASCII art and beautiful, themed SVGs.
  • Use Case: Quickly visualize a system's architecture using a Mermaid flowchart, rendering it as ASCII art directly in your terminal for immediate feedback.

Quick Start

Render the Mermaid diagram defined in 'diagram.mmd' to the terminal as ASCII art.

Frequently Asked Questions about diagram

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

FAQPage Schema
How do I render Mermaid diagrams as ASCII art in the terminal?

To render Mermaid diagrams as terminal-friendly ASCII art, you can use this Skill to parse textual descriptions from a `.mmd` file and output the visualization directly in your command line interface for immediate architectural feedback.

Can I generate themed SVG files from Mermaid flowcharts and sequence diagrams?

Yes, you can generate themed SVG files from Mermaid diagrams. The Skill supports rendering flowcharts, sequence, state, class, and ER diagrams into scalable vector graphics using the beautiful-mermaid library.

What is the best way to visualize code architecture without leaving the command line?

Visualizing code architecture without leaving the command line is achieved by transforming textual Mermaid descriptions into terminal-friendly ASCII art, allowing you to quickly map data flows and system structures inline.

Do I need Bun to run the Mermaid diagram rendering process?

Yes, you need Bun installed because the Skill explicitly lists it as a dependency alongside the beautiful-mermaid library to execute the rendering scripts and generate the visual outputs.

Does this tool support rendering state diagrams and ER models?

Yes, the tool supports rendering state diagrams and ER models. It handles various diagram types including flowcharts, sequence diagrams, class diagrams, and entity-relationship models for comprehensive system visualization.