Gcp cloud architect

From borghei/Claude-Skills · View interactive version

Gcp cloud architect is an AI agent skill from the GitHub repository borghei/Claude-Skills. Design, review, and validate Google Cloud (GCP) architectures. Use when choosing GCP compute, storage, networking, or identity services, or applying the Google Cloud Architecture Framework (reliability, security, cost, performance).

How to use this skill

Skill file

GCP Cloud Architect

End-to-end GCP-specific architecture: service selection, Google Cloud Architecture Framework assessment, identity and networking patterns, cost optimization, operational defaults. Provider-specific complement to our generic senior-cloud-architect skill — that one covers cross-cloud patterns; this one knows when to pick Spanner over Cloud SQL, how Workload Identity Federation differs from Service Account keys, and the right Cloud Run vs GKE call.

Core Capabilities

When to Use

| Situation | Skill applies |

|-----------|---------------|

| Designing a GCP architecture from scratch | Yes — start with compute decision tree |

| Reviewing an existing GCP architecture | Yes — run CAF assessment via scripts/gcp_caf_scorer.py |

| Validating Terraform files or a YAML workload spec | Yes — scripts/gcp_architecture_validator.py (Deployment Manager is not read) |

| Estimating GCP cost for a workload | Yes — scripts/gcp_cost_estimator.py |

| Picking between GKE / Cloud Run / Functions / Cloud Run Jobs | Yes — see compute decision tree |

| Setting up IAM / Workload Identity correctly | Yes — see identity reference |

| Designing multi-region / multi-zone resilience | Yes — see reliability reference |

| Picking Cloud SQL vs Spanner vs Firestore vs BigQuery | Yes — see data store decision tree |

| Going to production without CAF review | Don't — run the CAF scorer first |

Clarify First

Before designing or assessing, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.

Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.

Workflow

  1. Describe the workload in a YAML spec (assets/sample_workload.yaml shows every section: compute, data, observability, network, identity, security, operations, cost, performance, reliability). Leave out what you do not know; the tools report it as not provided rather than guessing.
  2. Choose services with the compute and data-store decision trees in references/decision-trees.md.
  3. Score the spec against the Cloud Architecture Framework with gcp_caf_scorer.py; pillar scores use only the checks the spec answers.
  4. Validate the spec and any Terraform with gcp_architecture_validator.py; fix every critical finding.
  5. Estimate cost with gcp_cost_estimator.py, then confirm the big lines in the Google Cloud Pricing Calculator. Prices in the tool are approximate US list prices from early 2026, without sustained-use or committed-use discounts.
  6. Verify before production: no critical validator findings, the not-provided list is empty for the reliability and security pillars, and the cost estimate has been checked against the calculator.

Quick Start

python3 scripts/gcp_caf_scorer.py --workload-config assets/sample_workload.yaml        # 19 of 50 checks answered, 3 failed
python3 scripts/gcp_architecture_validator.py --workload-config assets/sample_workload.yaml --terraform assets/sample_main.tf   # allUsers, SA key, editor role, VM external IP (exit 1)
python3 scripts/gcp_cost_estimator.py --workload-config assets/sample_workload.yaml --format json

Tools Overview

| Tool | What it does | Key flags | Exit codes |

|------|--------------|-----------|------------|

| gcp_caf_scorer.py | 50 CAF checks (10 per pillar) from the spec; scores count answered checks only and list the rest as not provided | --workload-config, --format markdown|json | 0, 2 unreadable or empty spec |

| gcp_architecture_validator.py | Spec rules (single-zone tier-1, missing VPC, basic roles, SA keys, public data services, Cloud SQL without HA, on-demand BigQuery at volume, no org policy ...) and Terraform text rules TF001-TF006 (default network, owner/editor roles, allUsers, Cloud SQL public IP, SA key resources, VM external IP); the report lists the Terraform rules it checked | --workload-config, --terraform <files/globs>, --severity, --format | 0 no critical, 1 critical finding, 2 bad input |

| gcp_cost_estimator.py | Monthly estimate for GCE, GKE (Autopilot/Standard), Cloud Run, Cloud SQL, Spanner, BigQuery, GCS, Memorystore, Logging and egress, with savings suggestions; warns on unknown keys and unpriced services | --workload-config, --format human|json | 0, 2 empty spec or nothing to price |

The Terraform rules are regular expressions over .tf text: they do not evaluate modules, variables or plans, so a clean result covers only those six patterns. For a full posture check, run terraform plan through a policy tool (for example OPA/Conftest or the provider's policy validation) as well.

Anti-Patterns

Mistake: Reading a low CAF score from a sparse spec as a bad architecture.

Why it happens: Older versions of the scorer counted missing answers as failures.

Instead: Check the not-provided list first; fill in what you know, then judge the score.

Mistake: Service account keys for CI or workloads outside GCP.

Why it happens: A JSON key is the quickest way to authenticate.

Instead: Use Workload Identity Federation (CI, other clouds) and Workload Identity on GKE; keys leak and do not expire by default.

Mistake: Budgeting from the estimator's total.

Why it happens: It prints a single precise-looking number.

Instead: Use it to compare designs and find the big-ticket lines; quote from the Pricing Calculator with your discounts.

Files

Scope & Limitations

In Scope:

Out of Scope:

Important Caveats:

Reference Documentation

Load the reference that matches the task — keep this file lean and pull detail on demand:

Related skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.