Agent skill · design visual · sundial-org
diagram-gen
Generate Mermaid diagrams from your codebase. Use when you need architecture visualizations.
Why this skill is useful
Generates Mermaid diagrams from codebases, providing domain-specific visualization capabilities that the AI wouldn't reliably generate on its own.
What it needs
Requires openai account access. About 1k tokens when loaded. Last updated 2026-03-07. 639 stars on the source repository.
What this skill does
Diagram Generator Architecture diagrams are always out of date because nobody maintains them. This tool reads your code and generates accurate Mermaid diagrams automatically. One command. Zero config. Just works. Quick Start What It Does Generates Mermaid diagrams from your code Supports flowcharts, class diagrams, sequence diagrams Creates ER diagrams from database schemas Outputs markdown-compatible Mermaid syntax Usage Examples Best Practices Pick the right diagram type - use class for OOP, flow for processes Focus on key modules - don't diagram everything Keep them updated - run periodically as code changes Add to docs - Mermaid renders in GitHub markdown When to Use This Onboarding new team members Documentation that's always out of date Understanding unfamiliar codebases Architecture reviews and planning Part of the LXGIC Dev Toolkit This is one of 110+ free developer tools built by LXGIC Studios. No paywalls, no sign-ups, no API keys on free tiers. Just tools that work. Find more: GitHub: https://github.com/LXGIC-Studios Twitter: https://x.com/lxgicstudios Substack: https://lxgicstudios.substack.com Website: https://lxgicstudios.com Requirements No install needed. Just run with npx. Node.js 18+ recommended. Needs OPENAIAPIKEY environment variable. How It Works Reads your source files to understand the structure, relationships, and data flow. Then generates Mermaid syntax that renders as diagrams in markdown editors, GitHub, and documentation tools. License MIT. Free forever. Use it however you want.
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills sundial-org/diagram-gen