一键导入
gcp-iam-troubleshooter
Advanced diagnostics playbook for complex GCP authorization errors, cross-project lookups, and token impersonations.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Advanced diagnostics playbook for complex GCP authorization errors, cross-project lookups, and token impersonations.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
This skill should be used when the user wants to "configure 3-legged OAuth for an ADK agent", "build a custom UI proxy handling ADK credentials", "intercept adk_request_credential", "implement agent identity auth manager", or "set up OAuth credentials:retrieve or credentials:finalize".
This skill should be used when the user wants to "build a frontend for an ADK agent", "connect a client to Vertex AI Reasoning Engine", "parse agent streaming responses", "integrate a browser client", "implement dynamic session creation on GCP", or needs client-side parsing and routing gotchas for GCP Agent Runtime. It compiles the exact schemas, parsing pathways, headers, and FastAPI proxy gotchas.
Migrates large estates of AWS Lambda functions (10–100+ Lambdas in monorepos) to Google Cloud Run. Provides fleet-level discovery, grouping strategy (1:1 vs. consolidation), dependency-graph-based migration wave sequencing, and a consolidated Migration Program Document. Designed to complement the aws-lambda-to-cloud-run-migration skill for per-function deep analysis.
Migrates AWS Lambda functions to Google Cloud Run. Analyzes AWS lock-ins (SNS, SQS, SDKs, IAM, Cold Starts), build/trigger mechanisms (API Gateway vs direct), and service integrations to provide a detailed migration report, containerization tips, and GCP service mapping.
Use when developing, reviewing, debugging, or explaining Apigee X API proxy configurations — proxy bundles, policies, flows, endpoints, shared flows, fault handling, and JavaScript callouts.
Use when documenting anything visually and didactically — explaining a system, a flow, a protocol, or code so a reader learns it. Covers flow/sequence/state diagrams, ASCII packet & byte walks, and annotated code explanation, plus a deterministic compile-to-validate step so diagrams actually render. Triggers: "diagram this", "add an architecture diagram", "make a visual explainer", "explain this code visually", "walk me through the request/flow", "packet walk", "step-by-step diagram", "teach / onboard with docs". (For data charts/plots use the `dataviz` skill instead.)
| name | gcp-iam-troubleshooter |
| description | Advanced diagnostics playbook for complex GCP authorization errors, cross-project lookups, and token impersonations. |
Use this skill when you encounter complex, nested, or cross-project authorization failures (HTTP 403 Permission Denied), token impersonation failures, or Service Account ActAs delegation issues.
Execute these commands to identify precisely which service account or developer identity is executing the commands:
# Print current active account and configured project
gcloud config list --format="json(core.account,core.project)"
Fetch the current IAM policy bindings for the project to verify if the executing account actually holds the required predefined permissions:
# Filter and print all roles bound to the active service account
gcloud projects get-iam-policy $(gcloud config get-value project) \
--flatten="bindings[].members" \
--filter="bindings.members:$(gcloud config get-value account)" \
--format="table(bindings.role)"
If the setup relies on local impersonation (running commands on behalf of another high-privilege service account), verify that your active identity holds the Token Creator role on the target account:
# List accounts you have permission to impersonate or act as
gcloud iam service-accounts get-iam-policy target-service-account@project.iam.gserviceaccount.com \
--filter="bindings.role:roles/iam.serviceAccountTokenCreator"
Construct a clear Markdown table of findings and propose specific, predefined role mappings. Never suggest wildcard owner or editor bindings.