By infracost
Automatically runs Infracost to estimate cloud costs for Terraform and CloudFormation IaC code in Claude Code sessions. Triggers on session-start events like startup, clear, or compact, delivering cost forecasts and breakdowns directly in your development workflow for FinOps-aware infrastructure coding.
npx claudepluginhub infracost/agent-skills --plugin infracostEnsures cost optimization and FinOps/tagging policy compliance for infrastructure as code. BLOCKING REQUIREMENT - Invoke this skill BEFORE generating any IaC code, entering plan mode, or asking clarification questions. TRIGGER when: planning or writing code which creates cloud infrastructure resources (regardless of naming a specific tool to do so), imports IaC provider SDKs (pulumi-aws, hashicorp/aws, aws-cdk), or the task involves writing Pulumi, Terraform, CloudFormation, CDK, or Terragrunt. DO NOT TRIGGER when: general programming unrelated to infrastructure provisioning.
Install or update the Infracost Language Server. Use this skill when the user asks to install the Infracost LSP, or when infracost-ls is missing from the system.
Install or update the Infracost CLI. Use this skill when the user asks to install, update, or upgrade Infracost, or when the CLI is missing from the system.
Look up cloud resource pricing by generating sample Terraform and running Infracost against it. Use this skill when the user asks "how much does X cost?" or wants to compare pricing between resource configurations, instance types, regions, or cloud providers. This does not require the user to have any existing infrastructure code.
Analyze infrastructure as code (IaC) projects to estimate cloud costs, identify savings opportunities, and flag FinOps policy violations. This skill should be used when asking about the cost of a cloud project, how to optimize costs, or when there are specific questions about FinOps policies or tagging compliance in an IaC codebase. The skill uses the Infracost CLI and its plugins to perform the analysis, so it requires the user to have those set up and authenticated. The output is a detailed cost report that highlights key insights and recommendations for cost optimization.
Uninstall the Infracost Language Server. Use this skill when the user asks to uninstall or remove the Infracost LSP from their system.
Uninstall the Infracost CLI. Use this skill when the user asks to uninstall or remove Infracost from their system.
Cloud cost intelligence for AI coding agents.
https://github.com/user-attachments/assets/16eef8f1-5bc1-4e5f-b5c4-c7594d883057
A collection of AI coding agent skills for Infracost users. These skills integrate Infracost workflows directly into your AI coding agent, providing cost estimation, optimization recommendations, and FinOps policy compliance for infrastructure as code.
| Skill | Description |
|---|---|
| iac-generation | Ensure cost optimization and FinOps/tagging policy compliance when writing infrastructure as code |
| scan | Analyze IaC projects to estimate cloud costs, identify savings opportunities, and flag FinOps policy violations |
| price-lookup | Look up cloud resource pricing by generating sample Terraform and running Infracost — no existing IaC required |
| install | Install or update the Infracost CLI from GitHub releases |
| uninstall | Uninstall the Infracost CLI |
| install-lsp | Install or update the Infracost Language Server |
Works with Terraform, Terragrunt, and CloudFormation. Supports AWS, GCP, and Azure.
[!IMPORTANT]
Make sure you've signed up for a free Infracost account before trying to use the AI skills (takes under a minute; no credit card required).
Install the plugin from the marketplace:
/plugin marketplace add infracost/agent-skills
/plugin install infracost@infracost
# Restart Claude
The skills will then be available as /infracost:<skill> slash commands.
After installing, try any of these prompts:
Scan for costs and policy violations:
Scan this Terraform project and tell me which resources are missing required tags.
Look up pricing without any existing code:
How much does an RDS PostgreSQL db.r5.xlarge cost in us-east-1?
Optimize to a budget:
Our budget is $2,000/month. Which resources are pushing us over, and what is the quickest
way to get under budget?
Generate compliant infrastructure:
Write Terraform for an RDS PostgreSQL instance for our payments service in us-east-1.
Required tags: team=payments, env=prod, cost-center=platform. Budget: $500/month.
The Infracost skills connect to Infracost Cloud to retrieve real pricing data and your organization's policies. They read your local IaC files and combine that with live pricing and policy data to answer questions, surface violations, suggest fixes, and generate compliant new resources.
Optimize cloud costs and generate cost reports
DevsForge cloud cost optimization specialist for analyzing and reducing infrastructure expenses
Terraform module creation and infrastructure planning
Research-backed, opinionated guidance for building cloud infrastructure that doesn't rot — multi-account governance, naming conventions, IaC organization, security, deployment pipelines, and operational hygiene, distilled from production experience across multiple cloud migrations
Comprehensive CloudZero cost analysis plugin providing AI-powered skills for investigating cost spikes, analyzing trends, comparing spending, optimizing services, and tracking cloud infrastructure costs using CloudZero's MCP server
Share bugs, ideas, or general feedback.
Real-time Azure cost estimation using the Azure Retail Prices API
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claim