compute-host-events-troubleshooting
БесплатноБез исполняемых скриптовНе проверенInvestigates, diagnoses, and mitigates Google Compute Engine virtual machine (VM) host events, including planned infrastructure maintenance…
от google★ 25 380 звёзд на GitHubОб этом скилле
Compute Engine VM Host Events & Infrastructure Crash Troubleshooting
This skill diagnoses unexpected Google Compute Engine VM restarts,
terminations, and unresponsiveness caused by infrastructure host events
(compute.instances.hostError, compute.instances.migrateOnHostMaintenance,
compute.instances.terminateOnHostMaintenance, compute.instances.preempted,
compute.instances.automaticRestart) or guest-OS-initiated shutdowns
(compute.instances.guestTerminate). It provides authoritative Cloud Audit Log
queries, Log Analytics _Required._AllLogs SQL aggregations, upcoming
maintenance window checks, and host scheduling remediations.
MCP Tools:
get_instance_basic_info,list_instances,list_instance_attached_disks,start_instance,stop_instance,reset_instance,delete_instance,get_zone_operation
Usage Attribution
MUST READ: Before executing any gcloud, REST API, or MCP command, you
MUST read and follow the instructions in
Usage Attribution.
Prerequisites & Environment Setup
Any host or project modifications (installing or updating gcloud, configuring
the Compute Engine MCP server, enabling APIs or Log Analytics, mutating VM
scheduling/metadata, creating log-based metrics, or deleting resources) must be
explicitly approved by the user before execution.
- Google Cloud SDK: Verify
gcloudis installed (gcloud --version). If missing or outdated, ask the user for approval before installing via Install the gcloud CLI. - Compute Engine MCP Server & Capability Boundary:
- The Compute Engine MCP server
(Use the Compute Engine MCP server)
exposes zonal VM discovery and lifecycle tools (
get_instance_basic_info,list_instances,list_instance_attached_disks,start_instance,stop_instance,reset_instance,delete_instance,get_zone_operation, requiringroles/mcp.toolUser). - Critical Routing Rule:
get_instance_basic_inforeturns a reducedInstanceBasicInfoprojection (name,id,status,machine_type,create_time,guest_accelerators) that omitsschedulingandresourceStatus.upcomingMaintenance, and Compute Engine MCP does not expose tools for Cloud Logging queries, serial console output,set-scheduling,perform-maintenance, or instance metadata updates. Always route full scheduling inspection, upcoming maintenance checks, serial port output, audit log queries, and scheduling/metadata mutations togcloud(or Compute Engine / Cloud Logging REST APIs).
- The Compute Engine MCP server
(Use the Compute Engine MCP server)
exposes zonal VM discovery and lifecycle tools (
- Authentication:
- Local CLI:
gcloud auth login - Application Default Credentials:
gcloud auth application-default login - Service Accounts: Set
GOOGLE_APPLICATION_CREDENTIALSto your service account credentials path.
- Local CLI:
- Project, Region & Billing:
Note: An active billing account attachment is required (even when evaluating Free Tier eligible resources). If no region is specified, default togcloud config set project {project_id} gcloud config set compute/region {region} gcloud config set compute/zone {zone}us-central1(us-central1-a), and check Google Cloud locations for regional hardware availability. - API Enablement:
gcloud services enable compute.googleapis.com logging.googleapis.com monitoring.googleapis.com - Required IAM Roles:
- Read-Only Diagnostics:
roles/compute.viewer(instance scheduling and serial console output),roles/logging.viewer(orroles/logging.privateLogViewerto readsystem_eventandactivityaudit logs), androles/logging.viewAccessorfor Log Analytics queries in Cloud Logging (plusroles/bigquery.jobUserandroles/bigquery.dataViewerwhen querying a linked Log Analytics dataset from BigQuery Studio orbq). - Remediation & MCP:
roles/compute.instanceAdmin.v1(to runset-scheduling,perform-maintenance,add-metadata, orremove-metadata),roles/logging.configWriter(to create log-based metrics), androles/mcp.toolUser(for Compute Engine MCP calls).
- Read-Only Diagnostics:
Diagnostic Workflow: Classify the Termination Event
When a user reports an unexpected VM reboot, stop, or crash, run targeted Cloud
Logging queries against cloudaudit.googleapis.com/system_event (Compute Engine
infrastructure events) and cloudaudit.googleapis.com/activity
(caller-initiated API stops/resets). Always pass --freshness=7d (or a window
covering the incident timestamp) because gcloud logging read defaults
--freshness to 1d and silently returns zero rows for incidents older than 24
hours. See
[Troubleshooting VM shutdowns and reboots](https://docs.cloud.google.com/compute/docs/tr
Установить compute-host-events-troubleshooting в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл compute-host-events-troubleshooting?
Investigates, diagnoses, and mitigates Google Compute Engine virtual machine (VM) host events, including planned infrastructure maintenance (migrateOnHostMaintenance, terminateOnHostMaintenance), physical host hardware errors (hostError), guest OS terminations (guestTerminate), and Spot or Preemptible VM preemptions (compute.instances.preempted) using shutdown-script metadata. Use ONLY when an existing Compute Engine VM unexpectedly reboots, stops, crashes, is preempted, or becomes unresponsive due to physical host maintenance, hardware errors, or Local SSD recovery. DO NOT read or use for creating new standalone VMs, Managed Instance Group (MIG) autoscaler scale-out or scale-in failures, Google Kubernetes Engine (GKE) clusters, application OOM debugging, or VPC firewall issues.
Как установить скилл compute-host-events-troubleshooting?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл compute-host-events-troubleshooting запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub