/infracost:infracost-price-lookupfrom infracost
Generates sample Terraform and prices it with Infracost to look up cloud resource costs across AWS, GCP, and Azure. Useful for comparing pricing between configurations, instance types, regions, or providers without existing infrastructure code.
Ships in infracost. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Look up cloud resource pricing without needing existing infrastructure code. Supports any resource type that Terraform and Infracost support across AWS, GCP, and Azure.
You synthesize a small Terraform snippet for what the user is asking about and price it. The result is a per-resource breakdown plus a headline summary.
This skill uses the price capability (and optionally the inspect capabilities to reproject
the result). Each has two bindings — a typed MCP tool call and an infracost … CLI command —
listed in BINDINGS.md.
Rule: if the Infracost MCP server is available, use its tools; otherwise run the equivalent CLI
command from BINDINGS.md. With MCP, the snippet is passed as a string to the price tool. With
the CLI, the snippet is fed to infracost price on stdin via a heredoc (this is the one command in
the skill set that needs a shell metacharacter — see BINDINGS.md).
Before pricing, satisfy the three preflight capabilities (see BINDINGS.md): the CLI is present,
the user is authenticated, and an organization is selected. With MCP these are resolved on the first
tool call (failures come back as readable errors, not a dropped connection); with the CLI, check
them inline. Never run infracost auth login — it is interactive.
Synthesize a small Terraform snippet for the resource(s) the user is asking about. Rules:
us-east-1 and mention it.aws_instance.web_server, not aws_instance.example) so the output is easier to read.Use the price capability with the Terraform snippet (see BINDINGS.md for the exact MCP tool / CLI invocation):
provider "aws" {
region = "us-east-1"
}
resource "aws_instance" "web_server" {
ami = "ami-0c55b159cbfafe1f0"
instance_type = "m5.xlarge"
root_block_device {
volume_size = 100
volume_type = "gp3"
}
}
For non-USD currencies pass a currency (ISO 4217 code — EUR, GBP, JPY, CAD, AUD, …). If
the user doesn't specify a currency, the org-configured default is used (typically USD).
A price returns:
currency — the ISO code in use.summary — headline counts (resource counts, monthly cost, etc.) — the same shape a scan returns.resources[] — one row per top-level resource you sent in, with:
name, type, is_supported, is_freetotal_monthly_cost — pre-summed across cost components AND any nested subresources (e.g. an EKS NodeGroup's LaunchTemplate + EBS volumes are folded into the parent's total).cost_components[] — per-component breakdown (vCPU, storage, IOPS, …) with unit, price, quantity, and the monthly costs.tags, supports_tags, supports_default_tags, metadata (filename + line in the synthesized Terraform).Unlike a scan, a price always includes the per-resource list — you've just shipped the IaC, so the cost of returning it is fixed and small.
The price result is cached just like a scan result. If you want to project the data differently (e.g. group by type, top N by cost), use any of the inspect capabilities — they all read the latest cached result by default:
These rarely add value over reading resources[] directly when the snippet is small, but they're handy for "what would the top 5 savings be on this?" follow-ups.
Lead with the monthly cost — that's what the user came for.
AWS RDS MySQL — db.r5.xlarge, 100GB gp3 Region: us-east-1
Component Monthly Cost Instance (on-demand) $365.00 Storage (100GB gp3) $11.50 Total $376.50 Usage-based costs (estimated):
- I/O requests: ~$X/mo based on typical usage
Savings opportunity: Consider Graviton (db.r6g.xlarge) for
20% savings ($876/yr).
infracost auth login in their own terminal (interactive — never run it yourself), or infracost org switch <slug> for one of the slugs the error lists. The running MCP server picks up a saved org selection on its next call.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub infracost/agent-skills --plugin infracost4 skills in this plugin
/fix-findingsWalk a user through Infracost FinOps findings and apply fixes — either locally in their repo (when the task carries enough context to make a code edit), or by asking Agents to draft and open a PR / ticket on their behalf. Use this skill when the user asks to "fix the findings", "apply the recommendations", "open PRs for the FinOps issues", or otherwise wants to act on Agents' investigation results rather than just look at them./iac-generationEnsures 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./infracost-scanAnalyze 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 Infracost (via its MCP server when available, otherwise the Infracost CLI) to perform the analysis. The output is a detailed cost report that highlights key insights and recommendations for cost optimization.Other plugins' skills for the same job