Evaluates future GPU and TPU reservation feasibility and calendar-mode booking options in Google Compute Engine (GCE). Use when planning future AI/ML training runs, checking reservation availability windows, verifying accelerator cluster topologies, or assessing future capacity lead times. Don't use for active on-demand reservations (use compute-on-demand-reservations), immediate Spot capacity queries (use compute-spot-capacity-advice), or Standard Future Reservations (--reservation-mode=DEFAULT).
Written by Google and published in google/skills under the Apache-2.0 license. Treq shows it unchanged except for heading levels and links to files on GitHub.
The compute-future-reservations skill assesses future capacity availability and feasibility for high-demand AI/ML hardware (NVIDIA GPUs, H4D VMs, and Google Cloud TPUs). It enables infrastructure engineers to evaluate future reservation windows, match cluster topologies, and manage calendar-mode bookings.
[!NOTE] Scope Boundary (Calendar Mode vs. Standard Future Reservations): This skill covers Calendar-Mode Future Reservations (
--reservation-mode=CALENDAR, backed by Dynamic Workload Scheduler for up to 90 days on supported families such asa3*,a4*,h4d*, and Cloud TPUs; for newly released machine series, verify Calendar Mode support dynamically viagcloud compute advice calendar-modeor the official Calendar Mode documentation). Do not apply Calendar-Mode flags (--reservation-mode=CALENDAR,--deployment-type=DENSE) to Standard Future Reservations (--reservation-mode=DEFAULTfor general-purpose CPU families,a2*/g2*GPUs,DRAFTplanning workflows, or multi-month/CUD commitments).
MUST READ: Before executing any gcloud, REST API, or MCP command, you MUST read and follow the instructions in Usage Attribution.
Before querying calendar-mode advice or submitting future reservation requests, ensure the environment meets these requirements:
--project={project_id} and --region={region} (or --zone={zone}) directly on each command to avoid overwriting global workstation state, or obtain explicit user confirmation before setting defaults (e.g., us-central1):
gcloud config set project {project_id}
gcloud config set compute/region {region}
gcloud services enable compute.googleapis.com --project={project_id}
apt-get or curl | bash without explicit user approval; direct the user to the installation guide instead), then authenticate via gcloud auth login (for interactive CLI), gcloud auth application-default login (for SDKs), or GOOGLE_APPLICATION_CREDENTIALS (for service accounts).advice calendar-mode, create, list, describe, delete): Grant roles/compute.futureReservationUser (includes compute.advice.calendarMode, compute.futureReservations.create, compute.futureReservations.delete, compute.futureReservations.get, compute.futureReservations.list, and compute.reservations.create, excluding compute.futureReservations.cancel).cancel): Grant roles/compute.futureReservationAdmin (or roles/compute.admin), which is required for compute.futureReservations.cancel.start-time to consume the auto-created reservation. Sharing across projects requires allowlisting the host project in organization policy constraints/compute.sharedReservationsOwnerProjects.start-time and bill for the entire committed window whether or not VMs or TPUs are actively running. Review Compute Engine Pricing, Available Regions and Zones, and Google Cloud Locations (strip .md.txt suffixes when presenting documentation URLs to human users) before submitting requests.Query the optimal time window and zone for a planned block of GPU or TPU capacity:
# For GPU / H4D VMs:
gcloud compute advice calendar-mode \
--project={project_id} \
--region={region} \
--machine-type={machine_type} \
--vm-count={total_instances} \
--start-time-range=from={start_date},to={end_date} \
--duration-range=min={min_duration},max={max_duration} \
[--location-policy={zone}={policy}]
# For Cloud TPUs (supported --tpu-version values: V6E, V5P, V5E; --workload-type is required for V5E):
gcloud compute advice calendar-mode \
--project={project_id} \
--region={region} \
--tpu-version={V6E|V5P|V5E} \
--chip-count={chip_count} \
--start-time-range=from={start_date},to={end_date} \
--duration-range=min={min_duration},max={max_duration} \
[--workload-type={BATCH|SERVING}] \
[--location-policy={zone}={policy}]
# List planned future reservations
gcloud compute future-reservations list \
--project={project_id} \
[--zones={zone}]
# Inspect a specific future reservation plan
gcloud compute future-reservations describe {future_reservation_name} \
--zone={zone} \
--project={project_id}
[!IMPORTANT] Submitting a future reservation request (
--planning-status=SUBMITTED) commits to capacity billing once approved. Always obtain explicit human approval before executinggcloud compute future-reservations create.
Once a feasible reservation window and zone are confirmed via calendar-mode, create and submit the request:
# For GPU / H4D VMs (requires --deployment-type=DENSE):
gcloud compute future-reservations create {future_reservation_name} \
--project={project_id} \
--zone={zone} \
--total-count={total_instances} \
--machine-type={machine_type} \
--deployment-type=DENSE \
--reservation-mode=CALENDAR \
--planning-status=SUBMITTED \
--require-specific-reservation \
--reservation-name={reservation_name} \
--start-time={start_rfc3339} \
--end-time={end_rfc3339} \
--auto-delete-auto-created-reservations \
[--share-setting=projects --share-with={consumer_project_ids}]
# For Cloud TPUs:
gcloud compute future-reservations create {future_reservation_name} \
--project={project_id} \
--zone={zone} \
--tpu-version={tpu_version} \
--chip-count={chip_count} \
--reservation-mode=CALENDAR \
--planning-status=SUBMITTED \
--require-specific-reservation \
--reservation-name={reservation_name} \
--start-time={start_rfc3339} \
--end-time={end_rfc3339} \
--auto-delete-auto-created-reservations \
[--workload-type={BATCH|SERVING}] \
[--share-setting=projects --share-with={consumer_project_ids}]
To cancel a pending/submitted request or clean up a cancelled/completed future reservation (requires explicit human approval; cancel requires roles/compute.futureReservationAdmin):
cancel): An APPROVED Calendar-Mode request can only be self-service cancelled when start-time is at least 30 days (720 hours) away, or within 24 hours of submission provided start-time is at least 4 days (96 hours) away.delete): delete only succeeds once the request is CANCELLED or past end-time, and prompts interactively unless --quiet is passed.# Cancel a pending or approved future reservation request (within the allowed window)
gcloud compute future-reservations cancel {future_reservation_name} \
--zone={zone} \
--project={project_id}
# Delete a cancelled or completed future reservation record
gcloud compute future-reservations delete {future_reservation_name} \
--zone={zone} \
--project={project_id}
start-timeWhen start-time arrives, Compute Engine automatically provisions the targeted reservation {reservation_name}:
--provisioning-model=RESERVATION_BOUND, --maintenance-policy=TERMINATE, --instance-termination-action={STOP|DELETE}, private networking (--no-address with IAP TCP forwarding), and a custom least-privilege --service-account:
gcloud compute instances create {vm_name} \
--project={project_id} \
--zone={zone} \
--machine-type={machine_type} \
--reservation-affinity=specific \
--reservation={reservation_name} \
--provisioning-model=RESERVATION_BOUND \
--maintenance-policy=TERMINATE \
--instance-termination-action=DELETE \
[--no-address] \
[--service-account={service_account_email}]
gcloud compute instances create or a Compute Engine Managed Instance Group (gcloud compute instance-templates create + gcloud compute instance-groups managed create) with the TPU machine type (e.g., ct6e-standard-8t), --reservation-affinity=specific, --reservation=projects/{project_id}/reservations/{reservation_name}, --provisioning-model=RESERVATION_BOUND, and --maintenance-policy=TERMINATE (see Consume a TPU reservation).--start-time-range=from={start_date},to={end_date}: Required acceptable start window in date or RFC 3339 format (e.g., from=2026-11-01T00:00:00Z,to=2026-11-30T00:00:00Z).--duration-range=min={min_duration},max={max_duration}: Required minimum and maximum operational duration needed (e.g., min=7d,max=14d or min=14d,max=14d). Both min and max must be provided.--location-policy={zone}={policy}: Optional per-zone inclusion/exclusion policy (ALLOW or DENY, e.g., us-central1-a=ALLOW,us-central1-b=DENY).--tpu-version={V6E|V5P|V5E}: Supported TPU versions in advice calendar-mode (TPU7X is supported only in future-reservations create, not in advice calendar-mode).--workload-type={BATCH|SERVING}: Required when --tpu-version=V5E and optional for V6E and V5P. BATCH optimizes for high-throughput batch ML training; SERVING optimizes for low-latency concurrent ML inference requests. Do not specify for GPU or H4D VMs.--reservation-mode=CALENDAR: Required to create a Calendar-Mode future reservation.--planning-status=SUBMITTED: Required to submit the Calendar-Mode request for GCP review immediately (self-service Calendar-Mode requests reject DRAFT status).--require-specific-reservation & --reservation-name={reservation_name}: Required to name and target the reservation that Compute Engine automatically creates at start-time ({reservation_name} must be at most 38 characters, e.g., {future_reservation_name}-res).--deployment-type=DENSE: Required when reserving GPU or H4D VMs to ensure tightly coupled placement.--share-setting={share_type}: Optional for single-project (local) reservations; required only when sharing across consumer projects (projects, specified via --share-with).--auto-delete-auto-created-reservations: Required flag in Calendar Mode so auto-created reservations are automatically deleted at end-time (--no-auto-delete-auto-created-reservations is rejected with CALENDAR_MODE_MISSING_AUTO_DELETE).gcloud compute advice calendar-mode or the official VM Calendar Mode and TPU Calendar Mode documentation as new hardware or limits roll out):
a4-highgpu-8g, a3-ultragpu-8g, a3-megagpu-8g, a3-highgpu-8g, a3-edgegpu-8g) and H4D VMs (h4d-standard-192, h4d-highmem-192, h4d-highmem-192-lssd):
--vm-count / --total-count): 1 to 80 VMs for GPUs (1 to 256 VMs for H4D). Note: a2-*, g2-*, and a4x-* families are not supported in Calendar Mode.--chip-count) by TPU Version (check the official TPU Calendar Mode documentation or CLI validation feedback if newly released TPU versions or slice sizes are requested):
V6E: 1, 4, 8, 16, 32, 64, 128, 256 chips.V5P: 4, 8, 16, 32, 64, 128, 256, 512, 1024 chips (1 chip is invalid; self-service requests in Calendar Mode allow up to 1024 chips per request).V5E (--workload-type required): SERVING supports 1, 4, 8 chips; BATCH supports 16, 32, 64, 128, 256 chips.TPU7X (allowlist-only; future-reservations create only; not supported in advice calendar-mode): 4, 8, 16, 32, 64, 128, 256, 512, 1024 chips (1 chip is invalid).gcloud compute advice calendar-mode returns a recommendations list containing recommendationsPerSpec.spec:
recommendations:
- recommendationsPerSpec:
spec:
endTime: '2026-11-29T00:00:00Z'
location: zones/us-central1-a
otherLocations:
zones/us-central1-b:
details: this machine family is not supported in this zone
status: NOT_SUPPORTED
recommendationId: 87cc2159-5205-4804-b764-a0ca8d10397c
recommendationType: FUTURE_RESERVATION
startTime: '2026-11-15T00:00:00Z'
spec includes startTime, endTime, and location (e.g., zones/us-central1-a; strip the zones/ prefix when passing the bare zone name such as us-central1-a to --zone in gcloud compute future-reservations create).otherLocations keys are always intra-region zones (zones/<zone>) within the single queried --region, and may report runner-up zones within that same region with status: RECOMMENDED (or NO_CAPACITY, CONDITIONS_NOT_MET, NOT_SUPPORTED).gcloud compute future-reservations create command, and ask for explicit human approval before creating the reservation.startTime / location Returned):
otherLocations entries (zones/<zone>) report status: NO_CAPACITY, CONDITIONS_NOT_MET, or NOT_SUPPORTED (RECOMMENDED is never returned when startTime/location is absent, and otherLocations never lists other regions).gcloud compute advice calendar-mode --region={other_region} against other regions that host the target accelerator (e.g., us-east4 or us-west1).--start-time-range=from=...,to=... to grant the scheduler a broader search window.--duration-range by breaking massive training runs into smaller checkpointed phases.a3-highgpu-8g with a3-megagpu-8g or newer generation TPU slices).gcloud compute future-reservations create, cancel, delete, or gcloud compute reservations update) without explicit human approval from the user. Submitted Calendar-Mode future reservation requests cannot be modified via gcloud compute future-reservations update; only the auto-created reservation can be updated after start-time via gcloud compute reservations update (for example, to modify shared consumer projects or Vertex AI access).AdviceService (advice calendar-mode) or FutureReservationsService, and MCP create_instance cannot set provisioning_model: RESERVATION_BOUND when consuming auto-created Calendar-Mode reservations. Always use the gcloud CLI.gcloud beta compute advice capacity --provisioning-model=SPOT) or emit obtainability scores when planning future GPU/TPU reservations. Future capacity planning requires calendar-mode feasibility analysis, not real-time Spot preemption metrics.Claude Code and Codex keep each installed skill's name and description in context. When a request matches the description, the agent loads the full SKILL.md. You can also run it yourself: type /compute-future-reservations in Claude Code or $compute-future-reservations in Codex.
The description says when to use it:
Use when planning future AI/ML training runs, checking reservation availability windows, verifying accelerator cluster topologies, or assessing future capacity lead times.
Copy the compute-future-reservations folder into .claude/skills/ in your project. To use it in every project, copy it into ~/.claude/skills/ instead.
git clone --depth 1 https://github.com/google/skills.git /tmp/google-skills
mkdir -p .claude/skills
cp -r /tmp/google-skills/skills/cloud/compute-future-reservations .claude/skills/
Codex reads skills from .agents/skills/ in your repository, and from ~/.agents/skills/ for every repository. It detects new skills on its own. Restart Codex if compute-future-reservations does not appear.
git clone --depth 1 https://github.com/google/skills.git /tmp/google-skills
mkdir -p .agents/skills
cp -r /tmp/google-skills/skills/cloud/compute-future-reservations .agents/skills/
Open Settings and select the Skills tab. The tab appears when Skills installation is on under Settings → Feature Preview. Search for compute-future-reservations and choose Install….
Install for repository writes the skill under .treq/skills/ in the current repository. Install for application makes it available to every repository on this machine. Each new workspace gets a copy in .claude/skills/ and .agents/skills/, so Claude Code and Codex both find it. See Installing Skills from the Library.
compute-future-reservations ships 2 files, 19.9 KB in total. Select a file to load it from GitHub.