All skills
cmb211087 avatar

/azure-diagrams

@ce0fc67

Comprehensive technical diagramming toolkit for solutions architects, presales, and developers. Creates Azure architecture diagrams (800+ Azure service icons), business process flows (swimlanes, workflows), ERD diagrams (database schemas), project timelines, UI wireframes, and network topology diagrams. Perfect for proposals, documentation, and architecture reviews. Also generates diagrams from Bicep, Terraform, and ARM templates.

Use this Skill: https://skilld.dev/gh/cmb211087/azure-diagrams-skill/azure-diagrams

This session only. Nothing lands on disk.

referencesc4-model.md

≈857 tokens on demand. Your agent reads this file only when SKILL.md points to it.

C4 Model Diagrams

The C4 model describes software architecture at four zoom levels: Context (L1) -> Container (L2) -> Component (L3) -> Code (L4). This skill can produce L1-L3 two ways: with the diagrams library (uses plain Blank boxes for the abstract C4 elements) or with Mermaid's built-in C4 syntax (zero-install, GitHub/Azure DevOps native).

All diagrams examples below are verified to render. Use Blank so the boxes stay abstract (C4 is about responsibilities, not technology icons); switch to Azure nodes at L2 if you want to show the concrete Azure services.

L1 - System Context

Who uses the system and what it talks to.

from diagrams import Diagram, Cluster, Edge
from diagrams.generic.blank import Blank
from diagrams.onprem.client import Users

with Diagram("C4 L1 - System Context", show=False, direction="TB", outformat="png"):
    customer = Users("Customer")
    system = Blank("Order System\n[Software System]")
    entra = Blank("Microsoft Entra ID\n[External]")
    pay = Blank("Payment Gateway\n[External]")
    customer >> Edge(label="places orders") >> system
    system >> Edge(label="authenticates") >> entra
    system >> Edge(label="charges") >> pay

L2 - Containers

The deployable/runnable units inside the system and the data stores.

from diagrams import Diagram, Cluster
from diagrams.generic.blank import Blank
from diagrams.onprem.client import Users

with Diagram("C4 L2 - Containers", show=False, direction="TB", outformat="png"):
    customer = Users("Customer")
    with Cluster("Order System"):
        spa = Blank("Web SPA\n[React]")
        api = Blank("API\n[.NET]")
        worker = Blank("Worker\n[Functions]")
        db = Blank("Database\n[Azure SQL]")
    customer >> spa >> api
    api >> [db, worker]
    worker >> db

L3 - Components

The major components inside one container.

from diagrams import Diagram, Cluster
from diagrams.generic.blank import Blank

with Diagram("C4 L3 - API Components", show=False, direction="LR", outformat="png"):
    with Cluster("API Container"):
        ctrl = Blank("OrdersController\n[Component]")
        svc = Blank("OrderService\n[Component]")
        repo = Blank("OrderRepository\n[Component]")
    db = Blank("Database")
    ctrl >> svc >> repo >> db

Mermaid C4 (zero-install)

Mermaid has first-class C4 syntax (C4Context, C4Container, C4Component) that renders in GitHub and Azure DevOps with no Graphviz. Embed in a ```mermaid block.

C4Context
    title System Context - Order System
    Person(customer, "Customer", "Places and tracks orders")
    System(order, "Order System", "Handles ordering")
    System_Ext(entra, "Microsoft Entra ID", "Identity")
    System_Ext(pay, "Payment Gateway", "Card processing")
    Rel(customer, order, "Uses")
    Rel(order, entra, "Authenticates via")
    Rel(order, pay, "Charges via")
C4Container
    title Containers - Order System
    Person(customer, "Customer")
    Container_Boundary(sys, "Order System") {
        Container(spa, "Web SPA", "React")
        Container(api, "API", ".NET")
        ContainerDb(db, "Database", "Azure SQL")
    }
    Rel(customer, spa, "Uses")
    Rel(spa, api, "Calls", "HTTPS")
    Rel(api, db, "Reads/writes")

See references/large-diagram-strategies.md for splitting large architectures into these levels.

Source: SKILL.md on GitHub

2 warnings7mo4 checks · Risk SAFE
  • Gen Agent Trust Hub7mo

    The Azure Diagrams Skill is a professional toolkit for generating technical architecture diagrams. It provides comprehensive reference guides and scripts to facilitate the creation of diagrams using the 'diagrams' Python library and Graphviz. Analysis shows the skill follows best practices for file handling, implements appropriate sanitization for its transformation tasks, and contains no malicious code or exfiltration patterns.

  • Socket7mo

    No alerts

  • Snyk7mo

    Risk: MEDIUM · No issues

  • Runlayer7mo

    21/21 files flagged

Signed by skilld at ce0fc67. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 3 months ago
Other metadata
compatibility
Requires the Graphviz system package and the Python diagrams library (>=0.25.1). Works with Claude Code, GitHub Copilot, Cursor, Windsurf, VS Code, and any Agent Skills or AGENTS.md compatible tool.
metadata
{
  "author": "community",
  "version": "2.0.0",
  "repository": "https://github.com/cmb211087/azure-diagrams-skill"
}

README badge

README badge for cmb211087/azure-diagrams-skill