ClaudeSuperPower

cost

Command

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

Type this in Claude Code
/cost [optional focus area, e.g. "ECS only" or "across all spaces"]
optional focus area, e.g. "ECS only" or "across all spaces"
optional
Claude can also invoke this on its own inherits all session tools

What it tells Claude to do

6 lines

The prompt this command injects, verbatim. Worth reading before you run it.

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.

Shipped by 1 plugin

Installing any of these installs this command.

What this can do

Capabilities declared in this component's own frontmatter — not inferred.

Inherit all session tools

Declares no tool restrictions — inherits every session tool

~22 tokens of context used while enabled, before you invoke anything

Reviews

Log in to leave a review.

No reviews yet — be the first.

Explore related

Other things in this space — across every part of the ecosystem, not just commands.