From grimoire
Estimates, forecasts, and audits cloud infrastructure costs for architecture decisions and budget planning. Use during provisioning, architecture review, or budget planning.
How this skill is triggered — by the user, by Claude, or both
Slash command
/grimoire:calculate-cloud-costsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Produce accurate, defensible cloud cost estimates and forecasts to inform architecture decisions and budget planning.
Produce accurate, defensible cloud cost estimates and forecasts to inform architecture decisions and budget planning.
Adopted by: FinOps Foundation member companies (Atlassian, Spotify, Nike, Goldman Sachs); required by enterprise procurement and budget governance processes Impact: Organizations using structured cost estimation reduce budget overruns by 40% (FinOps Foundation 2023 State of FinOps); unchecked cloud spend grows 23% YoY without governance Why best: Cloud pricing is complex (compute, storage, network egress, API calls, support tiers all compound); structured calculation prevents surprise bills and enables architecture trade-off decisions
Sources: Storment & Fuller "Cloud FinOps" O'Reilly (2019); FinOps Foundation State of FinOps Report (2023); AWS Well-Architected Cost Optimization Pillar
Inventory all billable components — List every resource category your architecture requires: compute (instance type, count, hours/month), storage (GB, IOPS, class), network (egress GB, inter-region, CDN), managed services (RDS, Kafka, ML APIs), and support plan. Missing a category is the most common source of estimate error.
Gather usage baselines — For existing systems: pull 90-day actuals from Cost Explorer / Cloud Billing. For new systems: estimate peak and average RPS, data volumes, and user counts. Never estimate on peak alone; use p95 load for sizing.
Use provider pricing calculators — AWS Pricing Calculator, GCP Pricing Calculator, Azure Calculator. Input specific SKUs, not generic "server" estimates. Capture on-demand prices first, then apply commitment discounts separately.
Apply commitment discounts — Reserved Instances (AWS) or Committed Use Discounts (GCP) reduce compute costs 30-60% for stable workloads. Savings Plans (AWS) offer 20-66% off on-demand. Only apply commitments to stable baseline; keep variable workloads on-demand or spot.
Model data transfer costs — Egress costs are the most underestimated line item. Model: inter-region replication, CDN origin pull, API gateway egress, and end-user downloads. AWS charges $0.09/GB egress to internet; at scale this dominates.
Estimate managed service overhead — RDS doubles the cost of equivalent EC2+storage. EKS, MSK, ElastiCache, Elasticsearch Service add 20-40% overhead vs self-managed. Quantify the operational time saved vs cost delta to justify managed services.
Build a cost model spreadsheet — Structure: resource → unit price → quantity → monthly cost → annual cost. Separate fixed costs (reserved capacity) from variable (per-request, egress). Add a contingency buffer (15-20%) for usage variance.
Allocate costs by service/team — Implement tagging strategy (team, environment, service, cost-center) before deployment. Tag coverage < 80% makes chargeback impossible. Define tagging enforcement via SCPs (AWS) or Organization Policies (GCP).
Set budgets and alerts — Configure billing alerts at 50%, 80%, and 100% of budget. Use AWS Budgets or GCP Budget alerts. Alert the service owner, not just finance. Treat a 100% alert as an incident.
Reconcile monthly against forecast — Compare actuals to estimate. Investigate variances > 10%. Update model with actual usage data. Cost estimation accuracy improves only through feedback loops.
npx claudepluginhub jeffreytse/grimoire --plugin grimoireProvides strategies and patterns for reducing cloud costs across AWS, Azure, and GCP, including right-sizing, pricing models, and architecture optimization.
Optimize infrastructure and operational costs without sacrificing performance or reliability. Use when managing cloud budgets or improving unit economics.
Estimates infrastructure, development effort, and TCO for technical projects. Use for budgeting, build vs buy decisions, and architecture cost projections.