Agent skill

Mermaid Studio

by tech-leads-club in tech-leads-club/agent-skills

Creates, validates and renders Mermaid diagrams to SVG, PNG or ASCII, including C4 and AWS architecture-beta, flowcharts, sequence diagrams and ERDs.

CC-BY-4.0Auto-check passedDevelopment

Install Mermaid Studio

skills CLI
$ npx skills add tech-leads-club/agent-skills --skill mermaid-studio -a claude-code

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

GitHub CLI
$ gh skill install tech-leads-club/agent-skills mermaid-studio --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/tech-leads-club/agent-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/'packages/skills-catalog/skills/(tooling)/mermaid-studio' .claude/skills/mermaid-studio && 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
mermaid-studio
GitHub stars
7k
Token cost
~4.6k tokens
SKILL.md length
1,546 words
Files
13 (incl. scripts, references, assets)
Skills in repo
74
Repo updated
First seen
Licence
CC-BY-4.0

At a glance

Creates, validates and renders Mermaid diagrams to SVG, PNG or ASCII, including C4 and AWS architecture-beta, flowcharts, sequence diagrams and ERDs.

  • Works in 5 steps: Understand the Request → Create the Diagram → Validate → …
  • Drawing a C4 or AWS architecture diagram of a system
  • SKILL.md covers Golden Rules — Elegant…, Modes of Operation, Step 1: Understand the Request and Step 2: Create the Diagram, plus 6 more sections
  • Runs JavaScript and Shell scripts from its folder; calls node and bash

What it does

The skill ships scripts for rendering, ASCII output, batch rendering, syntax validation and setup, plus reference notes on diagram types, C4 architecture, AWS architecture, themes, code-to-diagram analysis and troubleshooting. The agent can draw a diagram from your description or work out one from the structure of your code, then validate the syntax before rendering.

It also enforces a house style: every diagram starts with an init directive using a muted palette, lines in soft slate instead of black, no more than 15 nodes, camelCase node IDs, short labels, and three or four colors that each carry a meaning. It warns against setting fontFamily in theme variables, because the headless Chromium behind mmdc falls back to a serif font.

When your agent uses it

  • Drawing a C4 or AWS architecture diagram of a system
  • Rendering existing Mermaid files to SVG or PNG in a batch
  • Turning a code structure into a class or flow diagram
  • Producing an ASCII diagram for a README or terminal

Example prompts

  • “Draw a sequence diagram of the checkout flow and render it as SVG.”
  • “Validate and render every Mermaid file in ./docs/diagrams to PNG.”
  • “Make a C4 container diagram of this repository's services.”
  • “Give me an ASCII version of the signup flowchart.”

Requirements

  • Node.js to run the .mjs render and validate scripts
  • mmdc (Mermaid CLI), which renders through headless Chromium

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Understand the Request
  2. Create the Diagram
  3. Validate
  4. Render
  5. Code-to-Diagram (When Requested)

What it can do on your machine

Read from SKILL.md and the folder at commit 6df68d5. 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 5 files in scripts/ (JavaScript and Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • node
    • bash

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

  • Network

    No URLs in SKILL.md.

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

  • Credentials

    Names no API keys, tokens, secrets or passwords.

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

Context cost

Mermaid Studio loads about 4.6k tokens when it runs, and up to ~26k if it reads all its reference files. Until then it costs about 209 tokens; SKILL.md has 1,546 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~209
When it runs · the whole SKILL.md, loaded when a task matches
~4.6k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~26k

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); the scripts in this folder are not scanned.

SKILL.md

The full file from tech-leads-club/agent-skills at commit 6df68d5, republished under its CC-BY-4.0 licence (© tech-leads-club). 1,546 words, ~4,627 tokens.

Download SKILL.mdSave it as .claude/skills/mermaid-studio/SKILL.md (or your agent's skills folder). This skill also uses 12 other files; get the full folder from GitHub.
name
mermaid-studio
description
Expert Mermaid diagram creation, validation, and rendering with dual-engine output (SVG/PNG/ASCII). Supports all 20+ diagram types including C4 architecture, AWS architecture-beta with service icons, flowcharts, sequence, ERD, state, class, mindmap, timeline, git graph, sankey, and more. Features code-to-diagram analysis, batch rendering, 15+ themes, and syntax validation. Use when users ask to create diagrams, visualize architecture, render mermaid files, generate ASCII diagrams, document system flows, model databases, draw AWS infrastructure, analyze code structure, or anything involving "mermaid", "diagram", "flowchart", "architecture diagram", "sequence diagram", "ERD", "C4", "ASCII diagram". Do NOT use for non-Mermaid image generation, data plotting with chart libraries, or general documentation writing.
license
CC-BY-4.0
metadata.author
Felipe Rodrigues - github.com/felipfr
metadata.version
1.0.1

Mermaid Studio

Expert-level Mermaid diagram creation, validation, and multi-format rendering. Creates diagrams from descriptions or code analysis, validates syntax, and renders to SVG, PNG, or ASCII with professional theming.

Golden Rules — Elegant Diagrams by Default

Every diagram MUST follow these principles. They are not optional — they define the difference between a mediocre diagram and a gold-standard one.

Rule 1: Always Use an Init Directive for Professional Styling

NEVER create a diagram without an %%{init} directive or frontmatter config. The default Mermaid theme produces harsh black lines and generic colors. Always apply a curated palette.

For general diagrams (flowchart, sequence, state, class, ERD):

%%{init: {'theme': 'base', 'themeVariables': {
  'primaryColor': '#4f46e5', 'primaryTextColor': '#ffffff',
  'primaryBorderColor': '#3730a3', 'lineColor': '#94a3b8',
  'secondaryColor': '#10b981', 'tertiaryColor': '#f59e0b',
  'background': '#ffffff', 'mainBkg': '#f8fafc',
  'nodeBorder': '#cbd5e1', 'clusterBkg': '#f1f5f9',
  'clusterBorder': '#e2e8f0', 'titleColor': '#1e293b',
  'edgeLabelBackground': '#ffffff', 'textColor': '#334155'
}}}%%

⚠️ Font Warning: Do NOT set fontFamily in theme variables. The Mermaid default font (trebuchet ms, verdana, arial, sans-serif) works everywhere. Setting system-ui, Segoe UI, or -apple-system will render as Times New Roman in headless Chromium (used by mmdc).

For C4 diagrams — see the dedicated C4 styling section below.

For architecture-beta diagrams — see the dedicated AWS/Architecture section below.

Rule 2: Soft Lines, Never Harsh Black

The single biggest visual improvement is using lineColor: '#94a3b8' (slate-400) instead of the default black. This creates a modern, breathable diagram. For dark themes, use lineColor: '#64748b' (slate-500).

Rule 3: Limit Density — Breathe
  • Maximum 15 nodes per diagram (not 20 — fewer is more elegant)
  • Use subgraph or boundaries to create whitespace and visual grouping
  • Prefer LR (left-right) for process flows — it reads more naturally
  • Use invisible links (A ~~~ B) to add spacing when the layout is cramped
Rule 4: Meaningful Labels and Consistent Style
  • Node IDs: camelCase (orderService, not s1 or os)
  • Labels: short, clear natural language ([Order Service])
  • Arrows: action verbs with protocol info ("Sends order via gRPC")
  • Descriptions: one-line, role-focused ("Handles order lifecycle")
Rule 5: Color Harmony Over Color Variety

Use max 3-4 colors per diagram. Map colors to meaning:

  • Blue tones (#4f46e5, #3b82f6) → primary systems, internal services
  • Green tones (#10b981, #059669) → success states, data stores
  • Amber tones (#f59e0b, #d97706) → external systems, warnings
  • Slate tones (#64748b, #94a3b8) → lines, borders, secondary elements
  • Red tones (#ef4444) → errors ONLY, never as decoration

Modes of Operation

This skill operates in three modes based on user intent:

ModeTriggerWhat happens
Create"draw a diagram of...", "visualize my..."Generates .mmd code only
Render"render this mermaid", "convert to SVG/PNG/ASCII"Renders existing .mmd
Full"create and render...", ambiguous requestsCreate → Validate → Render

Default to Full mode when intent is unclear.

Step 1: Understand the Request

Before writing any Mermaid code, determine:

  1. What to diagram — system, flow, schema, architecture, code structure?
  2. Which diagram type — use the Decision Matrix below
  3. Output format — code only, SVG, PNG, or ASCII?
  4. Theme preference — ask only if rendering; default to base theme with curated palette
Diagram Type Decision Matrix
User describes...Diagram TypeSyntax keyword
Process, algorithm, decision tree, workflowFlowchartflowchart TD/LR
API calls, message passing, request/responseSequencesequenceDiagram
Database schema, table relationshipsERDerDiagram
OOP classes, domain model, interfacesClassclassDiagram
State machine, lifecycle, transitionsStatestateDiagram-v2
High-level system overview (C4 Level 1)C4 ContextC4Context
Applications, databases, services (C4 Level 2)C4 ContainerC4Container
Internal components (C4 Level 3)C4 ComponentC4Component
Request flows with numbered stepsC4 DynamicC4Dynamic
Infrastructure, cloud deploymentC4 DeploymentC4Deployment
Cloud services with icons (AWS/GCP/Azure)Architecturearchitecture-beta
Project timeline, schedulingGanttgantt
Proportional data, percentagesPiepie
Brainstorming, hierarchical ideasMindmapmindmap
Historical events, chronologyTimelinetimeline
Branching strategy, git historyGit GraphgitGraph
Flow quantities, resource distributionSankeysankey-beta
X/Y data visualizationXY Chartxychart-beta
Priority matrix, strategic positioningQuadrantquadrantChart
Layout control, grid positioningBlockblock-beta
Network packets, protocol headersPacketpacket-beta
Task boards, kanban workflowKanbankanban
User experience, satisfaction scoringUser Journeyjourney
System requirements traceabilityRequirementrequirementDiagram

If the user's description doesn't clearly map to one type, suggest 2-3 options with a brief rationale for each, then let them choose.

When to Load References

Load reference files ONLY when needed for the specific diagram type:

  • C4 diagrams → Read references/c4-architecture.md BEFORE writing code
  • AWS/Cloud architecture → Read references/aws-architecture.md BEFORE writing code
  • Code-to-diagram → Read references/code-to-diagram.md BEFORE analyzing
  • Theming/styling → Read references/themes.md when user requests custom themes
  • Syntax errors → Read references/troubleshooting.md when validation fails
  • Any diagram type details → Read references/diagram-types.md for comprehensive syntax

Step 2: Create the Diagram

2.1 — Write Mermaid Code

Follow these principles in order of priority:

  1. Elegance first — every diagram must look professional with init directives and curated colors
  2. Correctness — valid syntax that renders without errors
  3. Clarity — meaningful labels, logical flow direction, clear relationships
  4. Simplicity — under 15 nodes per diagram; split complex systems into multiple
  5. Consistency — uniform naming (camelCase for IDs, descriptive labels in brackets)
2.2 — Structure Rules
%% Diagram: [Purpose] | Author: [auto] | Date: [auto]
%%{init: {'theme': 'base', 'themeVariables': { ... }}}%%
[diagramType]
    [content]

CRITICAL: The %%{init} directive MUST go on the very first non-comment line, BEFORE the diagram type declaration. Alternatively, use YAML frontmatter at the absolute start of the file.

Naming conventions:

  • Node IDs: camelCase, descriptive (orderService, not s1)
  • Labels: natural language in brackets ([Order Service])
  • Relationships: action verbs ("Sends order to", "Reads from")

Layout best practices:

  • TD (top-down) for hierarchical flows and processes
  • LR (left-right) for timelines, pipelines, and sequential processes
  • RL for right-to-left reading contexts
  • Use subgraph to group related nodes; name subgraphs meaningfully
  • Add direction inside subgraphs when needed for different flow
2.3 — Quick Reference Examples

Flowchart (with professional styling):

mermaid
%%{init: {'theme': 'base', 'themeVariables': {
  'primaryColor': '#4f46e5', 'primaryTextColor': '#fff',
  'primaryBorderColor': '#3730a3', 'lineColor': '#94a3b8',
  'secondaryColor': '#10b981', 'tertiaryColor': '#f59e0b',
  'background': '#ffffff', 'mainBkg': '#f8fafc',
  'nodeBorder': '#cbd5e1', 'clusterBkg': '#f1f5f9',
  'clusterBorder': '#e2e8f0', 'titleColor': '#1e293b',
  'edgeLabelBackground': '#ffffff'
}}}%%
flowchart TD
    Start([Start]) --> Input[/User Input/]
    Input --> Validate{Valid?}
    Validate -->|Yes| Process[Process Data]
    Validate -->|No| Error[Show Error]
    Error --> Input
    Process --> Save[(Save to DB)]
    Save --> End([End])

For sequence diagram and ERD styling examples, read references/themes.md.

C4 Context (with MANDATORY elegant styling):

mermaid
C4Context
    title System Context — E-Commerce Platform

    Person(customer, "Customer", "Places orders online")
    System(platform, "E-Commerce Platform", "Handles orders and payments")
    System_Ext(payment, "Payment Gateway", "Processes transactions")
    System_Ext(email, "Email Service", "Sends notifications")

    Rel(customer, platform, "Uses", "HTTPS")
    Rel(platform, payment, "Processes payments", "API")
    Rel(platform, email, "Sends emails", "SMTP")

    UpdateRelStyle(customer, platform, $textColor="#475569", $lineColor="#94a3b8")
    UpdateRelStyle(platform, payment, $textColor="#475569", $lineColor="#94a3b8")
    UpdateRelStyle(platform, email, $textColor="#475569", $lineColor="#94a3b8")

    UpdateLayoutConfig($c4ShapeInRow="3", $c4BoundaryInRow="1")

Architecture (AWS with Iconify icons):

mermaid
architecture-beta
    group vpc(logos:aws-vpc)[VPC]

    service api(logos:aws-api-gateway)[API Gateway] in vpc
    service lambda(logos:aws-lambda)[Lambda] in vpc
    service db(logos:aws-dynamodb)[DynamoDB] in vpc
    service s3(logos:aws-s3)[S3 Bucket]

    api:R --> L:lambda
    lambda:R --> L:db
    lambda:B --> T:s3

IMPORTANT: Architecture-beta diagrams with logos:* icons require icon pack registration. When rendering with the render script, use the --icons logos flag. If rendering in a markdown viewer that doesn't support icon packs, use the built-in icons (cloud, database, disk, server, internet) as fallback. Read references/aws-architecture.md for the complete icon catalog and rendering instructions.

For comprehensive syntax of ALL diagram types, read references/diagram-types.md.

Show full SKILL.md (598 more words)Show less

C4 Diagrams — Mandatory Styling Guide

C4 diagrams have fixed element styling (blue boxes for systems, gray for persons, etc.), but their relationship lines default to harsh black which creates visual noise. You MUST apply these styling rules:

The C4 Styling Pattern

Every C4 diagram MUST include these directives at the end:

    %% === MANDATORY STYLING ===
    %% Apply soft line colors to ALL relationships
    UpdateRelStyle(fromAlias, toAlias, $textColor="#475569", $lineColor="#94a3b8")
    %% Repeat for each Rel() in the diagram

    %% Optimize layout spacing
    UpdateLayoutConfig($c4ShapeInRow="3", $c4BoundaryInRow="1")
C4 Color Values Reference
PurposeColorHexNotes
Soft line colorSlate-400#94a3b8Replaces harsh default black
Line text colorSlate-600#475569Readable but not dominant
Accent lineBlue-400#60a5faFor highlighted or primary relationships
Warning lineAmber-500#f59e0bFor external/risky connections
Custom element bgEmerald#10b981For data stores or success highlights
Custom element bgIndigo#4f46e5For primary system emphasis
C4 Layout Tips

CRITICAL — Maximum 6 Rel() per diagram. More than 6 relationships causes Dagre to route arrows through nodes, creating unreadable spaghetti. If your system needs more connections, split it into multiple focused diagrams.

  • Use $c4ShapeInRow="3" for most diagrams (prevents horizontal crowding)
  • Use $c4ShapeInRow="2" for diagrams with long labels
  • Use $c4BoundaryInRow="1" always (stacks boundaries vertically for clarity)
  • Apply $offsetY="-10" to UpdateRelStyle when labels overlap with elements
  • Prefer tree-shaped topologies (1 in, 1-2 out per node) over mesh topologies
  • Declare elements in flow order — the order of Container() declarations affects layout
  • Use directional Rel_D, Rel_R, etc. only as a last resort when auto-layout creates overlapping

For comprehensive C4 syntax, examples, and patterns, read references/c4-architecture.md.

Step 3: Validate

Before rendering, ALWAYS validate the Mermaid syntax:

bash
node $SKILL_DIR/scripts/validate.mjs <file.mmd>

If validation fails:

  1. Read the error message carefully
  2. Consult references/troubleshooting.md for common fixes
  3. Fix the syntax and re-validate
  4. Maximum 3 fix attempts before asking the user for clarification

Step 4: Render

4.1 — Setup (First Run Only)
bash
bash $SKILL_DIR/scripts/setup.sh

This auto-installs both rendering engines and icon pack dependencies. Run once per environment.

4.2 — Single Diagram Rendering
bash
# SVG (default — best quality)
node $SKILL_DIR/scripts/render.mjs -i diagram.mmd -o diagram.svg

# PNG (for documents/presentations)
node $SKILL_DIR/scripts/render.mjs -i diagram.mmd -o diagram.png --width 1200

# ASCII (for terminals/READMEs)
node $SKILL_DIR/scripts/render-ascii.mjs -i diagram.mmd

# With icon packs (architecture-beta with AWS/tech icons)
node $SKILL_DIR/scripts/render.mjs -i diagram.mmd -o diagram.svg --icons logos,fa

The --icons flag registers Iconify packs before rendering. Packs: logos (AWS/tech), fa (Font Awesome). Use logos for AWS.

4.3 — Batch Rendering

For multiple diagrams at once:

bash
node $SKILL_DIR/scripts/batch.mjs \
  --input-dir ./diagrams \
  --output-dir ./rendered \
  --format svg \
  --theme default \
  --workers 4
4.4 — Available Themes

beautiful-mermaid (15): tokyo-night | tokyo-night-storm | tokyo-night-light | dracula | nord | nord-light | catppuccin-mocha | catppuccin-latte | github-dark | github-light | solarized-dark | solarized-light | one-dark | zinc-dark | zinc-light

mermaid-cli native (5): default | forest | dark | neutral | base

Custom theme: --theme base --config '{"theme":"base","themeVariables":{"primaryColor":"#4f46e5","lineColor":"#94a3b8"}}'

For the full theme catalog, read references/themes.md. The render script auto-selects the best engine (mmdc primary, beautiful-mermaid fallback, Puppeteer for icon packs).

Step 5: Code-to-Diagram (When Requested)

When the user asks to visualize existing code or architecture:

  1. Read references/code-to-diagram.md for the analysis methodology
  2. Analyze the codebase to identify the right diagram type:
    • Module dependencies → Flowchart or Class diagram
    • API routes and handlers → Sequence diagram
    • Database models/schemas → ERD
    • Service architecture → C4 Container or Architecture diagram
    • State machines in code → State diagram
  3. Generate the .mmd file with proper init directives (Golden Rule 1)
  4. Validate and render as usual

Troubleshooting Quick Reference

SymptomLikely CauseFix
Diagram won't renderSyntax errorRun validate.mjs, check brackets/quotes
Labels cut offText too longShorten labels or use line breaks <br/>
Layout looks wrongWrong directionTry different TD/LR/BT/RL
Nodes overlapToo many nodesSplit into subgraphs or multiple diagrams
Lines too dark/thickNo init directiveAdd %%{init} with lineColor: '#94a3b8'
C4 lines overlappingNo styling appliedAdd UpdateRelStyle with offsets to each Rel
AWS icons not showingNo icon packUse --icons logos flag or fallback to built-in icons
mmdc not foundNot installedRun setup.sh
Theme not appliedWrong enginebeautiful-mermaid themes only work with that engine

For comprehensive troubleshooting, read references/troubleshooting.md.

Output Conventions

  • Save .mmd source files alongside rendered outputs
  • Naming: {purpose}-{type}.mmd (e.g., auth-flow-sequence.mmd)
  • For batch: maintain input filename, change extension
  • Always provide both the .mmd source and rendered file to the user

© tech-leads-club, CC-BY-4.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 12 other files (scripts, references, assets) in packages/skills-catalog/skills/(tooling)/mermaid-studio of tech-leads-club/agent-skills.

  • SKILL.md
  • assets/puppeteer-config.json
  • references/aws-architecture.md
  • references/c4-architecture.md
  • references/code-to-diagram.md
  • references/diagram-types.md
  • references/themes.md
  • references/troubleshooting.md
  • scripts/batch.mjs
  • scripts/render-ascii.mjs
  • scripts/render.mjs
  • scripts/setup.sh
  • scripts/validate.mjs

Open the folder on GitHubat commit 6df68d5

Compare with similar skills

Mermaid Studio 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.

Mermaid Studio compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Mermaid Studio this skilltech-leads-club/agent-skills7k—~4.6kAutomated safety check: PassCC-BY-4.0
Archify Diagramstt-a1i/archify82k—~2.9kAutomated safety check: PassMIT
Archify Diagram BuilderUnclecheng-li/AI_Animation1.5k2 repos~4.1kAutomated safety check: PassMIT
GitDiagram Repository Overviewahmedkhaleel2004/gitdiagram18k—~427Automated safety check: PassMIT
Code Graph Mermaid Diagramstrailofbits/skills7.5k—~1.7kAutomated safety check: PassCC-BY-SA-4.0
Mermaid Diagramsjjmartres/opencode1336 repos~1.9kAutomated safety check: PassMIT

Similar skills

  • Archify Diagrams

    tt-a1i/archify

    Creates interactive architecture, workflow, sequence, data-flow and lifecycle diagrams as standalone HTML with inline SVG, themes and image or video export.

    82k GitHub stars~2.9k tokensUpdated today
    DevelopmentAuto-check passed
  • Archify Diagram Builder

    Unclecheng-li/AI_Animation

    Builds validated architecture, workflow, sequence, data-flow and lifecycle diagrams as standalone interactive HTML from a small JSON spec, with optional motion and image export.

    1.5k GitHub starsUsed in 2 repos~4.1k tokens
    DevelopmentAuto-check passed
  • 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
  • Code Graph Mermaid Diagrams

    trailofbits/skills

    Official

    Generates Mermaid diagrams from Trailmark code graphs, including call graphs, class hierarchies, module dependency maps, complexity heatmaps and attack surface data flows.

    7.5k GitHub stars~1.7k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Mermaid Diagrams

    jjmartres/opencode

    Helps an agent pick the right Mermaid diagram type and write the syntax for class, sequence, flow, ER, C4, state and other software diagrams.

    133 GitHub starsUsed in 6 repos~1.9k 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

More from tech-leads-club/agent-skills

All 74 skills in this repo
  • Evolutionary Modular Architecture

    tech-leads-club/agent-skills

    Guides design of modular-monolith platforms with DDD, flat-by-aggregate modules, anti-corruption layers, outbox events and resilience, plus an architecture document with SVG diagrams.

    7k GitHub stars~3.7k tokensUpdated yesterday
    Auto-check passed
  • Excalidraw Diagram Studio

    tech-leads-club/agent-skills

    Generates Excalidraw diagram files from plain descriptions, choosing among flowcharts, mind maps, architecture, swimlane, class, sequence and ER diagrams.

    7k GitHub stars~3.6k tokensUpdated yesterday
    Auto-check passed
  • AWS Cloud Advisor

    tech-leads-club/agent-skills

    Answers AWS architecture, security and service-selection questions by searching AWS documentation through MCP tools first, then adapting advice to your stack and team.

    7k GitHub stars~2.1k tokensUpdated yesterday
    Auto-check passed
  • Harness Eval

    tech-leads-club/agent-skills

    Evaluates a repository's agent harness (AGENTS.md, rules, skills) for broken paths, redundant instructions and usefulness, and stops at reports.

    7k GitHub stars~3.9k tokensUpdated yesterday
    Auto-check passed
  • NestJS Modular Monolith Architect

    tech-leads-club/agent-skills

    Designs scalable NestJS modular monoliths with domain-driven design, Clean Architecture layers and optional CQRS, defining bounded contexts and strict module boundaries.

    7k GitHub stars~3.9k tokensUpdated yesterday
    Auto-check passed
  • Skill Architect

    tech-leads-club/agent-skills

    Guides you through designing a new agent skill by conversation, from discovery questions and architecture to drafting SKILL.md, validation and delivery.

    7k GitHub stars~3.4k tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Mermaid Studio

What does Mermaid Studio do?

Creates, validates and renders Mermaid diagrams to SVG, PNG or ASCII, including C4 and AWS architecture-beta, flowcharts, sequence diagrams and ERDs. The skill ships scripts for rendering, ASCII output, batch rendering, syntax validation and setup, plus reference notes on diagram types, C4 architecture, AWS architecture, themes, code-to-diagram analysis and troubleshooting. The agent can draw a diagram from your description or work out one from the structure of your code, then validate the syntax before rendering.

When should I use Mermaid Studio?

Mermaid Studio fits situations like: drawing a C4 or AWS architecture diagram of a system; rendering existing Mermaid files to SVG or PNG in a batch; turning a code structure into a class or flow diagram; producing an ASCII diagram for a README or terminal.

How do I install Mermaid Studio in Claude Code?

Run `npx skills add tech-leads-club/agent-skills --skill mermaid-studio -a claude-code`. Or copy the skill folder (packages/skills-catalog/skills/(tooling)/mermaid-studio in tech-leads-club/agent-skills) into .claude/skills/mermaid-studio in your project. Claude Code loads it when a task matches its description.

How do I install Mermaid Studio in Codex?

Run `npx skills add tech-leads-club/agent-skills --skill mermaid-studio -a codex`. Or copy the skill folder (packages/skills-catalog/skills/(tooling)/mermaid-studio in tech-leads-club/agent-skills) into .agents/skills/mermaid-studio in your project. Codex loads it when a task matches its description.

Can I use Mermaid Studio 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 tech-leads-club/agent-skills --skill mermaid-studio -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mermaid-studio, .gemini/skills/mermaid-studio, .github/skills/mermaid-studio and .opencode/skills/mermaid-studio in your project.

What does Mermaid Studio need to run?

Going by SKILL.md and its folder, Mermaid Studio needs JavaScript and a shell for the scripts in its folder and the command-line tools its instructions call (node and bash). Our summary lists: Node.js to run the .mjs render and validate scripts; mmdc (Mermaid CLI), which renders through headless Chromium.

Does Mermaid Studio access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Mermaid Studio 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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Mermaid Studio use?

Mermaid Studio is published under the CC-BY-4.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Mermaid Studio use?

About 4.6k tokens (SKILL.md is roughly 19k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 21k tokens, read only when the agent opens those files.

What are the alternatives to Mermaid Studio?

Skills that share tags, products or a category with Mermaid Studio: Archify Diagrams (tt-a1i/archify, 82k stars), Archify Diagram Builder (Unclecheng-li/AI_Animation, 1.5k stars), GitDiagram Repository Overview (ahmedkhaleel2004/gitdiagram, 18k stars) and Code Graph Mermaid Diagrams (trailofbits/skills, 7.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Mermaid Studio?

tech-leads-club (a GitHub organization) maintains it in tech-leads-club/agent-skills, which has 7,045 GitHub stars. The repository holds 74 skills in this directory. The repository was last updated on October 9, 2026.

Source: tech-leads-club/agent-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.