AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Infra Cost Guard

skill-sergeyitaly-claude-skill-deployer-infra-cost-guard · by sergeyitaly

Estimate and gate on infrastructure running costs before deploying or leaving resources running — detect expensive resource types in a Terraform plan or live resource list, calculate hourly/daily/monthly estimates, warn before apply, and remind about teardown. Works for Azure, AWS, and GCP. Use before terraform apply on any plan that includes compute, networking (firewalls, NAT gateways, load bal…

No reviews yet
0 installs
35 views
0.0% view→install

Install

$ agentstack add skill-sergeyitaly-claude-skill-deployer-infra-cost-guard

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-sergeyitaly-claude-skill-deployer-infra-cost-guard)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Infra Cost Guard? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Infra Cost Guard

Prevents surprise cloud bills by estimating cost before apply and reminding about teardown when expensive resources are running.

1. Detect expensive resources in the plan

After terraform plan produces output, scan it for these resource types:

Azure

| Resource type | Approx cost | |---|---| | azurerm_firewall Standard SKU | ~$1.10–1.30/hr (~$26/day) | | azurerm_firewall Premium SKU | ~$2.50/hr | | azurerm_application_gateway WAF_v2 | ~$0.35/hr + data | | azurerm_nat_gateway | ~$0.045/hr + data | | azurerm_virtual_machine — check size: B-series

Confirm: these resources will accrue charges until destroyed. Teardown: terraform destroy -auto-approve (from )


Do **not** block apply — this is informational. State the teardown command
explicitly so it can be copy-pasted.

## 3. Write a teardown reminder

After a successful `terraform apply`, write a teardown note to the project's
run-log:

```markdown
## Teardown reminder — 
Resources running since apply: ~$/hr accruing.
Stop charges: `terraform destroy -auto-approve` from ``
Estimated charge if left running 24h: ~$

4. Live resource cost check (without a plan)

If asked to estimate cost for already-running resources:

Azure:

mcp__claude-skills-cli__run_command {
  cli: "az",
  args: ["resource", "list", "--resource-group", "", "--output", "json",
         "--query", "[].{name:name,type:type,sku:sku}"]
}

Match the returned types against the table in section 1.

AWS:

mcp__claude-skills-cli__run_command {
  cli: "aws",
  args: ["ce", "get-cost-and-usage", "--time-period",
         "Start=,End=",
         "--granularity", "DAILY", "--metrics", "BlendedCost"]
}

GCP:

mcp__claude-skills-cli__run_command {
  cli: "gcloud",
  args: ["billing", "accounts", "list"]
}

5. Rules

  • Always emit the teardown command alongside any cost warning — it reduces

the friction of stopping resources.

  • Do not refuse to deploy expensive resources; the user decides. Your job

is to make costs visible before apply, not to block work.

  • Prices are estimates. For exact rates use the cloud provider's pricing

calculator or Cost Management tools.

  • For long-running demo/test environments (firewall, K8s, databases), suggest

scheduling a destroy or setting an auto-shutdown policy.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.