Skip to content
Development
Command

/cost

Ask the AWS DevOps Agent for cost optimization opportunities, scoped to your local IaC

From plugin
agent-toolkit-for-aws
2.3k9 skills9 commands3 MCP
Install
> /plugin marketplace add aws/agent-toolkit-for-aws

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/cost

Context preview

What this command does when you run it.

Ask the AWS DevOps Agent for cost optimization opportunities, scoped to your local IaC

Command definition

cost.md
description: Ask the AWS DevOps Agent for cost optimization opportunities, scoped to your local IaC
argument-hint: [optional focus area, e.g. "ECS only" or "across all spaces"]

Cost optimization is a chat-first workflow.

1. Read whatever local IaC files are present — CDK stacks, CloudFormation templates, Terraform modules. Pick files referenced from `cdk.json`, `template.yaml`, `*.tf`, `serverless.yml`, etc. 2. If `$ARGUMENTS` mentions "all spaces" / "across accounts" and the user has SigV4 auth with multiple spaces, follow the `coordinating-multi-space-devops-agent` skill's parallel-query pattern. 3. Call `aws_devops_agent__chat(message="[Local IaC Context]\n<IaC snippets>\n\nAnalyze cost optimization opportunities. $ARGUMENTS")`. 4. Show the response. Ask if the user wants to drill into any specific recommendation, or escalate to a deep investigation for one of them.

Ships withagent-toolkit-for-aws

Help AI coding agents build, deploy, and manage applications on AWS. The Agent Toolkit for AWS gives AI coding agents the tools, knowledge, and guardrails they need to work with AWS services.

Get the whole plugin