diagram-gen

Generate Mermaid diagrams of code structure and system interactions.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Diagram-gen helps developers and architects quickly understand and document codebases by generating diagrams that illustrate architecture, flows, and data models.

Core Features & Use Cases

  • Architecture diagrams (system overview)
  • Sequence diagrams (request flows)
  • State diagrams (object lifecycles)
  • ERDs (data structures)
  • Flowcharts and Class diagrams
  • Use case example: onboarding flow for a web app

Quick Start

Identify the part of the codebase you want to visualize, run the tool to generate Mermaid diagrams, and save to docs/diagrams/[name].md.

Frequently Asked Questions about diagram-gen

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

FAQPage Schema
How do I generate Mermaid diagrams from source code to visualize architecture?

You can generate Mermaid diagrams to visualize architecture by pointing the tool at code entry points, extracting key components, and rendering system overview diagrams that are saved as markdown files.

Can I create sequence and ERD diagrams for my software project automatically?

Yes, you can automatically create sequence diagrams for request flows and ERDs for data structures by reading your codebase and rendering the extracted interactions into Mermaid templates.

What's the best way to document system flows and object lifecycles using Mermaid?

The best way to document system flows and object lifecycles is to generate sequence diagrams and state diagrams from your code, rendering the logic into Mermaid templates saved directly to your docs folder.

Do I need a specific environment to generate class diagrams and flowcharts from my codebase?

You do not need any specific external dependencies to generate class diagrams and flowcharts, as the tool reads your code entry points and renders the diagrams using built-in Mermaid templates.

Where are the generated visualization diagrams saved in my project?

The generated visualization diagrams are saved as markdown files in the docs/diagrams directory, using the diagram name as the filename to keep your architecture documentation organized.

Why use Mermaid templates for visualizing code structure instead of other diagram formats?

Using Mermaid templates for visualizing code structure allows you to render architecture overviews and data models as text-based markdown files, making them easy to version control alongside your source code.