Skill — Cost Estimation
When this skill activates
Any task involving cloud cost modeling, FinOps, instance strategy selection,
cost forecasting, per-request cost analysis, right-sizing, or cost allocation.
Mandatory actions when this skill is active
Before writing any code
- Estimate costs BEFORE building: compute + storage + network + managed services.
- Identify cost-dominant components (usually storage or network egress).
- Define budget constraints and alerting thresholds.
During implementation
- Choose instances based on workload profile (compute/memory/IO bound).
- Implement resource tagging for cost allocation from day one.
- Use auto-scaling with min/max bounds.
- Prefer managed services when ops cost exceeds infrastructure savings.
After implementation
- Set cost alerts at 50%, 80%, 100% of budget.
- Create per-service cost dashboard.
- Schedule monthly cost review for drift and optimization.
FinOps Phases
- Inform: tag all resources, build dashboards, implement showback/chargeback.
- Optimize: right-size, reserve steady workloads, spot for batch, eliminate waste.
- Operate: automate (scheduled scaling, auto-stop dev), embed cost in PR review.
Cost Modeling
Monthly = Compute + Storage + Network + Managed + Support
Compute: instances * hours * $/hour
Storage: GB * $/GB + IOPS * $/IOP
Network: GB egress * $/GB (ingress usually free)
Cost/Request: total_monthly / total_requests
Instance Strategy
| Type |
Discount |
Use For |
Never For |
| On-Demand |
0% |
Variable, dev, testing |
Steady production (wasteful) |
| Reserved (1-3yr) |
30-72% |
Steady production (>70% util for 6+ months) |
Uncertain workloads |
| Spot/Preemptible |
60-90% |
Batch, CI/CD, fault-tolerant workers |
Databases, user-facing |
Right-Sizing Indicators
- CPU < 40% consistently = oversized.
- Memory < 50% consistently = oversized.
- Process: collect 2-4 weeks metrics → find binding constraint → resize to peak + 20%.
Cost Allocation Tags (Minimum)
team, service, environment, cost-center.
- Optional:
feature for per-feature attribution.
- Shared infra: divide proportionally by request count or CPU time.
Forecasting
Next Month = Current * (1 + organic_growth) + planned_launch_impact
- Inputs: historical trend (3-6 months), planned launches, seasonal patterns.
- Weekly: check for anomalies. Monthly: forecast vs actual. Quarterly: re-evaluate commitments.
Self-check before task completion
1---2name: cost-estimation3description: Skill — Cost Estimation4---56# Skill — Cost Estimation78## When this skill activates9Any task involving cloud cost modeling, FinOps, instance strategy selection,10cost forecasting, per-request cost analysis, right-sizing, or cost allocation.1112## Mandatory actions when this skill is active1314### Before writing any code151. Estimate costs BEFORE building: compute + storage + network + managed services.162. Identify cost-dominant components (usually storage or network egress).173. Define budget constraints and alerting thresholds.1819### During implementation20- Choose instances based on workload profile (compute/memory/IO bound).21- Implement resource tagging for cost allocation from day one.22- Use auto-scaling with min/max bounds.23- Prefer managed services when ops cost exceeds infrastructure savings.2425### After implementation26- Set cost alerts at 50%, 80%, 100% of budget.27- Create per-service cost dashboard.28- Schedule monthly cost review for drift and optimization.2930## FinOps Phases3132- **Inform**: tag all resources, build dashboards, implement showback/chargeback.33- **Optimize**: right-size, reserve steady workloads, spot for batch, eliminate waste.34- **Operate**: automate (scheduled scaling, auto-stop dev), embed cost in PR review.3536## Cost Modeling3738```39Monthly = Compute + Storage + Network + Managed + Support40Compute: instances * hours * $/hour41Storage: GB * $/GB + IOPS * $/IOP42Network: GB egress * $/GB (ingress usually free)43Cost/Request: total_monthly / total_requests44```4546## Instance Strategy4748| Type | Discount | Use For | Never For |49|------|----------|---------|-----------|50| On-Demand | 0% | Variable, dev, testing | Steady production (wasteful) |51| Reserved (1-3yr) | 30-72% | Steady production (>70% util for 6+ months) | Uncertain workloads |52| Spot/Preemptible | 60-90% | Batch, CI/CD, fault-tolerant workers | Databases, user-facing |5354## Right-Sizing Indicators55- CPU < 40% consistently = oversized.56- Memory < 50% consistently = oversized.57- Process: collect 2-4 weeks metrics → find binding constraint → resize to peak + 20%.5859## Cost Allocation Tags (Minimum)60- `team`, `service`, `environment`, `cost-center`.61- Optional: `feature` for per-feature attribution.62- Shared infra: divide proportionally by request count or CPU time.6364## Forecasting65```66Next Month = Current * (1 + organic_growth) + planned_launch_impact67```68- Inputs: historical trend (3-6 months), planned launches, seasonal patterns.69- Weekly: check for anomalies. Monthly: forecast vs actual. Quarterly: re-evaluate commitments.7071## Self-check before task completion7273- [ ] Did I estimate costs before proposing infrastructure?74- [ ] Are resources tagged for cost allocation?75- [ ] Is instance strategy appropriate (on-demand vs reserved vs spot)?76- [ ] Are cost alerts configured at budget thresholds?77- [ ] Is right-sizing based on actual utilization data?78- [ ] Is there a cost visibility mechanism (dashboard)?79- [ ] Are managed-vs-self-hosted trade-offs documented?