/google-cloud-storage:google-cloud-storage-bucket-architectfrom google-cloud-storage
Analyzes workload requirements and creates secure, cost-effective Google Cloud Storage buckets with validated security settings. Supports gcloud, REST API, Terraform, and SDK outputs.
Ships in google-cloud-storage. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are a Use-Case Driven Google Cloud Storage Bucket Architect agent. 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.
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 | Inputs | Outputs | Reference |
|---|---|---|---|
| 1. Preflight/Project Checks | Project ID | Project security posture assessment | references/phase_project_checks.md |
| 2. Draft Bucket Create Plan | Use case, requirements | Bucket configuration plan & name availability status | references/phase_draft_plan.md |
| 3. Output Based on User Intent | Plan, preferred format | Command or code snippet for bucket creation | references/phase_output.md |
[!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
gcloudcommands, 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):
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).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).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.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):
references/phase_project_checks.md.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.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).| Problem | Cause | Fix |
|---|---|---|
| Execution failure during creation | Network/permission error | Report error details and suggest manual execution with the generated command. |
| Creation fails with 409 / "already exists" | Bucket name taken | Propose a different name, verify availability, and regenerate the output. |
PUT Signed URLs, CORS for uploads, and ingestion
buckets.ARCHIVE storage.RAPID buckets.gcloud storage commands.curl.google_storage_bucket HCL.references/archiving_compliance.md (opens in a new tab)references/backup_dr.md (opens in a new tab)references/gcloud.md (opens in a new tab)references/log_storage.md (opens in a new tab)references/media_hosting.md (opens in a new tab)references/phase_draft_plan.md (opens in a new tab)references/phase_output.md (opens in a new tab)references/phase_project_checks.md (opens in a new tab)references/rest.md (opens in a new tab)references/sdk.md (opens in a new tab)references/sdk_cpp.md (opens in a new tab)references/sdk_go.md (opens in a new tab)references/sdk_java.md (opens in a new tab)references/sdk_python.md (opens in a new tab)references/sensitive_data.md (opens in a new tab)references/static_website.md (opens in a new tab)references/storage_for_ai.md (opens in a new tab)references/terraform.md (opens in a new tab)references/ugc_ingestion.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
gcs, bucket-creation, cloud-storage, google-cloud, storage-architecture
7 skills in this plugin
/gcs-security-assessmentAssesses the security posture of Google Cloud Storage (GCS) buckets and projects. Grounds every finding in gathered telemetry, evaluates buckets against Google security best practices (public access, IAM over-granting, CMEK, VPC Service Controls, audit logging), and correlates signals to flag toxic combinations of individually low-risk settings, with actionable remediation. Use whenever a user asks for a security scan, audit, review, vulnerability check, or compliance assessment (including SAIF) — or simply asks whether their buckets, project, or data are secure, exposed, public, or misconfigured, who can access their data, or wants storage hardened or locked down, e.g. before a launch. Don't use for diagnosing a specific access failure or 403, managing or configuring storage, investigating a live outage, or non-GCS resources (Compute Engine, GKE, etc.)./google-cloud-storage-basicsStores, retrieves, and manages data as objects in Cloud Storage on Google Cloud (also known colloquially as GCS) buckets. Use when you need to interact with Cloud Storage — set up a Storage MCP server (remote or local Toolbox), create or configure buckets, upload, download, stream, or transfer data, organize objects with folders, generate signed URLs, control access (IAM, ACLs, public access prevention), set storage classes (Standard, Nearline, Coldline, Archive), manage lifecycle and cost, protect data (versioning, CMEK, retention, Bucket Lock, holds, soft delete), host static websites, trigger Pub/Sub notifications, mount buckets (gcsfuse), or optimize performance. Covers gcloud storage / gsutil, JSON/XML APIs, client libraries, Terraform, and Cloud Storage MCP servers. Don't use for generic MCP setup that doesn't mention Cloud Storage, other MCP servers, block storage (Persistent Disk), BigQuery, or databases (Cloud SQL, Spanner, Bigtable, Firestore)./google-cloud-storage-diagnosticTroubleshoots and diagnoses Cloud Storage on Google Cloud (also known colloquially as GCS) errors, 403 Permission Denied or Insufficient Permission denials, and access control conflicts. Use whenever a user encounters or asks to analyze a 403 error on a bucket or object — including analysis-only questions where no commands are run — or needs help with IAM bindings, fine-grained ACLs, Uniform Bucket-Level Access (UBLA), getIamPolicy inspection denials and least-privilege inspection roles, browser storage.cloud.google.com Cookieauth and Data Access Audit Logging conflicts, Signed URL SignatureDoesNotMatch errors, VPC Service Controls (VPC-SC) perimeters, explicit IAM Deny policies, Bucket IP Filtering, Requester Pays, Retention Policy locks, Compute Engine VM access scopes, Application Default Credentials (ADC) mismatches, recursive delete permissions, or recreated service accounts. Don't use for creating buckets, routine uploads/downloads, proactive security audits, or Cloud Storage FUSE mounts./google-cloud-storage-fuseMounts Cloud Storage buckets as a POSIX file system with Cloud Storage FUSE (gcsfuse). Use when you need to interact with gcsfuse — decide whether FUSE, native gs:// reads, or Filestore/Managed Lustre fits a workload, deploy tuned mounts on GKE, Compute Engine, or Cloud Run, enable and size the file, stat, and list caches, tune mount flags (--implicit-dirs) or config-file settings, apply workload profiles, keep ML checkpointing safe (rename atomicity, hierarchical namespace, close-time finalization, concurrent writers), or diagnose slow training, low throughput, or GCS bill spikes on existing mounts with gcsfuse metrics. Covers mount semantics, the gcsfuse CLI and config file, the GKE gcsfuse CSI driver (Workload Identity principal:// bindings, profile StorageClasses, sidecar sizing), and Cloud Run volume mounts. Don't use for bucket administration or data management without a mount (google-cloud-storage-basics) or for fully POSIX-compliant shared file systems (Filestore, Managed Lustre; use gke-storage)./google-cloud-storage-okfExperimental, generic, and powerful skill for token-efficient search, semantic navigation, and progressive disclosure of unstructured or semi-structured objects (PDFs, logs, JSON/CSV dumps, media, large documents) in Google Cloud Storage (GCS) using the Open Knowledge Format (OKF). Beyond basic retrieval, agents can creatively apply this skill to a broad spectrum of search and reasoning tasks, including: (1) high-precision search and point-queries within large objects without loading full content into context; (2) multi-hop cross-document search and synthesis across multiple cloud objects; (3) searching and temporal reasoning across chronologically partitioned log streams, audit trails, and incident timelines; and (4) creating reusable Table of Contents metadata for downstream agents. Use proactively whenever searching, querying, or interacting with gs:// URIs where full-object downloads would waste tokens, degrade context quality, or exceed window limits./google-cloud-storage-okf-bucketDiscovers, inventories, triages, and searches across Google Cloud Storage (GCS) buckets and prefixes (gs://bucket or gs://bucket/prefix/) using the Open Knowledge Format (OKF). Aggregates per-object OKF status (fresh, stale, unindexed), Tier 0 summaries, region titles, keywords, and custom contexts in a single metadata listing without downloading object payloads. Use when: (1) answering open-ended discovery, search, or root-cause triage questions across a GCS bucket or prefix; (2) auditing bucket OKF index health and identifying candidates_to_index; (3) comparing sections across multiple objects in a bucket; or (4) batch-indexing unindexed (20 KB or larger) and stale objects across a bucket. Don't use for single-object navigation when the exact gs://bucket/object URI is already known and no bucket-level discovery is needed (use google-cloud-storage-okf), or for bucket provisioning and IAM administration (use google-cloud-storage-basics or google-cloud-storage-bucket-architect).npx claudepluginhub googlecloudplatform/google-cloud-storage-plugin --plugin google-cloud-storageOther plugins' skills for the same job