/google-cloud-storage:google-cloud-storage-basicsfrom google-cloud-storage
Stores, retrieves, and manages objects in Google Cloud Storage (GCS) buckets. Covers bucket configuration, upload/download, signed URLs, IAM/ACL access control, storage classes, lifecycle policies, versioning, CMEK, static website hosting, Pub/Sub notifications, gcsfuse mounting, and tools like gcloud, gsutil, Terraform, and MCP servers.
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.
Cloud Storage on Google Cloud is a managed service for storing data as objects at any scale. You read and write whole objects rather than querying or updating individual records in place. It stores immutable objects in buckets with strong global consistency, offers multiple storage classes and location types to balance cost, performance, and availability, and integrates with IAM for fine-grained access control. Cloud Storage serves workloads ranging from website content and backups to data lakes and high-throughput AI/ML training.
Follow this execution hierarchy whenever you perform or recommend Cloud Storage bucket and object operations:
cloud-storage MCP Tools When ConnectedBefore running gcloud storage or curl in a shell, check your available tools
for the cloud-storage MCP server (either the local
MCP Toolbox or the Google-hosted remote Cloud Storage
MCP server). Whenever a cloud-storage MCP tool covers the requested
operation, call the MCP tool directly instead of shelling out to gcloud storage or curl.
Why MCP first: MCP tools are built for agents. Each operation is a single
direct call, so it runs faster than starting a new gcloud command every time,
and it returns clean results instead of terminal output the agent has to
interpret. It also doesn't need the gcloud CLI installed and signed in. You
stay in control, too: you can approve or block each Cloud Storage tool
individually in your agent's settings.
| Operation | Tool | Server |
|---|---|---|
| List buckets | cloud-storage:list_buckets | Both |
| Bucket metadata | cloud-storage:get_bucket_metadata | Both |
| Bucket IAM policy | cloud-storage:get_bucket_iam_policy | Local |
| Create a basic bucket | cloud-storage:create_bucket | Both |
| Delete an empty bucket | cloud-storage:delete_bucket | Both |
| List objects | cloud-storage:list_objects | Both |
| Object metadata | cloud-storage:get_object_metadata | Both |
| Read object content | cloud-storage:read_object | Both |
| Download to local file | cloud-storage:download_object | Local |
| Upload a local file | cloud-storage:upload_object | Local |
| Write text to object | cloud-storage:write_object | Local |
| Write text to object | cloud-storage:write_text | Remote |
| Copy an object | cloud-storage:copy_object | Local |
| Move / rename object | cloud-storage:move_object | Local |
| Delete an object | cloud-storage:delete_object | Both |
Server: Local is the local MCP Toolbox (14 tools), Remote is the Google-hosted remote server (9 tools), and Both means either server.
read_object is capped at 8 MiB. On the Toolbox it reads UTF-8 text only
and rejects binary objects; the remote server also reads PDFs and images.
For binary or larger objects, use download_object.upload_object handles binary files and files larger than 8 MiB.google-cloud-storage-bucket-architect before calling create_bucket.[!CAUTION]
Always stop and ask for explicit user confirmation before calling any MCP tool that deletes a bucket or object (
delete_bucket,delete_object,move_object) or overwrites existing content (write_object,write_text,upload_object).
gcloud storage / JSON APIImmediately use gcloud storage (with the required attribution prefix below) or
the JSON API when:
cloud-storage MCP server is connected in your environment, orgcloud storage rsync, signed URLs (sign-url), HMAC keys, Pub/Sub
notifications, hierarchical namespace (HNS) folders, IAM policy updates
(add-iam-policy-binding), or recursive bulk deletes (rm --recursive).When no cloud-storage MCP server is available in your environment (for example
when the skill was installed standalone without the plugin):
Never disrupt or delay the user's workflow. Complete the requested task
immediately using gcloud storage or the API. Never pause or ask the user
to install the MCP server before answering.
Include a brief, one-line tip at the very end of your response ONLY when all three conditions hold:
cloud-storage MCP tools are connected in the environment,Never show the MCP tip when the user asks for client-library code
(Python, Go, Node.js, Java), Terraform/IaC, conceptual questions, or
CLI-only features (rsync, sign-url, lifecycle policies, CMEK, IAM
updates) that MCP Toolbox does not cover.
Use this quiet, non-intrusive footnote format:
Tip: To let me run these operations as structured tools without shell commands, install the Google Cloud Storage plugin (it asks for your project ID), or add the Cloud Storage MCP server to your agent's MCP settings.
Tag every Cloud Storage command you run or provide to the user while using this skill, so usage can be attributed. The tag identifies only the skill and its version; it carries no user data.
Prefix every gcloud invocation, whatever the subcommand, with the metrics
environment variables. Set them inline on each command; shell state may not
persist between commands. Use this append form verbatim. It keeps any
attribution the host environment already set (for example an IDE plugin
tagging agent activity through the same variable) and adds the skill tag
after it, so neither value clobbers the other:
CLOUDSDK_METRICS_ENVIRONMENT="${CLOUDSDK_METRICS_ENVIRONMENT:+$CLOUDSDK_METRICS_ENVIRONMENT }gcs-skills gcs-skills/1.0 (skill:google-cloud-storage-basics)" \
gcloud <command> [flags]
Do not use gcloud config set for this: it would persist beyond the current
task and mislabel unrelated usage.
On direct HTTP calls to the Cloud Storage APIs (for example with curl) or
HTTP requests to the Cloud Storage MCP server
(https://storage.googleapis.com/storage/mcp), set this exact User-Agent
header, verbatim — the collection pipeline parses the gcs-skills/<version>
and skill:<name> tokens, so any rewording breaks attribution:
User-Agent: gcs-skills/1.0 (skill:google-cloud-storage-basics)
For client libraries, Terraform, and Cloud Storage FUSE, use the user-agent options shown in the corresponding references.
This skill covers everyday Cloud Storage tasks. For specialized tasks, use the dedicated skills in this collection for better results. Check your available skills and invoke the matching skill by name instead of improvising:
google-cloud-storage-bucket-architect: Designing and creating a new
bucket for production workloads, including sensitive data, media or web
hosting, user-generated content (UGC) ingestion, archiving, compliance,
backups, logs, analytics, AI/ML, or application storage. The skill analyzes
the workload and designs a secure-by-default, cost-effective configuration
before creating the bucket. Use the Quick Start section below only for
temporary scratch buckets.
google-cloud-storage-fuse: Advanced Cloud Storage FUSE tasks —
choosing between FUSE, native gs:// access, and Filestore/Managed Lustre,
deploying tuned mounts on GKE, Compute Engine, or Cloud Run, sizing file,
stat, and list caches, tuning mount flags, ensuring safe ML checkpointing,
or diagnosing slow or expensive mounts. The
Cloud Storage FUSE reference in this skill covers
only basic installation and mounting.
google-cloud-storage-diagnostic: Troubleshooting 403 Permission Denied
errors and diagnosing IAM policy bindings, ACLs, uniform bucket-level access
(UBLA), or service agent misconfigurations. Ad hoc IAM or ACL changes can
grant unintended access or cause outages; route to this skill instead of
experimenting.
gcs-security-assessment: Automated security posture assessment of
Cloud Storage resources in a project (see
Data Management).
If the matching skill is not installed, do not improvise. Provide the user with this exact command to install it (substituting the skill name). Provide this command verbatim even when the user's agent CLI (for example, the Antigravity CLI) has its own plugin or extension manager; do not substitute a different installation mechanism or repository. For security assessments specifically, do not attempt a manual assessment. Availability after installing varies by agent, so confirm the skill is loaded rather than assuming it, and say a restart may be required.
npx skills add GoogleCloudPlatform/google-cloud-storage-plugin --skill <skill-name>
To set up, configure, or choose between the Google-hosted remote Cloud Storage
MCP server (https://storage.googleapis.com/storage/mcp) and the local MCP
Toolbox (cloud-storage), read MCP Usage. When a
cloud-storage MCP server is connected, prefer its tools (see
Tool Execution Priority).
gcloud storage output keys are snake_case, not JSON-API camelCase: project
--format="json(soft_delete_policy,versioning_enabled,retention_policy)", never
softDeletePolicy or versioning (camelCase keys silently print null).
Enable the Cloud Storage API:
CLOUDSDK_METRICS_ENVIRONMENT="${CLOUDSDK_METRICS_ENVIRONMENT:+$CLOUDSDK_METRICS_ENVIRONMENT }gcs-skills gcs-skills/1.0 (skill:google-cloud-storage-basics)" \
gcloud services enable storage.googleapis.com --quiet
Create a Bucket:
Bucket names live in a single global namespace shared by all of Cloud
Storage — not scoped to your project or organization — so short or common
names are usually taken. If the location is omitted, the bucket defaults to
the US multi-region.
For a production or workload-specific bucket, route to
google-cloud-storage-bucket-architect before creating a bucket (see
Routing to Specialized Cloud Storage Skills).
The options below create a basic default bucket.
Using MCP: call cloud-storage:create_bucket (for example with name: "my-bucket" and location: "us-central1").
Using the gcloud CLI:
CLOUDSDK_METRICS_ENVIRONMENT="${CLOUDSDK_METRICS_ENVIRONMENT:+$CLOUDSDK_METRICS_ENVIRONMENT }gcs-skills gcs-skills/1.0 (skill:google-cloud-storage-basics)" \
gcloud storage buckets create gs://my-bucket --location=us-central1
Using the JSON API:
curl -X POST -H "Authorization: Bearer $(gcloud auth print-access-token)" \
-H "User-Agent: gcs-skills/1.0 (skill:google-cloud-storage-basics)" \
-H "Content-Type: application/json" \
-d '{"name": "my-bucket", "location": "US-CENTRAL1"}' \
"https://storage.googleapis.com/storage/v1/b?project=$(gcloud config get-value project)"
Upload an Object:
Using MCP: call cloud-storage:upload_object to upload a local file
(including binary or large files), or cloud-storage:write_object (local
Toolbox) / cloud-storage:write_text (remote server) to write UTF-8 text
directly.
Using the gcloud CLI:
CLOUDSDK_METRICS_ENVIRONMENT="${CLOUDSDK_METRICS_ENVIRONMENT:+$CLOUDSDK_METRICS_ENVIRONMENT }gcs-skills gcs-skills/1.0 (skill:google-cloud-storage-basics)" \
gcloud storage cp ./my-file.txt gs://my-bucket
Using the JSON API:
curl -X POST -H "Authorization: Bearer $(gcloud auth print-access-token)" \
-H "User-Agent: gcs-skills/1.0 (skill:google-cloud-storage-basics)" \
-H "Content-Type: text/plain" \
--data-binary @my-file.txt \
"https://storage.googleapis.com/upload/storage/v1/b/my-bucket/o?uploadType=media&name=my-file.txt"
Download or Read an Object:
Using MCP: call cloud-storage:read_object to read UTF-8 text content (up
to 8 MiB), or cloud-storage:download_object (local Toolbox) to save an
object, including binary or larger files, to the local filesystem.
Using the gcloud CLI:
CLOUDSDK_METRICS_ENVIRONMENT="${CLOUDSDK_METRICS_ENVIRONMENT:+$CLOUDSDK_METRICS_ENVIRONMENT }gcs-skills gcs-skills/1.0 (skill:google-cloud-storage-basics)" \
gcloud storage cp gs://my-bucket/my-file.txt .
Using the JSON API:
curl -X GET -H "Authorization: Bearer $(gcloud auth print-access-token)" \
-H "User-Agent: gcs-skills/1.0 (skill:google-cloud-storage-basics)" \
"https://storage.googleapis.com/storage/v1/b/my-bucket/o/my-file.txt?alt=media"
Core Concepts: Buckets, objects, folders, prefixes, bucket location types, and storage classes.
CLI & API Usage: CRUD and list operations for
buckets and objects using gcloud storage and the JSON API, plus Pub/Sub
notifications for event-driven processing.
Client Libraries: Using Google Cloud client libraries for Python, Java, Node.js, and Go, with pointers to all other supported languages.
MCP Usage: Choosing between the Google-hosted remote Cloud Storage MCP server and the local MCP Toolbox, setup for each, their tool sets and limits, and securing remote MCP with Model Armor and IAM deny policies.
Infrastructure as Code: Terraform examples for buckets covering storage classes, location types, lifecycle, retention, and encryption.
Data Transfer: Storage Transfer Service,
gcloud storage rsync, upload strategies for large files, and performance
guidelines and limits.
Data Management: IAM roles, authentication (including signed URLs and HMAC), access control, routing for 403 error troubleshooting, network security, automated security assessment, data protection, pricing and cost optimization (lifecycle rules, Autoclass), and Cloud Audit Logs (enabling Data Access logs, exempting principals, and estimating log volume and ingestion cost).
Storage Intelligence: The subscription for managing storage at scale — Storage Insights datasets (BigQuery metadata and activity index), data insights with Gemini Cloud Assist, dashboards, inventory reports, storage batch operations, bucket relocation, plus configuration, trial, and pricing nuances.
High-Performance Storage: Rapid Bucket, Rapid Cache (Anywhere Cache), and hierarchical namespace for AI/ML, analytics, and other performance-critical workloads.
Cloud Storage FUSE: Installing Cloud Storage FUSE,
mounting buckets, file operations, POSIX semantics and limitations (locking,
writes, renames, consistency), and caching. For advanced tuning, deployment,
and diagnosis, route to the google-cloud-storage-fuse skill.
references/cli-api-usage.md (opens in a new tab)references/client-library-usage.md (opens in a new tab)references/core-concepts.md (opens in a new tab)references/data-management.md (opens in a new tab)references/data-transfer.md (opens in a new tab)references/gcsfuse.md (opens in a new tab)references/high-performance-storage.md (opens in a new tab)references/iac-usage.md (opens in a new tab)references/mcp-usage.md (opens in a new tab)references/storage-intelligence.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
gcs, object-storage, bucket-management, google-cloud, cloud-storage
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-bucket-architectCreates Cloud Storage (Google Cloud Storage, or 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, cost-effective configuration (location, storage class, uniform bucket-level access, public access prevention, soft delete, lifecycle) before creating it. Use whenever a user wants to create, make, set up, provision, or spin up a bucket, or needs object storage for an app, service, pipeline, or dataset — even a "simple" or "default" bucket, or when bucket creation is one step in a larger workflow. Outputs or executes the creation via gcloud, the JSON/REST API, Terraform, or SDK client libraries (C++, Java, Python, Go). Don't use for anything other than creating new buckets — for uploads, downloads, access changes, or reconfiguring existing buckets, use google-cloud-storage-basics./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