gcp

gcp is a skill for Claude Code, Codex from SumonMSelim/agentguard. It costs 0 tokens per session (925 once invoked), scanned A, original, MIT.

A guide to building and reviewing Google Cloud infrastructure and applications. GCP, or Google Cloud Platform, provides hosted computing, storage, databases, networking, and other services.

In plain words
What is it for?
Use it when working on GCP projects, IAM, service accounts, secrets, networking, compute services, infrastructure code, and operations.
Why use it?
It helps prevent excessive permissions, exposed credentials, unsafe public access, poor environment separation, and missing security monitoring.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when working on GCP projects, IAM, service accounts, secrets, networking, compute services, infrastructure code, and operations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sumonmselim/agentguard/gcp
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add SumonMSelim/agentguard --skill gcp
Clone the repo
git clone --depth 1 https://github.com/SumonMSelim/agentguard

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gcp

README.md
[![agentmods](https://agentmods.dev/badge/skills/sumonmselim/agentguard/gcp/github.svg)](https://agentmods.dev/skills/sumonmselim/agentguard/gcp)
Your own site
<a href="https://agentmods.dev/skills/sumonmselim/agentguard/gcp"><img src="https://agentmods.dev/badge/skills/sumonmselim/agentguard/gcp/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gcp

Your own site · 80×15
<a href="https://agentmods.dev/skills/sumonmselim/agentguard/gcp"><img src="https://agentmods.dev/badge/skills/sumonmselim/agentguard/gcp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 925 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00925
Opus 5.5 $0.00000 $0.00370
Sonnet 5.5 $0.00000 $0.00185
Haiku 4.5 $0.00000 $0.00093

Measured 1mo ago against content hash 4c51436cd2d2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

gcp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/gcp/SKILL.md · 69 lines

How it starts

The opening of the file, as written. The whole thing — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GCP

Org and project structure

  • Org > Folder > Project hierarchy. Folders per environment (dev, staging, prod) or team
  • Separate projects per environment. Never share prod project with other envs
  • Dedicated logging/security project. Ship Audit Logs, SCC findings, and VPC Flow Logs there
  • Organization Policy constraints: restrict public IPs, enforce uniform bucket access, restrict allowed regions, deny SA key creation
  • Billing account per team or BU. Budget alerts per project

IAM

  • Least privilege. Predefined roles before custom. Never primitive roles (Owner, Editor) in production
  • Separate SA per workload and environment. No shared SAs across services
  • No SA keys unless unavoidable. Use Workload Identity Federation for external systems, metadata server for GCP resources
  • GKE: Workload Identity per pod. Never use default compute SA ([email protected]) — has broad Editor permissions
  • Grant roles at resource level. Project-level only when scope is genuinely project-wide
  • IAM Recommender enabled. Act on unused permission findings
  • If keys exist: rotate regularly, audit usage, delete when unused. Never commit to git

Secrets

  • Store in Secret Manager. Never in env vars, container images, Terraform state, or deployment manifests
  • GKE: access via Secret Manager API or mounted volumes (Workload Identity + CSI driver)
  • Auto-rotation enabled where supported
  • Reference by resource name in Cloud Run and GKE specs. Never inline values

Networking

  • VPC per environment. Shared VPC for multi-project setups
  • Private Google Access on all subnets. No public IPs needed to reach GCP APIs
  • Firewall rules: deny-all default, explicit allow only. No 0.0.0.0/0 except load balancer health checks
  • Cloud NAT for outbound internet from private instances
  • VPC Flow Logs on all subnets
  • Private Service Connect for managed services (Cloud SQL, Memorystore, etc.)
  • Cloud Armor on all internet-facing load balancers. WAF rules + DDoS protection enabled

Read the full file on GitHub · 69 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 69 lines · 0 tokens per session scan A 4c51436cd2d2

Subscribe to this mod's changes

gcp is a skill published in the GitHub repository SumonMSelim/agentguard (54 stars, last pushed 14d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 925 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.