google-cloud-storage-basics
What it does
This skill explains and runs everyday tasks on Google Cloud Storage, which keeps files as objects in buckets. It is for people who need to store or share files on Google Cloud.
When to use it
- ✓When you want to create or configure a Cloud Storage bucket.
- ✓When you need to upload, download, stream or transfer files to or from Cloud Storage.
- ✓When you want to create signed URLs or control who can access your stored objects.
Skill link
https://github.com/google/skills/blob/main/skills/cloud/google-cloud-storage-basics/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Create a Cloud Storage bucket for my website images, upload a folder of photos, and make a link that expires in a day.”
5 new skills a week. 1 minute to read.
How it works
It uses a Cloud Storage tool connection when one is available, and otherwise runs gcloud storage commands. It covers buckets, objects, folders, signed links and access settings.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Cloud Storage Basics
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.
Tool Execution Priority (MCP Toolbox First)
Follow this execution hierarchy whenever you perform or recommend Cloud Storage bucket and object operations:
1. Priority 1 — Use cloud-storage MCP Tools When Connected
Before 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_objectis 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, usedownload_object.upload_objecthandles binary files and files larger than 8 MiB.- For production or workload-specific buckets, route to
google-cloud-storage-bucket-architectbefore callingcreate_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).
2. Priority 2 — Fall Back to gcloud storage / JSON API
Immediately use gcloud storage (with the required attribution prefix below) or
the JSON API when:
- No
cloud-storageMCP server is connected in your environment, or - The operation requires features outside the 14 MCP tools — such as
configuring bucket lifecycle rules, soft delete, Uniform Bucket-Level Access
(UBLA), Public Access Prevention (PAP), CMEK encryption, retention policies,
CORS,
gcloud 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).
3. Gentle Recommendation When MCP Is Not Connected
When no cloud-storage MCP server is available in your environment (for example
when the skill was instal
FAQ
Does it use a special connection?
If a Cloud Storage tool connection is set up, it uses that first, since it is faster for agents.
Can it set who can see my files?
Yes. It covers IAM, ACLs and public access prevention settings.
Does it handle files that are too big for one upload?
It covers streaming and transfers, so large data movement is included.
Details
Original description by the author
Stores, 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, trigg
repo: google/skills
Popularity
- GitHub stars
- 22k
- Ranking position
- #10328
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
finding-google-skills
22kHelps your agent find the right Google guides for a setup task, such as hosting, databases, storage, sign-in or AI model serving.
gcloud
22kHelps your agent write and check Google Cloud gcloud commands, looking up exact syntax before it runs anything so it does not guess flags.
google-cloud-recipe-auth
22kGuides your agent through Google Cloud identity and access, including how people and services sign in and which permissions they get.
google-cloud-recipe-onboarding
22kWalks a new developer through first steps on Google Cloud, including choosing a project, linking billing, and deploying a first resource.
Similar skills
api-connector-builder
280kHas your agent build new API connections following the existing pattern. Use when you need to add one more integration without creating a new way of doing things.
api-design
280kHelps your agent design REST APIs following best practices. It's useful for defining how APIs communicate, how errors are shown, and how to organize data.
backend-patterns
280kHelps your agent with server-side architecture patterns and database optimization. It's useful for building or reviewing code that runs on the server.