google-cloud-storage-diagnostic
하는 일
이 스킬은 버킷이나 객체를 읽거나 쓸 수 없는 이유를 찾습니다. 권한 오류를 보고 원인을 알아야 하는 개발자와 관리자를 위한 스킬입니다.
사용하는 경우
- ✓버킷이나 객체에서 403 Permission Denied 또는 Insufficient Permission 오류가 보일 때.
- ✓IAM 역할과 세분화된 접근 규칙 사이의 충돌을 이해해야 할 때.
- ✓명령을 실행하지 않고 접근 오류에 대한 설명만 듣고 싶을 때.
스킬 링크
https://github.com/google/skills/blob/main/skills/cloud/google-cloud-storage-diagnostic/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“내 앱이 Cloud Storage 버킷에서 파일을 읽을 때 403 오류가 납니다. 이유를 설명하고 무엇을 확인해야 하는지 알려 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
오류, 버킷의 IAM 바인딩, 접근 제어 설정을 검토하고 가능성 높은 원인을 설명합니다. 수정 방안은 승인받을 명령으로 제안하며, 스스로 변경을 실행하지 않습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
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
자주 묻는 질문
권한을 대신 고쳐 주나요?
아닙니다. 수정을 제안하고, 어떤 변경이든 실행하기 전에 승인을 요청합니다.
명령을 실행하지 않고 설명만 할 수 있나요?
네. 분석만 필요한 질문도 지원하며, 명령은 실행하지 않습니다.
왜 변경에 그렇게 신중한가요?
버킷 접근 변경은 데이터를 노출하거나 관리자를 잠글 수 있어, 각 명령에 별도의 승인이 필요합니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 22k
- 순위
- #10330
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
finding-google-skills
22k에이전트가 호스팅, 데이터베이스, 저장소, 로그인, AI 모델 제공처럼 설정 작업에 맞는 Google 가이드를 찾도록 돕습니다.
gcloud
22k에이전트가 Google Cloud gcloud 명령을 작성하고 확인하도록 돕습니다. 플래그를 추측하지 않도록 무엇이든 실행하기 전에 정확한 문법을 확인합니다.
google-cloud-recipe-auth
22k에이전트가 Google Cloud의 신원과 접근 권한을 안내합니다. 사람과 서비스가 어떻게 로그인하고 어떤 권한을 받는지 포함합니다.
google-cloud-recipe-onboarding
22k새 개발자가 Google Cloud에서 프로젝트 선택, 결제 연결, 첫 리소스 배포 같은 첫 단계를 밟도록 안내합니다.