google-cloud-storage-diagnostic
Qué hace
Esta skill averigua por qué no puedes leer ni escribir en un bucket u objeto de Cloud Storage. Es para desarrolladores y administradores que ven errores de permisos y necesitan saber la causa.
Cuándo usarla
- ✓Cuando ves un error 403 Permission Denied o Insufficient Permission en un bucket u objeto.
- ✓Cuando necesitas entender los conflictos entre los roles de IAM y las reglas de acceso detalladas.
- ✓Cuando quieres una explicación de un error de acceso sin ejecutar ningún comando.
Link de la skill
https://github.com/google/skills/blob/main/skills/cloud/google-cloud-storage-diagnostic/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Mi app recibe un error 403 cuando lee un archivo de mi bucket de Cloud Storage. Explica por qué y dime qué debo revisar.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
Revisa el error, las vinculaciones de IAM del bucket y sus ajustes de control de acceso, y explica la causa probable. Propone cualquier corrección como un comando para que lo apruebes, y nunca ejecuta cambios por su cuenta.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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
Preguntas frecuentes
¿Arregla los permisos por mí?
No. Propone correcciones y pide tu aprobación antes de ejecutar cualquier cambio.
¿Puede solo explicar sin ejecutar comandos?
Sí. Las preguntas de solo análisis se responden sin ejecutar comandos.
¿Por qué es tan cuidadosa con los cambios?
Los cambios de acceso a un bucket pueden exponer datos o dejar fuera a los administradores, así que cada comando necesita una aprobación aparte.
Detalles
Descripción original del autor
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
Popularidad
- Estrellas en GitHub
- 22 mil
- Posición en el ranking
- #10330
- Licencia
- Apache-2.0
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
finding-google-skills
22 milAyuda a tu agente a encontrar las guías de Google adecuadas para una tarea de configuración, como alojamiento, bases de datos, almacenamiento, inicio de sesión o servicio de modelos de IA.
gcloud
22 milAyuda a tu agente a escribir y comprobar comandos gcloud de Google Cloud, consultando la sintaxis exacta antes de ejecutar nada para no adivinar los parámetros.
google-cloud-recipe-auth
22 milGuía a tu agente por la identidad y el acceso en Google Cloud, incluido cómo inician sesión las personas y los servicios y qué permisos reciben.
google-cloud-recipe-onboarding
22 milGuía a un desarrollador nuevo en sus primeros pasos en Google Cloud, incluida la elección de un proyecto, la vinculación de la facturación y el despliegue de un primer recurso.
Skills parecidas
reverse-engineer-anything
422 milAyuda a tu agente a revisar apps y paquetes ya publicados para explicar sus funciones, comparar versiones o guiar una reconstrucción, usando la herramienta REA.
1password
394 milAyuda a tu agente a instalar la CLI de 1Password, iniciar sesión y leer o inyectar secretos sin imprimir sus valores en el chat.
healthcheck
394 milAyuda a tu agente a auditar el ordenador o servidor que ejecuta OpenClaw en busca de riesgos de seguridad, como SSH, cortafuegos, actualizaciones y copias de seguridad, y después sugerir arreglos seguros.