agentleFS
kaiohenricunhakaiohenricunha/dotbabel/skills/gcp-specialist/SKILL.md

gcp-specialist

Skill0 starsChanged 2 months agoMITView on GitHub

Deep-dive Google Cloud architecture review, debugging, and service design. Use for structured investigations of GCP-specific issues, IAM or cost audits, and multi-service design reviews. Triggers on: "GCP audit", "GCP design review", "Workload Identity debug", "IAM review GCP", "review my GKE", "GCP troubleshooting", "Cloud Run deep-dive".

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If gcloud CLI access is available:

    line 41
  2. Distinctive:

    After fixes are applied:

    line 135
  3. Distinctive:

    Check Cloud Monitoring dashboards and Error Reporting — no new incidents should be open.

    line 141

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

GCP Specialist

Structured investigation for Google Cloud workloads. Five phases: gather context, diagnose, design, recommend, verify.

Arguments

  • $0 — project context, service scope, or problem description. Required.

Phase 1: Context Gathering

  1. Identify the organization, folders, project(s), and services in scope.
  2. Glob for IaC in the working directory: **/*.tf, **/*.yaml (Config Connector), **/*.jinja (Deployment Manager legacy).
  3. If gcloud CLI access is available:
    gcloud config list
    gcloud projects list
    gcloud auth list
  4. List enabled APIs in the current project:
    gcloud services list --enabled --format="value(config.name)"

Phase 2: Diagnosis

Compute / containers:

gcloud compute instances list
gcloud container clusters list
gcloud run services list

IAM / identity:

gcloud projects get-iam-policy <project>
gcloud iam service-accounts list
gcloud iam workload-identity-pools list --location=global

Networking:

gcloud compute networks list
gcloud compute firewall-rules list
gcloud compute routers list

Serverless / events:

gcloud functions list
gcloud pubsub topics list
gcloud pubsub subscriptions list

Cost / quotas:

gcloud compute project-info describe --format="yaml(quotas)"
gcloud logging read 'resource.type="gce_instance"' --limit=20 --format=json

Phase 3: Design / Root-Cause Analysis

Map symptoms to causes:

SymptomCommon CausesCheck
GKE pod AuthN failsWorkload Identity not bound, KSA/GSA annotation mismatchkubectl describe sa + gcloud iam service-accounts get-iam-policy
Cloud Run cold startsmin-instances=0, cold container imagegcloud run services describe → min-instances, image size
GCS AccessDeniedUniform vs fine-grained mismatch, missing roles/storage.objectViewergsutil iam get + project-level IAM
Pub/Sub messages stuckSubscription ack deadline too short, consumer crashedgcloud pubsub subscriptions describe + dead-letter config
BigQuery slow queryMissing clustering/partitioning, full table scanQuery plan review, DRY_RUN pricing
VPC connectivity failFirewall default-deny, missing Private Google Accessgcloud compute firewall-rules list + subnet Private Google Access flag

Cite resource self-link or file:line for every finding.


Phase 4: Recommendations

Output findings in priority order:

[CRITICAL] <title>
Resource: <self-link or file:line>
Issue: <one sentence>
Evidence: <gcloud output or code snippet>
Fix: <specific change, with Terraform/Config Connector diff>
Trade-off: <alternative and its downside, if meaningful>
  • Order: CRITICAL → WARNING → INFO.
  • For IaC fixes, show the exact Terraform or Config Connector diff.
  • Reference relevant docs in references/ where applicable.

Phase 5: Verification

After fixes are applied:

  1. Re-run the diagnostic command that surfaced the issue.
  2. For Workload Identity changes: gcloud iam service-accounts get-iam-policy and live pod token request.
  3. For firewall changes: gcloud compute firewall-rules list + connectivity probe.
  4. For IAM changes: gcloud projects get-iam-policy --flatten="bindings[].members" to see effective membership.
  5. Check Cloud Monitoring dashboards and Error Reporting — no new incidents should be open.

Reference Docs

Consult references/ for decision guides:

FileWhen to use
compute.mdGKE, Cloud Run, GCE selection and sizing
serverless.mdCloud Functions, Pub/Sub, Cloud Tasks, Eventarc
storage.mdGCS, Filestore, BigQuery, Cloud SQL, Spanner
networking.mdVPC, Cloud Load Balancing, Cloud Armor, Cloud CDN
iam.mdIAM hierarchy, Workload Identity, Service Accounts
observability.mdCloud Monitoring, Logging, Trace, Error Reporting
iac-patterns.mdTerraform, Config Connector, Deployment Manager patterns

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.