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.
Agent skill
Draws architecture diagrams as editable draw.io files from a JSON spec, with a fixed house style, one C4 level per diagram and evidence-tagged shapes.
$ npx skills add HoangNguyen0403/agent-skills-standard --skill common-architecture-diagramming -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install HoangNguyen0403/agent-skills-standard common-architecture-diagramming --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/HoangNguyen0403/agent-skills-standard.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/common/common-architecture-diagramming .claude/skills/common-architecture-diagramming && 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 "common-architecture-diagramming" agent skill from https://github.com/HoangNguyen0403/agent-skills-standard/tree/develop/skills/common/common-architecture-diagramming into .claude/skills/common-architecture-diagramming/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "common-architecture-diagramming", 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/HoangNguyen0403/agent-skills-standard/tree/develop/skills/common/common-architecture-diagrammingType 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 HoangNguyen0403/agent-skills-standard --skill common-architecture-diagramming -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install HoangNguyen0403/agent-skills-standard common-architecture-diagramming --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HoangNguyen0403/agent-skills-standard.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/common/common-architecture-diagramming .agents/skills/common-architecture-diagramming && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "common-architecture-diagramming" agent skill from https://github.com/HoangNguyen0403/agent-skills-standard/tree/develop/skills/common/common-architecture-diagramming into .agents/skills/common-architecture-diagramming/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "common-architecture-diagramming", 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 HoangNguyen0403/agent-skills-standard --skill common-architecture-diagramming -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install HoangNguyen0403/agent-skills-standard common-architecture-diagramming --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HoangNguyen0403/agent-skills-standard.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/common/common-architecture-diagramming .cursor/skills/common-architecture-diagramming && 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 "common-architecture-diagramming" agent skill from https://github.com/HoangNguyen0403/agent-skills-standard/tree/develop/skills/common/common-architecture-diagramming into .cursor/skills/common-architecture-diagramming/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "common-architecture-diagramming", 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/HoangNguyen0403/agent-skills-standard.git --path skills/common/common-architecture-diagramming--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 HoangNguyen0403/agent-skills-standard --skill common-architecture-diagramming -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install HoangNguyen0403/agent-skills-standard common-architecture-diagramming --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HoangNguyen0403/agent-skills-standard.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/common/common-architecture-diagramming .gemini/skills/common-architecture-diagramming && 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 "common-architecture-diagramming" agent skill from https://github.com/HoangNguyen0403/agent-skills-standard/tree/develop/skills/common/common-architecture-diagramming into .gemini/skills/common-architecture-diagramming/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "common-architecture-diagramming", 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 HoangNguyen0403/agent-skills-standard common-architecture-diagrammingInstalls 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 HoangNguyen0403/agent-skills-standard --skill common-architecture-diagramming -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/HoangNguyen0403/agent-skills-standard.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/common/common-architecture-diagramming .github/skills/common-architecture-diagramming && 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 "common-architecture-diagramming" agent skill from https://github.com/HoangNguyen0403/agent-skills-standard/tree/develop/skills/common/common-architecture-diagramming into .github/skills/common-architecture-diagramming/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "common-architecture-diagramming", 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 HoangNguyen0403/agent-skills-standard --skill common-architecture-diagramming -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install HoangNguyen0403/agent-skills-standard common-architecture-diagramming --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/HoangNguyen0403/agent-skills-standard.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/common/common-architecture-diagramming .opencode/skills/common-architecture-diagramming && 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 "common-architecture-diagramming" agent skill from https://github.com/HoangNguyen0403/agent-skills-standard/tree/develop/skills/common/common-architecture-diagramming into .opencode/skills/common-architecture-diagramming/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "common-architecture-diagramming", 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.
common-architecture-diagrammingDraws architecture diagrams as editable draw.io files from a JSON spec, with a fixed house style, one C4 level per diagram and evidence-tagged shapes.
The agent never hand-writes mxGraph XML. It writes a spec.json, and bundled scripts own every visual decision so diagrams look the same across authors, repositories and sessions. The flow is to write the spec, with schema_to_spec.py generating one from a SQL schema for ERDs, validate it with validate_spec.py, render with render_drawio.py in strict mode, optionally validate a manifest of related views, and export a PNG with export_drawio.py or a draw.io MCP tool.
The JSON spec is the semantic source of truth, the .drawio file is the editable presentation, and the image is a copy for a deck. Regeneration protects manual edits unless you acknowledge them after moving the changes back into the spec. After exporting, the agent looks at the image at normal reading size because strict validation cannot prove that labels and edges are legible.
Guidelines include naming the audience and decision first, one C4 level per diagram, choosing the diagram type from the message, separating evidence from confidence with assumed or unverified tags, putting load or SLO numbers in the metric field without inventing them, labeling every edge with its protocol or event, and using official GCP and AWS icons only, with other vendors as generic cloud kinds. Supported types include context, container, component, deployment, data flow, sequence, state and ERD.
6 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit b529c2d. 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 1 file in scripts/ (Python, from the files we listed), which the agent can run.
Shell commands in SKILL.md call:
python3From 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.
draw.io Architecture Diagramming loads about 1.3k tokens when it runs, and up to ~12k if it reads all its reference files. Until then it costs about 83 tokens; SKILL.md has 518 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 HoangNguyen0403/agent-skills-standard at commit b529c2d, republished under its MIT licence (© HoangNguyen0403). 518 words, ~1,274 tokens.
.claude/skills/common-architecture-diagramming/SKILL.md (or your agent's skills folder). This skill also uses 70 other files; get the full folder from GitHub.Never hand-write mxGraph XML. Write a spec; the scripts own every visual decision, so diagrams stay identical across authors, repositories, and sessions.
spec.json — schema in diagram-spec.md. For an ERD,
generate it: python3 scripts/schema_to_spec.py db/schema.sql --title "<System> — ERD" -o spec.jsonpython3 scripts/validate_spec.py spec.jsonpython3 scripts/render_drawio.py spec.json -o docs/architecture/<slug>.drawio --strict
(exit 2 = a layout finding; change the spec, per layout-rules.md)python3 scripts/validate_manifest.py view-manifest.jsonpython3 scripts/export_drawio.py docs/architecture/<slug>.drawio -f png -o docs/architecture/<slug>.png,
else ship the .drawio and say the image was not exported. See export paths.The JSON spec is the semantic source of truth; .drawio is the editable presentation and the
image is a copy for a deck. Generated XML records its own baseline; regeneration protects
manual edits by default. Use --acknowledge-manual-edits only after returning semantic changes to the spec.
assumed or unverified for honest design uncertainty.metric carries the load or SLO that sized the node,
constraint says why it exists; never invent either.style: async for events.gcp:* and aws:* are official icons; every other
vendor is a cloud:* kind with the service named in sublabel. No Azure logos exist in
the bundle, so Azure is always cloud:*.| Thought | Reality |
|---|---|
| "It is one box, I will write the XML" | The renderer owns style, legend, and title block. Use it. |
| "Close enough, I will guess this service" | Guesses ship as facts. Omit the evidence and let it render UNVERIFIED. |
| "Managers want the whole system on one page" | Past 12 nodes they stop reading. Split it. |
assets/fixtures/<type>.spec.json, one per diagram type, plus schema samples under assets/fixtures/schemas/.specialist-solution-diagrammer.© HoangNguyen0403, 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 70 other files (scripts, references, assets) in skills/common/common-architecture-diagramming of HoangNguyen0403/agent-skills-standard.
Open the folder on GitHubat commit b529c2d
draw.io Architecture Diagramming 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 |
|---|---|---|---|---|---|---|
| draw.io Architecture Diagramming this skillHoangNguyen0403/agent-skills-standard | 572 | — | ~1.3k | Automated safety check: Pass | MIT | |
| Code Graph Mermaid Diagramstrailofbits/skills | 7.5k | — | ~1.7k | Automated safety check: Pass | CC-BY-SA-4.0 | |
| DrawZimoLiao/scholaraio | 577 | — | ~1.3k | Automated safety check: Notes | MIT | |
| Archify Diagramstt-a1i/archify | 82k | — | ~2.9k | Automated safety check: Pass | MIT | |
| Diagram Designcathrynlavery/diagram-design | 49k | 1 repos | ~7.6k | Automated safety check: Pass | MIT | |
| Draw.io Diagram StudioAgents365-ai/drawio-skill | 10k | — | ~2.4k | Automated safety check: Notes | 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.
ZimoLiao/scholaraio
A skill your agent uses when the user wants diagrams, flowcharts, architecture visuals, data relationships, timelines, concept maps, Mermaid, Graphviz, drawio, or polished paper figures generated…
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.
cathrynlavery/diagram-design
Creates branded diagrams, from architecture, flowchart and sequence to charts and maps, as self-contained HTML with inline SVG, with import from draw.io, Mermaid and Excalidraw.
Agents365-ai/drawio-skill
Creates and edits editable draw.io diagrams from descriptions, code, infrastructure files, SQL and API schemas, with sync, review, test and export tools.
maslennikov-ig/claude-code-orchestrator-kit
Comprehensive software architecture skill for designing scalable, maintainable systems using ReactJS, NextJS, NodeJS, Express, React Native, Swift, Kotlin…
HoangNguyen0403/agent-skills-standard
Runs a multi-task implementation plan by sending each task to a fresh implementer subagent, reviewing it independently, then reviewing the whole branch.
HoangNguyen0403/agent-skills-standard
Implements and migrates to Jetpack Navigation 3 in Compose: NavDisplay, typed route objects, a state-list back stack, deep links, multiple back stacks and dialog scenes.
HoangNguyen0403/agent-skills-standard
Sets rules for Angular HTTP code: functional interceptors, typed requests, services that own every call, and httpResource for reactive data loading in Angular 17+.
HoangNguyen0403/agent-skills-standard
Angular CLI usage, code generation, build configuration, and bundle optimization.
HoangNguyen0403/agent-skills-standard
Conduct high-quality, persona-driven code reviews. An agent skill from HoangNguyen0403/agent-skills-standard.
HoangNguyen0403/agent-skills-standard
Pre-write audit for skill violations: checks planned code against loaded skill anti-patterns before any file write.
Categories
Draws architecture diagrams as editable draw.io files from a JSON spec, with a fixed house style, one C4 level per diagram and evidence-tagged shapes. The agent never hand-writes mxGraph XML.json, and bundled scripts own every visual decision so diagrams look the same across authors, repositories and sessions.
draw.io Architecture Diagramming fits situations like: producing a C4 context, container or component diagram as a draw.io file; redrawing an ASCII or Mermaid diagram as an editable draw.io diagram; generating an ERD from a SQL schema file; keeping architecture diagrams visually consistent across repositories.
Run `npx skills add HoangNguyen0403/agent-skills-standard --skill common-architecture-diagramming -a claude-code`. Or copy the skill folder (skills/common/common-architecture-diagramming in HoangNguyen0403/agent-skills-standard) into .claude/skills/common-architecture-diagramming in your project. Claude Code loads it when a task matches its description.
Run `npx skills add HoangNguyen0403/agent-skills-standard --skill common-architecture-diagramming -a codex`. Or copy the skill folder (skills/common/common-architecture-diagramming in HoangNguyen0403/agent-skills-standard) into .agents/skills/common-architecture-diagramming 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 HoangNguyen0403/agent-skills-standard --skill common-architecture-diagramming -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/common-architecture-diagramming, .gemini/skills/common-architecture-diagramming, .github/skills/common-architecture-diagramming and .opencode/skills/common-architecture-diagramming in your project.
Going by SKILL.md and its folder, draw.io Architecture Diagramming needs Python for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3, for the bundled spec, render and export scripts.
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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
draw.io Architecture Diagramming is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.3k tokens (SKILL.md is roughly 5.1k 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 11k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with draw.io Architecture Diagramming: Code Graph Mermaid Diagrams (trailofbits/skills, 7.5k stars), Draw (ZimoLiao/scholaraio, 577 stars), Archify Diagrams (tt-a1i/archify, 82k stars) and Diagram Design (cathrynlavery/diagram-design, 49k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
HoangNguyen0403 (a GitHub user) maintains it in HoangNguyen0403/agent-skills-standard, which has 572 GitHub stars. The repository holds 211 skills in this directory. The repository was last updated on October 9, 2026.
Source: HoangNguyen0403/agent-skills-standard on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.