Skip to content

Guide · Agent skill

How to use the Cloud Cost Optimization agent skill

Updated · written with AI from the project's own documentation and checked against our catalogue data

The cost-optimization skill is a reference playbook that lets an AI agent give you structured advice for lowering cloud bills on AWS, Azure, GCP and Oracle Cloud (OCI). It is aimed at engineers and platform teams who want a checklist of savings levers and a starting point for Terraform. After this guide you will know what the skill does, how to install it, how to phrase a request that triggers it, and what to check before acting on its output.

Cloud Cost Optimizationwshobson/agents · MIT

Quick start

  1. 1Download the ZIP. Get the cost-optimization skill ZIP from this page.
  2. 2Unzip into a skills folder. Place the cost-optimization folder in ~/.claude/skills/ for personal use, or in a project's .claude/skills/ folder.
  3. 3Or upload in the Claude apps. Open Settings, go to Capabilities, and upload the skill under Skills.
  4. 4Describe your goal. Ask in plain language about reducing cloud costs, analyzing infrastructure spend, or setting cost governance, and name your provider.
  5. 5Review the suggestions. Check the levers and discount figures against your own contracts and usage before acting.
  6. 6Validate the Terraform. Replace placeholder AMI IDs, dates and email addresses, then review and test the code outside production.

What is an agent skill?

An agent skill is a folder containing a SKILL.md file with instructions and, optionally, reference files that an AI agent loads when a task matches the skill's description. The agent reads the description to decide when the skill is relevant, so you do not have to paste the instructions into every chat.

This skill's SKILL.md covers cost visibility, right-sizing, pricing models, architecture changes and governance, and it links to a tagging standards reference.

What the skill makes the agent do

Once installed, the agent can draw on a framework of four areas: visibility (cost allocation tags, budget alerts, dashboards), right-sizing (finding over-provisioned or idle resources), pricing models (reserved capacity, savings plans, spot or preemptible instances, committed use discounts) and architecture (managed services, lifecycle policies, caching).

It also brings provider-specific notes for AWS, Azure, GCP and OCI, sample Terraform for tagging, budgets, S3 lifecycle rules and auto-scaling, and a checklist of common savings actions.

  • Suggest right-sizing of resources based on utilization
  • Recommend cost-allocation tags, with a standard set of required tags
  • Compare reserved, savings-plan, committed-use and spot/preemptible options
  • Add lifecycle rules to storage
  • Set budget alerts and review anomaly detection tools

Install the skill

Download the ZIP from the skill's page on this site and unzip it. For a personal install, place the resulting cost-optimization folder in ~/.claude/skills/. For a single project, place it in that project's .claude/skills/ folder.

If you use the Claude apps instead, open Settings, go to Capabilities, and upload the skill under Skills.

  • Personal: ~/.claude/skills/cost-optimization/
  • Project: .claude/skills/cost-optimization/ inside your repository
~/.claude/skills/cost-optimization/SKILL.md

Trigger the skill with natural requests

You do not need a special command. Describe the task in plain language that matches the skill's purpose: reducing cloud expenses, analyzing infrastructure costs, or implementing cost governance policies. Naming the provider and the artifact you want helps the agent pick the right section.

Good requests name a provider, a goal and an output format, for example asking for a Terraform budget with an 80 percent alert, or a list of rightsizing candidates from a description of your instances.

  • "Review our AWS setup for cost savings and list the levers in priority order."
  • "Write Terraform that tags every resource with Environment, Owner, CostCenter, Project and ManagedBy."
  • "Add an S3 lifecycle rule that moves objects to infrequent access after 30 days."
  • "Draft a monthly budget with an alert at 80 percent of actual spend."
  • "What reserved instance or savings plan options fit a steady production workload on Azure?"

Example workflows

A typical session starts with visibility. Ask the agent for a tagging scheme, then for the Terraform locals block that applies it. Next, ask which pricing model suits steady versus bursty workloads, and where spot or preemptible capacity could fit with a fallback on standard capacity.

For storage, the skill includes a three-tier example (Standard, Standard-IA at 30 days, Glacier at 90 days, Deep Archive at 365 days). Treat these as ideas to adapt, not defaults for your data.

Check the output before you use it

The skill is guidance and sample code. It does not connect to your cloud account, read billing data or change anything by itself. The Terraform examples use placeholders: a hard-coded AMI ID (ami-12345678), a budget start date of 2024-01-01 and example email addresses. Replace them and review every change before applying it.

The discount percentages in the skill (for example up to 72 percent for reserved VMs or up to 90 percent for spot) are generic figures from vendor marketing. They may be outdated or differ from your contract, region or usage, so do not use them as a savings forecast. Automated resizing or shutdown can cause outages, so review changes in a non-production environment first.

  • Terraform is needed only if you ask the agent to write or apply the infrastructure examples
  • Provider accounts and credentials are needed only if you later ask the agent to query real billing or resource data; the skill itself does not require them
  • The skill runs no scripts and uses no network access

Tips for better results

Give the agent real context: your provider, the services that dominate your bill, and whether workloads are steady or bursty. Generic questions get generic checklists.

Keep the reference file in mind. The tagging standards file defines required tags (Environment, Owner, CostCenter, Project, ManagedBy) and recommends an approved tag dictionary, policy enforcement and weekly audits. Asking the agent to follow it keeps outputs consistent across teams.

  • Name the provider and the service (for example EC2, RDS or Compute Engine)
  • Ask for a prioritized list so you know where to start
  • Ask the agent to flag placeholder values in any code it writes

What people use it for

  • Reviewing a multi-cloud or single-cloud bill for common savings levers
  • Drafting a required-tag scheme and the Terraform locals block that applies it
  • Writing a starter AWS budget with an 80 percent alert threshold
  • Adding an S3 lifecycle rule that transitions objects to cheaper storage classes
  • Building a checklist for weekly cost reviews and tag audits

Frequently asked questions

How do I install the cost-optimization agent skill?

Download the ZIP from this page and unzip it. Put the cost-optimization folder in ~/.claude/skills/ for personal use or in a project's .claude/skills/ folder. In the Claude apps, you can instead upload it under Settings, then Capabilities, then Skills.

Does this skill need any cloud credentials?

No. The skill itself does not require cloud provider accounts or credentials. They are only needed if you later ask the agent to query real billing or resource data, which this skill does not do on its own.

Is the cost-optimization skill free?

The skill is published under the MIT licence. Check the licence on the source repository for the full terms.

Does the skill change my cloud resources or connect to my account?

No. It is guidance and sample code. It does not connect to your account or make changes by itself, so you must review and apply any Terraform yourself.

Can I trust the savings percentages?

Treat them as rough figures. The discount percentages are generic values from vendor marketing and may be outdated or differ from your contract, region or usage. Use your provider's pricing and your own data to forecast savings.

What should I check before using the Terraform examples?

The examples use placeholders, including a hard-coded AMI ID, a fixed budget start date and example email addresses. Replace these, confirm the values match your environment, and test the code before applying it to production. Terraform is required if you apply the examples.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

Use this skill if you are an engineer or platform team reviewing a cloud bill, want a checklist of savings levers and governance practices, or need a starting template for tagging, budgets or S3 lifecycle rules. Pick something else if you need exact savings forecasts or an tool that analyzes your live billing data and acts on it, since this skill provides generic guidance and placeholder code only.

Download the skill