agentleFS
aiFabricoComaiFabricoCom/fabrico-collections/.claude/skills/fabrico-optimizing-cloud-cost/SKILL.md

fabrico-optimizing-cloud-cost

Skill2 starsChanged 4 months agoMITView on GitHub

Optimize cloud costs through resource rightsizing, tagging strategies, reserved instances, and spending analysis. Use when reducing cloud expenses, analyzing infrastructure costs, or implementing cost governance policies.

The file

Files
SKILL.md

Cloud Cost Optimization

When to Use

  • Reducing cloud spending or meeting budget constraints
  • Right-sizing resources based on utilization
  • Implementing cost governance and tagging
  • Analyzing multi-cloud cost optimization opportunities

Pricing Model Decision

Workload TypeAWSAzureGCPSavings
Steady-state (24/7)Reserved Instances / Savings PlansReserved VMsCommitted Use30-72%
Variable / burstOn-Demand + Auto-scalingPay-as-you-goOn-DemandBaseline
Fault-tolerant batchSpot InstancesSpot VMsPreemptibleUp to 90%
Serverless / event-drivenLambdaFunctionsCloud FunctionsPay-per-use

Storage Tiering Decision

Data Access PatternAWSAzureGCP
Frequent (hot)S3 StandardHotStandard
Infrequent (30+ days)S3 Standard-IACoolNearline
Rare (90+ days)S3 GlacierColdColdline
Archive (365+ days)S3 Deep ArchiveArchiveArchive

Rule: Implement lifecycle policies to auto-transition data between tiers.

Required Tags

TagPurposeExample
EnvironmentCost allocation by envproduction, staging
ProjectCost allocation by projectmy-project
CostCenterFinance reportingengineering
OwnerContact for unused resourcesteam@example.com
ManagedByTrack IaC vs manualterraform

Reference: See references/tagging-standards.md for full standards.

Process

  1. Audit current spend → Use Cost Explorer / Cost Management to identify top costs
  2. Tag all resources → Apply required tags for cost allocation
  3. Identify waste → Find unused EBS, EIPs, snapshots, idle instances
  4. Right-size resources → Use Compute Optimizer / Advisor recommendations
  5. Apply pricing models → Reserved/Committed for steady, Spot for batch
  6. Implement tiering → Storage lifecycle policies, database right-sizing
  7. Set up alerts → Budget alerts at 50%, 80%, 100% thresholds
  8. Schedule reviews → Weekly cost review, monthly optimization

Checklist

  • Cost allocation tags applied to all resources
  • Unused resources deleted (EBS, EIPs, snapshots, idle instances)
  • Instances right-sized based on utilization metrics
  • Reserved capacity purchased for steady workloads (>70% utilization)
  • Spot/preemptible used for fault-tolerant workloads
  • Storage lifecycle policies configured
  • Budget alerts enabled (50%, 80%, 100%)
  • Cost anomaly detection enabled
  • Auto-scaling configured for variable workloads

Anti-Patterns

❌ Don't✅ Do
Over-provision "just in case"Right-size based on metrics, scale up if needed
Use On-Demand for steady workloadsUse Reserved/Committed for predictable usage
Store all data in hot tierImplement lifecycle policies
Skip taggingTag everything for cost visibility
Review costs monthlyReview weekly, alert on anomalies

Tools

ProviderTools
AWSCost Explorer, Cost Anomaly Detection, Compute Optimizer
AzureCost Management, Advisor
GCPCost Management, Recommender
Multi-cloudCloudHealth, Cloudability, Kubecost

Reference Files

  • references/tagging-standards.md - Tagging conventions and enforcement

Related Skills

  • fabrico-implementing-terraform-modules - For resource provisioning
  • fabrico-designing-multi-cloud-architecture - For cloud selection

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.