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.
Mermaid Studio workflow skill. An agent skill from diegosouzapw/awesome-omni-skills.
$ npx skills add diegosouzapw/awesome-omni-skills --skill mermaid-studio -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install diegosouzapw/awesome-omni-skills mermaid-studio --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/diegosouzapw/awesome-omni-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/mermaid-studio .claude/skills/mermaid-studio && rm -rf skills-srcUse ~/.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/
Install the "mermaid-studio" agent skill from https://github.com/diegosouzapw/awesome-omni-skills/tree/main/skills/mermaid-studio into .claude/skills/mermaid-studio/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mermaid-studio", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/diegosouzapw/awesome-omni-skills/tree/main/skills/mermaid-studioType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add diegosouzapw/awesome-omni-skills --skill mermaid-studio -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install diegosouzapw/awesome-omni-skills mermaid-studio --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/diegosouzapw/awesome-omni-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/mermaid-studio .agents/skills/mermaid-studio && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "mermaid-studio" agent skill from https://github.com/diegosouzapw/awesome-omni-skills/tree/main/skills/mermaid-studio into .agents/skills/mermaid-studio/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mermaid-studio", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add diegosouzapw/awesome-omni-skills --skill mermaid-studio -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install diegosouzapw/awesome-omni-skills mermaid-studio --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/diegosouzapw/awesome-omni-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/mermaid-studio .cursor/skills/mermaid-studio && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "mermaid-studio" agent skill from https://github.com/diegosouzapw/awesome-omni-skills/tree/main/skills/mermaid-studio into .cursor/skills/mermaid-studio/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mermaid-studio", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/diegosouzapw/awesome-omni-skills.git --path skills/mermaid-studio--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add diegosouzapw/awesome-omni-skills --skill mermaid-studio -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install diegosouzapw/awesome-omni-skills mermaid-studio --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/diegosouzapw/awesome-omni-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/mermaid-studio .gemini/skills/mermaid-studio && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "mermaid-studio" agent skill from https://github.com/diegosouzapw/awesome-omni-skills/tree/main/skills/mermaid-studio into .gemini/skills/mermaid-studio/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mermaid-studio", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install diegosouzapw/awesome-omni-skills mermaid-studioInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add diegosouzapw/awesome-omni-skills --skill mermaid-studio -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/diegosouzapw/awesome-omni-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/mermaid-studio .github/skills/mermaid-studio && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "mermaid-studio" agent skill from https://github.com/diegosouzapw/awesome-omni-skills/tree/main/skills/mermaid-studio into .github/skills/mermaid-studio/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mermaid-studio", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add diegosouzapw/awesome-omni-skills --skill mermaid-studio -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install diegosouzapw/awesome-omni-skills mermaid-studio --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/diegosouzapw/awesome-omni-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/mermaid-studio .opencode/skills/mermaid-studio && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "mermaid-studio" agent skill from https://github.com/diegosouzapw/awesome-omni-skills/tree/main/skills/mermaid-studio into .opencode/skills/mermaid-studio/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mermaid-studio", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
mermaid-studioMermaid Studio workflow skill. An agent skill from diegosouzapw/awesome-omni-skills.
Mermaid Studio is an agent skill from diegosouzapw/awesome-omni-skills. Mermaid Studio workflow skill. Use this skill when the user needs 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…
Its SKILL.md is about 6.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 17 other files, including scripts, reference files and assets (for example `ORIGIN.md`, `assets/puppeteer-config.json` and `metadata.json`).
It sits in Development, covering Diagrams. It works with Mermaid, Amazon Web Services and Git. The repository describes itself as: Public repository of AI coding skills, curated improved best-practice skills, and runtime surfaces for CLI, API, MCP, and A2A. The licence is MIT.
7 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit c3af004. It shows what the files ask for, not the result of running them.
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.
Ships 5 files in scripts/ (JavaScript and Shell), which the agent can run.
Shell commands in SKILL.md call:
nodebashFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
github.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Mermaid Studio loads about 6.6k tokens when it runs, and up to ~28k if it reads all its reference files. Until then it costs about 256 tokens; SKILL.md has 2,417 words of instructions outside code blocks.
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.
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.
The full file from diegosouzapw/awesome-omni-skills at commit c3af004, republished under its MIT licence (© diegosouzapw). 2,417 words, ~6,626 tokens.
.claude/skills/mermaid-studio/SKILL.md (or your agent's skills folder). This skill also uses 14 other files; get the full folder from GitHub.This public intake copy packages packages/skills-catalog/skills/(tooling)/mermaid-studio from https://github.com/tech-leads-club/agent-skills into the native Omni Skills editorial shape without hiding its origin.
Use it when the operator needs the upstream workflow, support files, and repository context to stay intact while the public validator and private enhancer continue their normal downstream flow.
This intake keeps the copied upstream files intact and uses the external_source block in metadata.json plus ORIGIN.md as the provenance anchor for review.
Imported source sections that did not map cleanly to the public headings are still preserved below or in the support files. Notable imported sections: Modes of Operation, C4 Diagrams — Mandatory Styling Guide, Output Conventions.
Use this section as the trigger filter. It should make the activation boundary explicit before the operator loads files, runs commands, or opens a pull request.
| Situation | Start here | Why it matters |
|---|---|---|
| First-time use | metadata.json | Confirms repository, branch, commit, and imported path through the external_source block before touching the copied workflow |
| Provenance review | ORIGIN.md | Gives reviewers a plain-language audit trail for the imported source |
| Workflow execution | references/aws-architecture.md | Starts with the smallest copied file that materially changes execution |
| Supporting context | references/c4-architecture.md | Adds the next most relevant copied source file without loading the entire package |
| Handoff decision | ## Related Skills | Helps the operator switch to a stronger native skill when the task drifts |
This workflow is intentionally editorial and operational at the same time. It keeps the imported source useful to the operator while still satisfying the public intake standards that feed the downstream enhancer flow.
Before writing any Mermaid code, determine:
base theme with curated palette| User describes... | Diagram Type | Syntax keyword |
|---|---|---|
| Process, algorithm, decision tree, workflow | Flowchart | flowchart TD/LR |
| API calls, message passing, request/response | Sequence | sequenceDiagram |
| Database schema, table relationships | ERD | erDiagram |
| OOP classes, domain model, interfaces | Class | classDiagram |
| State machine, lifecycle, transitions | State | stateDiagram-v2 |
| High-level system overview (C4 Level 1) | C4 Context | C4Context |
| Applications, databases, services (C4 Level 2) | C4 Container | C4Container |
| Internal components (C4 Level 3) | C4 Component | C4Component |
| Request flows with numbered steps | C4 Dynamic | C4Dynamic |
| Infrastructure, cloud deployment | C4 Deployment | C4Deployment |
| Cloud services with icons (AWS/GCP/Azure) | Architecture | architecture-beta |
| Project timeline, scheduling | Gantt | gantt |
| Proportional data, percentages | Pie | pie |
| Brainstorming, hierarchical ideas | Mindmap | mindmap |
| Historical events, chronology | Timeline | timeline |
| Branching strategy, git history | Git Graph | gitGraph |
| Flow quantities, resource distribution | Sankey | sankey-beta |
| X/Y data visualization | XY Chart | xychart-beta |
| Priority matrix, strategic positioning | Quadrant | quadrantChart |
| Layout control, grid positioning | Block | block-beta |
| Network packets, protocol headers | Packet | packet-beta |
| Task boards, kanban workflow | Kanban | kanban |
| User experience, satisfaction scoring | User Journey | journey |
| System requirements traceability | Requirement | requirementDiagram |
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.
Load reference files ONLY when needed for the specific diagram type:
references/c4-architecture.md BEFORE writing codereferences/aws-architecture.md BEFORE writing codereferences/code-to-diagram.md BEFORE analyzingreferences/themes.md when user requests custom themesreferences/troubleshooting.md when validation failsreferences/diagram-types.md for comprehensive syntaxFollow these principles in order of priority:
%% 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:
orderService, not s1)[Order Service])"Sends order to", "Reads from")Layout best practices:
TD (top-down) for hierarchical flows and processesLR (left-right) for timelines, pipelines, and sequential processesRL for right-to-left reading contextssubgraph to group related nodes; name subgraphs meaningfullydirection inside subgraphs when needed for different flowFlowchart (with professional styling):
%%{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):
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):
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:s3IMPORTANT: 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.
Before rendering, ALWAYS validate the Mermaid syntax:
node $SKILL_DIR/scripts/validate.mjs <file.mmd>If validation fails:
references/troubleshooting.md for common fixesbash $SKILL_DIR/scripts/setup.shThis auto-installs both rendering engines and icon pack dependencies. Run once per environment.
# 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,faThe --icons flag registers Iconify packs before rendering. Packs: logos (AWS/tech), fa (Font Awesome). Use logos for AWS.
For multiple diagrams at once:
node $SKILL_DIR/scripts/batch.mjs \
--input-dir ./diagrams \
--output-dir ./rendered \
--format svg \
--theme default \
--workers 4beautiful-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).
This skill operates in three modes based on user intent:
| Mode | Trigger | What 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 requests | Create → Validate → Render |
Default to Full mode when intent is unclear.
Use @mermaid-studio to handle <task>. Start from the copied upstream workflow, load only the files that change the outcome, and keep provenance visible in the answer.Explanation: This is the safest starting point when the operator needs the imported workflow, but not the entire repository.
Review @mermaid-studio against metadata.json and ORIGIN.md, then explain which copied upstream files you would load first and why.Explanation: Use this before review or troubleshooting when you need a precise, auditable explanation of origin and file selection.
Use @mermaid-studio for <task>. Load only the copied references, examples, or scripts that change the outcome, and name the files explicitly before proceeding.Explanation: This keeps the skill aligned with progressive disclosure instead of loading the whole copied package by default.
Review @mermaid-studio using the copied upstream files plus provenance, then summarize any gaps before merge.Explanation: This is useful when the PR is waiting for human review and you want a repeatable audit packet.
Treat the generated public skill as a reviewable packaging layer around the upstream repository. The goal is to keep provenance explicit and load only the copied source material that materially improves execution.
Every diagram MUST follow these principles. They are not optional — they define the difference between a mediocre diagram and a gold-standard one.
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.
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).
subgraph or boundaries to create whitespace and visual groupingA ~~~ B) to add spacing when the layout is crampedorderService, not s1 or os)[Order Service])"Sends order via gRPC")"Handles order lifecycle")Use max 3-4 colors per diagram. Map colors to meaning:
Symptoms: The result ignores the upstream workflow in packages/skills-catalog/skills/(tooling)/mermaid-studio, fails to mention provenance, or does not use any copied source files at all.
Solution: Re-open metadata.json, ORIGIN.md, and the most relevant copied upstream files. Check the external_source block first, then restate the provenance before continuing.
Symptoms: Reviewers can see the generated SKILL.md, but they cannot quickly tell which references, examples, or scripts matter for the current task.
Solution: Point at the exact copied references, examples, scripts, or assets that justify the path you took. If the gap is still real, record it in the PR instead of hiding it.
Symptoms: The imported skill starts in the right place, but the work turns into debugging, architecture, design, security, or release orchestration that a native skill handles better. Solution: Use the related skills section to hand off deliberately. Keep the imported provenance visible so the next skill inherits the right context instead of starting blind.
| Symptom | Likely Cause | Fix |
|---|---|---|
| Diagram won't render | Syntax error | Run validate.mjs, check brackets/quotes |
| Labels cut off | Text too long | Shorten labels or use line breaks <br/> |
| Layout looks wrong | Wrong direction | Try different TD/LR/BT/RL |
| Nodes overlap | Too many nodes | Split into subgraphs or multiple diagrams |
| Lines too dark/thick | No init directive | Add %%{init} with lineColor: '#94a3b8' |
| C4 lines overlapping | No styling applied | Add UpdateRelStyle with offsets to each Rel |
| AWS icons not showing | No icon pack | Use --icons logos flag or fallback to built-in icons |
mmdc not found | Not installed | Run setup.sh |
| Theme not applied | Wrong engine | beautiful-mermaid themes only work with that engine |
For comprehensive troubleshooting, read references/troubleshooting.md.
@accessibility - Use when the work is better handled by that native specialization after this imported skill establishes context.@ai-cold-outreach - Use when the work is better handled by that native specialization after this imported skill establishes context.@ai-pricing - Use when the work is better handled by that native specialization after this imported skill establishes context.@ai-sdr - Use when the work is better handled by that native specialization after this imported skill establishes context.Use this support matrix and the linked files below as the operator packet for this imported skill. They should reflect real copied source material, not generic scaffolding.
| Resource family | What it gives the reviewer | Example path |
|---|---|---|
references | copied reference notes, guides, or background material from upstream | references/aws-architecture.md |
examples | worked examples or reusable prompts copied from upstream | examples/n/a |
scripts | upstream helper scripts that change execution or validation | scripts/batch.mjs |
agents | routing or delegation notes that are genuinely part of the imported package | agents/n/a |
assets | supporting assets or schemas copied from the source package | assets/puppeteer-config.json |
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:
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")| Purpose | Color | Hex | Notes |
|---|---|---|---|
| Soft line color | Slate-400 | #94a3b8 | Replaces harsh default black |
| Line text color | Slate-600 | #475569 | Readable but not dominant |
| Accent line | Blue-400 | #60a5fa | For highlighted or primary relationships |
| Warning line | Amber-500 | #f59e0b | For external/risky connections |
| Custom element bg | Emerald | #10b981 | For data stores or success highlights |
| Custom element bg | Indigo | #4f46e5 | For primary system emphasis |
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.
$c4ShapeInRow="3" for most diagrams (prevents horizontal crowding)$c4ShapeInRow="2" for diagrams with long labels$c4BoundaryInRow="1" always (stacks boundaries vertically for clarity)$offsetY="-10" to UpdateRelStyle when labels overlap with elementsContainer() declarations affects layoutRel_D, Rel_R, etc. only as a last resort when auto-layout creates overlappingFor comprehensive C4 syntax, examples, and patterns, read references/c4-architecture.md.
{purpose}-{type}.mmd (e.g., auth-flow-sequence.mmd)© diegosouzapw, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 14 other files (scripts, references, assets) in skills/mermaid-studio of diegosouzapw/awesome-omni-skills.
Open the folder on GitHubat commit c3af004
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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Mermaid Studio this skilldiegosouzapw/awesome-omni-skills | 159 | — | ~6.6k | Automated safety check: Pass | MIT | |
| Mermaid Diagramsjjmartres/opencode | 133 | 6 repos | ~1.9k | Automated safety check: Pass | MIT | |
| Mermaid Studiotech-leads-club/agent-skills | 7k | — | ~4.6k | Automated safety check: Pass | CC-BY-4.0 | |
| Diagram312362115/claude | 107 | — | ~2.7k | Automated safety check: Pass | MIT | |
| Map Architectureazalio/map-framework | 156 | — | ~2.2k | Automated safety check: Pass | MIT | |
| Docs CIjh941213/my-cc-harness | 126 | — | ~989 | Automated safety check: Notes | None |
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.
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.
312362115/claude
专业图表生成技能:根据需求自动选择合适的图表类型,生成符合设计规范的 PNG 图表. An agent skill from 312362115/claude.
azalio/map-framework
Opt-in proactive architecture-deepening report: ranks codebase areas by recent git hotspot and design friction, generates a ranked Markdown+Mermaid candidate report under…
jh941213/my-cc-harness
Scaffold a docs-as-code CI/CD pipeline + docs drift detection — link check, OpenAPI lint/breaking gate, mermaid validation, docs freshness check, CHANGELOG automation, docs.yaml manifest.
thomast1906/github-copilot-agent-skills
Create and edit diagrams using the Draw.io MCP server — any shape, any vendor.
diegosouzapw/awesome-omni-skills
Content Creator workflow skill. An agent skill from diegosouzapw/awesome-omni-skills.
diegosouzapw/awesome-omni-skills
Helm Chart Scaffolding workflow skill. An agent skill from diegosouzapw/awesome-omni-skills.
diegosouzapw/awesome-omni-skills
Prompt Engineering Patterns workflow skill. An agent skill from diegosouzapw/awesome-omni-skills.
diegosouzapw/awesome-omni-skills
Prompt Engineering Patterns workflow skill. An agent skill from diegosouzapw/awesome-omni-skills.
diegosouzapw/awesome-omni-skills
📝 Prompt Library workflow skill. An agent skill from diegosouzapw/awesome-omni-skills.
diegosouzapw/awesome-omni-skills
Protocol Reverse Engineering workflow skill. An agent skill from diegosouzapw/awesome-omni-skills.
Works with
Categories
Mermaid Studio workflow skill. An agent skill from diegosouzapw/awesome-omni-skills. Mermaid Studio is an agent skill from diegosouzapw/awesome-omni-skills. Mermaid Studio workflow skill.
Mermaid Studio fits situations like: the user needs Expert Mermaid diagram creation; rendering with dual-engine output (SVG/PNG/ASCII); users ask to create diagrams; visualize architecture.
Run `npx skills add diegosouzapw/awesome-omni-skills --skill mermaid-studio -a claude-code`. Or copy the skill folder (skills/mermaid-studio in diegosouzapw/awesome-omni-skills) into .claude/skills/mermaid-studio in your project. Claude Code loads it when a task matches its description.
Run `npx skills add diegosouzapw/awesome-omni-skills --skill mermaid-studio -a codex`. Or copy the skill folder (skills/mermaid-studio in diegosouzapw/awesome-omni-skills) into .agents/skills/mermaid-studio in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add diegosouzapw/awesome-omni-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.
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; A Bash shell.
SKILL.md names 1 domain. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
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.
Mermaid Studio is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 6.6k tokens (SKILL.md is roughly 27k 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.
Skills that share tags, products or a category with Mermaid Studio: Mermaid Diagrams (jjmartres/opencode, 133 stars), Mermaid Studio (tech-leads-club/agent-skills, 7k stars), Diagram (312362115/claude, 107 stars) and Map Architecture (azalio/map-framework, 156 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
diegosouzapw (a GitHub user) maintains it in diegosouzapw/awesome-omni-skills, which has 159 GitHub stars. The repository holds 39 skills in this directory. The repository was last updated on July 8, 2026.
Source: diegosouzapw/awesome-omni-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.