gcp-spot-vm-strategy
Design an interruption-resilient GCP Spot VM strategy for eligible workloads with 60-91% savings
Best use case
gcp-spot-vm-strategy is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Design an interruption-resilient GCP Spot VM strategy for eligible workloads with 60-91% savings
Teams using gcp-spot-vm-strategy should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/spot-vm-strategy/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How gcp-spot-vm-strategy Compares
| Feature / Agent | gcp-spot-vm-strategy | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Design an interruption-resilient GCP Spot VM strategy for eligible workloads with 60-91% savings
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
AI Agents for Marketing
Discover AI agents for marketing workflows, from SEO and content production to campaign research, outreach, and analytics.
AI Agents for Startups
Explore AI agent skills for startup validation, product research, growth experiments, documentation, and fast execution with small teams.
AI Agents for Coding
Browse AI agent skills for coding, debugging, testing, refactoring, code review, and developer workflows across Claude, Cursor, and Codex.
SKILL.md Source
# GCP Spot VM Strategy Builder
You are a GCP Spot VM expert. Design cost-optimal, interruption-resilient Spot strategies.
> **This skill is instruction-only. It does not execute any GCP CLI commands or access your GCP account directly. You provide the data; Claude analyzes it.**
## Required Inputs
Ask the user to provide **one or more** of the following (the more provided, the better the analysis):
1. **Compute Engine instance inventory** — current instance types and workloads
```bash
gcloud compute instances list --format json \
--format='table(name,machineType.scope(machineTypes),zone,status,scheduling.preemptible)'
```
2. **GKE node pool configuration** — if running on GKE
```bash
gcloud container clusters list --format json
gcloud container node-pools list --cluster CLUSTER_NAME --zone ZONE --format json
```
3. **GCP Billing export for Compute Engine** — to calculate Spot savings potential
```bash
bq query --use_legacy_sql=false \
'SELECT sku.description, SUM(cost) as total FROM `project.dataset.gcp_billing_export_v1_*` WHERE service.description = "Compute Engine" GROUP BY 1 ORDER BY 2 DESC'
```
**Minimum required GCP IAM permissions to run the CLI commands above (read-only):**
```json
{
"roles": ["roles/compute.viewer", "roles/container.viewer", "roles/billing.viewer"],
"note": "compute.instances.list included in roles/compute.viewer"
}
```
If the user cannot provide any data, ask them to describe: your workloads (stateless/stateful, fault-tolerant?), current machine types, and approximate monthly Compute Engine spend.
## Steps
1. Classify workloads: fault-tolerant (Spot-safe) vs stateful (Spot-unsafe)
2. Recommend machine type and region combinations with lower interruption rates
3. Design Managed Instance Group (MIG) configuration for auto-restart
4. Configure Spot → On-Demand fallback with budget guardrail
5. Identify Dataflow, Dataproc, and Batch job Spot opportunities
## Output Format
- **Workload Eligibility Matrix**: workload, Spot-safe (Y/N), reason
- **Spot VM Recommendation**: machine type, region, estimated interruption frequency
- **MIG Configuration**: autohealing policy, restart policy YAML
- **Savings Estimate**: on-demand vs Spot cost with % savings (typically 60–91%)
- **Dataflow/Dataproc Spot Config**: worker type settings for data pipelines
- **`gcloud` Commands**: to create Spot VM instances and MIGs
## Rules
- GCP Spot VMs replaced Preemptible VMs in 2022 — use Spot terminology
- Spot VMs can run up to 24 hours before preemption (unlike AWS which can interrupt anytime)
- Recommend 60/40 Spot/On-Demand split for fault-tolerant web tiers
- Always configure preemption handling: shutdown scripts for graceful drain
- Never ask for credentials, access keys, or secret keys — only exported data or CLI/console output
- If user pastes raw data, confirm no credentials are included before processingRelated Skills
Pricing Strategy Analyzer
Analyze and optimize pricing for any product or service. Covers value-based, cost-plus, competitive, and tiered pricing models.
Go-to-Market Strategy Builder
Build a complete GTM plan for product launches, market entries, or expansion plays. Covers positioning, channel strategy, pricing, launch timeline, and success metrics.
Git Engineering & Repository Strategy
You are a Git Engineering expert. You help teams design branching strategies, implement code review workflows, manage monorepos, automate releases, and maintain healthy repository practices at scale.
Exit Strategy & Business Valuation Planner
You are an M&A and exit planning advisor. Help founders and business owners build a structured exit strategy — whether they're planning an acquisition, IPO, management buyout, or orderly wind-down.
Brand Strategy Engine
Complete brand building and go-to-market system — from identity foundations through positioning, messaging, visual systems, and launch execution. Works for solopreneurs, startups, and established businesses rebranding.
Business Automation Strategy — AfrexAI
> The complete methodology for identifying, designing, building, and scaling business automations. Platform-agnostic — works with n8n, Zapier, Make, Power Automate, custom code, or any combination.
API Monetization Strategy
Turn your internal APIs into revenue streams. This skill helps you evaluate, price, package, and launch API products — whether you're monetizing existing infrastructure or building API-first products from scratch.
mspot-generator
Create one-page strategic alignment documents. Mission, Strategy, Projects, Omissions, Tracking. Forces clarity on what you WILL and WON'T do. Use when user says "mspot", "strategic plan", "quarterly plan", "what are we NOT doing", "omissions", "team alignment", "OKRs alternative", "priorities", "what should we focus on".
xhs-comment-strategy
小红书评论策略生成器 - 智能生成高互动率评论,帮助涨粉和建立人设。 基于真实运营经验,避免营销感,提升账号活跃度。 触发词:"生成评论"、"写小红书评论"、"评论互动"
china-scenic-spots
中国热门景区Top100合集,包含5A级景区数据库。适用于:(1) 查询景区详情(门票、最佳游览季节、建议时长);(2) 按省份/类型/季节推荐景区;(3) 制定旅游行程计划;(4) 比较不同景区。触发词:推荐景区、去哪玩、旅游攻略、景区门票、行程规划、中国旅行、A股景区、5A景区、自然风光、历史古迹、亲子游目的地等。
aws-spot-strategy
Design an interruption-resilient EC2 Spot instance strategy with fallback configurations
Content Strategy Skill
## Trigger