google-cloud-storage-basics
Skill này làm gì
Skill này giải thích và chạy các tác vụ hằng ngày trên Google Cloud Storage, nơi lưu file dưới dạng object trong bucket. Skill dành cho những người cần lưu hoặc chia sẻ file trên Google Cloud.
Khi nào nên dùng
- ✓Khi bạn muốn tạo hoặc cấu hình một bucket Cloud Storage.
- ✓Khi bạn cần tải lên, tải xuống, truyền phát hoặc chuyển file đến và từ Cloud Storage.
- ✓Khi bạn muốn tạo URL có chữ ký hoặc kiểm soát ai có thể truy cập các object đã lưu.
Liên kết skill
https://github.com/google/skills/blob/main/skills/cloud/google-cloud-storage-basics/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tạo một bucket Cloud Storage cho ảnh website của tôi, tải lên một thư mục ảnh, và tạo một liên kết hết hạn sau một ngày.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill dùng kết nối công cụ Cloud Storage khi có sẵn, nếu không thì chạy các lệnh gcloud storage. Skill bao gồm bucket, object, thư mục, liên kết có chữ ký và cài đặt truy cập.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Skill có dùng kết nối đặc biệt không?
Nếu có thiết lập kết nối công cụ Cloud Storage, skill dùng nó trước vì nhanh hơn cho agent.
Tôi có thể đặt ai được xem file của mình không?
Có. Skill bao gồm IAM, ACL và các thiết lập ngăn truy cập công khai (public access prevention).
Skill có xử lý file quá lớn cho một lần tải lên không?
Có. Skill bao gồm truyền phát và chuyển dữ liệu, nên việc di chuyển dữ liệu lớn cũng nằm trong phạm vi.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 22k
- Vị trí xếp hạng
- #10328
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
finding-google-skills
22kGiúp agent của bạn tìm hướng dẫn Google phù hợp cho việc thiết lập, như hosting, cơ sở dữ liệu, lưu trữ, đăng nhập hoặc phục vụ mô hình AI.
gcloud
22kGiúp agent của bạn viết và kiểm tra các lệnh gcloud của Google Cloud, tra cứu cú pháp chính xác trước khi chạy bất cứ thứ gì để không đoán các flag.
google-cloud-recipe-auth
22kHướng dẫn agent của bạn qua quản lý danh tính và quyền truy cập của Google Cloud, gồm cách con người và dịch vụ đăng nhập và những quyền họ nhận được.
google-cloud-recipe-onboarding
22kHướng dẫn một lập trình viên mới qua các bước đầu tiên trên Google Cloud, gồm chọn dự án, liên kết thanh toán và triển khai tài nguyên đầu tiên.
Skill tương tự
api-connector-builder
280kGiúp agent của bạn xây dựng kết nối API mới theo đúng mẫu đã có, dùng khi bạn cần thêm một tích hợp mà không tạo cách làm mới.
api-design
280kGiúp agent của bạn thiết kế REST API theo các thực hành tốt nhất, hữu ích để định nghĩa cách API giao tiếp, hiển thị lỗi và tổ chức dữ liệu.
backend-patterns
280kGiúp agent của bạn với các mẫu kiến trúc phía máy chủ và tối ưu cơ sở dữ liệu, hữu ích khi xây dựng hoặc rà soát code chạy trên máy chủ.