Langsung ke konten
Skillpedia
Keamanan22k Β· #10330

google-cloud-storage-diagnostic

Fungsinya

Skill ini mencari tahu mengapa Anda tidak dapat membaca atau menulis bucket atau objek Cloud Storage. Skill ini ditujukan untuk developer dan admin yang melihat error izin dan perlu mengetahui penyebabnya.

Kapan dipakai

  • βœ“Saat Anda melihat error 403 Permission Denied atau Insufficient Permission pada bucket atau objek.
  • βœ“Saat Anda perlu memahami konflik antara peran IAM dan aturan akses berbutir halus.
  • βœ“Saat Anda menginginkan penjelasan tentang error akses tanpa menjalankan perintah apa pun.

Link skill

https://github.com/google/skills/blob/main/skills/cloud/google-cloud-storage-diagnostic/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/google/skills/blob/main/skills/cloud/google-cloud-storage-diagnostic/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œAplikasi saya mendapat error 403 saat membaca file dari bucket Cloud Storage saya. Jelaskan mengapa dan beri tahu saya apa yang harus diperiksa.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill ini meninjau error, IAM binding bucket, dan pengaturan kontrol akses, lalu menjelaskan kemungkinan penyebabnya. Skill ini mengusulkan perbaikan sebagai perintah yang harus Anda setujui, dan tidak pernah menjalankan perubahan sendiri.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

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 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-diagnostic)" \
        gcloud <command> [flags]
    

    Do not use gcloud config set for 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} or serviceAccount:{email}) experiencing the issue.
  • Clarify the target resource (gs://{bucket_name} or gs://{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
Pertanyaan umum

Apakah skill ini memperbaiki izin untuk saya?

Tidak. Skill ini hanya mengusulkan perbaikan dan meminta persetujuan Anda sebelum menjalankan perubahan apa pun.

Bisakah hanya memberikan penjelasan tanpa menjalankan perintah?

Bisa. Pertanyaan yang hanya bersifat analisis didukung tanpa menjalankan perintah apa pun.

Mengapa sangat berhati-hati terhadap perubahan?

Perubahan akses bucket dapat membuka data atau mengunci admin, sehingga setiap perintah memerlukan persetujuan terpisah.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
22k
Peringkat
#10330
Lisensi
Apache-2.0
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa