cloud-costs

Implements cloud cost optimization, resource tagging, budget alerts, and cost anomaly detection on AWS.

Updated Sep 2, 2026
One-click install
npx skills add https://github.com/Dazlarus/karl-code --skill cloud-costs-dazlarus
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloud-costs
Source: https://github.com/Dazlarus/karl-code/tree/main/.agents/skills/cloud-costs
Command: npx skills add https://github.com/Dazlarus/karl-code --skill cloud-costs-dazlarus

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires boto3.

What problem does it solve? Cloud bills grow unpredictably when resources are over-provisioned, untagged, or left running outside business hours, and teams lack visibility into where spend goes. This Skill provides concrete patterns for right-sizing instances, scheduling resources, tagging for cost allocation, setting budget alerts, and detecting cost anomalies. ## Core Features & Use Cases - Right-Sizing Analysis: Analyze EC2 CPU utilization via CloudWatch metrics to recommend downsizing or upgrading instance types. - Resource Scheduling & Savings Plans: Automate start/stop schedules with EventBridge rules and calculate Savings Plans versus on-demand cost differences. - Tagging, Budgets & Anomaly Detection: Apply standard cost allocation tags, create budget alerts with email notifications, and detect spend anomalies using statistical deviation on Cost Explorer data. - Use Case: A team notices their AWS bill doubled last month. Use this Skill to generate a cost report grouped by service and tag, detect which days had anomalous spend, and create a budget alert that emails the team at 80% of the monthly limit. ## Quick Start Analyze my AWS account for underutilized EC2 instances and set up a monthly budget alert that emails the team when spending exceeds 80 percent.

Frequently Asked Questions about cloud-costs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reduce AWS costs with right-sizing?

Right-sizing analyzes EC2 CPU utilization through CloudWatch metrics over a 7-day window. Instances averaging under 10% CPU are candidates for downsizing, while those above 80% should be upgraded to larger instance types.

How to set up AWS budget alerts with boto3?

Use the boto3 budgets client to create a monthly cost budget with notification thresholds. Configure an ACTUAL notification at 80% and a FORECASTED notification at 100%, both delivering email alerts to specified subscribers.

How much can AWS Savings Plans reduce costs?

Savings Plans typically offer around 72% discount compared to on-demand pricing for committed usage. The comparison calculation multiplies the hourly rate by 0.28 to estimate the savings plan monthly cost against full on-demand pricing.

Does cost allocation tagging work across all AWS services?

Cost allocation tags apply through the Resource Groups Tagging API to supported resources, and Cost Explorer can filter spending by tag key and value. Tags like Environment, Owner, Project, and CostCenter must be applied consistently to produce accurate reports.

How do I detect unusual spikes in AWS spending?

Retrieve 90 days of daily cost data from Cost Explorer, then compute the mean and standard deviation. Days where cost deviates by more than two standard deviations from the mean are flagged as anomalies with their percentage deviation.

When should I not use cost optimization automation?

Avoid optimizing costs without understanding workload requirements first, and do not apply scheduling to resources that must run continuously. This Skill is not suited for simple resource creation, performance profiling, or application monitoring tasks.