BeClaude

pretty-azure-mermaid-skills

New
GitHub TrendingGeneralby adindabudi

Create, edit, render, and review Microsoft Azure architecture diagrams as Mermaid source with the bundled Azure iconpack. Use for Azure service maps, flowchart split views, architecture-beta maps, network/data-flow diagrams, hub-spoke, landing-zone, multi-region, AKS, App Service, data, AI/RAG, and Well-Architected views.

First seen 5/25/2026

Overview

Pretty Azure Mermaid

Use this skill to produce publication-ready Microsoft Azure architecture diagrams as Mermaid source. This file is the lightweight activation and routing guide; load the referenced files only when the task needs that detail.

Invoke When

Use this skill when the user asks for any of:

  • A new Azure architecture diagram: context, runtime, deployment, network,

data-flow, identity, availability, or compliance.

  • An update to an existing Mermaid architecture diagram.
  • Help choosing the right Azure icon for a service.
  • Theming, branding, accessibility, or dark-mode treatment.
  • Validating that a diagram only references real bundled Azure icons.
  • Rendering a diagram to SVG/PNG for docs, README, slides, or review handoff.

Common trigger phrases: "draw an Azure architecture", "diagram this AKS deployment", "hub-spoke network", "Azure landing zone diagram", "RAG architecture on Azure", "convert this ASCII architecture to Mermaid", and "add monitoring to this diagram".

Deliverable Contract

  • Source of truth is .mmd Mermaid using the local Azure iconpack

(azure:<name> aliases from references/ICON_CATALOG.md).

  • Prefer flowchart icon nodes for starter diagrams, split views, runtime

flows, and any dense view that must render predictably.

  • Use architecture-beta only for small grouped service maps where automatic

layout remains readable.

  • For GitHub markdown, Mermaid Live, or any hosted surface that cannot load

dist/azure-icons-mermaid.json, render SVG/PNG assets and link those images.

  • For rendered deliverables, capture the target surface, artifact type, aspect

ratio or viewport, and whether SVG, PNG, or both are required.

  • Complex requests may require a split bundle: manifest + multiple .mmd

files, one concern per view.

Full runbook: references/AUTHORING_WORKFLOW.md.

Required Workflow

  1. Triage before drafting. Read references/HITL_AND_SPLIT_VIEW.md and

count the HITL triggers. If 2 or more fire, ask 3-6 targeted questions and wait. Include target surface, artifact type, and render size/aspect when the output is not source-only. Use the host's structured question tool when available. If a hard split trigger fires, produce a split bundle unless the user explicitly chooses one canvas.

  1. Choose the view and renderer. Read references/DIAGRAM_TYPES.md and

references/ARCHITECTURE_PATTERNS.md. Identify the diagram concern: runtime flow, network topology, identity, data lineage, deployment, observability, controls, or context.

  1. Start template-first. Do not freehand from an empty flowchart LR when

a template covers at least half of the requested services or concern. Run npm run new -- --list, fork the closest template, and record the template name + fit score in a %% header comment.

  1. Add services with official icons. Search aliases with

npm run icons:search -- <term> or use references/ICON_CATALOG.md. Prefer friendly aliases such as azure:aks, azure:apim, azure:cosmos-db, azure:sql-db, and azure:waf.

  1. Compose groups and edges. Read references/COMPOSITION_RULES.md

before writing edges. Use real boundaries for groups, junctions for 3+ way fan-out, pos: "b" on flowchart icon nodes, and protocol/intent/auth labels on cross-boundary edges.

  1. Theme and metadata. Copy a frontmatter theme from

references/THEMES.md. Never recolour Azure icons. Every publishable diagram needs title, description, diagramType, audience, updated, and source references in frontmatter.

  1. Validate semantics, not just syntax. Run npm run check, then walk

references/ARCHITECTURE_REVIEW.md and references/QUALITY_BAR.md. If the host exposes Microsoft Learn docs tools, use them for non-obvious edges; otherwise ask the user to confirm architecture-sensitive assumptions.

  1. Preview the render. Open assets/viewer.html or run the renderer and

inspect the actual SVG/PNG at the target size. Apply references/VISUAL_DESIGN.md; split, simplify, or rerender with a better viewport if the canvas is unreadable, oversized, or mostly whitespace.

Reference Router

NeedLoad
Expanded end-to-end runbook, templates, commands, common editsreferences/AUTHORING_WORKFLOW.md
HITL questions, split-view rules, split manifestsreferences/HITL_AND_SPLIT_VIEW.md
Diagram type and template fitreferences/DIAGRAM_TYPES.md, references/ARCHITECTURE_PATTERNS.md
Mermaid syntax for flowchart and architecture-betareferences/ARCHITECTURE_SYNTAX.md
Drafting rules, anti-spaghetti, template-first protocolreferences/COMPOSITION_RULES.md
Azure icon lookup and aliasesreferences/ICON_CATALOG.md
Theme variables and brand palettesreferences/THEMES.md
Per-edge semantic reviewreferences/ARCHITECTURE_REVIEW.md
Render quality and layout acceptancereferences/VISUAL_DESIGN.md
Final checklist before declaring donereferences/QUALITY_BAR.md

Fast Commands

bash
npm run new -- --list
npm run new -- --template rag-chatbot --out docs/diagrams/agent-mcp-rag.mmd

npm run icons:search -- "cosmos"
npm run icons:search -- --category networking
npm run icons:search -- --aliases

npm run check
npm run validate
npm run parse
npm run lint:edges

npm run render -- --input docs/orders.mmd --output docs/orders.svg
npm run render -- --input docs/orders.mmd --output docs/orders.png --format png --scale 8
npm run render -- --input docs/orders.mmd --output docs/orders.png --format png --width 1600 --height 1000 --scale 8
npm run render:all -- --input-dir docs --output-dir docs/rendered

Host Behavior

  • This skill does not bundle an MCP server. Microsoft Learn review is optional

and depends on the host tools available in GitHub Copilot, Claude Code, Cursor, Agent Framework, or another compatible assistant.

  • If structured HITL tools are unavailable, ask the same questions directly in

chat and wait for answers.

  • If script execution is unavailable, provide the command for the user or run

the closest local validation tool the host allows.

  • If a target render surface cannot load the local iconpack, pre-render assets

instead of expecting inline Mermaid to show Azure icons.

Non-Negotiables

  • Do not draft before the HITL gate passes.
  • Do not mix runtime, network, identity, ops, and ingestion in one dense canvas.
  • Do not invent services, SKUs, arrows, trust boundaries, or source references.
  • Do not use layout-only arrows or bidirectional <--> shortcuts.
  • Do not place a PaaS service inside a subnet when the architecture uses a

Private Endpoint; draw the Private Endpoint in the subnet instead.

  • Do not recolour, distort, or use Microsoft Azure icons outside Azure

architecture diagrams. See ICONS_NOTICE.md.

References

  • references/AUTHORING_WORKFLOW.md - expanded authoring workflow.
  • references/QUALITY_BAR.md - final quality checklist.
  • references/BEST_PRACTICES.md - Well-Architected design-diagram rules.
  • references/ARCHITECTURE_REVIEW.md - semantic arrow review.
  • references/VISUAL_DESIGN.md - render-time readability gate.
  • assets/templates/ - starter diagrams.
  • Mermaid flowchart docs: https://mermaid.js.org/syntax/flowchart.html
  • Mermaid architecture-beta docs: https://mermaid.js.org/syntax/architecture.html
  • Microsoft Well-Architected design diagrams: https://learn.microsoft.com/azure/well-architected/architect-role/design-diagrams
  • Microsoft Azure icon terms: https://learn.microsoft.com/azure/architecture/icons/

Install & Usage

1
Create the skills directory
mkdir -p .claude/skills
2
Download the skill file
mkdir -p .claude/skills && curl -o .claude/skills/pretty-azure-mermaid-skills.md https://raw.githubusercontent.com/adindabudi/pretty-azure-mermaid-skills/main/SKILL.md
3
Invoke in Claude Code
/pretty-azure-mermaid-skills
View source on GitHub
code-review

Security Audits

LicenseUnknownSourceWarnRepositoryPass

Frequently Asked Questions

What is pretty-azure-mermaid-skills?

Create, edit, render, and review Microsoft Azure architecture diagrams as Mermaid source with the bundled Azure iconpack. Use for Azure service maps, flowchart split views, architecture-beta maps, network/data-flow diagrams, hub-spoke, landing-zone, multi-region, AKS, App Service, data, AI/RAG, and Well-Architected views.

How to install pretty-azure-mermaid-skills?

To install pretty-azure-mermaid-skills: create the skills directory (mkdir -p .claude/skills), then run: mkdir -p .claude/skills && curl -o .claude/skills/pretty-azure-mermaid-skills.md https://raw.githubusercontent.com/adindabudi/pretty-azure-mermaid-skills/main/SKILL.md. Finally, /pretty-azure-mermaid-skills in Claude Code.

What is pretty-azure-mermaid-skills best for?

pretty-azure-mermaid-skills is a skill categorized under General. It is designed for: code-review. Created by adindabudi.