cost-estimator

cost-estimator is a skill for Claude Code, Codex from aws-samples/sample-agent-skills-for-builders. It costs 36 tokens per session (448 once invoked), scanned A, original, Apache-2.0.

A cost-estimation workflow for AWS CDK projects. AWS is a cloud service provider, and CDK is code used to define the cloud resources an application needs.

In plain words
What is it for?
Use it to inspect CDK resources, retrieve current AWS prices, estimate Bedrock model costs, and create Excel or Markdown cost reports.
Why use it?
It shows the expected infrastructure cost before deployment and can reveal how prices differ between AWS regions.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect CDK resources, retrieve current AWS prices, estimate Bedrock model costs, and create Excel or Markdown cost reports.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aws-samples/sample-agent-skills-for-builders/cost-estimator
About the project

Sample Agent Skills for Builders is a collection of reusable skills that extend AI coding agents with AWS, CDK, security, testing, and engineering workflows. Developers can install the skills for practical AWS development tasks or use the repository as a model for creating their own agent skills. The catalogue entries are skills and instructions from this collection.

aws-samples/sample-agent-skills-for-builders · 47 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add aws-samples/sample-agent-skills-for-builders --skill cost-estimator
Clone the repo
git clone --depth 1 https://github.com/aws-samples/sample-agent-skills-for-builders

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cost-estimator

README.md
[![agentmods](https://agentmods.dev/badge/skills/aws-samples/sample-agent-skills-for-builders/cost-estimator/github.svg)](https://agentmods.dev/skills/aws-samples/sample-agent-skills-for-builders/cost-estimator)
Your own site
<a href="https://agentmods.dev/skills/aws-samples/sample-agent-skills-for-builders/cost-estimator"><img src="https://agentmods.dev/badge/skills/aws-samples/sample-agent-skills-for-builders/cost-estimator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cost-estimator

Your own site · 80×15
<a href="https://agentmods.dev/skills/aws-samples/sample-agent-skills-for-builders/cost-estimator"><img src="https://agentmods.dev/badge/skills/aws-samples/sample-agent-skills-for-builders/cost-estimator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 448 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.00448
Opus 5 $0.00018 $0.00224
Sonnet 5 $0.00007 $0.00090
Haiku 4.5 $0.00004 $0.00045

Measured 10d ago against content hash 6dd4aa4b85c5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

cost-estimator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/fetch-aws-pricing.py, scripts/generate-pricing-excel.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/cost-estimator/SKILL.md · 63 lines

What it actually says

Cost Estimator

AWS cost estimation tool for CDK projects with real-time pricing from AWS Price List Bulk API.

When to Apply

Reference this skill when:

  • Estimating AWS infrastructure costs
  • Analyzing CDK project resource costs
  • Generating pricing reports (Excel/Markdown)
  • Comparing costs across AWS regions
  • Calculating Bedrock model costs

How It Works

  1. Confirm Region - Select target AWS region(s)
  2. Scan Resources - Analyze CDK code for AWS resources
  3. Fetch Pricing - Get real-time prices from AWS Bulk API
  4. Generate Reports - Create Excel and Markdown reports

Prerequisites

  • AWS CDK project with synthesizable stacks
  • Python 3.8+ with pandas, openpyxl
  • AWS credentials (for pricing API access)

Usage

# Fetch AWS pricing data
python scripts/fetch-aws-pricing.py --region us-east-1

# Generate Excel report
python scripts/generate-pricing-excel.py --input resources.json --output costs.xlsx

Output Files

Reports are saved to cost-estimates/:

  • cost-estimate-{region}.xlsx - Detailed Excel report
  • cost-estimate-{region}.md - Markdown summary

Supported Regions

  • All standard AWS regions
  • China regions (cn-north-1, cn-northwest-1) with CNY pricing

References

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 63 lines · 36 tokens per session scan A 6dd4aa4b85c5

Subscribe to this mod's changes

cost-estimator is a skill published in the GitHub repository aws-samples/sample-agent-skills-for-builders (47 stars, last pushed 14d ago), licensed Apache-2.0. It adds 36 tokens to every session and 448 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

aws-cost-cleanup

Automated cleanup of unused AWS resources to reduce costs.

sickn33/agentic-awesome-skills · 15 tokens

aws-cost-operations

AWS cost optimization, monitoring, and operational excellence expert. Use when analyzing AWS bills, estimating costs, setting up CloudWatch alarms, querying logs, auditing CloudTrail activity, or assessing security posture.

sickn33/agentic-awesome-skills · 44 tokens

azure-compute

Azure VM/VMSS router. WHEN: create / provision / deploy / spin-up VM, recommend VM size, compare VM pricing, VMSS, scale set, autoscale, burstable, lightweight server, website, backend, GPU, machine learning, HPC simulation, dev/test, workload, family, load balancer, Flexible orchestration, Uniform orchestration, cost…

microsoft/skills · 154 tokens

azure-cost

Azure cost management: query costs, forecast spending, optimize to reduce waste. WHEN: "Azure costs", "Azure bill", "cost breakdown", "how much am I spending", "forecast spending", "optimize costs", "reduce spending", "orphaned resources", "rightsize VMs", "cost spike", "reduce storage costs", "AKS cost". DO NOT USE…

microsoft/skills · 94 tokens

cost-optimization

Audit and reduce infrastructure and tooling costs without sacrificing reliability or velocity. Use this skill when reviewing monthly cloud or SaaS spend, finding unused resources, rightsizing infrastructure, negotiating vendor contracts, deciding what to consolidate, or planning for budget cuts. Triggers on cost…

rampstackco/claude-skills · 101 tokens

compute-resell

Autonomous compute-reselling agent on Surplus Intelligence - resells free or low-cost provider compute across Bankr, AWS Bedrock, and Google Vertex (GCP) as one skill. Reads the live market + your cost + your usage, auto-lists your models per enabled provider, and reactively prices each offer to win routing within a…

aeonfun/aeon · 83 tokens