Generate Mermaid diagrams from your codebase. An agent skill from sundial-org/awesome-openclaw-skills.

No licenceAuto-check passedDevelopment

Install Diagram Gen

skills CLI
$ npx skills add sundial-org/awesome-openclaw-skills --skill diagram-gen -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install sundial-org/awesome-openclaw-skills diagram-gen --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/sundial-org/awesome-openclaw-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/diagram-gen .claude/skills/diagram-gen && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
diagram-gen
GitHub stars
663
Token cost
~527 tokens
SKILL.md length
213 words
Files
11
Skills in repo
383
Repo updated
First seen
Licence
None found

At a glance

Generate Mermaid diagrams from your codebase. An agent skill from sundial-org/awesome-openclaw-skills.

  • You need architecture visualizations
  • SKILL.md covers Quick Start, What It Does, Usage Examples and Best Practices, plus 5 more sections
  • Runs TypeScript and JavaScript scripts from its folder; calls npx; needs OPENAI_API_KEY
  • Tasks that involve Diagrams

What it does

Diagram Gen is an agent skill from sundial-org/awesome-openclaw-skills. Generate Mermaid diagrams from your codebase. Use when you need architecture visualizations.

Its SKILL.md is about 530 tokens, which your agent loads only when the skill is triggered. The skill folder holds 12 other files (for example `README.md`, `dist/cli.d.ts` and `dist/cli.js`).

It sits in Development, covering Diagrams. It works with GitHub and Mermaid. The repository describes itself as: Top OpenClaw skills, with the most popular and useful ones.

When your agent uses it

  • You need architecture visualizations
  • Tasks that involve Diagrams

Example prompts

  • “/diagram-gen”

Requirements

  • Node.js
  • A credential in OPENAI_API_KEY

What it can do on your machine

Read from SKILL.md and the folder at commit b80cde2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (TypeScript and JavaScript), which the agent can run.

    Shell commands in SKILL.md call:

    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com
    • x.com
    • lxgicstudios.substack.com
    • lxgicstudios.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • OPENAI_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Diagram Gen loads about 527 tokens when it runs. Until then it costs about 26 tokens; SKILL.md has 213 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~26
When it runs · the whole SKILL.md, loaded when a task matches
~527

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 213 words (~527 tokens).

“Architecture diagrams are always out of date because nobody maintains them. This tool reads your code and generates accurate Mermaid diagrams automatically.”

— opening of SKILL.md by sundial-org
name
diagram-gen

Read the full SKILL.md on GitHub

Files

SKILL.md and 10 other files in skills/diagram-gen of sundial-org/awesome-openclaw-skills.

  • SKILL.md
  • README.md
  • dist/cli.d.ts
  • dist/cli.js
  • dist/index.d.ts
  • dist/index.js
  • package-lock.json
  • package.json
  • src/cli.ts
  • src/index.ts
  • tsconfig.json

Open the folder on GitHubat commit b80cde2

Compare with similar skills

Diagram Gen next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Diagram Gen compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Diagram Gen this skillsundial-org/awesome-openclaw-skills663—~527Automated safety check: PassNone
GitDiagram Repository Overviewahmedkhaleel2004/gitdiagram18k—~427Automated safety check: PassMIT
Design Doc MermaidSpillwaveSolutions/design-doc-mermaid1761 repos~5.6kAutomated safety check: PassNone
GitDiagram Repo Architectureahmedkhaleel2004/gitdiagram18k—~429Automated safety check: PassMIT
Deep Repository Architecture Analyzeryzddmr6/repo-analyzer492—~2.2kAutomated safety check: PassMIT
Work Issuejoesaby/astro-mermaid123—~891Automated safety check: PassMIT

Similar skills

  • GitDiagram Repository Overview

    ahmedkhaleel2004/gitdiagram

    Explains the architecture of a public GitHub repository through GitDiagram: how the code is organized, the main components with paths, and a Mermaid diagram.

    18k GitHub stars~427 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Design Doc Mermaid

    SpillwaveSolutions/design-doc-mermaid

    Create Mermaid diagrams (flowchart, sequence, class, ER, state, C4, architecture) from text or source code.

    176 GitHub starsUsed in 1 repo~5.6k tokens
    DevelopmentAuto-check passed
  • GitDiagram Repo Architecture

    ahmedkhaleel2004/gitdiagram

    Explains how a public GitHub repository is built by fetching its GitDiagram architecture diagram, components and optional explainer video.

    18k GitHub stars~429 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Produces an in-depth architecture report on an open-source project or framework, explaining why it is designed the way it is rather than just what the code does.

    492 GitHub stars~2.2k tokensUpdated 5 mo ago
    DevelopmentAuto-check passed
  • Work Issue

    joesaby/astro-mermaid

    End-to-end workflow for resolving a GitHub issue in astro-mermaid — triages complexity, then runs brainstorm → TDD → implement → docs/spec → code review at the right depth.

    123 GitHub stars~891 tokensUpdated 2 mo ago
    DevelopmentAuto-check passed
  • Domain Diagram

    shuotao/REVIT_MCP_study

    引導剛寫完 domain 的老師把 SOP 流程圖像化:先討論主流程、做流程健檢(迴圈/死路/缺口),再把流程整理成結構化 spec,交由 .claude/skills/domain-diagram/scripts/mermaidfromspec.py 確定性地產出 GitHub 原生 mermaid 圖與健檢結論並回嵌…

    102 GitHub stars~816 tokensUpdated 1 mo ago
    DevelopmentAuto-check passed

More from sundial-org/awesome-openclaw-skills

All 383 skills in this repo
  • UI UX Pro Max

    sundial-org/awesome-openclaw-skills

    UI/UX design intelligence and implementation guidance for building polished interfaces.

    663 GitHub starsUsed in 2 repos~657 tokens
    Auto-check passed
  • Web Deploy GitHub

    sundial-org/awesome-openclaw-skills

    Create and deploy single-page static websites to GitHub Pages with autonomous workflow.

    663 GitHub starsUsed in 1 repo~1.1k tokens
    Auto-check passed
  • Clawd Modifier

    sundial-org/awesome-openclaw-skills

    Modify Clawd, the Claude Code mascot. An agent skill from sundial-org/awesome-openclaw-skills.

    663 GitHub stars~625 tokensUpdated 7 mo ago
    Auto-check passed
  • Figma

    sundial-org/awesome-openclaw-skills

    Professional Figma design analysis and asset export. An agent skill from sundial-org/awesome-openclaw-skills.

    663 GitHub stars~1.7k tokensUpdated 7 mo ago
    Auto-check: notes
  • Habit Flow

    sundial-org/awesome-openclaw-skills

    AI-powered atomic habit tracker with natural language logging, streak tracking, smart reminders, and coaching.

    663 GitHub stars~3.1k tokensUpdated 7 mo ago
    Auto-check passed
  • Edge Tts

    sundial-org/awesome-openclaw-skills

    Text-to-speech conversion using node-edge-tts npm package for generating audio from text.

    663 GitHub starsUsed in 1 repo~1.8k tokens
    Auto-check passed

Works with

Categories

Questions about Diagram Gen

What does Diagram Gen do?

Generate Mermaid diagrams from your codebase. An agent skill from sundial-org/awesome-openclaw-skills. Diagram Gen is an agent skill from sundial-org/awesome-openclaw-skills. Generate Mermaid diagrams from your codebase.

When should I use Diagram Gen?

Diagram Gen fits situations like: you need architecture visualizations; tasks that involve Diagrams.

How do I install Diagram Gen in Claude Code?

Run `npx skills add sundial-org/awesome-openclaw-skills --skill diagram-gen -a claude-code`. Or copy the skill folder (skills/diagram-gen in sundial-org/awesome-openclaw-skills) into .claude/skills/diagram-gen in your project. Claude Code loads it when a task matches its description.

How do I install Diagram Gen in Codex?

Run `npx skills add sundial-org/awesome-openclaw-skills --skill diagram-gen -a codex`. Or copy the skill folder (skills/diagram-gen in sundial-org/awesome-openclaw-skills) into .agents/skills/diagram-gen in your project. Codex loads it when a task matches its description.

Can I use Diagram Gen in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add sundial-org/awesome-openclaw-skills --skill diagram-gen -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/diagram-gen, .gemini/skills/diagram-gen, .github/skills/diagram-gen and .opencode/skills/diagram-gen in your project.

What does Diagram Gen need to run?

Going by SKILL.md and its folder, Diagram Gen needs TypeScript and JavaScript for the scripts in its folder, the command-line tools its instructions call (npx) and credentials named OPENAI_API_KEY. Our summary lists: Node.js; A credential in OPENAI_API_KEY.

Does Diagram Gen access the network?

SKILL.md names 4 domains. As links in the text: github.com, x.com, lxgicstudios.substack.com and lxgicstudios.com. This is read from the text; nothing was executed.

Is Diagram Gen safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Diagram Gen use?

No licence was found for Diagram Gen or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Diagram Gen use?

About 527 tokens (SKILL.md is roughly 2.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Diagram Gen?

Skills that share tags, products or a category with Diagram Gen: GitDiagram Repository Overview (ahmedkhaleel2004/gitdiagram, 18k stars), Design Doc Mermaid (SpillwaveSolutions/design-doc-mermaid, 176 stars), GitDiagram Repo Architecture (ahmedkhaleel2004/gitdiagram, 18k stars) and Deep Repository Architecture Analyzer (yzddmr6/repo-analyzer, 492 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Diagram Gen?

sundial-org (a GitHub organization) maintains it in sundial-org/awesome-openclaw-skills, which has 663 GitHub stars. The repository holds 383 skills in this directory. The repository was last updated on March 7, 2026.

Source: sundial-org/awesome-openclaw-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.