/cost
Ask the AWS DevOps Agent for cost optimization opportunities, scoped to your local IaC
> /plugin marketplace add aws/agent-toolkit-for-awsHow 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.mddescription: 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.
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.
Repo: aws/agent-toolkit-for-aws
Other commands on agent-toolkit-for-aws.
- /chat
Open a chat session with the AWS DevOps Agent and ask a question
Open command - /investigate
Start a deep root-cause investigation on the AWS DevOps Agent and stream progress
Open command - /release-readiness
Trigger a pre-merge release readiness review on a GitHub PR, GitLab MR, or local branch
Open command - /release-testing
Run automated UAT tests (UI or API) using a test profile on the AWS DevOps Agent
Open command - /setup-devops-agent
Set up the AWS DevOps Agent MCP connection
Open command - /setup-security-agent
Set up the AWS Security Agent workspace
Open command

