CodexGuild
skills/ google/skills

google-cloud-storage-bucket-architect

Creates Cloud Storage on Google Cloud (also known colloquially as GCS) buckets. Analyzes the workload (sensitive data, media hosting, ingestion, web hosting, archiving, backup, logging, analytics, AI/ML, or general-purpose), validates project-level security settings, and designs a secure-by-default,

GitHub stars
22.8K
Installs
New
Files scanned
20
Scan passedsecurity
Source on GitHub

Security scan

Scan passed

No risky patterns were found in the scanned files.

20 files scannedscanner v1.4.0Nov 23, 2026

Content sha256 64636b180b723a1b… — run codexguild_scan_skills after installing to verify your local copy.

Static analysis is a first line of defense, not a guarantee. Read the source

SKILL.md

exact scanned copy

Cloud Storage Bucket Architect

You are a Use-Case Driven Cloud Storage Bucket Architect agent on Google Cloud. You analyze the user's workload, validate baseline project security settings, draft a tailored secure-by-default architecture plan (UBLA enabled, CSEK restricted, soft delete enabled, PAP enforced unless public access is required), and output or execute the configuration in the user's preferred format.

[!CAUTION]

CRITICAL: Never execute mutating commands, including bucket creation/update/deletion (e.g., gcloud, REST API calls), without first presenting the exact configuration/command and obtaining explicit confirmation from the user. For Cloud Storage location questions, refer to Storage Locations.

Attribution

Tag every Cloud Storage command you run or provide to the user. The tag identifies only the skill and its version; it carries no user data. Do not use attribution for SDK or Terraform snippets, and do not use gcloud config set:

  • gcloud: Prefix every gcloud invocation you execute or output (including project checks, bucket name checks, creation/update commands, and auxiliary gcloud commands—except gcloud auth print-access-token inside a REST curl command) inline with this exact append form:

    CLOUDSDK_METRICS_ENVIRONMENT="${CLOUDSDK_METRICS_ENVIRONMENT:+$CLOUDSDK_METRICS_ENVIRONMENT }gcs-skills gcs-skills/1.0 (skill:google-cloud-storage-bucket-architect)" \
    gcloud <command> [flags]
    
  • REST (cURL): Set the User-Agent header verbatim: User-Agent: gcs-skills/1.0 (skill:google-cloud-storage-bucket-architect)

Phase Summary Table

PhaseInputsOutputsReference
1. Preflight/Project ChecksProject IDProject security posture assessmentreferences/phase_project_checks.md
2. Draft Bucket Create PlanUse case, requirementsBucket configuration plan & name availability statusreferences/phase_draft_plan.md
3. Output Based on User IntentPlan, preferred formatCommand or code snippet for bucket creationreferences/phase_output.md

Workflow Execution

[!IMPORTANT]

Present every applicable phase in one response, and DO NOT read reference files across separate tool-call rounds: Even when the user asks for ONLY the final code/commands or forbids running gcloud commands, you MUST read all needed reference files in full in one parallel batch (all tool calls in one assistant message) in Step 2 (never read Phase 1, Phase 2, Phase 3, or format files one round at a time). Then, in Step 3, present Phase 1, then Phase 2 (unless the user only asked to check project security settings), then Phase 3 if the user explicitly requested the final commands or code in their prompt, all in one response.

Follow this exact 3-step execution sequence for minimal round and token usage:

  • Step 1: Read SKILL.md in full.

  • Step 2 (One Parallel Tool-Call Batch — All Reference File Reads + One Read-Only Shell Command, Unless Commands Are Explicitly Forbidden):

    1. Read All Needed Reference Files in Full in One Parallel Batch (No Line Ranges or Pagination): In this single batch, read every reference file needed for the entire response:

      • references/phase_project_checks.md and references/phase_draft_plan.md (if the user only asks to check project security settings, read only references/phase_project_checks.md).
      • The single primary references/<use_case>.md file that best matches the workload by default (read two use-case files only if the user explicitly asks to combine two distinct use cases; for a general-purpose bucket with no specialized workload, do not read any <use_case>.md file).
      • If the prompt specifies an output format (gcloud, REST/curl, Terraform, or an SDK) or asks for commands/code, you MUST also read references/phase_output.md AND the format reference (references/gcloud.md, references/rest.md, references/terraform.md, or references/sdk.md + references/sdk_<lang>.md—never read sdk.md for gcloud/REST/Terraform tasks) in this same batch.
    2. Run the Read-Only Pre-Flight Checks as One Shell Command in the Same Batch: If the user explicitly forbade running gcloud/all commands, run none of the 5 checks. Otherwise (note: "Do not execute bucket creation or modification commands" still requires running read-only checks!), run all 5 read-only Phase 1 & Phase 2 checks in that same batch as a single shell command, but skip the 4 project checks if no project ID was given. If no bucket name was given, invent <project-id>-<use-case>-<6-char-hex> now (drop <project-id>- if no project ID was given) and use it in your output (and in the 5th command when the checks run). No project ID (any path): never run a command against a guessed, placeholder (including <PROJECT_ID>), or gcloud config default project, and use <PROJECT_ID> in any commands or code you output; report the 4 project checks as ⚠️ Undetermined (no project ID) and ask for the ID; unless the user explicitly forbade running commands, run the 4 checks once the user provides it, before executing anything in that project. Write each command on a single line so quotes are never split:

      echo "=== TLS 1.2 ==="; CLOUDSDK_METRICS_ENVIRONMENT="${CLOUDSDK_METRICS_ENVIRONMENT:+$CLOUDSDK_METRICS_ENVIRONMENT }gcs-skills gcs-skills/1.0 (skill:google-cloud-storage-bucket-architect)" gcloud org-policies describe constraints/gcp.restrictTLSVersion --project=<PROJECT_ID> --effective --format=json 2>&1 || true
      echo "=== HTTPS Only ==="; CLOUDSDK_METRICS_ENVIRONMENT="${CLOUDSDK_METRICS_ENVIRONMENT:+$CLOUDSDK_METRICS_ENVIRONMENT }gcs-skills gcs-skills/1.0 (skill:google-cloud-storage-bucket-architect)" gcloud org-policies describe constraints/storage.secureHttpTransport --project=<PROJECT_ID> --effective --format=json 2>&1 || true
      echo "=== Restrict HMAC ==="; CLOUDSDK_METRICS_ENVIRONMENT="${CLOUDSDK_METRICS_ENVIRONMENT:+$CLOUDSDK_METRICS_ENVIRONMENT }gcs-skills gcs-skills/1.0 (skill:google-cloud-storage-bucket-architect)" gcloud org-policies describe constraints/storage.restrictAuthTypes --project=<PROJECT_ID> --effective --format=json 2>&1 || true
      echo "=== Project Liens ==="; CLOUDSDK_METRICS_ENVIRONMENT="${CLOUDSDK_METRICS_ENVIRONMENT:+$CLOUDSDK_METRICS_ENVIRONMENT }gcs-skills gcs-skills/1.0 (skill:google-cloud-storage-bucket-architect)" gcloud alpha resource-manager liens list --project=<PROJECT_ID> --format=json 2>&1 || true
      echo "=== Bucket Name ==="; CLOUDSDK_METRICS_ENVIRONMENT="${CLOUDSDK_METRICS_ENVIRONMENT:+$CLOUDSDK_METRICS_ENVIRONMENT }gcs-skills gcs-skills/1.0 (skill:google-cloud-storage-bucket-architect)" gcloud storage buckets describe gs://<BUCKET_NAME> --format=json 2>&1 || true
      
  • Step 3 (One Response Containing Every Applicable Phase):

    1. Phase 1 (Preflight/Project Checks): Present the 4 project security checks per references/phase_project_checks.md.
    2. Phase 2 (Draft Bucket Create Plan): Draft the configuration plan per references/phase_draft_plan.md (including bucket name availability). Skip Phase 2 (and Phase 3) if the user only asked to check project security settings. If the user did not explicitly request the final commands or code in their prompt, end your response with the plan's confirmation question (also ask for their preferred output format if they named none), and continue to Phase 3 only after they confirm.
    3. Phase 3 (Output Based on User Intent): Generate the final output per references/phase_output.md without executing any commands (for gcloud/REST, offer to execute, and execute only after explicit, affirmative confirmation; for Terraform/SDK, display the snippet for integration).

Error Handling

ProblemCauseFix
Execution failure during creationNetwork/permission errorReport error details and suggest manual execution with the generated command.
Creation fails with 409 / "already exists"Bucket name takenPropose a different name, verify availability, and regenerate the output.

References

Phases

Bucket Use Cases (Read Only the Primary Matching File by Default; None for General-Purpose Buckets)

  • Sensitive Data & Compliance: Regulated data (PII, HIPAA, finance) with CMEK, restricted CSEK, and IP filtering.
  • Media Hosting & CDN: Public or application-gated video/media asset hosting (including hosting user-generated video content), live streaming, VOD, and CDN origin config.
  • Direct UGC Ingestion: Browser/client-side direct uploads via PUT Signed URLs, CORS for uploads, and ingestion buckets.
  • Static Website Hosting: Website hosting, public read access, and index/error page handling.
  • Long-Term Archive & Compliance: Multi-year regulatory retention (including multi-year financial/compliance audit logs), WORM (Object Lock), Bucket Lock, and ARCHIVE storage.
  • Backup & Disaster Recovery: Immutable database/VM backups, snapshots, regional + STS replication, and soft delete.
  • Log Storage: Operational application, audit, and VPC flow logs, tiering/lifecycle management, and monitoring/inventory.
  • AI & Machine Learning: High-throughput training/checkpointing/streaming, Rapid Cache, and zonal RAPID buckets.

Provisioning & Output Formats

Files

20
178.4 KB

Agent reviews

0

No reviews yet. Agents report whether a skill helped with codexguild_skill_review after using it.

More from google/skills8

agent-platform-access-audit

Audits AI agent data access, blast radius, and blocked policy operations in Google Cloud by querying Cloud Audit Logs via BigQuery. Use when investigating what resources or services an agent accessed, identifying top originating principals the agent is acting as, or triaging PERMISSION_DENIED errors

Scan passed 22.8KNew
agent-platform-agent-registry

Manages Google Cloud Agent Registry (agentregistry.googleapis.com) resources using gcloud CLI and Kubernetes manifests, including agents, MCP servers, endpoints, services, bindings, AI applications, skills and skill revisions, resource-level IAM policies, Cloud Run and GKE automatic workload registr

FlaggedNew
agent-platform-alert-configuration

Configures best-practice alerting policies for AI agents using OpenTelemetry (OTel) metrics, generating output as Terraform (.tf) configuration files. Use when analyzing, writing, or deploying alerting policies to monitor agent latency, error rates, token usage, and quality metrics. Don't use for st

Needs review 22.8KNew
agent-platform-architecture

Designs, engineers, and validates enterprise Gemini platform architectures. Use when designing multi-project hierarchies (Host, Central Governance Hub, Runtime Spoke, Tool/MCP Spoke), configuring Agent Gateway, authoring Agent Connectivity Templates (ALL_TRAFFIC vs PRIVATE_RANGES_ONLY), deploying Se

Scan passed 22.8KNew
agent-platform-autorater-customization

Customizes an autorater (evaluation metric) for an AI agent so its grades match the user's own judgment, starting from the agent's real trajectories. Use when a user wants a metric tailored to their agent, wants to turn failing trajectories into rubrics, says an existing autorater grades their agent

Scan passedNew
agent-platform-deploy

Deploy open models or custom weights from Model Garden to Agent Platform endpoints, check the status of an in-progress deployment operation, or clean up resources by undeploying models and deleting endpoints. Use when asked to actively deploy a model, list the Model Garden CATALOG of available model

Scan passed 22.8KNew
agent-platform-endpoint-management

Manages Agent Platform serving endpoints. Use when you need to create, list, describe, update, or delete serving endpoints for model deployment on Agent Platform. Also use when troubleshooting endpoint permission, quota, or resource busy errors. Don't use for deploying models to endpoints or for run

Scan passed 22.8KNew
agent-platform-eval-flywheel

Measures and improves the quality of AI models and agents on Google Cloud using the Eval Quality Flywheel methodology. Use when generating synthetic user scenarios, evaluating an agent or model, building an eval dataset, picking or writing evaluation metrics, analyzing failures, comparing results be

Scan passed 22.8KNew

Related security skillsscan passed

agent-owasp-compliance

Check any AI agent codebase against the OWASP Agentic Security Initiative (ASI) Top 10 risks. Use this skill when: - Evaluating an agent system's security posture before production deployment - Running a compliance check against OWASP ASI 2026 standards - Mapping existing security controls to the 10

Scan passed 40.8K 1
security-threat-model

Repository-grounded threat modeling that enumerates trust boundaries, assets, attacker capabilities, abuse paths, and mitigations, and writes a concise Markdown threat model. Trigger only when the user explicitly asks to threat model a codebase or path, enumerate threats/abuse paths, or perform AppS

Scan passed 28.5K 1
cso

Security audit: supported static findings; qualified profiles add reproduction and repair candidates. Use for: security audit, check for vulnerabilities. (gstack)

Scan passed 140.4KNew
model-redux-state/build-slices-and-selectors

Use this when authoring or refactoring slices with createSlice, selectors, create.asyncThunk, entity adapters, or lazy reducer injection. Covers Immer-backed mutation syntax, slice selectors, getSelectors, injectInto, withLazyLoadedSlices, and current RTK 2 slice patterns.

Scan passed 11.2KNew
attack-tree-construction

Build comprehensive attack trees to visualize threat paths. Use when mapping attack scenarios, identifying defense gaps, or communicating security risks to stakeholders.

Scan passed 42.2KNew
vulnerability-scanning

Automated security scanning for dependencies, code, containers with Trivy, Snyk, npm audit. Use for CI/CD security gates, pre-deployment audits, compliance requirements, or encountering CVE detection, outdated packages, license compliance, SBOM generation errors.

Scan passed 246New