google-cloud-storage-diagnostic
Skill này làm gì
Skill này tìm vì sao bạn không đọc hoặc ghi được bucket hoặc object Cloud Storage. Skill dành cho lập trình viên và quản trị viên thấy lỗi quyền và cần biết nguyên nhân.
Khi nào nên dùng
- ✓Khi bạn thấy lỗi 403 Permission Denied hoặc Insufficient Permission trên một bucket hoặc object.
- ✓Khi bạn cần hiểu xung đột giữa vai trò IAM và quy tắc truy cập chi tiết (fine-grained).
- ✓Khi bạn muốn giải thích một lỗi truy cập mà không chạy lệnh nào.
Liên kết skill
https://github.com/google/skills/blob/main/skills/cloud/google-cloud-storage-diagnostic/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
“Ứng dụng của tôi nhận lỗi 403 khi đọc một file từ bucket Cloud Storage. Giải thích vì sao và cho tôi biết cần kiểm tra gì.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill xem xét lỗi, các binding IAM và thiết lập kiểm soát truy cập của bucket, rồi giải thích nguyên nhân có khả năng. Skill đề xuất sửa dưới dạng lệnh để bạn phê duyệt và không tự chạy thay đổi nào.
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 Diagnostic
[!CAUTION]
CRITICAL SAFETY MANDATE: NO AUTO-EXECUTION OF REMEDIATION COMMANDS
NEVER execute any state-modifying, configuration-changing, or remediation commands (such as
gcloud storage buckets add-iam-policy-binding,gcloud storage buckets update, ACL modifications, or object/bucket updates) autonomously or without prior user approval.RATIONALE & BLAST RADIUS: Cloud Storage security configurations (IAM policy bindings, bucket IP filters, UBLA settings, retention policies) carry an extremely high blast radius. Unapproved modifications can accidentally grant unauthorized public access, leak sensitive data, lock out administrative users, or breach organizational compliance boundaries.
Before executing ANY command that modifies state or configuration: 1. You MUST print the exact command and explain the proposed configuration change to the user. 2. Even when proposing or recommending a remediation command, you MUST explicitly ask the user for confirmation (for example, "Do you approve executing this command? [Y/N]"). 3. You MUST wait for explicit user approval before executing any remediation command. 4. User approval applies ONLY to that single command; EVERY subsequent command execution requires separate explicit user confirmation.
You are a Cloud Storage on Google Cloud diagnostic and troubleshooting agent specialized in systematically identifying root causes for access denials and configuration conflicts, and proposing actionable remediation commands.
Use Diagnostic Resources
When diagnosing Cloud Storage issues, identify the problem type and consult the relevant diagnostic resource guide before proceeding:
| Problem Area | Description | Diagnostic Guide |
|---|---|---|
| 403 Permission Denied | Principal (User or Service Account) receives a 403 Permission Denied error when reading, writing, listing, or deleting buckets/objects. |
references/403_troubleshooting.md |
Apply Attribution Tags
For Google Cloud CLI (gcloud CLI) installation, see the
Google Cloud CLI Installation Guide.
CRITICAL RULE: You MUST tag EVERY Cloud Storage command you run
(run_command) or suggest to the user.
gcloud commands: Prefix every
gcloudinvocation, 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-diagnostic)" \ gcloud <command> [flags]Do not use
gcloud config setfor this: it would persist beyond the current task and mislabel unrelated usage.curl commands: For direct HTTP calls (such as
curl), you MUST pass the explicit-H "User-Agent: ..."header in the shell command syntax exactly like this:curl -H "User-Agent: gcs-skills/1.0 (skill:google-cloud-storage-diagnostic)" ...For client libraries, Terraform, and Cloud Storage FUSE, use the user-agent options shown in the corresponding references.
Follow the Diagnostic Workflow
Whenever a user requests assistance diagnosing a Cloud Storage issue:
Step 1: Clarify Context and Scope
- Clarify the exact principal (
user:{email}orserviceAccount:{email}) experiencing the issue. - Clarify the target resource (
gs://{bucket_name}orgs://{bucket_name}/{object_path}). - Identify the attempted operation (such as read object, write object, list bucket contents, or delete object).
- Identify the authentication mechanism (such as Signed URL, Cookieauth, OAuth token, or I
Câu hỏi thường gặp
Skill có sửa quyền cho tôi không?
Không. Skill đề xuất cách sửa và yêu cầu bạn phê duyệt trước khi chạy thay đổi.
Skill có thể chỉ giải thích mà không chạy lệnh không?
Có. Các câu hỏi chỉ phân tích được hỗ trợ và không chạy lệnh nào.
Vì sao skill thận trọng với thay đổi như vậy?
Thay đổi quyền truy cập bucket có thể làm lộ dữ liệu hoặc khóa quản trị viên, nên mỗi lệnh cần được phê duyệt riêng.
Chi tiết
Mô tả gốc của tác giả
Troubleshoots and diagnoses Cloud Storage on Google Cloud (also known colloquially as GCS) access and permission denials (403 Permission Denied or Insufficient Permission) 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
repo: google/skills
Độ phổ biến
- Sao GitHub
- 22k
- Vị trí xếp hạng
- #10330
- 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ự
reverse-engineer-anything
422kGiúp agent của bạn xem bên trong các app và package đã phát hành để giải thích tính năng, so sánh phiên bản hoặc hướng dẫn dựng lại bằng công cụ REA.
1password
394kGiúp agent của bạn cài đặt CLI của 1Password, đăng nhập, và đọc hoặc đưa thông tin bí mật vào mà không in giá trị ra cuộc trò chuyện.
healthcheck
394kGiúp agent của bạn rà soát bảo mật máy tính hoặc máy chủ đang chạy OpenClaw, như SSH, tường lửa, cập nhật và sao lưu, rồi đề xuất cách sửa an toàn.