sustainability-optimization — Claude Code command
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.
MIT-0 ★ 280 updated 2026-10-06
.claude/commands/sustainability-optimization.mdWhat sustainability-optimization does
This slash command narrows the Well-Architected review down to a single pillar. It hands the aws-well-architected-framework-review skill a scope of Sustainability, so the rest of the framework stays out of the report.
The domain questions come from references/pillar-playbooks/sustainability.md. Five areas get checked: compute efficiency, the data lifecycle, architecture efficiency, development practice, and region or hardware choice. What comes back is a report with a table of resource-efficiency opportunities and a scorecard across those five domains.
Both pieces have to exist in the project — the playbook at that path and the review skill itself. The command only sets the scope; the analysis is the skill's job, so without it there is nothing to run.
What it helps with
- review a workload against the Sustainability pillar alone
- spot resource-efficiency wins in an existing stack
- produce a five-domain scorecard for a sustainability report
- check region and hardware choices against Well-Architected guidance
- keep development practice in scope during an architecture review
Example prompts for the agent
- Run the Well-Architected review scoped to Sustainability and show me where we waste resources.
- Load
references/pillar-playbooks/sustainability.mdand build the report with the opportunities table and the five-domain scorecard. - Check this project against the Sustainability pillar and list findings on compute efficiency and the data lifecycle.
How to install sustainability-optimization
Manually: put the files in place
.claude/commands/sustainability-optimization.mdCall it with /sustainability-optimization. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/sustainability-optimization.mdCall it with /prompts:sustainability-optimization. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/sustainability-optimization.prompt.mdManually: put the files in place
.gemini/commands/sustainability-optimization.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about sustainability-optimization
How do I install sustainability-optimization in Claude Code?
Copy the command file into your project at .claude/commands/sustainability-optimization.md.
What does sustainability-optimization do?
It runs a Well-Architected review with the scope set to Sustainability and returns a report with resource-efficiency opportunities plus a scorecard across five domains.
What does the command need to work?
The aws-well-architected-framework-review skill and the playbook at references/pillar-playbooks/sustainability.md. The command passes the scope, and the skill carries out the review.
Source text
sustainability-optimization.md · MIT-0
Run a pillar-scoped Well-Architected review focused on the **Sustainability pillar**. Follow the aws-well-architected-framework-review skill with scope set to Sustainability. Load `references/pillar-playbooks/sustainability.md` for domain-specific discovery (compute efficiency, data lifecycle, architecture efficiency, development practices, region/hardware). Produce a Sustainability report with resource efficiency opportunities table and 5-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