Skip to main content
command CX Codex

cost-optimization-review — Claude Code command

cost-optimization-review runs an AWS Well-Architected review focused on cost optimization and generates a savings report.

MIT-0 ★ 280 updated 2026-10-06

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/cost-optimization-review.md
Open on GitHub

What cost-optimization-review does

This command conducts a pillar-scoped assessment following the AWS Well-Architected Framework. It relies on the core framework review skill, setting its scope strictly to Cost Optimization.

To discover domain-specific findings, the command reads references/pillar-playbooks/cost-optimization.md. It inspects compute expenses, storage lifecycle rules, transfer fees, pricing models, and environment setups. Output includes a detailed report featuring a savings summary table alongside a 6-domain scorecard.

If the reference playbook file is missing from your workspace, the command cannot pull the required domain rules.

What it helps with

  • Evaluate AWS workloads against the Well-Architected Cost pillar
  • Detect waste in compute, data transfer, and storage setups
  • Generate a 6-domain scorecard with projected savings

Example prompts for the agent

  • Run /cost-optimization-review on this infrastructure
  • Audit AWS spending with /cost-optimization-review

How to install cost-optimization-review

Manually: put the files in place

.claude/commands/cost-optimization-review.md

Call it with /cost-optimization-review. For all projects use ~/.claude/commands/

Questions about cost-optimization-review

How to install cost-optimization-review in Claude Code?

Place the command definition file at .claude/commands/cost-optimization-review.md in your project root.

What does cost-optimization-review do?

It reviews your workload against the AWS Cost Optimization pillar and generates a savings breakdown alongside a 6-domain scorecard.

What files does cost-optimization-review depend on?

It expects the aws-well-architected-framework-review skill and the playbook at references/pillar-playbooks/cost-optimization.md.

Source text

cost-optimization-review.md · MIT-0
Run a pillar-scoped Well-Architected review focused on the **Cost Optimization pillar**.

Follow the aws-well-architected-framework-review skill with scope set to Cost. Load `references/pillar-playbooks/cost-optimization.md` for domain-specific discovery (compute costs, storage lifecycle, data transfer, pricing models, environment management). Produce a Cost report with savings summary table and 6-domain scorecard.

<!--
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: MIT-0
-->

© aws-samples · MIT-0 · aws-samples/sample-well-architected-skills-and-steering

Similar slash commands

All slash commands for Cloud: AWS, Azure, GCP →

From the same set19

The whole set →
architecture-decision-record Runs the wa-builder skill in ADR mode: reads the codebase, weighs options against real code and writes an Architecture Decision Record with the trade-offs spelled out. CX Codex +1 ★ 280repo stars security-assessment security-assessment runs a targeted AWS Well-Architected review for the Security pillar. It audits IAM, encryption, detection, and compute controls. CX Codex +1 ★ 280repo stars operational-excellence This command reviews the Operational Excellence pillar of AWS Well-Architected and returns a report with a maturity scorecard. Use it to examine CI/CD, observability, and incident management. CX Codex +1 ★ 280repo stars reliability-improvement-plan reliability-improvement-plan is a Claude Code command that runs a Well-Architected review of the Reliability pillar, checking fault tolerance, recovery, scaling, and change management. CX Codex +1 ★ 280repo stars performance-efficiency This command runs a Well-Architected review of the Performance Efficiency pillar and reports optimization opportunities across six domains. CX Codex +1 ★ 280repo stars sustainability-optimization sustainability-optimization runs an AWS Well-Architected review limited to the Sustainability pillar and returns a report with a resource-efficiency table and a scorecard. CX Codex +1 ★ 280repo stars prompt prompt audits AWS workloads against the Well-Architected Framework, surfacing risks in code and IaC without modifying repository files directly. CX Codex +1 ★ 280repo stars well-architected This rule applies AWS Well-Architected principles to architecture reviews, infrastructure code, and design advice. It helps agents organize findings and explain trade-offs. CX Codex +1 ★ 280repo stars

Project sponsors

Companies that keep this analytics open