compute-resource-availability-troubleshooting
БесплатноБез исполняемых скриптовНе проверенDiagnoses, mitigates, and prevents Google Compute Engine resource availability and capacity stockout errors (ZONE_RESOURCE_POOL_EXHAUSTED…
от google★ 25 380 звёзд на GitHubОб этом скилле
Compute Engine Resource Availability and Stockout Troubleshooting
MCP Tools:
list_machine_types,list_accelerator_types,get_zone_operation,list_instance_group_managers,list_managed_instances,list_reservations,get_reservation_details
This skill diagnoses and resolves Google Compute Engine resource availability errors (capacity stockouts). It provides immediate tactical workarounds to get blocked workloads running and long-term architectural mitigations using Regional Managed Instance Group (MIG) distribution shapes, Instance Flexibility, Dynamic Workload Scheduler (DWS) Flex-Start, and On-Demand Capacity Reservations.
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, project, IAM, or Compute Engine resource modifications (installing
gcloud, configuring MCP, enabling APIs or Log Analytics, creating instances
or reservations, updating MIGs, 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 Google Cloud SDK. - Compute Engine MCP Server & Capability Boundary: When the Compute Engine
MCP server is configured (see
Use the Compute Engine MCP server;
requires
roles/mcp.toolUser), prefer its read-only discovery tools before falling back togcloud:list_machine_typesandlist_accelerator_typesto check whether a machine shape or GPU accelerator is offered in a target zone.get_zone_operationto inspect a failed zonal operation'serror.errorsarray (ZONE_RESOURCE_POOL_EXHAUSTED,ZONE_RESOURCE_POOL_EXHAUSTED_WITH_DETAILS, orQUOTA_EXCEEDED).list_instance_group_managersandlist_managed_instancesto inspect zonal MIGs and per-instancecurrentAction/lastAttempt.errors(note: all Compute Engine MCP MIG tools—list_instance_group_managers,list_managed_instances, andget_instance_group_manager_basic_info—only accept azoneparameter and cannot inspect regional MIGs; usegcloudwith--region={region}or REST for regional MIGs).list_reservationsandget_reservation_detailsto inspect existing zonal reservation capacity (specificReservation.countvs.specificReservation.inUseCount).- MCP Limitations (Use
gcloudor REST Instead): MCPcreate_instancedoes not exposeprovisioning_model(FLEX_START/SPOT),max_run_duration,instance_termination_action, orreservation_affinity. MCP also lacks tools for Cloud Logging queries (gcloud logging read), Spot Capacity Advisor (gcloud beta compute advice capacity), Bulk Insert (gcloud compute instances bulk create), MIG distribution updates (gcloud compute instance-groups managed update), and reservation creation or deletion (gcloud compute reservations create/delete). Always usegcloudor the Compute Engine REST API for those operations.
- Authentication: Local CLI (
gcloud auth login), Application Default Credentials (gcloud auth application-default login), or headless/CI-CD viaGOOGLE_APPLICATION_CREDENTIALSor Workload Identity Federation. - Project, Region, Billing & API Enablement:
Note: An active billing account attachment is required (even for Free Tier eligible resources such asgcloud config set project {project_id} gcloud config set compute/region {region} gcloud config set compute/zone {zone} gcloud services enable compute.googleapis.com logging.googleapis.come2-micro). Never hardcode regions or zones; confirm{project_id},{region}, and{zone}(defaulting to a well-supported region such asus-central1/us-central1-aif unspecified), and consult Google Cloud Locations to verify regional and zonal availability (preview features and specialized GPUs/TPUs are restricted to specific locations). - Required IAM Roles:
- Read-Only Diagnostics & Capacity Advice:
roles/compute.viewerandroles/logging.viewer. - Log Analytics SQL (
_Default._AllLogs):roles/logging.viewAccessor(plusroles/bigquery.jobUserandroles/bigquery.dataViewerwhen querying via a linked BigQuery dataset). - Instance & MIG Remediation:
roles/compute.instanceAdmin.v1(plusroles/iam.serviceAccountUserwhen attaching a service account to VMs). - Reservation Creation & Teardown:
roles/compute.admin(or a custom role granting `comput
- Read-Only Diagnostics & Capacity Advice:
Установить compute-resource-availability-troubleshooting в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл compute-resource-availability-troubleshooting?
Diagnoses, mitigates, and prevents Google Compute Engine resource availability and capacity stockout errors (ZONE_RESOURCE_POOL_EXHAUSTED, ZONE_RESOURCE_POOL_EXHAUSTED_WITH_DETAILS, and machine type or accelerator unavailable in zone). Use ONLY when VM creation, Managed Instance Group (MIG) scale-out, or stopped instance startup fails due to regional or zonal hardware capacity exhaustion for GPUs, TPUs, or specific CPU shapes. DO NOT read or use for IAM permission errors, project quota limit increases without stockouts, general greenfield VM creation, or unexpected host reboots on already-running VMs.
Как установить скилл compute-resource-availability-troubleshooting?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл compute-resource-availability-troubleshooting запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic