AI Agent Skills
Infracost's AI Agent Skills give your AI coding agents real-time cost and FinOps intelligence. Ask your agent to audit and fix tagging compliance issues, optimize resources to be within a budget, or generate compliant new infrastructure on the first try.
Agent Skills use your organization's own custom price books, FinOps policies, tagging policies, and other guardrails to ensure both new and existing resources stay within your desired constraints.
⚠️ Alpha release
This feature is in early alpha. Features may change and rough edges are expected. Found a bug or have feedback? Open a discussion thread on GitHub
Before You Begin
- A free Infracost Cloud account — sign up at infracost.io.
- A supported AI coding agent (see installation options below).
Installation
Claude Code
Inside Claude Code, run the following commands to add the Infracost marketplace and install the plugin:
/plugin marketplace add infracost/agent-skills
/plugin install infracost@infracost
You'll then need to quit and restart Claude Code.
The agent skill will automatically prompt you to download the required dependencies (i.e., the CLI) and authenticate if/when required.
How It Works
When you ask your agent a question about your infrastructure costs, Infracost's AI Agent Skills connect to Infracost Cloud at prompt time to retrieve real cost data for your resource configurations. This gives your agent accurate, up-to-date cost awareness — not generic estimates — so its recommendations are grounded in your actual infrastructure.
The skill reads your local IaC files (Terraform, Terragrunt, CloudFormation, AWS CDK) and combines that with live Infracost Cloud pricing data to answer questions, surface violations, suggest fixes, and generate compliant new resources.
Use Cases
Infracost's AI Agent Skills support many workflows. Click a use case below to learn more:
- Estimate Infrastructure Costs — Get a cost breakdown for your infrastructure changes before they're applied, so you can catch surprises early.
- Tagging Compliance — Audit your IaC codebase for missing or incorrect tags, then fix violations in one shot.
- Optimize Infrastructure Costs — Analyze your current infrastructure costs, identify top cost drivers, and get recommendations to improve your efficiency and reduce waste.
- Compliant IaC Generation — Generate new Terraform code that is correctly tagged, within budget, and compliant with your org's policies from the first draft.
- More use cases coming soon — additional workflows are in development for the alpha period.
Estimate Infrastructure Costs
Every infrastructure change has a cost impact, but most teams don't find out until the bill arrives. Infracost's AI Agent Skills give your agent the ability to break down the cost of your planned changes across compute, storage, networking, and more before anything is applied. Ask your agent to estimate the cost of a new module, compare pricing between instance types, or flag any change that would push monthly spend above a threshold.
Examples
Give me a full cost breakdown of this project and highlight the most expensive resources.
Tagging Compliance
Untagged or incorrectly tagged resources create cost attribution gaps, compliance violations, and blind spots in your FinOps reporting. Infracost's AI Agent Skills give you full visibility into every tagging gap in your IaC codebase and fixes them before any resource reaches production.
Examples
Scan this project and tell me which resources are missing required tags
Help me fix all of the tagging issues on my resources
Optimize Infrastructure Costs
Outdated instance types, extended support costs, and quietly inflate your cloud bill. The Infracost AI Agent Skill analyzes your current infrastructure costs, identifies the top cost drivers, and recommends changes that reduce waste. All while respecting your business requirements. Ask your agent to find savings opportunities, suggest cheaper alternatives for underutilized resources, or build a plan to bring a project within a target budget.
Examples
What are the easiest and lowest risk cost savings I could apply to this project?
How can I get the cost of this project back under $500/month?
List all of the potential cost savings for this infrastructure and order it by the amount saved per year
Compliant IaC Generation
Writing new infrastructure from scratch means juggling cost constraints, tagging
requirements, and organizational policies and getting any of them wrong means rework.
Infracost's AI Agent Skills generate new IaC code that is correctly tagged, within budget, and
compliant with your org's policies from the first draft. Ask your agent to scaffold a new
infrastructure stack, and it will apply your FinOps guardrails automatically so the output is production-ready before you ever run terraform plan.
Examples
Create a 3-tier web app on AWS using ECS and Postgres. Ensure it is compliant with all of my organizations FinOps policies and that it will cost less that $400/month