Code Graph Mermaid Diagrams
trailofbits/skills
Generates Mermaid diagrams from Trailmark code graphs, including call graphs, class hierarchies, module dependency maps, complexity heatmaps and attack surface data flows.
UTILITY SKILL — Mermaid diagrams for inline markdown: flowcharts, sequence, Gantt, class, state, ER.
$ npx skills add jonathan-vella/apex --skill apex-mermaid -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install jonathan-vella/apex apex-mermaid --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/jonathan-vella/apex.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/apex-mermaid .claude/skills/apex-mermaid && 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 "apex-mermaid" agent skill from https://github.com/jonathan-vella/apex/tree/main/.github/skills/apex-mermaid into .claude/skills/apex-mermaid/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "apex-mermaid", 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/jonathan-vella/apex/tree/main/.github/skills/apex-mermaidType 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 jonathan-vella/apex --skill apex-mermaid -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install jonathan-vella/apex apex-mermaid --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jonathan-vella/apex.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.github/skills/apex-mermaid .agents/skills/apex-mermaid && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "apex-mermaid" agent skill from https://github.com/jonathan-vella/apex/tree/main/.github/skills/apex-mermaid into .agents/skills/apex-mermaid/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "apex-mermaid", 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 jonathan-vella/apex --skill apex-mermaid -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install jonathan-vella/apex apex-mermaid --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jonathan-vella/apex.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.github/skills/apex-mermaid .cursor/skills/apex-mermaid && 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 "apex-mermaid" agent skill from https://github.com/jonathan-vella/apex/tree/main/.github/skills/apex-mermaid into .cursor/skills/apex-mermaid/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "apex-mermaid", 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/jonathan-vella/apex.git --path .github/skills/apex-mermaid--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 jonathan-vella/apex --skill apex-mermaid -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install jonathan-vella/apex apex-mermaid --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jonathan-vella/apex.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.github/skills/apex-mermaid .gemini/skills/apex-mermaid && 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 "apex-mermaid" agent skill from https://github.com/jonathan-vella/apex/tree/main/.github/skills/apex-mermaid into .gemini/skills/apex-mermaid/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "apex-mermaid", 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 jonathan-vella/apex apex-mermaidInstalls 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 jonathan-vella/apex --skill apex-mermaid -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/jonathan-vella/apex.git skills-src && mkdir -p .github/skills && cp -r skills-src/.github/skills/apex-mermaid .github/skills/apex-mermaid && 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 "apex-mermaid" agent skill from https://github.com/jonathan-vella/apex/tree/main/.github/skills/apex-mermaid into .github/skills/apex-mermaid/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "apex-mermaid", 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 jonathan-vella/apex --skill apex-mermaid -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install jonathan-vella/apex apex-mermaid --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jonathan-vella/apex.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.github/skills/apex-mermaid .opencode/skills/apex-mermaid && 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 "apex-mermaid" agent skill from https://github.com/jonathan-vella/apex/tree/main/.github/skills/apex-mermaid into .opencode/skills/apex-mermaid/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "apex-mermaid", 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.
apex-mermaidUTILITY SKILL — Mermaid diagrams for inline markdown: flowcharts, sequence, Gantt, class, state, ER.
Apex Mermaid is an agent skill from jonathan-vella/apex. UTILITY SKILL — Mermaid diagrams for inline markdown: flowcharts, sequence, Gantt, class, state, ER. WHEN: "mermaid flowchart", "sequence diagram", "Gantt chart", "state diagram", "ER diagram", "inline markdown diagram". DO NOT USE FOR: rendered architecture diagrams or WAF/cost charts (apex-python-diagrams).
Its SKILL.md is about 710 tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/styling.md` and `references/syntax-cheatsheet.md`). Compatibility notes: Works with VS Code Copilot, Claude Code, and any tool that renders Mermaid in markdown.
It sits in Development, covering Diagrams. It works with Mermaid, Python and Microsoft Azure. The repository describes itself as: APEX turns Azure platform engineering requirements into verified, deploy-ready IaC — powered by GitHub Copilot agents, real-time pricing, and built-in compliance. The licence is MIT.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit b8e5908. 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.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From 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.
Works with VS Code Copilot, Claude Code, and any tool that renders Mermaid in markdown.
From compatibility in the SKILL.md frontmatter.
Apex Mermaid loads about 707 tokens when it runs, and up to ~1.4k if it reads all its reference files. Until then it costs about 82 tokens; SKILL.md has 239 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); files beside SKILL.md are not scanned.
The full file from jonathan-vella/apex at commit b8e5908, republished under its MIT licence (© jonathan-vella). 239 words, ~707 tokens.
.claude/skills/apex-mermaid/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.Skill for generating Mermaid diagrams embedded in markdown fences. Mermaid is
used for inline documentation — flowcharts, sequences, state machines, ER
diagrams, Gantt charts. For architecture diagrams with Azure service icons,
use the apex-python-diagrams skill instead.
.md, .mdx)apex-azure-resources Mode B)DO: fenced code blocks with mermaid language tag · include theme
directives for dark mode · graph TB (vertical) or graph LR (horizontal) ·
subgraphs for grouping · descriptive connection labels · validate syntax
before committing.
DON'T: use Mermaid for WAF/cost charts (use apex-python-diagrams) · use
Mermaid for rendered architecture diagrams (use apex-python-diagrams) ·
omit theme directives · embed Azure service icons.
references/syntax-cheatsheet.mdmermaid fence in your markdownreferences/styling.md| File | When to Load |
|---|---|
references/syntax-cheatsheet.md | Authoring any diagram type (flowchart, sequence, Gantt, ER, state) |
references/styling.md | Adding theming and node classDef styling |
Does NOT: generate rendered architecture diagrams · produce Python charts ·
generate Bicep/Terraform · create ADRs · deploy resources · embed Azure
service icons (use apex-python-diagrams).
© jonathan-vella, 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 2 other files (references) in .github/skills/apex-mermaid of jonathan-vella/apex.
Open the folder on GitHubat commit b8e5908
Apex Mermaid 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 |
|---|---|---|---|---|---|---|
| Apex Mermaid this skilljonathan-vella/apex | 217 | — | ~707 | Automated safety check: Pass | MIT | |
| Code Graph Mermaid Diagramstrailofbits/skills | 7.5k | — | ~1.7k | Automated safety check: Pass | CC-BY-SA-4.0 | |
| Design Doc MermaidSpillwaveSolutions/design-doc-mermaid | 176 | 1 repos | ~5.6k | Automated safety check: Pass | None | |
| Markdown Mermaid Writingneflibata-feng/MyArxiv-Agent | 126 | 5 repos | ~3.8k | Automated safety check: Notes | Apache-2.0 | |
| Code To Diagramzebbern/claude-code-guide | 4.7k | — | ~972 | Automated safety check: Pass | MIT | |
| Generate Readmedivar-ir/ai-doc-gen | 767 | — | ~996 | Automated safety check: Pass | MIT |
trailofbits/skills
Generates Mermaid diagrams from Trailmark code graphs, including call graphs, class hierarchies, module dependency maps, complexity heatmaps and attack surface data flows.
SpillwaveSolutions/design-doc-mermaid
Create Mermaid diagrams (flowchart, sequence, class, ER, state, C4, architecture) from text or source code.
neflibata-feng/MyArxiv-Agent
Comprehensive markdown and Mermaid diagram writing skill that establishes text-based diagrams as the DEFAULT documentation standard.
zebbern/claude-code-guide
Analyze codebases and automatically generate architecture diagrams, flowcharts, and org charts.
divar-ir/ai-doc-gen
Generate or refresh a comprehensive, professional README.md for a repository, with architecture overview, mermaid and optional C4 diagrams, repository structure, dependencies, and API documentation.
aospbooks/aosp-internal-book
Patterns for writing technical book chapters in Markdown with Mermaid diagrams, served via ProperDocs (a MkDocs fork).
jonathan-vella/apex
WORKFLOW SKILL — Debug Azure production issues: Container Apps, Functions, App Service, AKS, VMs and messaging, with KQL log analysis.
jonathan-vella/apex
ANALYSIS SKILL — Azure Policy discovery: effective assignments (incl.
jonathan-vella/apex
UTILITY SKILL — Two-mode context-window management. An agent skill from jonathan-vella/apex.
jonathan-vella/apex
UTILITY SKILL — Python diagram generation for Azure architectures, WAF/cost/compliance charts, ERDs, swimlanes, timelines, and wireframes.
jonathan-vella/apex
WORKFLOW SKILL — Manual-only discovery and import of existing Azure resources into Terraform management.
jonathan-vella/apex
ANALYSIS SKILL — Manual-only audit of Anthropic Claude Opus 5.5 / Sonnet 5.5 and OpenAI GPT-6 / GPT-5.6 prompting guidance and APEX conventions.
Works with
Categories
UTILITY SKILL — Mermaid diagrams for inline markdown: flowcharts, sequence, Gantt, class, state, ER. Apex Mermaid is an agent skill from jonathan-vella/apex. UTILITY SKILL — Mermaid diagrams for inline markdown: flowcharts, sequence, Gantt, class, state, ER.
Apex Mermaid fits situations like: : rendered architecture diagrams; WAF/cost charts (apex-python-diagrams).
Run `npx skills add jonathan-vella/apex --skill apex-mermaid -a claude-code`. Or copy the skill folder (.github/skills/apex-mermaid in jonathan-vella/apex) into .claude/skills/apex-mermaid in your project. Claude Code loads it when a task matches its description.
Run `npx skills add jonathan-vella/apex --skill apex-mermaid -a codex`. Or copy the skill folder (.github/skills/apex-mermaid in jonathan-vella/apex) into .agents/skills/apex-mermaid 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 jonathan-vella/apex --skill apex-mermaid -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/apex-mermaid, .gemini/skills/apex-mermaid, .github/skills/apex-mermaid and .opencode/skills/apex-mermaid in your project.
SKILL.md names no scripts, command-line tools or credentials: Apex Mermaid is instructions for the agent only. Our summary lists: Python 3. Compatibility (from SKILL.md): Works with VS Code Copilot, Claude Code, and any tool that renders Mermaid in markdown..
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.
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.
Apex Mermaid is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 707 tokens (SKILL.md is roughly 2.8k 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 657 tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Apex Mermaid: Code Graph Mermaid Diagrams (trailofbits/skills, 7.5k stars), Design Doc Mermaid (SpillwaveSolutions/design-doc-mermaid, 176 stars), Markdown Mermaid Writing (neflibata-feng/MyArxiv-Agent, 126 stars) and Code To Diagram (zebbern/claude-code-guide, 4.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
jonathan-vella (a GitHub user) maintains it in jonathan-vella/apex, which has 217 GitHub stars. The repository holds 39 skills in this directory. The repository was last updated on October 10, 2026.
Source: jonathan-vella/apex on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.