[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69931J2PCGJ8EDJ79BQPA76":3,"skill-same:01M69931J2PCGJ8EDJ79BQPA76":110},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":53,"linkOnly":54,"markdownContent":55,"markdownBody":56,"frontMatter":57,"refName":61,"commitSha":62,"skillDirectory":63,"forksCount":64,"repositoryHtmlUrl":65,"repositoryHomepageUrl":17,"ownerHtmlUrl":66,"ownerBlogUrl":67,"ownerDescription":68,"updatedAt":69,"install":70,"resources":83},"01M69931J2PCGJ8EDJ79BQPA76","gke-ai-troubleshooting-tpu-mxla-hang","GKE TPU 多切片训练挂起诊断","Diagnose GKE Cloud TPU multi-slice training hangs (Megascale `HANG_DETECTED` logs and hang monitored events) using the ML Diagnostics `Megascale XLA (MXLA) Hang Analyzer` (`gcloud alpha mldiagnostics monitored-events`) and 1-minute Cloud Monitoring multi-slice latency metrics (`kubernetes.io\u002Fcontainer\u002Fmultislice\u002F*`). Distinguishes XLA compiler\u002FHLO launch divergence and host data-input stalls from TPU chip, SparseCore, ICI, or network fabric faults. Use when multi-slice TPU training jobs freeze without progressing steps, emit `HANG_DETECTED`, or stall in collective operations. Don't use for gradual step-time throughput drops without hangs (use gke-ai-troubleshooting-tpu-performance-degradation) or pod preemption\u002Feviction restarts (use gke-ai-troubleshooting-jobset-interruption).","使用 ML Diagnostics 的 `Megascale XLA (MXLA) Hang Analyzer`（`gcloud alpha mldiagnostics monitored-events`）和 1 分钟粒度 Cloud Monitoring 多切片延迟指标（`kubernetes.io\u002Fcontainer\u002Fmultislice\u002F*`），诊断 GKE Cloud TPU 多切片训练挂起（Megascale `HANG_DETECTED` 日志和挂起监控事件）。区分 XLA 编译器\u002FHLO 启动分歧和主机数据输入停顿与 TPU 芯片、SparseCore、ICI 或网络结构故障。适用于多切片 TPU 训练任务冻结且步数不再推进、发出 `HANG_DETECTED` 或卡在集合操作时。不适用于没有挂起的步时间\u002F吞吐量逐渐下降（使用 gke-ai-troubleshooting-tpu-performance-degradation）或 Pod 抢占\u002F驱逐重启（使用 gke-ai-troubleshooting-jobset-interruption）。","google\u002Fskills","google","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1342004?v=4","01M698VYEFDM0VJBZDYYJ2T83S","Google","01M698WR0H76ENHE587T9EJT89",24235,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgke-ai-troubleshooting-tpu-mxla-hang\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRSRYQ3M8N5063NNQPF2B1","调试与故障排查","SCENARIO","使用场景",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师","PROFESSION","适用职业",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],"gke ai troubleshooting tpu mxla hang","tpu","troubleshooting","gke","data","Training Jobs","Preemption","when","collective","input","io","host","time","gcloud","network","monitoring","logs","alpha","training","diagnostics","performance","kubernetes","2026-11-10 10:12:30",false,"---\nname: gke-ai-troubleshooting-tpu-mxla-hang\ndescription: >-\n  Diagnose GKE Cloud TPU multi-slice training hangs (Megascale `HANG_DETECTED`\n  logs and hang monitored events) using the ML Diagnostics `Megascale XLA (MXLA)\n  Hang Analyzer` (`gcloud alpha mldiagnostics monitored-events`) and 1-minute\n  Cloud Monitoring multi-slice latency metrics\n  (`kubernetes.io\u002Fcontainer\u002Fmultislice\u002F*`). Distinguishes XLA compiler\u002FHLO\n  launch divergence and host data-input stalls from TPU chip, SparseCore, ICI,\n  or network fabric faults. Use when multi-slice TPU training jobs freeze\n  without progressing steps, emit `HANG_DETECTED`, or stall in collective\n  operations. Don't use for gradual step-time throughput drops without hangs\n  (use gke-ai-troubleshooting-tpu-performance-degradation) or pod\n  preemption\u002Feviction restarts (use gke-ai-troubleshooting-jobset-interruption).\nmetadata:\n  version: \"1.0.1\"\n  category: AiAndMachineLearning\n---\n\n# Troubleshoot GKE TPU multi-slice hangs with the MXLA Hang Analyzer\n\nDiagnose Cloud TPU multi-slice training hangs on Google Kubernetes Engine (GKE)\nby correlating Megascale `HANG_DETECTED` logs and **ML Diagnostics Workload\nMonitoring** `Megascale XLA (MXLA) Hang Analyzer` reports with **1-minute\nmulti-slice latency metrics** (`kubernetes.io\u002Fcontainer\u002Fmultislice\u002F*`) and GKE\nnode topology labels.\n\n---\n\n## Attribution\n\n**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you\nMUST read [Usage Attribution](references\u002Fattribution.md). For commands executed\ndirectly in the terminal (never in generated scripts, Terraform, or user code),\nprefix `gcloud` with\n`CLOUDSDK_METRICS_REQUEST_ATTRIBUTION=\"agent-skills\u002F1.0 (skill:gke-ai-troubleshooting-tpu-mxla-hang)\"`\nand append `agent-skills\u002F1.0 (skill:gke-ai-troubleshooting-tpu-mxla-hang)` to `User-Agent` headers.\n\n## Prerequisites\n\n- **Tools**: Install the\n  [Google Cloud SDK](https:\u002F\u002Fcloud.google.com\u002Fsdk\u002Fdocs\u002Finstall) (`gcloud` with\n  `alpha` component for `gcloud alpha mldiagnostics`) and `kubectl`.\n- **Cloud Billing & Project Configuration**: Verify an active billing account is\n  linked (`gcloud billing projects describe {project_id}`), authenticate\n  (`gcloud auth login`), set the target project (`gcloud config set project\n  {project_id}`), and ensure `container.googleapis.com`,\n  `logging.googleapis.com`, `monitoring.googleapis.com`, and\n  `hypercomputecluster.googleapis.com` are enabled.\n- **Supported workloads and versions**: Google Cloud ML Diagnostics only\n  supports JAX on TPUs (see\n  [ML Diagnostics platform](https:\u002F\u002Fdocs.cloud.google.com\u002Ftpu\u002Fdocs\u002Fml-diagnostics\u002Foverview.md.txt)).\n  Workload Monitoring is enabled by default, supports the `jobset` and `job` GKE\n  job types, and is compatible with GKE versions `1.36.0-gke.4681000` and later\n  ([Configure GKE for ML Diagnostics](https:\u002F\u002Fdocs.cloud.google.com\u002Ftpu\u002Fdocs\u002Fml-diagnostics\u002Fgke.md.txt),\n  which also covers the cluster setup needed for on-demand profiling in Step 4\n  Path B). If a workload uses another framework (such as PyTorch) or another\n  custom resource type, `gcloud alpha mldiagnostics` won't list ML runs or\n  monitored events for it. The Megascale XLA hang analyzer and Megascale XLA\n  metrics require LibTPU `0.40.0` or later (see \"Get started\" in\n  [Workload monitoring with ML Diagnostics](https:\u002F\u002Fdocs.cloud.google.com\u002Ftpu\u002Fdocs\u002Fml-diagnostics\u002Fworkload-monitoring.md.txt)).\n- **Required IAM Roles**:\n  - Cluster Director Editor (`roles\u002Fhypercomputecluster.editor`), the role\n    listed in the \"IAM permissions\" section of\n    [ML Diagnostics platform](https:\u002F\u002Fdocs.cloud.google.com\u002Ftpu\u002Fdocs\u002Fml-diagnostics\u002Foverview.md.txt),\n    for the ML Diagnostics CLI and API calls in this skill (ML runs, monitored\n    events, and on-demand profiler sessions)\n  - Monitoring Viewer (`roles\u002Fmonitoring.viewer`) for the PromQL queries in Step\n    2\n  - Logs Viewer (`roles\u002Flogging.viewer`) for the Cloud Logging query in Step 1\n  - Kubernetes Engine Viewer (`roles\u002Fcontainer.viewer`) for the `kubectl get\n    nodes` query in Step 3\n  - For remediation (`[High Risk]` steps): Kubernetes Engine Cluster Admin\n    (`roles\u002Fcontainer.clusterAdmin`)\n- **Reference Documentation**:\n  - [ML Diagnostics platform](https:\u002F\u002Fdocs.cloud.google.com\u002Ftpu\u002Fdocs\u002Fml-diagnostics\u002Foverview.md.txt)\n    (Sections: \"IAM permissions\")\n  - [Configure GKE for ML Diagnostics](https:\u002F\u002Fdocs.cloud.google.com\u002Ftpu\u002Fdocs\u002Fml-diagnostics\u002Fgke.md.txt)\n    (Sections: \"Set up with gcloud CLI, Google Cloud console, or Terraform\",\n    \"Manual installation\", \"Connection-operator\")\n  - [Workload monitoring with ML Diagnostics](https:\u002F\u002Fdocs.cloud.google.com\u002Ftpu\u002Fdocs\u002Fml-diagnostics\u002Fworkload-monitoring.md.txt)\n    (Sections: \"Get started\", \"Megascale XLA (MXLA) Hang Analyzer\", \"Access\n    Workload Monitoring information through the API\", \"System Metrics\")\n  - [Get started with the ML Diagnostics CLI](https:\u002F\u002Fdocs.cloud.google.com\u002Ftpu\u002Fdocs\u002Fml-diagnostics\u002Fcli.md.txt)\n    (Sections: \"List machine learning runs\", \"Monitored-events commands\", \"List\n    profiler targets\", \"Capture on-demand profiler sessions\")\n  - [Get support](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fgetting-support.md.txt)\n    (Sections: \"Before you contact support\")\n  - [Auto-repair nodes](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Fnode-auto-repair.md.txt)\n    (Sections: \"Repair criteria\", \"Verify node auto-repair is enabled for a\n    Standard node pool\", \"Enable auto-repair for an existing Standard node\n    pool\", \"Node auto repair in TPU slice nodes\")\n  - [Deploy TPU workloads in GKE Standard](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Ftpus.md.txt)\n    (Sections: \"Configure auto repair for TPU slice nodes\")\n  - [Dump HLO Computations (OpenXLA)](https:\u002F\u002Fopenxla.org\u002Fxla\u002Fhlo_dumps)\n\n> **Read-only rule**: Run read-only diagnostic commands only. Never drain,\n> delete, or re-create nodes, or run any other command that changes the cluster.\n> Give the user any fix to apply themselves.\n\nWhen you recommend a fix, link the doc section that describes it.\n\n---\n\n## MXLA Hang Analyzer routing overview\n\nA Megascale hang occurs when a multi-slice worker has waited on a Megascale\ncommunication operation for a set timeout period. The TPU logs then show a\nMegascale `HANG_DETECTED` message. `HANG_DETECTED` is a catch-all signal that\nthe workload isn't progressing, and the cause can be in software or in hardware.\nWhen a hang occurs, ML Diagnostics runs the `Megascale XLA (MXLA) Hang\nAnalyzer`, which reports the likely cause as a code. Consult the\n[Megascale XLA (MXLA) Hang Analyzer](https:\u002F\u002Fdocs.cloud.google.com\u002Ftpu\u002Fdocs\u002Fml-diagnostics\u002Fworkload-monitoring.md.txt)\nsection for the definition and recommended action of each code, and route by\ncategory:\n\n- **Category A: compiler or HLO divergence (never cordon or replace nodes)**:\n  - When the analyzer reports different HLO modules, inconsistent HLO\n    compilation, or an inconsistent launch order across VMs (such as\n    `FINGERPRINT_MISMATCH`), route to\n    [Path A: Compiler or HLO divergence](references\u002Fpath-a-compiler-hlo-divergence.md).\n- **Category B: host program queueing or data input stall (never cordon or\n  replace nodes)**:\n  - When the analyzer reports that VMs aren't queuing programs to the TPU or\n    that data input stalled (such as `DATA_INPUT_STALL`), route to\n    [Path B: Host program queueing or data input stall](references\u002Fpath-b-program-queueing-input-stall.md).\n- **Category C: hardware or network faults on specific instances**:\n  - When the analyzer attributes the hang to a TPU chip, SparseCore, ICI, or DCN\n    networking issue, or to an unrecoverable error on specific instances, route\n    to\n    [Path C: Hardware or network faults](references\u002Fpath-c-hardware-network-faults.md).\n- **Category D: hang signal or event exists, but the analyzer is `NOT_DETECTED`\n  or reports `UNKNOWN`**:\n  - When `HANG_DETECTED` logs or a hang monitored event fired, but the analyzer\n    report has `detectionState: \"NOT_DETECTED\"` or reports `UNKNOWN` (\"The MXLA\n    hang was detected but a potential cause is not determined\"), route to\n    [Path D: No DETECTED analyzer or UNKNOWN cause](references\u002Fpath-d-no-detected-or-unknown.md).\n\n---\n\n## Diagnostic workflow\n\n### Step 0: Collect context and set the investigation window `[Low Risk]`\n\nCollect the target parameters. By default, query a 60-minute window `[T - 30m, T\n+ 30m]` around `{issue_time}`:\n\n- `{project_id}`: Google Cloud project ID\n- `{location}`: Google Cloud region where the ML run and GKE cluster reside (for\n  example, `us-central1`)\n- `{cluster_name}`: GKE cluster name\n- `{namespace}` \u002F `{workload_name}`: Kubernetes namespace and JobSet\u002FPod prefix\n- `{ml_run_id}`: ML Diagnostics run ID\n- `{issue_time}`: Timestamp when the hang occurred (`T`, ISO-8601 UTC)\n- `{start_time}`: `T - 30m`\n- `{end_time}`: `T + 30m`\n\n---\n\n### Step 1: Query `HANG_DETECTED` logs and hang events `[Low Risk]`\n\n1. **Check GKE container logs for `HANG_DETECTED` (read-only Cloud Logging\n   LQL)**: Query `k8s_container` logs over `[{start_time}, {end_time}]` to\n   confirm `HANG_DETECTED` and identify the first stalled pods:\n\n```sql\nresource.type=\"k8s_container\"\nresource.labels.project_id=\"{project_id}\"\nresource.labels.cluster_name=\"{cluster_name}\"\n\"HANG_DETECTED\"\ntimestamp >= \"{start_time}\" AND timestamp \u003C= \"{end_time}\"\n```\n\n2. **List active or recent ML runs**: Follow the\n   [List machine learning runs](https:\u002F\u002Fdocs.cloud.google.com\u002Ftpu\u002Fdocs\u002Fml-diagnostics\u002Fcli.md.txt)\n   section of the ML Diagnostics CLI reference (`gcloud alpha mldiagnostics\n   machine-learning-run list`) to identify `{ml_run_id}`.\n3. **List and describe hang monitored events**: Follow the\n   [Monitored-events commands](https:\u002F\u002Fdocs.cloud.google.com\u002Ftpu\u002Fdocs\u002Fml-diagnostics\u002Fcli.md.txt)\n   section (`gcloud alpha mldiagnostics monitored-events list` and `gcloud alpha\n   mldiagnostics monitored-events describe`) or\n   [Access Workload Monitoring information through the API](https:\u002F\u002Fdocs.cloud.google.com\u002Ftpu\u002Fdocs\u002Fml-diagnostics\u002Fworkload-monitoring.md.txt)\n   to inspect the `Megascale XLA (MXLA) Hang Analyzer` report (`detectionState`,\n   `details`, and `recommendedActions`).\n   - If `HANG_DETECTED` logs or a hang monitored event fired, run Step 2 to\n     correlate with the 1-minute metrics; if no analyzer reports\n     `detectionState: \"DETECTED\"` or the analyzer reports `UNKNOWN`, follow\n     [Path D: No DETECTED analyzer or UNKNOWN cause](references\u002Fpath-d-no-detected-or-unknown.md).\n   - If no `HANG_DETECTED` log or hang monitored event exists and multi-slice\n     latencies are normal in Step 2, **rule out** an MXLA hang by following\n     [Path E: Healthy telemetry](references\u002Fpath-e-healthy-telemetry.md).\n\n---\n\n### Step 2: Correlate with 1-minute multi-slice and TPU metrics `[Low Risk]`\n\nConsult the\n[System Metrics](https:\u002F\u002Fdocs.cloud.google.com\u002Ftpu\u002Fdocs\u002Fml-diagnostics\u002Fworkload-monitoring.md.txt)\nsection of the Workload Monitoring guide for the 1-minute multi-slice network\n(`kubernetes.io\u002Fcontainer\u002Fmultislice\u002Fnetwork\u002F*`), multi-slice accelerator\n(`kubernetes.io\u002Fcontainer\u002Fmultislice\u002Faccelerator\u002F*`), and node duty-cycle\n(`kubernetes.io\u002Fnode\u002Faccelerator\u002Fduty_cycle`) metrics, and run read-only PromQL\nqueries over `[{start_time}, {end_time}]`:\n\n```promql\n# 1. P95 multi-slice collective end-to-end latency by pod\nhistogram_quantile(\n  0.95,\n  sum by (pod_name, le) (\n    rate(kubernetes_io:container_multislice_network_collective_end_to_end_latencies_bucket{\n      monitored_resource=\"k8s_container\",\n      project_id=\"{project_id}\",\n      cluster_name=\"{cluster_name}\"\n    }[5m])\n  )\n)\n\n# 2. P95 multi-slice DCN transfer latency by pod\nhistogram_quantile(\n  0.95,\n  sum by (pod_name, le) (\n    rate(kubernetes_io:container_multislice_network_dcn_transfer_latencies_bucket{\n      monitored_resource=\"k8s_container\",\n      project_id=\"{project_id}\",\n      cluster_name=\"{cluster_name}\"\n    }[5m])\n  )\n)\n\n# 3. P95 host-to-device transfer latency by pod\nhistogram_quantile(\n  0.95,\n  sum by (pod_name, le) (\n    rate(kubernetes_io:container_multislice_accelerator_host_to_device_transfer_latencies_bucket{\n      monitored_resource=\"k8s_container\",\n      project_id=\"{project_id}\",\n      cluster_name=\"{cluster_name}\"\n    }[5m])\n  )\n)\n\n# 4. Node TPU duty cycle (Workload Monitoring detects a hang as a prolonged\n#    period of minimal to no TPU activity)\nkubernetes_io:node_accelerator_duty_cycle{\n  monitored_resource=\"k8s_node\",\n  project_id=\"{project_id}\",\n  cluster_name=\"{cluster_name}\"\n}\n```\n\n---\n\n### Step 3: Map culprit Compute Engine instance IDs to GKE nodes `[Low Risk]`\n\nWhen the `Megascale XLA (MXLA) Hang Analyzer` reports culprit numeric Compute\nEngine instance IDs in `details` or `recommendedActions`, map those numeric IDs\nto GKE `Node` names and physical topology blocks using this read-only `kubectl`\nquery inspecting `container.googleapis.com\u002Finstance_id`:\n\n```bash\nkubectl get nodes -l cloud.google.com\u002Fgke-tpu-accelerator \\\n  -o jsonpath='{range .items[*]}{.metadata.name}{\"\\tinstance_id=\"}{.metadata.annotations.container\\.googleapis\\.com\u002Finstance_id}{\"\\tblock=\"}{.metadata.labels.cloud\\.google\\.com\u002Fgce-topology-block}{\"\\tsubblock=\"}{.metadata.labels.cloud\\.google\\.com\u002Fgce-topology-subblock}{\"\\thost=\"}{.metadata.labels.cloud\\.google\\.com\u002Fgce-topology-host}{\"\\n\"}{end}'\n```\n\n---\n\n### Step 4: Remediation by root-cause category\n\nLoad and follow only the reference file that matches the root-cause category\nfrom Step 1:\n\n- **Path A (compiler or HLO divergence — different HLO modules, inconsistent HLO\n  compilation, or inconsistent launch order across VMs, such as\n  `FINGERPRINT_MISMATCH`)**: Read\n  [Path A: Compiler or HLO divergence](references\u002Fpath-a-compiler-hlo-divergence.md).\n- **Path B (host program queueing or data input stall — `PROGRAM_NOT_QUEUED` or\n  `DATA_INPUT_STALL`)**: Read\n  [Path B: Host program queueing or data input stall](references\u002Fpath-b-program-queueing-input-stall.md).\n- **Path C (hardware, SparseCore, ICI, DCN networking faults, or\n  `UNRECOVERABLE_ERROR` on specific instances)**: Read\n  [Path C: Hardware or network faults](references\u002Fpath-c-hardware-network-faults.md).\n- **Path D (`HANG_DETECTED` logs or hang event fired, but the analyzer is\n  `NOT_DETECTED` or reports `UNKNOWN`)**: Read\n  [Path D: No DETECTED analyzer or UNKNOWN cause](references\u002Fpath-d-no-detected-or-unknown.md).\n- **Path E (no `HANG_DETECTED` logs or hang events, and steady telemetry)**:\n  Read [Path E: Healthy telemetry](references\u002Fpath-e-healthy-telemetry.md).\n\n---\n\n## Guardrails\n\n1. **Never change GKE-managed instance groups or VMs through Compute Engine**:\n   Don't run `gcloud compute instance-groups managed` commands, such as\n   `delete`, on a node pool's managed instance group. Handle nodes through GKE,\n   as described in\n   [Path C: Hardware or network faults](references\u002Fpath-c-hardware-network-faults.md).\n2. **Never cordon or replace nodes for compiler divergence or input stalls**: If\n   the analyzer reports a compiler or HLO divergence, a program queueing issue,\n   or a data input stall, don't cordon or replace TPU nodes. Follow\n   [Path A: Compiler or HLO divergence](references\u002Fpath-a-compiler-hlo-divergence.md)\n   or\n   [Path B: Host program queueing or data input stall](references\u002Fpath-b-program-queueing-input-stall.md)\n   instead.\n","# Troubleshoot GKE TPU multi-slice hangs with the MXLA Hang Analyzer\n\nDiagnose Cloud TPU multi-slice training hangs on Google Kubernetes Engine (GKE)\nby correlating Megascale `HANG_DETECTED` logs and **ML Diagnostics Workload\nMonitoring** `Megascale XLA (MXLA) Hang Analyzer` reports with **1-minute\nmulti-slice latency metrics** (`kubernetes.io\u002Fcontainer\u002Fmultislice\u002F*`) and GKE\nnode topology labels.\n\n---\n\n## Attribution\n\n**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you\nMUST read [Usage Attribution](references\u002Fattribution.md). For commands executed\ndirectly in the terminal (never in generated scripts, Terraform, or user code),\nprefix `gcloud` with\n`CLOUDSDK_METRICS_REQUEST_ATTRIBUTION=\"agent-skills\u002F1.0 (skill:gke-ai-troubleshooting-tpu-mxla-hang)\"`\nand append `agent-skills\u002F1.0 (skill:gke-ai-troubleshooting-tpu-mxla-hang)` to `User-Agent` headers.\n\n## Prerequisites\n\n- **Tools**: Install the\n  [Google Cloud SDK](https:\u002F\u002Fcloud.google.com\u002Fsdk\u002Fdocs\u002Finstall) (`gcloud` with\n  `alpha` component for `gcloud alpha mldiagnostics`) and `kubectl`.\n- **Cloud Billing & Project Configuration**: Verify an active billing account is\n  linked (`gcloud billing projects describe {project_id}`), authenticate\n  (`gcloud auth login`), set the target project (`gcloud config set project\n  {project_id}`), and ensure `container.googleapis.com`,\n  `logging.googleapis.com`, `monitoring.googleapis.com`, and\n  `hypercomputecluster.googleapis.com` are enabled.\n- **Supported workloads and versions**: Google Cloud ML Diagnostics only\n  supports JAX on TPUs (see\n  [ML Diagnostics platform](https:\u002F\u002Fdocs.cloud.google.com\u002Ftpu\u002Fdocs\u002Fml-diagnostics\u002Foverview.md.txt)).\n  Workload Monitoring is enabled by default, supports the `jobset` and `job` GKE\n  job types, and is compatible with GKE versions `1.36.0-gke.4681000` and later\n  ([Configure GKE for ML Diagnostics](https:\u002F\u002Fdocs.cloud.google.com\u002Ftpu\u002Fdocs\u002Fml-diagnostics\u002Fgke.md.txt),\n  which also covers the cluster setup needed for on-demand profiling in Step 4\n  Path B). If a workload uses another framework (such as PyTorch) or another\n  custom resource type, `gcloud alpha mldiagnostics` won't list ML runs or\n  monitored events for it. The Megascale XLA hang analyzer and Megascale XLA\n  metrics require LibTPU `0.40.0` or later (see \"Get started\" in\n  [Workload monitoring with ML Diagnostics](https:\u002F\u002Fdocs.cloud.google.com\u002Ftpu\u002Fdocs\u002Fml-diagnostics\u002Fworkload-monitoring.md.txt)).\n- **Required IAM Roles**:\n  - Cluster Director Editor (`roles\u002Fhypercomputecluster.editor`), the role\n    listed in the \"IAM permissions\" section of\n    [ML Diagnostics platform](https:\u002F\u002Fdocs.cloud.google.com\u002Ftpu\u002Fdocs\u002Fml-diagnostics\u002Foverview.md.txt),\n    for the ML Diagnostics CLI and API calls in this skill (ML runs, monitored\n    events, and on-demand profiler sessions)\n  - Monitoring Viewer (`roles\u002Fmonitoring.viewer`) for the PromQL queries in Step\n    2\n  - Logs Viewer (`roles\u002Flogging.viewer`) for the Cloud Logging query in Step 1\n  - Kubernetes Engine Viewer (`roles\u002Fcontainer.viewer`) for the `kubectl get\n    nodes` query in Step 3\n  - For remediation (`[High Risk]` steps): Kubernetes Engine Cluster Admin\n    (`roles\u002Fcontainer.clusterAdmin`)\n- **Reference Documentation**:\n  - [ML Diagnostics platform](https:\u002F\u002Fdocs.cloud.google.com\u002Ftpu\u002Fdocs\u002Fml-diagnostics\u002Foverview.md.txt)\n    (Sections: \"IAM permissions\")\n  - [Configure GKE for ML Diagnostics](https:\u002F\u002Fdocs.cloud.google.com\u002Ftpu\u002Fdocs\u002Fml-diagnostics\u002Fgke.md.txt)\n    (Sections: \"Set up with gcloud CLI, Google Cloud console, or Terraform\",\n    \"Manual installation\", \"Connection-operator\")\n  - [Workload monitoring with ML Diagnostics](https:\u002F\u002Fdocs.cloud.google.com\u002Ftpu\u002Fdocs\u002Fml-diagnostics\u002Fworkload-monitoring.md.txt)\n    (Sections: \"Get started\", \"Megascale XLA (MXLA) Hang Analyzer\", \"Access\n    Workload Monitoring information through the API\", \"System Metrics\")\n  - [Get started with the ML Diagnostics CLI](https:\u002F\u002Fdocs.cloud.google.com\u002Ftpu\u002Fdocs\u002Fml-diagnostics\u002Fcli.md.txt)\n    (Sections: \"List machine learning runs\", \"Monitored-events commands\", \"List\n    profiler targets\", \"Capture on-demand profiler sessions\")\n  - [Get support](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fgetting-support.md.txt)\n    (Sections: \"Before you contact support\")\n  - [Auto-repair nodes](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Fnode-auto-repair.md.txt)\n    (Sections: \"Repair criteria\", \"Verify node auto-repair is enabled for a\n    Standard node pool\", \"Enable auto-repair for an existing Standard node\n    pool\", \"Node auto repair in TPU slice nodes\")\n  - [Deploy TPU workloads in GKE Standard](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Ftpus.md.txt)\n    (Sections: \"Configure auto repair for TPU slice nodes\")\n  - [Dump HLO Computations (OpenXLA)](https:\u002F\u002Fopenxla.org\u002Fxla\u002Fhlo_dumps)\n\n> **Read-only rule**: Run read-only diagnostic commands only. Never drain,\n> delete, or re-create nodes, or run any other command that changes the cluster.\n> Give the user any fix to apply themselves.\n\nWhen you recommend a fix, link the doc section that describes it.\n\n---\n\n## MXLA Hang Analyzer routing overview\n\nA Megascale hang occurs when a multi-slice worker has waited on a Megascale\ncommunication operation for a set timeout period. The TPU logs then show a\nMegascale `HANG_DETECTED` message. `HANG_DETECTED` is a catch-all signal that\nthe workload isn't progressing, and the cause can be in software or in hardware.\nWhen a hang occurs, ML Diagnostics runs the `Megascale XLA (MXLA) Hang\nAnalyzer`, which reports the likely cause as a code. Consult the\n[Megascale XLA (MXLA) Hang Analyzer](https:\u002F\u002Fdocs.cloud.google.com\u002Ftpu\u002Fdocs\u002Fml-diagnostics\u002Fworkload-monitoring.md.txt)\nsection for the definition and recommended action of each code, and route by\ncategory:\n\n- **Category A: compiler or HLO divergence (never cordon or replace nodes)**:\n  - When the analyzer reports different HLO modules, inconsistent HLO\n    compilation, or an inconsistent launch order across VMs (such as\n    `FINGERPRINT_MISMATCH`), route to\n    [Path A: Compiler or HLO divergence](references\u002Fpath-a-compiler-hlo-divergence.md).\n- **Category B: host program queueing or data input stall (never cordon or\n  replace nodes)**:\n  - When the analyzer reports that VMs aren't queuing programs to the TPU or\n    that data input stalled (such as `DATA_INPUT_STALL`), route to\n    [Path B: Host program queueing or data input stall](references\u002Fpath-b-program-queueing-input-stall.md).\n- **Category C: hardware or network faults on specific instances**:\n  - When the analyzer attributes the hang to a TPU chip, SparseCore, ICI, or DCN\n    networking issue, or to an unrecoverable error on specific instances, route\n    to\n    [Path C: Hardware or network faults](references\u002Fpath-c-hardware-network-faults.md).\n- **Category D: hang signal or event exists, but the analyzer is `NOT_DETECTED`\n  or reports `UNKNOWN`**:\n  - When `HANG_DETECTED` logs or a hang monitored event fired, but the analyzer\n    report has `detectionState: \"NOT_DETECTED\"` or reports `UNKNOWN` (\"The MXLA\n    hang was detected but a potential cause is not determined\"), route to\n    [Path D: No DETECTED analyzer or UNKNOWN cause](references\u002Fpath-d-no-detected-or-unknown.md).\n\n---\n\n## Diagnostic workflow\n\n### Step 0: Collect context and set the investigation window `[Low Risk]`\n\nCollect the target parameters. By default, query a 60-minute window `[T - 30m, T\n+ 30m]` around `{issue_time}`:\n\n- `{project_id}`: Google Cloud project ID\n- `{location}`: Google Cloud region where the ML run and GKE cluster reside (for\n  example, `us-central1`)\n- `{cluster_name}`: GKE cluster name\n- `{namespace}` \u002F `{workload_name}`: Kubernetes namespace and JobSet\u002FPod prefix\n- `{ml_run_id}`: ML Diagnostics run ID\n- `{issue_time}`: Timestamp when the hang occurred (`T`, ISO-8601 UTC)\n- `{start_time}`: `T - 30m`\n- `{end_time}`: `T + 30m`\n\n---\n\n### Step 1: Query `HANG_DETECTED` logs and hang events `[Low Risk]`\n\n1. **Check GKE container logs for `HANG_DETECTED` (read-only Cloud Logging\n   LQL)**: Query `k8s_container` logs over `[{start_time}, {end_time}]` to\n   confirm `HANG_DETECTED` and identify the first stalled pods:\n\n```sql\nresource.type=\"k8s_container\"\nresource.labels.project_id=\"{project_id}\"\nresource.labels.cluster_name=\"{cluster_name}\"\n\"HANG_DETECTED\"\ntimestamp >= \"{start_time}\" AND timestamp \u003C= \"{end_time}\"\n```\n\n2. **List active or recent ML runs**: Follow the\n   [List machine learning runs](https:\u002F\u002Fdocs.cloud.google.com\u002Ftpu\u002Fdocs\u002Fml-diagnostics\u002Fcli.md.txt)\n   section of the ML Diagnostics CLI reference (`gcloud alpha mldiagnostics\n   machine-learning-run list`) to identify `{ml_run_id}`.\n3. **List and describe hang monitored events**: Follow the\n   [Monitored-events commands](https:\u002F\u002Fdocs.cloud.google.com\u002Ftpu\u002Fdocs\u002Fml-diagnostics\u002Fcli.md.txt)\n   section (`gcloud alpha mldiagnostics monitored-events list` and `gcloud alpha\n   mldiagnostics monitored-events describe`) or\n   [Access Workload Monitoring information through the API](https:\u002F\u002Fdocs.cloud.google.com\u002Ftpu\u002Fdocs\u002Fml-diagnostics\u002Fworkload-monitoring.md.txt)\n   to inspect the `Megascale XLA (MXLA) Hang Analyzer` report (`detectionState`,\n   `details`, and `recommendedActions`).\n   - If `HANG_DETECTED` logs or a hang monitored event fired, run Step 2 to\n     correlate with the 1-minute metrics; if no analyzer reports\n     `detectionState: \"DETECTED\"` or the analyzer reports `UNKNOWN`, follow\n     [Path D: No DETECTED analyzer or UNKNOWN cause](references\u002Fpath-d-no-detected-or-unknown.md).\n   - If no `HANG_DETECTED` log or hang monitored event exists and multi-slice\n     latencies are normal in Step 2, **rule out** an MXLA hang by following\n     [Path E: Healthy telemetry](references\u002Fpath-e-healthy-telemetry.md).\n\n---\n\n### Step 2: Correlate with 1-minute multi-slice and TPU metrics `[Low Risk]`\n\nConsult the\n[System Metrics](https:\u002F\u002Fdocs.cloud.google.com\u002Ftpu\u002Fdocs\u002Fml-diagnostics\u002Fworkload-monitoring.md.txt)\nsection of the Workload Monitoring guide for the 1-minute multi-slice network\n(`kubernetes.io\u002Fcontainer\u002Fmultislice\u002Fnetwork\u002F*`), multi-slice accelerator\n(`kubernetes.io\u002Fcontainer\u002Fmultislice\u002Faccelerator\u002F*`), and node duty-cycle\n(`kubernetes.io\u002Fnode\u002Faccelerator\u002Fduty_cycle`) metrics, and run read-only PromQL\nqueries over `[{start_time}, {end_time}]`:\n\n```promql\n# 1. P95 multi-slice collective end-to-end latency by pod\nhistogram_quantile(\n  0.95,\n  sum by (pod_name, le) (\n    rate(kubernetes_io:container_multislice_network_collective_end_to_end_latencies_bucket{\n      monitored_resource=\"k8s_container\",\n      project_id=\"{project_id}\",\n      cluster_name=\"{cluster_name}\"\n    }[5m])\n  )\n)\n\n# 2. P95 multi-slice DCN transfer latency by pod\nhistogram_quantile(\n  0.95,\n  sum by (pod_name, le) (\n    rate(kubernetes_io:container_multislice_network_dcn_transfer_latencies_bucket{\n      monitored_resource=\"k8s_container\",\n      project_id=\"{project_id}\",\n      cluster_name=\"{cluster_name}\"\n    }[5m])\n  )\n)\n\n# 3. P95 host-to-device transfer latency by pod\nhistogram_quantile(\n  0.95,\n  sum by (pod_name, le) (\n    rate(kubernetes_io:container_multislice_accelerator_host_to_device_transfer_latencies_bucket{\n      monitored_resource=\"k8s_container\",\n      project_id=\"{project_id}\",\n      cluster_name=\"{cluster_name}\"\n    }[5m])\n  )\n)\n\n# 4. Node TPU duty cycle (Workload Monitoring detects a hang as a prolonged\n#    period of minimal to no TPU activity)\nkubernetes_io:node_accelerator_duty_cycle{\n  monitored_resource=\"k8s_node\",\n  project_id=\"{project_id}\",\n  cluster_name=\"{cluster_name}\"\n}\n```\n\n---\n\n### Step 3: Map culprit Compute Engine instance IDs to GKE nodes `[Low Risk]`\n\nWhen the `Megascale XLA (MXLA) Hang Analyzer` reports culprit numeric Compute\nEngine instance IDs in `details` or `recommendedActions`, map those numeric IDs\nto GKE `Node` names and physical topology blocks using this read-only `kubectl`\nquery inspecting `container.googleapis.com\u002Finstance_id`:\n\n```bash\nkubectl get nodes -l cloud.google.com\u002Fgke-tpu-accelerator \\\n  -o jsonpath='{range .items[*]}{.metadata.name}{\"\\tinstance_id=\"}{.metadata.annotations.container\\.googleapis\\.com\u002Finstance_id}{\"\\tblock=\"}{.metadata.labels.cloud\\.google\\.com\u002Fgce-topology-block}{\"\\tsubblock=\"}{.metadata.labels.cloud\\.google\\.com\u002Fgce-topology-subblock}{\"\\thost=\"}{.metadata.labels.cloud\\.google\\.com\u002Fgce-topology-host}{\"\\n\"}{end}'\n```\n\n---\n\n### Step 4: Remediation by root-cause category\n\nLoad and follow only the reference file that matches the root-cause category\nfrom Step 1:\n\n- **Path A (compiler or HLO divergence — different HLO modules, inconsistent HLO\n  compilation, or inconsistent launch order across VMs, such as\n  `FINGERPRINT_MISMATCH`)**: Read\n  [Path A: Compiler or HLO divergence](references\u002Fpath-a-compiler-hlo-divergence.md).\n- **Path B (host program queueing or data input stall — `PROGRAM_NOT_QUEUED` or\n  `DATA_INPUT_STALL`)**: Read\n  [Path B: Host program queueing or data input stall](references\u002Fpath-b-program-queueing-input-stall.md).\n- **Path C (hardware, SparseCore, ICI, DCN networking faults, or\n  `UNRECOVERABLE_ERROR` on specific instances)**: Read\n  [Path C: Hardware or network faults](references\u002Fpath-c-hardware-network-faults.md).\n- **Path D (`HANG_DETECTED` logs or hang event fired, but the analyzer is\n  `NOT_DETECTED` or reports `UNKNOWN`)**: Read\n  [Path D: No DETECTED analyzer or UNKNOWN cause](references\u002Fpath-d-no-detected-or-unknown.md).\n- **Path E (no `HANG_DETECTED` logs or hang events, and steady telemetry)**:\n  Read [Path E: Healthy telemetry](references\u002Fpath-e-healthy-telemetry.md).\n\n---\n\n## Guardrails\n\n1. **Never change GKE-managed instance groups or VMs through Compute Engine**:\n   Don't run `gcloud compute instance-groups managed` commands, such as\n   `delete`, on a node pool's managed instance group. Handle nodes through GKE,\n   as described in\n   [Path C: Hardware or network faults](references\u002Fpath-c-hardware-network-faults.md).\n2. **Never cordon or replace nodes for compiler divergence or input stalls**: If\n   the analyzer reports a compiler or HLO divergence, a program queueing issue,\n   or a data input stall, don't cordon or replace TPU nodes. Follow\n   [Path A: Compiler or HLO divergence](references\u002Fpath-a-compiler-hlo-divergence.md)\n   or\n   [Path B: Host program queueing or data input stall](references\u002Fpath-b-program-queueing-input-stall.md)\n   instead.\n",{"name":5,"metadata":58,"description":7},{"version":59,"category":60},"1.0.1","AiAndMachineLearning","main","bb9b3f464aae37af360d079c1d863524955b0363","skills\u002Fcloud\u002Fgke-ai-troubleshooting-tpu-mxla-hang",2014,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills","https:\u002F\u002Fgithub.com\u002Fgoogle","https:\u002F\u002Fopensource.google\u002F","Google ❤️ Open Source","2026-11-14 23:31:00",{"source":9,"skillName":5,"commands":71,"prompt":81,"zipAvailable":82},[72,75,78],{"tool":73,"command":74},"npx","npx skills add google\u002Fskills --skill gke-ai-troubleshooting-tpu-mxla-hang",{"tool":76,"command":77},"bunx","bunx skills add google\u002Fskills --skill gke-ai-troubleshooting-tpu-mxla-hang",{"tool":79,"command":80},"pnpm","pnpm dlx skills add google\u002Fskills --skill gke-ai-troubleshooting-tpu-mxla-hang","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgke-ai-troubleshooting-tpu-mxla-hang\u002FSKILL.md",true,[84,90,94,98,102,106],{"path":85,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":88,"sourceHtmlUrl":89},"references\u002Fattribution.md","REFERENCE","参考文档",1948,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgke-ai-troubleshooting-tpu-mxla-hang\u002Freferences\u002Fattribution.md",{"path":91,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":92,"sourceHtmlUrl":93},"references\u002Fpath-a-compiler-hlo-divergence.md",964,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgke-ai-troubleshooting-tpu-mxla-hang\u002Freferences\u002Fpath-a-compiler-hlo-divergence.md",{"path":95,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":96,"sourceHtmlUrl":97},"references\u002Fpath-b-program-queueing-input-stall.md",1420,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgke-ai-troubleshooting-tpu-mxla-hang\u002Freferences\u002Fpath-b-program-queueing-input-stall.md",{"path":99,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":100,"sourceHtmlUrl":101},"references\u002Fpath-c-hardware-network-faults.md",2568,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgke-ai-troubleshooting-tpu-mxla-hang\u002Freferences\u002Fpath-c-hardware-network-faults.md",{"path":103,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":104,"sourceHtmlUrl":105},"references\u002Fpath-d-no-detected-or-unknown.md",1559,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgke-ai-troubleshooting-tpu-mxla-hang\u002Freferences\u002Fpath-d-no-detected-or-unknown.md",{"path":107,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":108,"sourceHtmlUrl":109},"references\u002Fpath-e-healthy-telemetry.md",272,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgke-ai-troubleshooting-tpu-mxla-hang\u002Freferences\u002Fpath-e-healthy-telemetry.md",[111,119,126,133,140,147],{"skillNo":112,"name":113,"nameZh":17,"description":114,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":118},"01M7DQ9K7JF4T7NJZ2K1MQZ44Q","cloud-operator-share-context","Shares Google Cloud operating context the user or their team already have — environments, projects, services and regions, product preferences, best practices, architecture guidance, runbooks — found in agent instruction files, local memory, skills and workflows, and the repository's GCP docs, with the operator agent's memory after the user reviews the list. Use when the user runs this skill, accepts the cloud-operator or cloud-operator-setup skill's offer to share their existing Google Cloud context, or asks to share, import or save that context or a GCP fact for the operator agent. Don't use for ordinary GCP requests, which go to the cloud-operator skill.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-operator-share-context\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":120,"name":121,"nameZh":17,"description":122,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":118},"01M7DQ9ERFGGQCFAWQW0KRKYBY","cloud-operator-setup","Sets up the operator agent in a Google Cloud project via the autocloud MCP server: picks the operator project, creates or checks the user's operator agent, saves the project, and offers to share the user's existing Google Cloud operating context with the operator agent's memory. Use when the user runs this skill, asks to set up the operator or create their operator agent, or chooses setup when the cloud-operator skill asks. Don't use for ordinary GCP requests or installing gcloud.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-operator-setup\u002FSKILL.md",[],[],{"skillNo":127,"name":128,"nameZh":17,"description":129,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":118},"01M7B4RHQCM0DK2XQ7S7ZXVN8D","developer-device-platform-device-run","Runs automated, non-interactive jobs on remote Android devices with Developer Device Platform (DDP) Device Run using `gcloud beta device-run sessions`: native Android executables or shell scripts (for example CLI tools, custom runners, test harnesses or benchmarks) and Android instrumentation tests, on one or many devices, then waits for completion and collects per-device outputs and logs. Use when running a binary or test suite on remote devices without an interactive connection. Don't use it for interactive device reservations, adb tunnels or screen streaming (use developer-device-platform-basics), or for local devices.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fdeveloper-device-platform-device-run\u002FSKILL.md",[],[],{"skillNo":134,"name":135,"nameZh":17,"description":136,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":118},"01M7B4R9YXMRW7RZP9Q9FMZJ2P","compute-vm-creation","Guides the planning, configuration, and provisioning of standalone Google Compute Engine virtual machines (VMs) and bare metal (-metal) instances using gcloud CLI commands or direct MCP tool execution. Use ONLY when the user wants to create, configure, or provision a new standalone Compute Engine VM or bare metal instance from conversational intents (hardware sizing, region selection, OS image, networking, security defaults). DO NOT read or use for Google Kubernetes Engine (GKE) Autopilot or Standard clusters, Kubernetes node pools or Pods, container orchestration, managing existing VMs, Managed Instance Groups (MIGs), or Instance Templates.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcompute-vm-creation\u002FSKILL.md",[],[],{"skillNo":141,"name":142,"nameZh":17,"description":143,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":144,"categories":145,"keywords":146,"publishedAt":118},"01M7B4QD02N0YBVT0838Z5K5VC","agent-platform-autorater-customization","Customizes an autorater (evaluation metric) for an AI agent so its grades match the user's own judgment, starting from the agent's real trajectories. Use when a user wants a metric tailored to their agent, wants to turn failing trajectories into rubrics, says an existing autorater grades their agent wrong, or wants an autorater to agree with human labels (autorater hillclimbing, judge calibration). Don't use for quick evals with built-in metrics or for improving the agent itself (use agent-platform-eval-flywheel).","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fagent-platform-autorater-customization\u002FSKILL.md",[],[],{"skillNo":148,"name":149,"nameZh":17,"description":150,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":151,"categories":152,"keywords":153,"publishedAt":118},"01M78JP22K73KK96JH0JNDT5C4","iap-agent-platform-troubleshooting","Diagnoses Identity-Aware Proxy (IAP) denials of outbound requests from Gemini Enterprise Agent Platform agents that run on Agent Runtime and send traffic through Agent Gateway. Use when an agent request fails with \"Egress request is not authorized\", when Cloud Audit Logs show an IAP egressViaIAP decision with granted false, when IAP audit entries are missing while debugging agent egress, or when Access policies, IAP allow policies, policy bindings, or Agent Registry entries might block agent egress. Don't use for Gemini model IAM permission errors (such as aiplatform.endpoints.predict), Agent Platform API errors, or Agent Runtime deployment or 500 errors (use agent-platform-troubleshooting instead). Don't use for setting up, creating, or connecting an Agent Gateway, or for IAP web apps, IAP TCP forwarding, or SSH.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fiap-agent-platform-troubleshooting\u002FSKILL.md",[],[]]