Skip to content
Development
Skill

/aws-cost-operations

AWS cost optimization, monitoring, and operational excellence expert. Use when analyzing AWS bills, estimating costs, setting up CloudWatch alarms, querying logs, auditing CloudTrail activity, or assessing security posture. Essential when user mentions AWS costs, spending,

From plugin
aws-skills
3736 skills

Claude Code

$ npx -y skills add zxkane/aws-skills --skill aws-cost-operations --agent claude-code

SKILL.md

aws-cost-operations.SKILL.md
name: aws-cost-operations
description: AWS cost optimization, monitoring, and operational excellence expert. Use when analyzing AWS bills, estimating costs, setting up CloudWatch alarms, querying logs, auditing CloudTrail activity, or assessing security posture. Essential when user mentions AWS costs, spending, billing, budget, pricing, CloudWatch, observability, monitoring, alerting, CloudTrail, audit, or wants to optimize AWS infrastructure costs and operational efficiency.
context: fork
skills:
  - aws-mcp-setup
allowed-tools:
  - mcp__pricing__*
  - mcp__costexp__*
  - mcp__cw__*
  - mcp__aws-mcp__*
  - mcp__awsdocs__*
  - Bash(aws ce *)
  - Bash(aws cloudwatch *)
  - Bash(aws logs *)
  - Bash(aws budgets *)
  - Bash(aws cloudtrail *)
  - Bash(aws sts get-caller-identity)
hooks:
  PreToolUse:
    - matcher: Bash(aws ce *)
      command: aws sts get-caller-identity --query Account --output text
      once: true

AWS Cost & Operations

This skill provides comprehensive guidance for AWS cost optimization, monitoring, observability, and operational excellence with integrated MCP servers.

AWS Documentation Requirement

Always verify AWS facts using MCP tools (`mcp__aws-mcp__*` or `mcp__*awsdocs*__*`) before answering. The `aws-mcp-setup` dependency is auto-loaded — if MCP tools are unavailable, guide the user through that skill's setup flow.

Integrated MCP Servers

This plugin provides 3 MCP servers:

Bundled Servers

1. AWS Pricing MCP Server (`pricing`)

**Purpose**: Pre-deployment cost estimation and optimization

  • Estimate costs before deploying resources
  • Compare pricing across regions
  • Calculate Total Cost of Ownership (TCO)
  • Evaluate different service options for cost efficiency

2. AWS Cost Explorer MCP Server (`costexp`)

**Purpose**: Detailed cost analysis and reporting

  • Analyze historical spending patterns
  • Identify cost anomalies and trends
  • Forecast future costs
  • Analyze cost by service, region, or tag

3. Amazon CloudWatch MCP Server (`cw`)

**Purpose**: Metrics, alarms, and logs analysis

  • Query CloudWatch metrics and logs
  • Create and manage CloudWatch alarms
  • Troubleshoot operational issues
  • Monitor resource utilization

> **Note**: The following servers are available separately via the Full AWS MCP Server (see `aws-mcp-setup` skill) and are not bundled with this plugin: > - AWS Billing and Cost Management MCP — Real-time billing details > - CloudWatch Application Signals MCP — APM and SLOs > - AWS Managed Prometheus MCP — PromQL queries for containers > - AWS CloudTrail MCP — API activity audit > - AWS Well-Architected Security Assessment MCP — Security posture assessment

When to Use This Skill

Use this skill when:

  • Optimizing AWS costs and reducing spending
  • Estimating costs before deployment
  • Monitoring application and infrastructure performance
  • Setting up observability and alerting
  • Analyzing spending patterns and trends
  • Investigating operational issues
  • Auditing AWS activity and changes
  • Assessing security posture
  • Implementing operational excellence

Cost Optimization Best Practices

Pre-Deployment Cost Estimation

**Always estimate costs before deploying**: 1. Use **AWS Pricing MCP** to estimate resource costs 2. Compare pricing across different regions 3. Evaluate alternative service options 4. Calculate expected monthly costs 5. Plan for scaling and growth

**Example workflow**:

"Estimate the monthly cost of running a Lambda function with
1 million invocations, 512MB memory, 3-second duration in us-east-1"

Cost Analysis and Optimization

**Regular cost reviews**: 1. Use **Cost Explorer MCP** to analyze spending trends 2. Identify cost anomalies and unexpected charges 3. Review costs by service, region, and environment 4. Compare actual vs. budgeted costs 5. Generate cost optimization recommendations

**Cost optimization strategies**:

  • Right-size over-provisioned resources
  • Use appropriate storage classes (S3, EBS)
  • Implement auto-scaling for dynamic workloads
  • Leverage Savings Plans and Reserved Instances
  • Delete unused resources and snapshots
  • Use cost allocation tags effectively

Budget Monitoring

**Track spending against budgets**: 1. Use **Billing and Cost Management MCP** to monitor budgets 2. Set up budget alerts for threshold breaches 3. Review budget utilization regularly 4. Adjust budgets based on trends 5. Implement cost controls and governance

Monitoring and Observability Best Practices

CloudWatch Metrics and Alarms

**Implement comprehensive monitoring**: 1. Use **CloudWatch MCP** to query metrics and logs 2. Set up alarms for critical metrics:

  • CPU and memory utilization
  • Error rates and latency
  • Queue depths and processing times
  • API gateway throttling
  • Lambda errors and timeouts

3. Create CloudWatch dashboards for visualization 4. Use log insights for troubleshooting

**Example alarm scenarios**:

  • Lambda error rate > 1%
  • EC2 CPU utilization > 80%
  • API Gateway 4xx/5xx error spike
  • DynamoDB throttled requests
  • ECS task failures

Application Performance Monitoring

**Monitor application health**: 1. Use **CloudWatch Application Signals MCP** for APM 2. Track service-level objectives (SLOs) 3. Monitor application dependencies 4. Identify performance bottlenecks 5. Set up distributed tracing

Container and Kubernetes Monitoring

**For containerized workloads**: 1. Use **AWS Managed Prometheus MCP** for metrics 2. Monitor container resource utilization 3. Track pod and node health 4. Create PromQL queries for custom metrics 5. Set up alerts for container anomalies

Audit and Security Best Practices

CloudTrail Activity Analysis

**Audit AWS activity**: 1. Use **CloudTrail MCP** to analyze API activity 2. Track who made changes to resources 3. Investigate security incidents 4. Monitor for suspicious activity patterns 5. Audit compliance with policies

**Common audit scenarios**:

  • "Who deleted this S3 bucket?"
  • "Show
Read more
@zxkane
Ships withaws-skills

Claude Code plugins for AWS development with specialized knowledge and MCP server integrations, including CDK, serverless architecture, cost optimization, and Bedrock AgentCore for AI agent deployment.

Stars on GitHub

Momentum

stars in total
373
Star history of zxkane/aws-skills on GitHub, a chart by star-history.com

Other skills on aws-skills.

aws-agentic-ai

aws-agentic-ai

AWS Bedrock AgentCore comprehensive expert for deploying and managing AI agents at scale. Use when working with any AgentCore…

@zxkane@zxkaneInstall Skill
aws-mcp-setup

aws-mcp-setup

Configure AWS MCP servers for documentation search and API access. Use when setting up AWS MCP, configuring AWS documentation…

@zxkane@zxkaneInstall Skill
aws-cdk-development

aws-cdk-development

AWS Cloud Development Kit (CDK) expert for building cloud infrastructure with TypeScript/Python. Use when creating CDK stacks,…

@zxkane@zxkaneInstall Skill
aws-sst-development

aws-sst-development

SST v4 (Ion) expert for managing AWS resources as code with the Pulumi-backed framework. Use when writing or editing…

@zxkane@zxkaneInstall Skill
aws-serverless-eda

aws-serverless-eda

AWS serverless and event-driven architecture expert based on Well-Architected Framework. Use when building serverless APIs,…

@zxkane@zxkaneInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc13d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about aws-cost-operations.

Which coding agents can use aws-cost-operations?
aws-cost-operations installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.