code-to-diagram

Generate Mermaid.js diagrams from source code and GitHub repositories.

1.1k|99|Updated Feb 12, 2026
One-click install
npx skills add https://github.com/dp-archive/archive --skill code-to-diagram
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-to-diagram
Source: https://github.com/dp-archive/archive/tree/main/seed_skills/code-to-diagram
Command: npx skills add https://github.com/dp-archive/archive --skill code-to-diagram

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the creation of various types of diagrams directly from source code, making complex codebases easier to understand and visualize.

Core Features & Use Cases

  • Diagram Generation: Creates architecture diagrams, ER diagrams, sequence diagrams, flowcharts, and class diagrams using Mermaid.js.
  • Codebase Visualization: Helps in understanding module dependencies, data flow, and structural relationships within code.
  • Use Case: When asked to "draw the architecture of our Python project" or "generate an ER diagram from our database models," this skill will produce visual representations.

Quick Start

Use the code-to-diagram skill to generate an architecture diagram for the provided Python codebase.

Frequently Asked Questions about code-to-diagram

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

FAQPage Schema
How do I generate an architecture diagram from source code?

You can generate an architecture diagram from source code by analyzing your codebase with this Skill, which outputs visual representations of module dependencies and structural relationships using Mermaid.js.

Can I create an ER diagram directly from my database models?

Yes, you can create an ER diagram directly from database models. The Skill parses your source code to visualize database structures and data flow relationships automatically.

Does this diagram generation tool work with GitHub repositories?

Yes, this diagram generation tool works with GitHub repositories. It supports analyzing code from various programming languages and GitHub repositories to visualize code structure, API flows, and class hierarchies.

Do I need Node.js and mmdc installed to visualize code structure?

Yes, you need Node.js and mmdc installed to visualize code structure. The Skill requires the 'diagram' executor environment to render Mermaid.js flowcharts and class diagrams successfully.

What types of diagrams can I produce from a codebase?

From a codebase, you can produce architecture diagrams, ER diagrams, sequence diagrams, flowcharts, and class diagrams. These visualizations help in understanding module dependencies, data flow, and structural relationships.