Ensures cloud resource creation stays within budget targets by auditing against cost-optimization guidelines.

Install

mkdir -p .claude/skills/cost && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/9522" && unzip -o skill.zip -d .claude/skills/cost && rm skill.zip

Installs to .claude/skills/cost

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

References Serverless OpenClaw cost optimization guidelines. Validates that no resources exceeding the cost target ($1/month) are created during implementation. Use when writing CDK stacks or making infrastructure changes.
222 chars✓ has a “when” trigger
Intermediate

Key capabilities

  • Validate CDK stacks
  • Identify expensive resources
  • Suggest cost-efficient alternatives
  • Audit project resources

How it works

It validates infrastructure-as-code against defined monthly cost targets and identifies expensive resources.

Inputs & outputs

You give it
CDK stack definition
You get back
Cost compliance report

When to use cost

  • Reviewing CDK stacks for cost efficiency
  • Verifying infrastructure changes meet the $1/month target
  • Finding alternatives to expensive managed services
  • Auditing project resources for cost compliance

About this skill

Cost Optimization Reference

Detailed Cost Analysis

Per-service cost breakdown, before/after optimization comparison, checklist:

Cost Validation (Required for Infrastructure Changes)

Verify the following resources are NOT created:

Prohibited ResourceMonthly CostAlternative
NAT Gateway~$33Fargate Public IP
ALB/ELB~$18-25API Gateway
Interface Endpoint~$7/eachPublic IP for public endpoint access
DynamoDB ProvisionedVariablePAY_PER_REQUEST
Lambda in VPCRequires NATDeploy outside VPC

Cost Targets

CategoryTarget
Within Free Tier~$0.23/month
After Free Tier~$1.07/month
Maximum allowedUnder $10/month

Lambda Agent Cost (Phase 2)

See cost-optimization.md §9 for full Lambda cost analysis.

ResourceCost ModelNotes
Lambda invocationsPer-request1M requests/month free tier
Lambda durationPer GB-second400K GB-seconds/month free tier
Lambda container imageECR storage~$0.10/GB/month after 500MB free
No Fargate idle costLambda scales to zero automatically

Key advantage: Lambda charges only for actual execution time — no idle Fargate cost when no users are active. For low-traffic usage, Lambda runtime cost approaches $0/month within free tier.

When not to use it

  • When the project does not use AWS CDK
  • When cost is not a concern

Prerequisites

AWS CDK

Limitations

  • AWS CDK specific
  • Requires cost target adherence

How it compares

It provides a specific cost-validation gate for infrastructure changes, ensuring compliance with a $1/month target.

Compared to similar skills

cost side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
cost (this skill)04moNo flagsIntermediate
aws-solution-architect203moReviewAdvanced
terraform-module-library74moNo flagsAdvanced
cloud-architect64moNo flagsAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

aws-solution-architect

alirezarezvani

Design AWS architectures for startups using serverless patterns and IaC templates. Use when asked to design serverless architecture, create CloudFormation templates, optimize AWS costs, set up CI/CD pipelines, or migrate to AWS. Covers Lambda, API Gateway, DynamoDB, ECS, Aurora, and cost optimization.

2047

terraform-module-library

wshobson

Build reusable Terraform modules for AWS, Azure, and GCP infrastructure following infrastructure-as-code best practices. Use when creating infrastructure modules, standardizing cloud provisioning, or implementing reusable IaC components.

759

cloud-architect

sickn33

Expert cloud architect specializing in AWS/Azure/GCP multi-cloud infrastructure design, advanced IaC (Terraform/OpenTofu/CDK), FinOps cost optimization, and modern architectural patterns. Masters serverless, microservices, security, compliance, and disaster recovery. Use PROACTIVELY for cloud architecture, cost optimization, migration planning, or multi-cloud strategies.

649

kubernetes-architect

sickn33

Expert Kubernetes architect specializing in cloud-native infrastructure, advanced GitOps workflows (ArgoCD/Flux), and enterprise container orchestration. Masters EKS/AKS/GKE, service mesh (Istio/Linkerd), progressive delivery, multi-tenancy, and platform engineering. Handles security, observability, cost optimization, and developer experience. Use PROACTIVELY for K8s architecture, GitOps implementation, or cloud-native platform design.

636

aws-advisor

tech-leads-club

Expert AWS Cloud Advisor for architecture design, security review, and implementation guidance. Leverages AWS MCP tools for accurate, documentation-backed answers. Use when user asks about AWS architecture, security, service selection, migrations, troubleshooting, or learning AWS. Triggers on AWS, Lambda, S3, EC2, ECS, EKS, DynamoDB, RDS, CloudFormation, CDK, Terraform, Serverless, SAM, IAM, VPC, API Gateway, or any AWS service.

529

devops-iac-engineer

davila7

Implements infrastructure as code using Terraform, Kubernetes, and cloud platforms. Designs scalable architectures, CI/CD pipelines, and observability solutions. Provides security-first DevOps practices and site reliability engineering guidance.

223

Search skills

Search the agent skills registry