google-cloud-storage-basics
This skill enables agents to manage Google Cloud Storage buckets and objects using the gcloud CLI, JSON API, client libraries, Terraform, and MCP servers.
Identity proven by GitHub's verified organisation badge (flutter, google)
- Agents
- Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode, claude.ai and API
- License
- Apache-2.0 (permissive)
- Pin
- 0dd8034pinned Oct 9, 2026
- Context cost
- about 2,500 tokenswhen the skill loads
- GitHub stars
- 215on googlecloudplatform/data-agent-kit-plugin
- Scripts
- None found
What it does
“Stores, retrieves, and manages data as objects in Cloud Storage (Google Cloud Storage, or GCS) buckets. Use when you need to interact with Cloud Storage — 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 and tiering (Standard, Nearline, Coldline, Archive), manage cost and lifecycle, protect data (versioning, encryption/CMEK, retention and Bucket Lock, object holds, soft delete), host static websites, trigger Pub/Sub notifications on object changes, mount buckets as a file system (gcsfuse), or optimize storage performance at any scale. Covers the gcloud storage / gsutil CLI, JSON and XML APIs, client libraries, Terraform, and Cloud Storage MCP servers. Don't use for block storage (Persistent Disk), data warehousing/analytics (BigQuery), or databases (Cloud SQL, Spanner, Bigtable, Firestore).”
Generated summary from the skill's own text
This skill enables agents to manage Google Cloud Storage buckets and objects using the gcloud CLI, JSON API, client libraries, Terraform, and MCP servers. It covers uploading and downloading data, configuring buckets with storage classes and access controls, managing object lifecycle and retention, mounting buckets as file systems with gcsfuse, and generating signed URLs for sharing. The skill routes specialized tasks like production bucket design, advanced fuse tuning, and security diagnostics to dedicated skills.
When to use it
- Uploading, downloading, or streaming objects in Cloud Storage buckets
- Creating buckets and configuring storage classes, lifecycle rules, or encryption
- Managing access control with IAM roles, ACLs, or signed URLs
- Organizing data with prefixes, generating Pub/Sub notifications on changes
When not to
- Block storage needs like Persistent Disk instead of object storage
- Data warehousing or analytics tasks better suited to BigQuery
- Designing production buckets for sensitive or large-scale workloads
Install
These commands install from the publisher's repository and need no account.
skills CLI
npx skills add googlecloudplatform/data-agent-kit-plugin --skill google-cloud-storage-basicsInstalls from the repository's default branch, which may have changed since the commit we checked.
GitHub CLI 2.90 or later
gh skill install googlecloudplatform/data-agent-kit-plugin google-cloud-storage-basics@0dd8034c50d6bce0290b99190cd44b06fcbec2c1Installs the commit we checked (0dd8034).
Copy by hand
Download the folder at 0dd8034 and put it in .claude/skills/google-cloud-storage-basics for Claude Code and in .agents/skills/google-cloud-storage-basics for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode.
Claude Code plugin
/plugin install chrome-devtools-mcp@claude-plugins-officialThe publisher's plugin in Claude's official marketplace. It may hold more than this skill, and we have not pinned it.
Claude Code plugin
/plugin install alloydb-omni@claude-plugins-officialThe publisher's plugin in Claude's official marketplace. It may hold more than this skill, and we have not pinned it.
Claude Code plugin
/plugin install bigquery-data-analytics@claude-plugins-officialThe publisher's plugin in Claude's official marketplace. It may hold more than this skill, and we have not pinned it.
Copy for your agent
A prompt for any coding agent. It installs this skill from GitHub at the pinned commit, copies the files as they are, and runs nothing unless you ask.
Prompt
Install the agent skill "google-cloud-storage-basics" by Google. Source, pinned to commit 0dd8034c50d6bce0290b99190cd44b06fcbec2c1: https://github.com/googlecloudplatform/data-agent-kit-plugin/tree/0dd8034c50d6bce0290b99190cd44b06fcbec2c1/skills/google-cloud-storage-basics 1. Download that folder at exactly this commit. Do not use the default branch. 2. Copy every file unchanged, keeping the folder structure, into .claude/skills/google-cloud-storage-basics/ for Claude Code and .agents/skills/google-cloud-storage-basics/ for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode. Create the folders if they do not exist. 3. Do not edit the files, and do not run any script in the folder unless I ask you to. 4. When you are done, list the files you copied and where you put them. Listing and checks: https://www.agentnative.dev/skills/google/google-cloud-storage-basics
SKILL.md at the pin
---
name: google-cloud-storage-basics
description: >-
Stores, retrieves, and manages data as objects in Cloud Storage (Google
Cloud Storage, or GCS) buckets. Use when you need to interact with Cloud
Storage — 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 and tiering
(Standard, Nearline, Coldline, Archive), manage cost and lifecycle, protect
data (versioning, encryption/CMEK, retention and Bucket Lock, object holds,
soft delete), host static websites, trigger Pub/Sub notifications on object
changes, mount buckets as a file system (gcsfuse), or optimize storage
performance at any scale. Covers the gcloud storage / gsutil CLI, JSON and
XML APIs, client libraries, Terraform, and Cloud Storage MCP servers. Don't
use for block storage (Persistent Disk), data warehousing/analytics
(BigQuery), or databases (Cloud SQL, Spanner, Bigtable, Firestore).
metadata:
version: v2
publisher: google
tags:
- gcs
- storage
- cloud-storage
- buckets
- objects
category: storage
support_tier: primary
license: Apache-2.0
---
# Google Cloud Storage Basics
Google Cloud Storage (GCS) 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. GCS serves workloads ranging from website content
and backups to data lakes and high-throughput AI/ML training.
## Attribution
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:
```bash
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 GCSFuse, use the user-agent options
shown in the corresponding references.
## Routing to Specialized GCS Skills
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
[GCSFuse reference](references/gcsfuse.md) 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](references/data-management.md)).
If the matching skill is not installed, do not improvise. Provide the user with
this exact command to install it (substituting the skill name), and use the
skill after installation. 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; wait
until the skill is installed.
```bash
npx skills add gemini-cli-extensions/google-cloud-storage --skill <skill-name>
```
## Quick Start
If a Cloud Storage MCP server is connected, prefer its structured tools (such as
`create_bucket`, `list_objects`, `read_object`, and `upload_object`) over the
CLI and API commands below — see [MCP Usage](references/mcp-usage.md). Fall back
to `gcloud storage` and the JSON API when no MCP server is available.
1. **Enable the Cloud Storage API:**
```bash
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
```
2. **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 GCS Skills](#routing-to-specialized-gcs-skills)).
The commands below create a basic default bucket.
Using the gcloud CLI:
```bash
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:
```bash
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)"
```
3. **Upload an Object:**
Using the gcloud CLI:
```bash
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:
```bash
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"
```
4. **Download an Object:**
Using the gcloud CLI:
```bash
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:
```bash
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"
```
## Reference Directory
- [Core Concepts](references/core-concepts.md): Buckets, objects, folders,
prefixes, bucket location types, and storage classes.
- [CLI & API Usage](references/cli-api-usage.md): 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](references/client-library-usage.md): Using Google Cloud
client libraries for Python, Java, Node.js, and Go, with pointers to all
other supported languages.
- [MCP Usage](references/mcp-usage.md): 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](references/iac-usage.md): Terraform examples for
buckets covering storage classes, location types, lifecycle, retention, and
encryption.
- [Data Transfer](references/data-transfer.md): Storage Transfer Service,
`gcloud storage rsync`, upload strategies for large files, and performance
guidelines and limits.
- [Data Management](references/data-management.md): IAM roles, authentication
(including signed URLs and HMAC), access control, routing for 403 error
troubleshooting, network security, automated security assessment, data
protection, and pricing and cost optimization (lifecycle rules, Autoclass).
- [Storage Intelligence](references/storage-intelligence.md): 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](references/high-performance-storage.md): Rapid
Bucket, Rapid Cache (Anywhere Cache), and hierarchical namespace for AI/ML,
analytics, and other performance-critical workloads.
- [GCSFuse](references/gcsfuse.md): 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.
From googlecloudplatform/data-agent-kit-plugin at 0dd8034, shown as plain text under its license: Apache-2.0 (permissive). The license text is in skills/google-cloud-storage-basics/SKILL.md.
View SKILL.md on GitHub at 0dd8034Files
- SKILL.md11 KB · 78e0c1dc6cd0
- references/
- cli-api-usage.md7.9 KB · 44931180b044
- client-library-usage.md4.9 KB · e5d1ee2d53e0
- core-concepts.md7.7 KB · 0dbb6dd20976
- data-management.md22 KB · ce7060043998
- data-transfer.md12 KB · bac342c77382
- gcsfuse.md22 KB · 3d2e22eced32
- high-performance-storage.md11 KB · 4eb42b8d9375
- iac-usage.md9.7 KB · 2a8661301a7c
- mcp-usage.md12 KB · a7791a7a6982
- storage-intelligence.md16 KB · 51f79102548d
11 files, 137 KB in total. Each file has a sha256 in the pin's manifest; the first 12 characters are shown.
Skill folder on GitHub at 0dd8034More from Google
skill-creator
This skill guides agents through creating new skills that extend Gemini CLI with specialized knowledge, workflows, and tool integrations.
Contains scripts
Gemini CLI · about 5K tokens · pinned 6 days ago
chrome-devtools-cli
This skill enables agents to automate browser interactions and inspect web pages using Chrome DevTools via command-line interface.
Claude Code, Codex, Cursor +4 · about 2.9K tokens · pinned 6 days ago
cloud-run-basics
Deploys and manages Google Cloud Run services, jobs, and worker pools for running containerized applications or source code.
Claude Code, Codex, Cursor +4 · about 3.9K tokens · pinned 6 days ago
retail-virtual-tryon
Creates virtual try-on agents on Google Cloud using Gemini image models and Veo video generation, supporting static image try-ons and catwalk animations.
Contains scripts
Claude Code, Codex, Cursor +3 · about 3.3K tokens · pinned 6 days ago
site-md
This skill analyzes project briefs and generates a .stitch/SITE.md constitution file that documents the project's identity, visual direction, architecture…
Claude Code, Codex, Cursor +4 · about 730 tokens · pinned 6 days ago
stitch::code-to-design
This skill converts existing frontend code (React, Vue, Angular, etc.) into a Stitch Design by extracting HTML, analyzing design systems, and uploading both…
Claude Code, Codex, Cursor +4 · about 760 tokens · pinned 6 days ago
Related in Cloud and DevOps
azure-to-aws
This skill guides agents through migrating Azure workloads to AWS across six phases: discovering Azure resources from Terraform, live CLI, app code, and…
by Amazon (AWS)Official publisher
Contains scripts
Claude Code, Codex, Cursor +3 · about 4.3K tokens · pinned 6 days ago
heroku-to-aws
This skill guides migration of applications and databases from Heroku to AWS services like Elastic Beanstalk, RDS, ElastiCache, and MSK.
by Amazon (AWS)Official publisher
Contains scripts
Claude Code, Codex, Cursor +3 · about 7K tokens · pinned 6 days ago
heroku-to-aws
The skill guides users through a 6-phase structured process to migrate Heroku workloads to AWS services.
by Amazon (AWS)Official publisher
Contains scripts
Claude Code, Codex, Cursor +3 · about 6.5K tokens · pinned 6 days ago
heroku-to-aws
This skill guides teams through migrating workloads from Heroku to AWS in a structured 6-phase process: discovering Heroku resources via authenticated CLI and…
by Amazon (AWS)Official publisher
Contains scripts
Claude Code, Codex, Cursor +3 · about 5.7K tokens · pinned 6 days ago
gcp-to-aws
Migrates workloads from Google Cloud Platform to AWS, including AI and agentic applications from any provider.
by Amazon (AWS)Official publisher
Contains scripts
Claude Code, Codex, Cursor +3 · about 14.3K tokens · pinned 6 days ago
enforcing-resource-attribution
Enforces resource attribution labels on bq and gcloud commands to track resources created by AI agents.
by GoogleOfficial publisher
Claude Code, Codex, Cursor +4 · about 960 tokens · pinned 6 days ago
Open roles at Google
No open roles at Google on the Agent Native jobs board right now.
Browse the jobs board