Cloud Cost Optimization
wshobson/agents
Cuts cloud spend across AWS, Azure, GCP and OCI with cost tagging, rightsizing, commitment and spot pricing models, and architecture changes.
Query Spot/preemptible VM prices, savings and interruption risk across AWS, GCP and Azure with the spotinfo CLI.
$ npx skills add alexei-led/spotinfo --skill spotinfo -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install alexei-led/spotinfo spotinfo --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/alexei-led/spotinfo.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/spotinfo .claude/skills/spotinfo && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "spotinfo" agent skill from https://github.com/alexei-led/spotinfo/tree/master/skills/spotinfo into .claude/skills/spotinfo/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "spotinfo", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/alexei-led/spotinfo/tree/master/skills/spotinfoType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add alexei-led/spotinfo --skill spotinfo -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install alexei-led/spotinfo spotinfo --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/alexei-led/spotinfo.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/spotinfo .agents/skills/spotinfo && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "spotinfo" agent skill from https://github.com/alexei-led/spotinfo/tree/master/skills/spotinfo into .agents/skills/spotinfo/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "spotinfo", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add alexei-led/spotinfo --skill spotinfo -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install alexei-led/spotinfo spotinfo --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/alexei-led/spotinfo.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/spotinfo .cursor/skills/spotinfo && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "spotinfo" agent skill from https://github.com/alexei-led/spotinfo/tree/master/skills/spotinfo into .cursor/skills/spotinfo/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "spotinfo", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/alexei-led/spotinfo.git --path skills/spotinfo--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add alexei-led/spotinfo --skill spotinfo -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install alexei-led/spotinfo spotinfo --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/alexei-led/spotinfo.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/spotinfo .gemini/skills/spotinfo && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "spotinfo" agent skill from https://github.com/alexei-led/spotinfo/tree/master/skills/spotinfo into .gemini/skills/spotinfo/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "spotinfo", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install alexei-led/spotinfo spotinfoInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add alexei-led/spotinfo --skill spotinfo -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/alexei-led/spotinfo.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/spotinfo .github/skills/spotinfo && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "spotinfo" agent skill from https://github.com/alexei-led/spotinfo/tree/master/skills/spotinfo into .github/skills/spotinfo/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "spotinfo", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add alexei-led/spotinfo --skill spotinfo -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install alexei-led/spotinfo spotinfo --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/alexei-led/spotinfo.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/spotinfo .opencode/skills/spotinfo && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "spotinfo" agent skill from https://github.com/alexei-led/spotinfo/tree/master/skills/spotinfo into .opencode/skills/spotinfo/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "spotinfo", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
spotinfoQuery Spot/preemptible VM prices, savings and interruption risk across AWS, GCP and Azure with the spotinfo CLI.
Spotinfo is an agent skill from alexei-led/spotinfo. Query Spot/preemptible VM prices, savings and interruption risk across AWS, GCP and Azure with the spotinfo CLI. Use this whenever the user asks which instance type is cheapest, what a Spot instance costs, what the interruption risk is, whether arm64 beats x8664 on price, how AWS/GCP/Azure Spot pricing compares, or wants to size a workload to a budget — including when they describe the need without naming spotinfo ("find me a cheap 8-core box", "least interruption-prone instance for a CI runner", "compare spot…
Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including scripts and reference files (for example `references/clouds.md`, `references/output-schema.md` and `references/recipes.md`). Compatibility notes: Requires the spotinfo binary on PATH (brew install alexei-led/tap/spotinfo, or ghcr.io/alexei-led/spotinfo). jq is needed only for scripts/compare-clouds.sh…
It sits in DevOps & Cloud, covering Landing pages, Web scraping and Cloud cost optimization. It works with Google Cloud, Amazon Web Services, Microsoft Azure and Model Context Protocol. The repository describes itself as: CLI for exploring Spot instance pricing across AWS, GCP and Azure. Inspect Spot instance types, savings, price, and AWS interruption frequency — offline, from embedded data. The licence is Apache-2.0.
Read from SKILL.md and the folder at commit a1306dc. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 1 file in scripts/ (Shell), which the agent can run.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Requires the spotinfo binary on PATH (brew install alexei-led/tap/spotinfo, or ghcr.io/alexei-led/spotinfo). jq is needed only for scripts/compare-clouds.sh. No cloud credentials and no network are required.
From compatibility in the SKILL.md frontmatter.
Spotinfo loads about 1.8k tokens when it runs, and up to ~6.3k if it reads all its reference files. Until then it costs about 178 tokens; SKILL.md has 706 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from alexei-led/spotinfo at commit a1306dc, republished under its Apache-2.0 licence (© alexei-led). 706 words, ~1,848 tokens.
.claude/skills/spotinfo/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.One binary that answers two questions about Spot/preemptible VMs on AWS, GCP and Azure:
spotinfo list — requires nothing, shows every matchspotinfo recommend — requires --architecture,
--min-vcpu and --min-memory-gib, returns a ranked pagePick recommend when the user states a requirement ("I need 8 cores and 32 GB").
Pick list when they want to see what exists ("what do m5 instances cost").
It ships an embedded price snapshot per cloud, so it answers with no credentials and no network. A query is free and cannot fail on missing auth — run it instead of guessing a price from memory.
Pass --offline unless the user needs today's price. It answers from the
snapshot in about 40 ms and makes no network call. Without it, --region all
(the default) queries every AWS region and takes seconds.
Pass --output json whenever you will parse the result. table is for
people to read.
spotinfo recommend --cloud aws --offline --output json \
--architecture x86_64 --min-vcpu 8 --min-memory-gib 32 --top 5The row key differs by command. list puts rows under candidates,
recommend under recommendations. The documents otherwise look alike, so a
parser written for one silently finds nothing in the other.
Prices are strings. "0.047500000" is fixed-point on purpose, because a
float drifts on the last digit. Call tonumber before you compare or total.
On list the field is nullable — AWS omits some machines from its price feed,
and those carry null rather than 0.
risk is always an object, even when empty. Read risk.status first.
Full field reference: references/output-schema.md.
unavailable is not zeroOn AWS, risk carries a real Spot Advisor measurement. On GCP and Azure every
field except status is null:
"risk": { "status": "unavailable", "kind": null, "label": null }That means the vendor does not publish the figure. It does not mean the risk is
low, and it does not mean zero. Reading risk.label unconditionally gives you
null, which prints as an empty cell and reads to a person as "fine".
When you report a GCP or Azure machine, say the cloud publishes no interruption figure. Quietly dropping the column is how someone puts a database on a preemptible VM.
This is also why the risk-capped workloads are AWS-only — the web, ci and
batch ceilings are AWS Spot Advisor bucket boundaries:
spotinfo recommend --cloud aws --workload web --offline --architecture x86_64 --min-vcpu 4 --min-memory-gib 16
spotinfo recommend --cloud gcp --workload cost --offline --architecture x86_64 --min-vcpu 4 --min-memory-gib 16--workload cost is the default, makes no interruption claim, and answers
everywhere.
Per-cloud capabilities and limits: references/clouds.md.
| Flag | Note |
|---|---|
--cloud aws|gcp|azure | Defaults to aws. Set it whenever the user named a cloud. |
--offline | Snapshot only, no network. Use by default. |
--machine | An RE2 regexp, not a glob. '^m5\.', never 'm5*'. Anchor it or m5dn matches too. |
--region | Repeatable. Defaults to all. Scope it when the user named a region. |
--sort / --order | machine|price|region|risk|savings|score, asc|desc. |
--max-price | USD per machine-hour ceiling. |
--os linux|windows | AWS and Azure serve both. GCP refuses Windows. |
--top | recommend only, maximum 50. |
spotinfo refuses a flag it cannot honour instead of ignoring it. Exit is non-zero with empty stdout, so branch on the exit code and read stderr — the message names the flag, the cloud and the limit, and usually names the fix.
| You ran | It says |
|---|---|
--os windows --cloud gcp | Google publishes Linux Spot prices only |
--workload web on GCP/Azure | no comparable interruption figure — use --workload cost |
--sort score without --with-score | only --with-score fetches the figures the sort orders |
--with-score --offline | no snapshot carries a placement figure |
--cpu, --memory, --type, --price | retired names — the hint gives the replacement |
Common tasks with commands and result handling: references/recipes.md.
To compare one requirement across all three clouds in a single table:
scripts/compare-clouds.sh --min-vcpu 4 --min-memory-gib 16 --offlineMachine naming differs per cloud, so there is no single cross-cloud query — the
script runs one recommend per cloud and merges the output.
spotinfo --mcp speaks MCP 2025-11-25 over stdio with three read-only tools:
list_spot_machines, recommend_spot_machines, list_cloud_regions. Argument
names mirror the flags mechanically (--min-vcpu → min_vcpu, --region →
regions, an array).
If you already have shell access, prefer the CLI — one call, same schema, and you can pipe it.
Give price, savings percent and risk together. A cheap machine with a >20%
interruption rate is a different recommendation from a cheap stable one, and the
price alone hides that. When risk is unavailable, say the cloud does not
publish it — never let silence read as safety.
© alexei-led, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 4 other files (scripts, references) in skills/spotinfo of alexei-led/spotinfo.
Open the folder on GitHubat commit a1306dc
Spotinfo next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Spotinfo this skillalexei-led/spotinfo | 164 | — | ~1.8k | Automated safety check: Pass | Apache-2.0 | |
| Cloud Cost Optimizationwshobson/agents | 40k | 14 repos | ~1.7k | Automated safety check: Pass | MIT | |
| Terravision Cloud Diagramspatrickchugh/terravision | 1.6k | — | ~5.6k | Automated safety check: Notes | AGPL-3.0-only | |
| FrugalyuanboP/frugal | 198 | — | ~2.1k | Automated safety check: Pass | MIT | |
| Cloud ArchitectJeffallan/claude-skills | 12k | — | ~1.9k | Automated safety check: Pass | MIT | |
| Cloud Architectdavila7/claude-code-templates | 33k | 8 repos | ~1.9k | Automated safety check: Pass | MIT |
wshobson/agents
Cuts cloud spend across AWS, Azure, GCP and OCI with cost tagging, rightsizing, commitment and spot pricing models, and architecture changes.
patrickchugh/terravision
Draw cloud architecture diagrams for AWS, Azure or GCP with the official provider icon sets, using TerraVision.
yuanboP/frugal
Cloud cost awareness for agents. An agent skill from yuanboP/frugal.
Jeffallan/claude-skills
Designs cloud architectures, migration plans, cost optimization recommendations and disaster recovery strategies across AWS, Azure and GCP.
davila7/claude-code-templates
Expert cloud architect specializing in AWS/Azure/GCP multi-cloud infrastructure design, advanced IaC (Terraform/OpenTofu/CDK), FinOps cost optimization, and modern architectural patterns.
ancoleman/ai-design-components
Apply and enforce cloud resource tagging strategies across AWS, Azure, GCP, and Kubernetes for cost allocation, ownership tracking, compliance, and automation.
Categories
Query Spot/preemptible VM prices, savings and interruption risk across AWS, GCP and Azure with the spotinfo CLI. Spotinfo is an agent skill from alexei-led/spotinfo. Query Spot/preemptible VM prices, savings and interruption risk across AWS, GCP and Azure with the spotinfo CLI.
Spotinfo fits situations like: asks which instance type is cheapest; what a Spot instance costs; what the interruption risk is; whether arm64 beats x8664 on price.
Run `npx skills add alexei-led/spotinfo --skill spotinfo -a claude-code`. Or copy the skill folder (skills/spotinfo in alexei-led/spotinfo) into .claude/skills/spotinfo in your project. Claude Code loads it when a task matches its description.
Run `npx skills add alexei-led/spotinfo --skill spotinfo -a codex`. Or copy the skill folder (skills/spotinfo in alexei-led/spotinfo) into .agents/skills/spotinfo in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add alexei-led/spotinfo --skill spotinfo -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/spotinfo, .gemini/skills/spotinfo, .github/skills/spotinfo and .opencode/skills/spotinfo in your project.
Going by SKILL.md and its folder, Spotinfo needs a shell for the scripts in its folder. Our summary lists: A Bash shell. Compatibility (from SKILL.md): Requires the spotinfo binary on PATH (brew install alexei-led/tap/spotinfo, or ghcr.io/alexei-led/spotinfo). jq is needed only for scripts/compare-clouds.sh. No cloud credentials and no network are required..
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Spotinfo is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.8k tokens (SKILL.md is roughly 7.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4.4k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Spotinfo: Cloud Cost Optimization (wshobson/agents, 40k stars), Terravision Cloud Diagrams (patrickchugh/terravision, 1.6k stars), Frugal (yuanboP/frugal, 198 stars) and Cloud Architect (Jeffallan/claude-skills, 12k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
alexei-led (a GitHub user) maintains it in alexei-led/spotinfo, which has 164 GitHub stars. The repository was last updated on October 5, 2026.
Source: alexei-led/spotinfo on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.