agentsclimarketplace

Gcp architecture diagram

Skill MisterTK/gcp-architecture-diagram/skills/gcp-architecture-diagram

GCP architecture diagram generator. Creates pixel-perfect SVG with 45 official GCP icons. Use for any request to draw, visualize, or diagram a Google Cloud Platform architecture.From its SKILL.md

Install
npx -y skills add MisterTK/gcp-architecture-diagram --skill gcp-architecture-diagram

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

12.1 KB, as published. Nobody here has run it

GCP Architecture Diagram Generator

Write a declarative JSON spec describing the diagram. A bundled Python renderer validates it and produces pixel-perfect SVG with 45 official Google Cloud icons embedded as inline vectors.

No external dependencies. Python 3 stdlib only. Icons are pre-bundled.

Workflow

  1. Understand the user's architecture — identify GCP services, groupings, data flows
  2. Map each service to an icon from the catalog below
  3. Write a JSON spec file (see Spec Format)
  4. Render: python ${CLAUDE_SKILL_DIR}/scripts/render.py --spec spec.json --icons ${CLAUDE_SKILL_DIR}/assets/gcp-icons.json -o diagram.svg
  5. Show the result; iterate on feedback

For PNG conversion: rsvg-convert -w 2400 diagram.svg -o diagram.png (macOS: brew install librsvg). Or output HTML directly: use -o diagram.html and it auto-wraps the SVG in an HTML viewer.

Spec Format

{
  "title": "My GCP Architecture",
  "subtitle": "Production Environment",
  "width": 1200,
  "titleColor": "blue",
  "elements": [ ... ]
}
  • title (string, recommended) — shown in colored header bar
  • subtitle (string, optional) — gray text below header
  • width (int, default 1200) — canvas width in pixels
  • titleColor (string, default "blue") — header bar color name
  • elements (array, required) — ordered list of diagram elements

Element Types

layer — A row of icons with a label. The primary building block.

{"type": "layer", "label": "COMPUTE", "color": "blue", "services": [
  {"icon": "cloud-run", "label": "Cloud Run", "sublabel": "API Gateway"},
  {"icon": "gke", "label": "GKE", "sublabel": "Workers"}
]}
  • services (array, required) — 1-6 icons per row (7+ auto-splits into two sub-rows)
  • icon — ID from the catalog below (without gcp: prefix)
  • sublabel (optional) — gray description text

arrow — Downward directional arrow between elements.

{"type": "arrow", "color": "blue"}
  • label (optional) — text below the arrow
  • color (optional, default "gray")

container — Colored border wrapping child elements. Use for VPCs, tenants, projects.

{"type": "container", "label": "VPC NETWORK", "color": "green", "elements": [
  {"type": "layer", ...},
  {"type": "arrow", ...},
  {"type": "layer", ...}
]}
  • elements (array, required) — nested layers, arrows, splits, or more containers

split — Side-by-side columns. Use for parallel concerns at the same level.

{"type": "split", "ratios": [3, 1], "elements": [
  {"type": "layer", "label": "DATA", "color": "purple", "services": [...]},
  {"type": "layer", "label": "CACHE", "color": "gray", "services": [...]}
]}
  • ratios (array, optional) — relative widths (default: equal)
  • elements (array, required) — 2+ layers or containers

bridge — Bidirectional arrow with label. Use between tenants or system boundaries.

{"type": "bridge", "label": "A2A Protocol", "sublabel": "Bidirectional", "color": "red"}

legend — Color key bar. Place first in elements for top positioning.

{"type": "legend", "items": [
  {"color": "blue", "label": "Compute"},
  {"color": "green", "label": "Data"},
  {"color": "gray", "label": "Infrastructure"}
]}

Colors

8 named colors: blue, green, red, yellow, purple, gray, navy, orange. Each has a border, background tint, and label color matching GCP brand guidelines.

Icon Catalog

Product Icons (19)

Icon IDService
cloud-runCloud Run
cloud-sqlCloud SQL
cloud-spannerCloud Spanner
cloud-storageCloud Storage
bigqueryBigQuery
compute-engineCompute Engine
gkeGKE
vertex-aiVertex AI
alloydbAlloyDB
apigeeApigee
anthosAnthos
lookerLooker
hyperdiskHyperdisk
distributed-cloudDistributed Cloud
ai-hypercomputerAI Hypercomputer
mandiantMandiant
security-command-centerSecurity Command Center
security-operationsSecurity Operations
threat-intelligenceThreat Intelligence

Category Icons (26)

Icon IDCategory
ai-machine-learningAI and Machine Learning
agentsAgents
business-intelligenceBusiness Intelligence
collaborationCollaboration
computeCompute
containersContainers
data-analyticsData Analytics
databasesDatabases
devopsDevOps
developer-toolsDeveloper Tools
hybrid-multicloudHybrid and Multicloud
integration-servicesIntegration Services
management-toolsManagement Tools
maps-geospatialMaps and Geospatial
marketplaceMarketplace
media-servicesMedia Services
migrationMigration
mixed-realityMixed Reality
networkingNetworking
observabilityObservability
operationsOperations
security-identitySecurity and Identity
serverless-computingServerless Computing
storageStorage
web-mobileWeb and Mobile
web3Web3

Service → Icon Mapping

For GCP services without a dedicated product icon, use the closest category:

GCP ServiceUse Icon ID
Pub/Subintegration-services
Cloud Functionsserverless-computing
Cloud CDNnetworking
Cloud Load Balancernetworking
Memorystore / Redisdatabases
Dataflowdata-analytics
Dataprocdata-analytics
Cloud Composerdata-analytics
Cloud Armorsecurity-identity
IAMsecurity-identity
Cloud KMSsecurity-identity
Cloud Builddevops
Artifact Registrydeveloper-tools
Cloud Loggingobservability
Cloud Monitoringoperations
Firestoredatabases
Cloud DNSnetworking
VPC Networknetworking
Cloud Endpointsnetworking
Firebaseweb-mobile
Dialogflowai-machine-learning
Agent Engineagents
Cloud Tasksintegration-services
Cloud Schedulerintegration-services

NEVER invent icon IDs. Only use IDs from the tables above. If unsure, use a category icon.

Common Patterns

Simple Layered (3 layers)

{
  "title": "Simple Web Application",
  "elements": [
    {"type": "layer", "label": "NETWORKING", "color": "gray", "services": [
      {"icon": "networking", "label": "Cloud CDN"},
      {"icon": "networking", "label": "Load Balancer", "sublabel": "HTTPS L7"}
    ]},
    {"type": "arrow", "color": "blue"},
    {"type": "layer", "label": "COMPUTE", "color": "blue", "services": [
      {"icon": "cloud-run", "label": "Cloud Run", "sublabel": "API Server"}
    ]},
    {"type": "arrow", "color": "green"},
    {"type": "layer", "label": "DATA", "color": "green", "services": [
      {"icon": "cloud-sql", "label": "Cloud SQL", "sublabel": "Primary DB"},
      {"icon": "cloud-storage", "label": "Cloud Storage", "sublabel": "Assets"}
    ]}
  ]
}

VPC-Wrapped

Note: the VPC container is green, so inner layers use different colors (blue, purple) to stand out against the green background.

{
  "title": "VPC Architecture",
  "elements": [
    {"type": "layer", "label": "INGRESS", "color": "gray", "services": [
      {"icon": "networking", "label": "Load Balancer"}
    ]},
    {"type": "arrow", "color": "green"},
    {"type": "container", "label": "VPC NETWORK", "color": "green", "elements": [
      {"type": "layer", "label": "COMPUTE", "color": "blue", "services": [
        {"icon": "cloud-run", "label": "Cloud Run"},
        {"icon": "gke", "label": "GKE"}
      ]},
      {"type": "arrow", "color": "purple"},
      {"type": "layer", "label": "DATA", "color": "purple", "services": [
        {"icon": "cloud-sql", "label": "Cloud SQL"},
        {"icon": "bigquery", "label": "BigQuery"},
        {"icon": "cloud-storage", "label": "Cloud Storage"}
      ]}
    ]}
  ]
}

Multi-Tenant with Bridge

Note: shared services are peer resources, not a pipeline — they stack as adjacent layers without arrows between them (no data flows from databases into security).

{
  "title": "Multi-Tenant SaaS",
  "elements": [
    {"type": "container", "label": "CUSTOMER TENANT", "color": "green", "elements": [
      {"type": "layer", "label": "FRONTEND", "color": "gray", "services": [
        {"icon": "networking", "label": "Cloud CDN"},
        {"icon": "networking", "label": "Load Balancer"}
      ]},
      {"type": "arrow", "color": "blue"},
      {"type": "layer", "label": "API", "color": "blue", "services": [
        {"icon": "gke", "label": "GKE", "sublabel": "API Gateway"}
      ]}
    ]},
    {"type": "bridge", "label": "gRPC / REST", "sublabel": "Bidirectional", "color": "red"},
    {"type": "container", "label": "SHARED SERVICES", "color": "navy", "elements": [
      {"type": "layer", "label": "DATA", "color": "purple", "services": [
        {"icon": "cloud-sql", "label": "Cloud SQL"},
        {"icon": "cloud-spanner", "label": "Cloud Spanner"},
        {"icon": "cloud-storage", "label": "Cloud Storage"}
      ]},
      {"type": "layer", "label": "AI AND ML", "color": "blue", "services": [
        {"icon": "vertex-ai", "label": "Vertex AI"},
        {"icon": "ai-machine-learning", "label": "Gemini Models"}
      ]},
      {"type": "layer", "label": "SECURITY", "color": "red", "services": [
        {"icon": "security-identity", "label": "IAM"},
        {"icon": "security-identity", "label": "Cloud KMS"},
        {"icon": "security-command-center", "label": "SCC"}
      ]}
    ]}
  ]
}

Split Row

{
  "title": "Data Platform",
  "elements": [
    {"type": "layer", "label": "INGESTION", "color": "red", "services": [
      {"icon": "integration-services", "label": "Pub/Sub"},
      {"icon": "data-analytics", "label": "Dataflow"}
    ]},
    {"type": "arrow", "color": "blue"},
    {"type": "split", "ratios": [3, 1], "elements": [
      {"type": "layer", "label": "PROCESSING", "color": "blue", "services": [
        {"icon": "bigquery", "label": "BigQuery", "sublabel": "Analytics"},
        {"icon": "vertex-ai", "label": "Vertex AI", "sublabel": "ML Training"},
        {"icon": "looker", "label": "Looker", "sublabel": "Dashboards"}
      ]},
      {"type": "layer", "label": "CACHE", "color": "gray", "services": [
        {"icon": "databases", "label": "Memorystore", "sublabel": "Redis"}
      ]}
    ]}
  ]
}

Pitfalls

  • Never invent icon IDs — only use IDs from the catalog tables above
  • Keep labels short — under 20 characters to avoid overlap
  • 3-6 services per layer for readability; 7+ auto-splits into double rows
  • Limit to 4-5 colors per diagram to avoid visual noise
  • Differentiate container and child colors — inner layers should use different colors than their parent container so they stand out against the container's tinted background (e.g., green container with blue compute + purple data layers inside)
  • Use containers sparingly — each adds visual weight; don't over-nest
  • Place legend first in elements array so it appears at the top
  • Arrows mean directional data flow — only use arrows between layers when data actually flows from one to the next (e.g., Ingestion → Processing → Serving). Peer services that exist at the same tier (e.g., databases, AI, storage, security) should be stacked as adjacent layers without arrows, or grouped into a single layer. Don't imply a pipeline where there isn't one
  • Don't split peer services unnecessarily — if services are all part of the same logical tier (e.g., shared backend services), put them in one or two flat layers rather than a split. Splits are for genuinely different concerns at the same level that need different sizing (e.g., 75% main processing + 25% cache sidebar)
  • Validate before rendering: use --validate-only to catch icon/color errors early

For advanced patterns (deeply nested containers, double rows, complex splits), see references/advanced-layouts.md.

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.