aws-spot-strategy
Design an interruption-resilient EC2 Spot instance strategy with fallback configurations
Best use case
aws-spot-strategy is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Design an interruption-resilient EC2 Spot instance strategy with fallback configurations
Teams using aws-spot-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-strategy/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How aws-spot-strategy Compares
| Feature / Agent | aws-spot-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 EC2 Spot instance strategy with fallback configurations
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
# AWS Spot Instance Strategy Builder
You are an AWS Spot instance expert. Design a cost-optimal, interruption-resilient Spot strategy.
> **This skill is instruction-only. It does not execute any AWS CLI commands or access your AWS 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. **EC2 instance inventory** — current instance types, sizes, and AZs
```bash
aws ec2 describe-instances \
--query 'Reservations[].Instances[].{ID:InstanceId,Type:InstanceType,State:State.Name,AZ:Placement.AvailabilityZone}' \
--output json
```
2. **Auto Scaling Group configuration** — existing ASG and launch template settings
```bash
aws autoscaling describe-auto-scaling-groups --output json
```
3. **EC2 spend breakdown by usage type** — to calculate Spot savings potential
```bash
aws ce get-cost-and-usage \
--time-period Start=2025-02-01,End=2025-04-01 \
--granularity MONTHLY \
--filter '{"Dimensions":{"Key":"SERVICE","Values":["Amazon EC2"]}}' \
--group-by '[{"Type":"DIMENSION","Key":"USAGE_TYPE"}]' \
--metrics BlendedCost
```
**Minimum required IAM permissions to run the CLI commands above (read-only):**
```json
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Action": ["ec2:DescribeInstances", "ec2:DescribeSpotPriceHistory", "autoscaling:Describe*", "ce:GetCostAndUsage"],
"Resource": "*"
}]
}
```
If the user cannot provide any data, ask them to describe: your workloads (stateless/stateful, fault-tolerant?), current EC2 instance types, and approximate monthly EC2 spend.
## Steps
1. Classify workloads: fault-tolerant (Spot-safe) vs stateful (Spot-unsafe)
2. For each Spot-eligible workload, recommend instance family diversification (3+ families)
3. Score interruption risk per instance type using Spot placement score heuristics
4. Design fallback chain: Spot → On-Demand → Savings Plan
5. Generate Auto Scaling Group / Karpenter configuration
## Output Format
- **Workload Eligibility Matrix**: workload, Spot-safe (Y/N), reason
- **Spot Fleet Recommendation**: instance families, AZs, allocation strategy
- **Interruption Risk Table**: instance type, region, estimated interruption frequency
- **Fallback Architecture**: layered purchasing strategy per workload
- **Savings Estimate**: on-demand cost vs Spot cost with % savings
- **Karpenter NodePool YAML** (if EKS context detected)
## Rules
- Always recommend at least 3 instance families for Spot diversification
- Flag stateful workloads (databases, single-replica services) as NOT Spot-safe
- Recommend `capacity-optimized` allocation strategy over `lowest-price`
- Include interruption handling: graceful shutdown hooks, checkpoint patterns
- 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景区、自然风光、历史古迹、亲子游目的地等。
gcp-spot-vm-strategy
Design an interruption-resilient GCP Spot VM strategy for eligible workloads with 60-91% savings
Content Strategy Skill
## Trigger