{"id":"8de119e1-eec6-40d4-982b-c698ad566f36","shortId":"MFPNtj","kind":"skill","title":"aws-cost-optimizer","tagline":"Comprehensive AWS cost analysis and optimization recommendations using AWS CLI and Cost Explorer","description":"# AWS Cost Optimizer\n\nAnalyze AWS spending patterns, identify waste, and provide actionable cost reduction strategies.\n\n## When to Use This Skill\n\nUse this skill when you need to analyze AWS spending, identify cost optimization opportunities, or reduce cloud waste.\n\n## Core Capabilities\n\n**Cost Analysis**\n- Parse AWS Cost Explorer data for trends and anomalies\n- Break down costs by service, region, and resource tags\n- Identify month-over-month spending increases\n\n**Resource Optimization**\n- Detect idle EC2 instances (low CPU utilization)\n- Find unattached EBS volumes and old snapshots\n- Identify unused Elastic IPs\n- Locate underutilized RDS instances\n- Find old S3 objects eligible for lifecycle policies\n\n**Savings Recommendations**\n- Suggest Reserved Instance/Savings Plans opportunities\n- Recommend instance rightsizing based on CloudWatch metrics\n- Identify resources in expensive regions\n- Calculate potential savings with specific actions\n\n## AWS CLI Commands\n\n### Get Cost and Usage\n```bash\n# Last 30 days cost by service\naws ce get-cost-and-usage \\\n  --time-period Start=$(date -d '30 days ago' +%Y-%m-%d),End=$(date +%Y-%m-%d) \\\n  --granularity MONTHLY \\\n  --metrics BlendedCost \\\n  --group-by Type=DIMENSION,Key=SERVICE\n\n# Daily costs for current month\naws ce get-cost-and-usage \\\n  --time-period Start=$(date +%Y-%m-01),End=$(date +%Y-%m-%d) \\\n  --granularity DAILY \\\n  --metrics UnblendedCost\n```\n\n### Find Unused Resources\n```bash\n# Unattached EBS volumes\naws ec2 describe-volumes \\\n  --filters Name=status,Values=available \\\n  --query 'Volumes[*].[VolumeId,Size,VolumeType,CreateTime]' \\\n  --output table\n\n# Unused Elastic IPs\naws ec2 describe-addresses \\\n  --query 'Addresses[?AssociationId==null].[PublicIp,AllocationId]' \\\n  --output table\n\n# Idle EC2 instances (requires CloudWatch)\naws cloudwatch get-metric-statistics \\\n  --namespace AWS/EC2 \\\n  --metric-name CPUUtilization \\\n  --dimensions Name=InstanceId,Value=i-xxxxx \\\n  --start-time $(date -u -d '7 days ago' +%Y-%m-%dT%H:%M:%S) \\\n  --end-time $(date -u +%Y-%m-%dT%H:%M:%S) \\\n  --period 86400 \\\n  --statistics Average\n\n# Old EBS snapshots (>90 days)\naws ec2 describe-snapshots \\\n  --owner-ids self \\\n  --query 'Snapshots[?StartTime<=`'$(date -d '90 days ago' --iso-8601)'`].[SnapshotId,StartTime,VolumeSize]' \\\n  --output table\n```\n\n### Rightsizing Analysis\n```bash\n# List EC2 instances with their types\naws ec2 describe-instances \\\n  --query 'Reservations[*].Instances[*].[InstanceId,InstanceType,State.Name,Tags[?Key==`Name`].Value|[0]]' \\\n  --output table\n\n# Get RDS instance utilization\naws cloudwatch get-metric-statistics \\\n  --namespace AWS/RDS \\\n  --metric-name CPUUtilization \\\n  --dimensions Name=DBInstanceIdentifier,Value=mydb \\\n  --start-time $(date -u -d '30 days ago' +%Y-%m-%dT%H:%M:%S) \\\n  --end-time $(date -u +%Y-%m-%dT%H:%M:%S) \\\n  --period 86400 \\\n  --statistics Average,Maximum\n```\n\n## Optimization Workflow\n\n1. **Baseline Assessment**\n   - Pull 3-6 months of cost data\n   - Identify top 5 spending services\n   - Calculate growth rate\n\n2. **Quick Wins**\n   - Delete unattached EBS volumes\n   - Release unused Elastic IPs\n   - Stop/terminate idle EC2 instances\n   - Delete old snapshots\n\n3. **Strategic Optimization**\n   - Analyze Reserved Instance coverage\n   - Review instance types vs. workload\n   - Implement S3 lifecycle policies\n   - Consider Spot instances for non-critical workloads\n\n4. **Ongoing Monitoring**\n   - Set up AWS Budgets with alerts\n   - Enable Cost Anomaly Detection\n   - Tag resources for cost allocation\n   - Monthly cost review meetings\n\n## Cost Optimization Checklist\n\n- [ ] Enable AWS Cost Explorer\n- [ ] Set up cost allocation tags\n- [ ] Create AWS Budget with alerts\n- [ ] Review and delete unused resources\n- [ ] Analyze Reserved Instance opportunities\n- [ ] Implement S3 Intelligent-Tiering\n- [ ] Review data transfer costs\n- [ ] Optimize Lambda memory allocation\n- [ ] Use CloudWatch Logs retention policies\n- [ ] Consider multi-region cost differences\n\n## Example Prompts\n\n**Analysis**\n- \"Show me AWS costs for the last 3 months broken down by service\"\n- \"What are my top 10 most expensive resources?\"\n- \"Compare this month's spending to last month\"\n\n**Optimization**\n- \"Find all unattached EBS volumes and calculate savings\"\n- \"Identify EC2 instances with <5% CPU utilization\"\n- \"Suggest Reserved Instance purchases based on usage\"\n- \"Calculate savings from deleting snapshots older than 90 days\"\n\n**Implementation**\n- \"Create a script to delete unattached volumes\"\n- \"Set up a budget alert for $1000/month\"\n- \"Generate a cost optimization report for leadership\"\n\n## Best Practices\n\n- Always test in non-production first\n- Verify resources are truly unused before deletion\n- Document all cost optimization actions\n- Calculate ROI for optimization efforts\n- Automate recurring optimization tasks\n- Use AWS Trusted Advisor recommendations\n- Enable AWS Cost Anomaly Detection\n\n## Integration with Kiro CLI\n\nThis skill works seamlessly with Kiro CLI's AWS integration:\n\n```bash\n# Use Kiro to analyze costs\nkiro-cli chat \"Use aws-cost-optimizer to analyze my spending\"\n\n# Generate optimization report\nkiro-cli chat \"Create a cost optimization plan using aws-cost-optimizer\"\n```\n\n## Safety Notes\n\n- **Risk Level: Low** - Read-only analysis is safe\n- **Deletion Actions: Medium Risk** - Always verify before deleting resources\n- **Production Changes: High Risk** - Test rightsizing in dev/staging first\n- Maintain backups before any deletion\n- Use `--dry-run` flag when available\n\n## Additional Resources\n\n- [AWS Cost Optimization Best Practices](https://aws.amazon.com/pricing/cost-optimization/)\n- [AWS Well-Architected Framework - Cost Optimization](https://docs.aws.amazon.com/wellarchitected/latest/cost-optimization-pillar/welcome.html)\n- [AWS Cost Explorer API](https://docs.aws.amazon.com/cost-management/latest/APIReference/Welcome.html)\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.","tags":["aws","cost","optimizer","antigravity","awesome","skills","sickn33","agent-skills","agentic-skills","ai-agent-skills","ai-agents","ai-coding"],"capabilities":["skill","source-sickn33","skill-aws-cost-optimizer","topic-agent-skills","topic-agentic-skills","topic-ai-agent-skills","topic-ai-agents","topic-ai-coding","topic-ai-workflows","topic-antigravity","topic-antigravity-skills","topic-claude-code","topic-claude-code-skills","topic-codex-cli","topic-codex-skills"],"categories":["antigravity-awesome-skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/sickn33/antigravity-awesome-skills/aws-cost-optimizer","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add sickn33/antigravity-awesome-skills","source_repo":"https://github.com/sickn33/antigravity-awesome-skills","install_from":"skills.sh"}},"qualityScore":"0.700","qualityRationale":"deterministic score 0.70 from registry signals: · indexed on github topic:agent-skills · 34964 github stars · SKILL.md body (6,197 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-04-25T00:50:29.810Z","embedding":null,"createdAt":"2026-04-18T21:31:43.379Z","updatedAt":"2026-04-25T00:50:29.810Z","lastSeenAt":"2026-04-25T00:50:29.810Z","tsv":"'-01':210 '-6':430 '-8601':338 '/cost-management/latest/apireference/welcome.html)':800 '/pricing/cost-optimization/)':783 '/wellarchitected/latest/cost-optimization-pillar/welcome.html)':793 '0':368 '1':425 '10':577 '1000/month':635 '2':443 '3':429,461,567 '30':151,169,398 '4':485 '5':437,602 '7':291 '86400':312,419 '90':318,334,619 'action':29,141,663,745 'addit':774 'address':252,254 'advisor':676 'ago':171,293,336,400 'alert':493,523,633 'alloc':502,517,545 'allocationid':258 'alway':645,748 'analysi':8,59,345,559,741 'analyz':21,45,464,529,701,713 'anomali':68,496,681 'api':797 'architect':787 'ask':834 'assess':427 'associationid':255 'autom':669 'avail':236,773 'averag':314,421 'aw':2,6,13,18,22,46,61,142,156,196,227,248,266,320,353,375,490,511,520,562,674,679,695,709,730,776,784,794 'aws-cost-optim':1,708,729 'aws.amazon.com':782 'aws.amazon.com/pricing/cost-optimization/)':781 'aws/ec2':273 'aws/rds':382 'backup':763 'base':127,609 'baselin':426 'bash':149,223,346,697 'best':643,779 'blendedcost':183 'boundari':842 'break':69 'broken':569 'budget':491,521,632 'calcul':136,440,596,612,664 'capabl':57 'ce':157,197 'chang':754 'chat':706,722 'checklist':509 'clarif':836 'clear':809 'cli':14,143,686,693,705,721 'cloud':54 'cloudwatch':129,265,267,376,547 'command':144 'compar':581 'comprehens':5 'consid':477,551 'core':56 'cost':3,7,16,19,30,49,58,62,71,146,153,160,192,200,433,495,501,504,507,512,516,541,555,563,638,661,680,702,710,725,731,777,789,795 'coverag':467 'cpu':92,603 'cpuutil':277,386 'creat':519,622,723 'createtim':242 'criteria':845 'critic':483 'current':194 'd':168,174,179,215,290,333,397 'daili':191,217 'data':64,434,539 'date':167,176,207,212,288,303,332,395,410 'day':152,170,292,319,335,399,620 'dbinstanceidentifi':389 'delet':446,458,526,615,626,658,744,751,766 'describ':230,251,323,356,813 'describe-address':250 'describe-inst':355 'describe-snapshot':322 'describe-volum':229 'detect':87,497,682 'dev/staging':760 'differ':556 'dimens':188,278,387 'docs.aws.amazon.com':792,799 'docs.aws.amazon.com/cost-management/latest/apireference/welcome.html)':798 'docs.aws.amazon.com/wellarchitected/latest/cost-optimization-pillar/welcome.html)':791 'document':659 'dri':769 'dry-run':768 'dt':296,307,403,414 'eb':96,225,316,448,593 'ec2':89,228,249,262,321,348,354,456,599 'effort':668 'elast':103,246,452 'elig':113 'enabl':494,510,678 'end':175,211,301,408 'end-tim':300,407 'environ':825 'environment-specif':824 'exampl':557 'expens':134,579 'expert':830 'explor':17,63,513,796 'filter':232 'find':94,109,220,590 'first':651,761 'flag':771 'framework':788 'generat':636,716 'get':145,159,199,269,371,378 'get-cost-and-usag':158,198 'get-metric-statist':268,377 'granular':180,216 'group':185 'group-bi':184 'growth':441 'h':297,308,404,415 'high':755 'i-xxxxx':282 'id':327 'identifi':25,48,78,101,131,435,598 'idl':88,261,455 'implement':473,533,621 'increas':84 'input':839 'instanc':90,108,125,263,349,357,360,373,457,466,469,479,531,600,607 'instance/savings':121 'instanceid':280,361 'instancetyp':362 'integr':683,696 'intellig':536 'intelligent-ti':535 'ip':104,247,453 'iso':337 'key':189,365 'kiro':685,692,699,704,720 'kiro-c':703,719 'lambda':543 'last':150,566,587 'leadership':642 'level':736 'lifecycl':115,475 'limit':801 'list':347 'locat':105 'log':548 'low':91,737 'm':173,178,209,214,295,298,306,309,402,405,413,416 'maintain':762 'match':810 'maximum':422 'medium':746 'meet':506 'memori':544 'metric':130,182,218,270,275,379,384 'metric-nam':274,383 'miss':847 'monitor':487 'month':80,82,181,195,431,503,568,583,588 'month-over-month':79 'multi':553 'multi-region':552 'mydb':391 'name':233,276,279,366,385,388 'namespac':272,381 'need':43 'non':482,649 'non-crit':481 'non-product':648 'note':734 'null':256 'object':112 'old':99,110,315,459 'older':617 'ongo':486 'opportun':51,123,532 'optim':4,10,20,50,86,423,463,508,542,589,639,662,667,671,711,717,726,732,778,790 'output':243,259,342,369,819 'owner':326 'owner-id':325 'pars':60 'pattern':24 'period':165,205,311,418 'permiss':840 'plan':122,727 'polici':116,476,550 'potenti':137 'practic':644,780 'product':650,753 'prompt':558 'provid':28 'publicip':257 'pull':428 'purchas':608 'queri':237,253,329,358 'quick':444 'rate':442 'rds':107,372 'read':739 'read-on':738 'recommend':11,118,124,677 'recur':670 'reduc':53 'reduct':31 'region':74,135,554 'releas':450 'report':640,718 'requir':264,838 'reserv':120,359,465,530,606 'resourc':76,85,132,222,499,528,580,653,752,775 'retent':549 'review':468,505,524,538,831 'rightsiz':126,344,758 'risk':735,747,756 'roi':665 'run':770 's3':111,474,534 'safe':743 'safeti':733,841 'save':117,138,597,613 'scope':812 'script':624 'seamless':690 'self':328 'servic':73,155,190,439,572 'set':488,514,629 'show':560 'size':240 'skill':37,40,688,804 'skill-aws-cost-optimizer' 'snapshot':100,317,324,330,460,616 'snapshotid':339 'source-sickn33' 'specif':140,826 'spend':23,47,83,438,585,715 'spot':478 'start':166,206,286,393 'start-tim':285,392 'starttim':331,340 'state.name':363 'statist':271,313,380,420 'status':234 'stop':832 'stop/terminate':454 'strateg':462 'strategi':32 'substitut':822 'success':844 'suggest':119,605 'tabl':244,260,343,370 'tag':77,364,498,518 'task':672,808 'test':646,757,828 'tier':537 'time':164,204,287,302,394,409 'time-period':163,203 'top':436,576 'topic-agent-skills' 'topic-agentic-skills' 'topic-ai-agent-skills' 'topic-ai-agents' 'topic-ai-coding' 'topic-ai-workflows' 'topic-antigravity' 'topic-antigravity-skills' 'topic-claude-code' 'topic-claude-code-skills' 'topic-codex-cli' 'topic-codex-skills' 'transfer':540 'treat':817 'trend':66 'truli':655 'trust':675 'type':187,352,470 'u':289,304,396,411 'unattach':95,224,447,592,627 'unblendedcost':219 'underutil':106 'unus':102,221,245,451,527,656 'usag':148,162,202,611 'use':12,35,38,546,673,698,707,728,767,802 'util':93,374,604 'valid':827 'valu':235,281,367,390 'verifi':652,749 'volum':97,226,231,238,449,594,628 'volumeid':239 'volumes':341 'volumetyp':241 'vs':471 'wast':26,55 'well':786 'well-architect':785 'win':445 'work':689 'workflow':424 'workload':472,484 'xxxxx':284 'y':172,177,208,213,294,305,401,412","prices":[{"id":"7e676063-a278-451b-8e01-81feb40f3dba","listingId":"8de119e1-eec6-40d4-982b-c698ad566f36","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"sickn33","category":"antigravity-awesome-skills","install_from":"skills.sh"},"createdAt":"2026-04-18T21:31:43.379Z"}],"sources":[{"listingId":"8de119e1-eec6-40d4-982b-c698ad566f36","source":"github","sourceId":"sickn33/antigravity-awesome-skills/aws-cost-optimizer","sourceUrl":"https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/aws-cost-optimizer","isPrimary":false,"firstSeenAt":"2026-04-18T21:31:43.379Z","lastSeenAt":"2026-04-25T00:50:29.810Z"}],"details":{"listingId":"8de119e1-eec6-40d4-982b-c698ad566f36","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"sickn33","slug":"aws-cost-optimizer","github":{"repo":"sickn33/antigravity-awesome-skills","stars":34964,"topics":["agent-skills","agentic-skills","ai-agent-skills","ai-agents","ai-coding","ai-workflows","antigravity","antigravity-skills","claude-code","claude-code-skills","codex-cli","codex-skills","cursor","cursor-skills","developer-tools","gemini-cli","gemini-skills","kiro","mcp","skill-library"],"license":"mit","html_url":"https://github.com/sickn33/antigravity-awesome-skills","pushed_at":"2026-04-24T06:41:17Z","description":"Installable GitHub library of 1,400+ agentic skills for Claude Code, Cursor, Codex CLI, Gemini CLI, Antigravity, and more. Includes installer CLI, bundles, workflows, and official/community skill collections.","skill_md_sha":"8e0af74037a74dec4fa0bbebcb6ee6240edf3b33","skill_md_path":"skills/aws-cost-optimizer/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/aws-cost-optimizer"},"layout":"multi","source":"github","category":"antigravity-awesome-skills","frontmatter":{"name":"aws-cost-optimizer","description":"Comprehensive AWS cost analysis and optimization recommendations using AWS CLI and Cost Explorer"},"skills_sh_url":"https://skills.sh/sickn33/antigravity-awesome-skills/aws-cost-optimizer"},"updatedAt":"2026-04-25T00:50:29.810Z"}}