Skip to content
Back to skills

Gcp Cloud Architect

ASecurity

Design, review, and validate Google Cloud (GCP) architectures: score a workload spec against the Cloud Architecture Framework, scan a spec or Terraform for anti-patterns, and estimate monthly cost. Use when choosing GCP compute, storage, networking, or identity services, reviewing a GCP workload before production, or checking Terraform for public buckets, service account keys and basic roles.

  • 1,271 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added May 29, 2026
ai-agentspythongobashsqlexpresskubernetesawsgcpazureterraform

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add borghei/Claude-Skills --skill gcp-cloud-architect --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Gcp Cloud Architect?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Gcp Cloud Architect
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/borghei-gcp-cloud-architect/badge)](https://www.skillsdirectory.com/skills/borghei-gcp-cloud-architect)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: gcp-cloud-architect
description: >
  Design, review, and validate Google Cloud (GCP) architectures: score a workload spec
  against the Cloud Architecture Framework, scan a spec or Terraform for anti-patterns, and
  estimate monthly cost. Use when choosing GCP compute, storage, networking, or identity
  services, reviewing a GCP workload before production, or checking Terraform for public
  buckets, service account keys and basic roles.
license: MIT + Commons Clause
metadata:
  version: 1.1.0
  author: borghei
  category: engineering
  domain: engineering
  updated: 2026-11-08
  tags: [gcp, google-cloud, cloud-architecture-framework, gke, cloud-run, bigquery, iam, cost-optimization]
---

# 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

- **Compute selection** — decision tree across GKE (Autopilot/Standard), Cloud Run, Cloud Functions, Cloud Run Jobs, Batch, Compute Engine, and Vertex AI.
- **Data store selection** — decision tree across Cloud SQL, Spanner, Firestore, Bigtable, Memorystore, Cloud Storage, and BigQuery.
- **Networking** — VPC, Private Service Connect, Interconnect/VPN, load-balancer choices, Shared VPC, peering, Cloud Armor, hub-and-spoke.
- **Identity** — IAM, Service Accounts, Workload Identity (GKE) and Workload Identity Federation, ADC, and least-privilege role/scope binding.
- **CAF assessment** — score workloads against the five Cloud Architecture Framework pillars.
- **Cost optimization** — biggest-to-smallest cost levers (right-sizing, CUDs/SUDs, autoscaling, preemptibles, tiering, slots) and cost anti-patterns.
- **Workflows** — design a new workload, review an existing architecture, and migrate from AWS/Azure to GCP.

## 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.

- **Task:** design from scratch, review an existing architecture, validate IaC, or estimate cost (selects `gcp_architecture_validator.py` vs `gcp_cost_estimator.py` vs `gcp_caf_scorer.py`).
- **Workload spec:** the YAML workload config, or the Terraform files (the input the scripts parse). Deployment Manager templates are not read; for those, describe the workload in the YAML spec instead.
- **Priority pillar:** reliability, security, cost, operational excellence, or performance (weights the CAF assessment and which recommendations lead).

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/sound_workload.yaml` is a fully answered 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](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

```bash
python3 scripts/gcp_architecture_validator.py --workload-config assets/sample_workload.yaml --terraform assets/sample_main.tf
python3 scripts/gcp_caf_scorer.py --workload-config assets/sample_workload.yaml
python3 scripts/gcp_cost_estimator.py --workload-config assets/sample_workload.yaml --format json
```

Real output of `gcp_architecture_validator.py --workload-config assets/sample_workload.yaml` (abridged):

```
## CRITICAL (1)
| WS015 | Backup not tested on cloud-sql | `data[0].backup_tested` | service=cloud-sql | Test backup restore quarterly. |
## WARNING (1)
| WS008 | Basic IAM roles in use | `identity.uses_basic_roles` | uses_basic_roles=true | Replace basic (owner/editor/viewer) with predefined or custom roles at smallest scope. |
## Not provided (6), not judged
compute.multi_region, data[1].backup_tested, data[2].backup_tested, observability.alerts, operations.org_policies, security.scc_enabled
FIX 2 issues (1 critical)
```

Samples in `assets/`: `sound_workload.yaml` and `sound_main.tf` (exit 0), `sample_workload.yaml` and `sample_main.tf` (flawed, exit 1), `malformed_workload.yaml` and `malformed_main.tf` (exit 2). `assets/contract.json` lists every run.

## Tools Overview

| Tool | What it does | Key flags |
|------|--------------|-----------|
| `gcp_caf_scorer.py` | 50 CAF checks (10 per pillar) from the spec; scores count answered checks only, the rest are listed as not provided; failed checks quote the spec value and give the fix | `--workload-config`, `--format text\|json` |
| `gcp_architecture_validator.py` | Spec rules WS001-WS018 and Terraform text rules TF001-TF006 (default network, owner/editor roles, allUsers, Cloud SQL public IP, SA key resources, VM external IP). A key absent from the spec is reported as not provided, never as a finding | `--workload-config`, `--terraform <files/globs>`, `--severity`, `--format text\|json` |
| `gcp_cost_estimator.py` | Monthly estimate for GCE, GKE, Cloud Run, Cloud SQL, Spanner, BigQuery, GCS, Memorystore, Logging and egress, with savings suggestions; warns on unknown keys | `--workload-config`, `--format text\|json` |

`--json` is an alias for `--format json` on all three; `--output FILE` writes the report to a file.

## Exit Codes

| Code | Meaning |
|------|---------|
| 0 | Clean: no failed checks (scorer), no findings (validator), estimate produced (estimator) |
| 1 | Findings: scorer has failed checks; validator has findings at or above `--severity` |
| 2 | Unusable input: missing or unreadable file, empty spec, no recognised sections or keys, no Terraform blocks, nothing to price. One-line message on stderr |

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

- `scripts/gcp_caf_scorer.py`, `scripts/gcp_architecture_validator.py`, `scripts/gcp_cost_estimator.py` — the tools above.
- `assets/sample_workload.yaml` and `assets/sample_main.tf` (flawed), `assets/sound_*` (clean), `assets/malformed_*` (exit 2), `assets/contract.json`.

## Scope & Limitations

**In Scope:**
- GCP service selection through decision trees for compute and data stores, plus networking and identity patterns including Workload Identity Federation
- Cloud Architecture Framework scoring with `gcp_caf_scorer.py`: five pillars, ten checks each, read from a YAML workload spec
- Anti-pattern checks with `gcp_architecture_validator.py` on a YAML workload spec or Terraform files: public IPs on managed services, service account keys, single-zone tier-1, basic roles at project level, public buckets, default VPC, missing org policy, Cloud SQL without HA and on-demand BigQuery at high volume
- Rough monthly cost estimates with `gcp_cost_estimator.py`, with optimization suggestions, plus design, review and migration workflows

**Out of Scope:**
- Cross-cloud patterns and the AWS and Azure equivalents (see `engineering/senior-cloud-architect/`, `engineering/aws-solution-architect/` and `engineering/azure-cloud-architect/`)
- Writing or reviewing Terraform modules (see `engineering/terraform-patterns/`)
- Security posture audits of an exported cloud inventory and IAM (see `engineering/cloud-security/`)
- Kubernetes operator design for GKE workloads (see `engineering/kubernetes-operator/`)
- Compliance evidence and control mapping (see `ra-qm-team/soc2-compliance-expert/` and `ra-qm-team/information-security-manager-iso27001/`)

**Important Caveats:**
- The scripts never call GCP. They read files the user provides, and the CAF score reflects what the YAML spec declares, not what is deployed.
- The validator scans Terraform text with pattern rules and does not evaluate plans, modules or variables. It does not read Deployment Manager templates.
- Cost figures come from a built-in table of approximate US-region list prices from early 2026, with no sustained-use or committed-use discounts. They are for relative comparison, not a quote; check the Google Cloud Pricing Calculator before budgeting.
- Service tiers, SLAs, limits and prices in the references change often and should be confirmed against current Google Cloud documentation.

## Reference Documentation

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

- **[references/decision-trees.md](references/decision-trees.md)** — the full compute decision tree and the data store decision tree. Read when selecting compute or storage.
- **[references/networking-and-identity.md](references/networking-and-identity.md)** — VPC/PSC/Interconnect building blocks, the load-balancer matrix, common networking patterns, and the IAM / Service Account / Workload Identity (Federation) patterns with least-privilege guidance. Read when designing networking or identity.
- **[references/caf-cost-and-workflows.md](references/caf-cost-and-workflows.md)** — the five CAF pillars, the cost-lever and cost-anti-pattern catalog, all three end-to-end workflows (design/review/migrate), the GCP-specific anti-patterns, and the script tooling-output table. Read when assessing, optimizing, or running a workflow.
- **[references/gcp-services-reference.md](references/gcp-services-reference.md)** — per-service depth: tiers, SLAs, limits, when to upgrade. Read when sizing a specific service.
- **[references/gcp-well-architected.md](references/gcp-well-architected.md)** — the 5-pillar CAF assessment with a 10-question checklist per pillar, common findings, and remediation patterns. Read during a CAF review.
- **[references/gcp-cost-optimization.md](references/gcp-cost-optimization.md)** — the full cost-lever catalog, anti-patterns, and detection heuristics. Read when driving down spend.

## Related skills

- `engineering/senior-cloud-architect` — generic multi-cloud architecture patterns
- `engineering/aws-solution-architect` — AWS counterpart
- `engineering/azure-cloud-architect` — Azure counterpart
- `engineering/kubernetes-operator` — for GKE operator-pattern workloads
- `ra-qm-team/information-security-manager-iso27001` — compliance-mapped controls (GCP has Security Command Center)
- `ra-qm-team/soc2-compliance-expert` — GCP-specific SOC 2 evidence collection

Files in this skill

  • SKILL.md15.9 KB
  • references/gcp-cost-optimization.md12 KB
  • references/gcp-services-reference.md15.8 KB
  • references/gcp-well-architected.md12.1 KB
  • scripts/gcp_architecture_validator.py15.5 KB
  • scripts/gcp_caf_scorer.py23 KB
  • scripts/gcp_cost_estimator.py16.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.