MCPInstall

sustainability-optimization

Assess a workload's environmental sustainability posture by analyzing resource utilization patterns, managed service adoption, data lifecycle configs, and compute efficiency in the codebase against the Well-Architected Sustainability pillar.

Installs
208
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/aws-samples/sample-well-architected-skills-and-steering --skill sustainability-optimization
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads sustainability-optimization automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Sustainability Optimization Assessment

Step 1: Gather context

Ask the user:

What workload would you like me to assess for sustainability? Please share:

  • Workload name and code packages/directories to analyze
  • Sustainability goals (optional — organizational carbon targets, reporting requirements)
  • Known idle periods (optional — off-hours, weekends, seasonal patterns)

If context is already provided or you are in a codebase, proceed directly.

Step 2: Compute Efficiency Discovery

Analyze compute resource configurations for efficiency.

You MUST examine:

  • Instance type selections (Graviton vs x86 — Graviton delivers up to 40% better price-performance per watt)
  • Auto-scaling configurations (can resources scale to zero?)
  • Lambda configurations (memory right-sizing, architecture arm64 vs x86_64)
  • Container configurations (base image size, multi-stage builds, runtime efficiency)
  • Batch processing configurations (scheduling, instance selection)
  • Scheduled scaling (non-production environments, off-hours capacity)
  • Serverless vs provisioned choices (Lambda/Fargate vs always-on EC2)

For each compute resource, document:

  • File path and line numbers
  • Architecture (arm64/x86_64)
  • Scaling configuration (min/max, can reach zero)
  • Whether always-on or event-driven

You MUST flag:

  • x86_64 instances/Lambda where Graviton/arm64 is available and supported
  • Always-on compute for variable or event-driven workloads (Lambda/Fargate would scale to zero)
  • Non-production environments running 24/7 at production scale
  • No scheduled scaling for environments with clear idle periods
  • Provisioned concurrency on Lambda that isn't latency-critical
  • Large container images that could use multi-stage builds or distroless

Step 3: Data and Storage Efficiency Discovery

Analyze data management for sustainability.

You MUST examine:

  • S3 lifecycle policies (transition to cheaper/more efficient tiers, expiration)
  • S3 Intelligent-Tiering adoption
  • CloudWatch log retention settings
  • Data compression configurations (S3, API responses, database)
  • Backup retention policies (excessive retention = wasted storage)
  • S3 versioning with lifecycle rules for old versions
  • DynamoDB TTL configurations
  • Snapshot retention and cleanup automation

For each storage resource, document:

  • File path and line numbers
  • Lifecycle policy (present or absent)
  • Retention settings
  • Compression settings
  • Access pattern alignment

You MUST flag:

  • S3 buckets without lifecycle policies (data accumulates indefinitely)
  • CloudWatch logs with "never expire" retention
  • No TTL on DynamoDB tables with temporal data
  • Uncompressed data storage where compression is feasible
  • Backup retention > 90 days without compliance justification
  • S3 versioning without version expiration rules
  • No Intelligent-Tiering for buckets with unknown access patterns

Step 4: Architecture Efficiency Discovery

Analyze architectural patterns for sustainability.

You MUST examine:

  • Managed service usage vs self-managed (MSK vs self-managed Kafka, ElastiCache vs self-managed Redis)
  • Event-driven vs polling patterns
  • Batch processing vs real-time (can operations be batched?)
  • Caching layers (reducing redundant computation)
  • Data transfer patterns (processing close to data, minimizing cross-region/cross-AZ)
  • API design efficiency (over-fetching, chatty APIs)
  • Async processing for non-time-sensitive operations

You MUST flag:

  • Self-managed infrastructure where managed alternatives exist (better utilization at scale)
  • Polling patterns where event-driven would reduce idle compute
  • Individual API calls where batch operations exist
  • Missing caching causing redundant computation
  • Chatty APIs causing excessive network round-trips

Step 5: Development and Deployment Efficiency

Analyze CI/CD and development practices for sustainability.

You MUST examine:

  • Container image optimization (multi-stage builds, layer caching, image size)
  • CI/CD pipeline efficiency (caching, incremental builds, parallel execution)
  • Artifact management (retention, cleanup)
  • Test environment lifecycle (auto-teardown, TTL)
  • Deployment strategy efficiency (minimal rollout for testing)

You MUST flag:

  • Large Docker images without multi-stage builds
  • No caching in CI/CD pipelines (rebuilding everything every time)
  • Test environments without auto-teardown
  • Redundant full deployments where incremental would work

Step 6: Region and Hardware Efficiency

Analyze region and hardware choices.

You MUST examine:

  • Region selection (carbon intensity varies by region)
  • Graviton adoption across all resource types
  • Instance generation (older generations are less efficient per operation)
  • Storage tier selection efficiency

You MUST flag:

  • Older generation instances (e.g., m4 instead of m7g, t2 instead of t4g)
  • x86 selection where Graviton/ARM is supported by the workload runtime
  • Resources in high-carbon regions without latency justification

---STOP--- Checkpoint: Discovery complete — ready to evaluate against WA Framework

Discovered compute efficiency ({X} resources, {Y} using Graviton/arm64), data/storage lifecycle configurations, architecture efficiency patterns, development/deployment practices, and region/hardware choices across {packages analyzed}.

Shall I proceed with evaluating these findings against the WA Sustainability pillar questions and assessing impact levels?

Do NOT proceed past this point until the user explicitly confirms.

Step 7: Evaluate against WA Framework questions

For each question, provide: Status, Evidence (file:line), Gaps, Risk.

SUS 1 — How do you select Regions to support your sustainability goals?

  • Evidence: region configs, documentation on region selection rationale

SUS 2 — How do you take advantage of user behavior patterns?

  • Evidence: scale-to-zero configs, scheduled scaling, event-driven architecture patterns

SUS 3 — How do you take advantage of software and architecture patterns?

  • Evidence: managed services, async processing, batch operations, caching layers

SUS 4 — How do you take advantage of data access and usage patterns?

  • Evidence: lifecycle policies, compression, tiering, Intelligent-Tiering, TTL configs

SUS 5 — How do your hardware management and usage patterns support your sustainability goals?

  • Evidence: Graviton/arm64 usage, instance generation, right-sizing, managed services

SUS 6 — How do your development and deployment processes support your sustainability goals?

  • Evidence: multi-stage Docker builds, CI caching, incremental deployments, artifact cleanup

Step 8: Impact Assessment

For each finding, assess:

Resource Impact: Low (minor efficiency gain) | Medium (significant resource reduction) | High (major resource elimination or efficiency improvement)

Implementation Effort: Low (config change) | Medium (some development needed) | High (architecture change)

Prioritize by: Impact / Effort ratio (highest first)

Step 9: Produce findings

# Sustainability Assessment: {Workload Name}

## Executive Summary
- **Date**: {date}
- **Packages Analyzed**: {list}
- **Findings**: {X} High Impact, {Y} Medium Impact, {Z} Low Impact
- **Overall Sustainability Maturity**: {1-5} — {one-line justification}
- **Key Opportunities**: {top 3 highest-impact changes}

## Sustainability Scorecard
| Domain | Score (1-5) | Key Strength | Key Gap |
|--------|-------------|--------------|---------|
| Compute Efficiency | {score} | {strength} | {gap} |
| Data & Storage | {score} | {strength} | {gap} |
| Architecture Efficiency | {score} | {strength} | {gap} |
| Development & Deployment | {score} | {strength} | {gap} |
| Hardware & Region | {score} | {strength} | {gap} |

## High Impact Findings
{For each: ID, domain, title, description, evidence (file:line), resource impact, recommendation, effort, AWS services}

## Medium Impact Findings
{Same format, condensed}

## Low Impact Findings
{Summary table: ID | Domain | Title | Recommendation}

## Resource Efficiency Opportunities
| Resource | Current Config | Optimized Config | Efficiency Gain | Evidence |
|----------|---------------|-----------------|-----------------|----------|
| {resource} | {current} | {optimized} | {gain description} | {file:line} |

## Prioritized Remediation Plan

### Quick Wins (< 1 week)
| Finding | Action | Resource Impact | Effort |
|---------|--------|----------------|--------|
{Set log retention, add lifecycle policies, enable Intelligent-Tiering, schedule non-prod}

### Foundation (1-4 weeks)
| Finding | Action | Resource Impact | Effort | Dependencies |
|---------|--------|----------------|--------|--------------|
{Graviton migration, right-sizing, scale-to-zero, multi-stage Docker builds}

### Strategic (1-3 months)
| Finding | Action | Resource Impact | Effort | Dependencies |
|---------|--------|----------------|--------|--------------|
{Serverless migration, managed service adoption, event-driven architecture, region optimization}

## AWS Sustainability Tools
- **Customer Carbon Footprint Tool** — Track emissions in the AWS console
- **Compute Optimizer** — Right-size recommendations with Graviton suggestions
- **S3 Storage Lens** — Storage efficiency and access pattern insights
- **Trusted Advisor** — Idle resource detection

## Next Steps
{Top 5 concrete sustainability actions the team should take this week}

Step 10: Offer follow-up

After delivering the assessment, offer:

Would you like me to:

  • Generate Graviton migration IaC for identified resources?
  • Design a scale-to-zero strategy for non-production environments?
  • Implement S3 lifecycle policies for identified buckets?
  • Create multi-stage Docker builds for container images?
  • Design an event-driven architecture to replace polling patterns?
  • Implement scheduled scaling for off-hours capacity reduction?

Calibration Guidance

  • A workload using Graviton, serverless, lifecycle policies, and managed services is MATURE — focus on advanced efficiencies (data locality, batch aggregation, development practices)
  • Every finding MUST have code evidence — don't flag "missing lifecycle policy" without checking the IaC
  • Sustainability findings should be framed positively (resource efficiency gains) not negatively
  • Always note when a sustainability improvement also reduces cost (double benefit)
  • "Cannot Determine" is valid for utilization data that requires CloudWatch metrics (recommend Compute Optimizer)
  • Don't recommend region changes without considering latency requirements and data residency
  • Acknowledge existing sustainability practices before listing gaps

FAQ

What does the sustainability-optimization skill do?

Assess a workload's environmental sustainability posture by analyzing resource utilization patterns, managed service adoption, data lifecycle configs, and compute efficiency in the codebase against the Well-Architected Sustainability pillar.

How do I install sustainability-optimization?

Run npx skills add https://github.com/aws-samples/sample-well-architected-skills-and-steering --skill sustainability-optimization in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/sustainability-optimization/ (personal) or .claude/skills/sustainability-optimization/ (project).

Which AI agents can use sustainability-optimization?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is sustainability-optimization safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains sustainability-optimization?

It is published by aws-samples in aws-samples/sample-well-architected-skills-and-steering. It has 208 recorded installs.

More from aws-samples/sample-well-architected-skills-and-steering

View all →

migration-readiness

aws-samples/sample-well-architected-skills-and-steering

Assess a workload's readiness to migrate to AWS by analyzing existing code, dependencies, configurations, and infrastructure to produce evidence-backed findings covering the 7 Rs, risks, and a migration plan.

wa-review

aws-samples/sample-well-architected-skills-and-steering

Perform a full AWS Well-Architected Framework review evaluating all 57 questions across 6 pillars by analyzing code, IaC, and configurations to produce evidence-backed findings with Eisenhower-prioritized remediation.

wa-guardrails

aws-samples/sample-well-architected-skills-and-steering

Generate preventive Well-Architected guardrails — AWS Config rules, Service Control Policies, permission boundaries, CloudWatch alarms, and IaC policy checks (CDK Aspects, cfn-guard, OPA/Sentinel) — plus an optional governance steering doc, so a workload stays aligned with Well-Architected best practices over time instead of being assessed once. Use when the user wants to enforce best practices in CI, prevent insecure or non-compliant configurations from shipping, detect configuration drift, codify the fixes from a Well-Architected review as ongoing controls, or capture standards as an always-on steering file for their AI coding agent.

DevOps & Cloud359 installs

aws-well-architected-framework-review

aws-samples/sample-well-architected-skills-and-steering

Perform a full AWS Well-Architected Framework review evaluating all 57 questions across 6 pillars by analyzing code, IaC, and configurations to produce evidence-backed findings with Eisenhower-prioritized remediation.

DevOps & Cloud314 installs

wafr-facilitator

aws-samples/sample-well-architected-skills-and-steering

Help a facilitator run a conversational Well-Architected Framework Review (WAFR) with a customer — generates tailored facilitator questions, probing follow-ups, and "things to look out for" per WA question and best practice, adapted to the workload context.

DevOps & Cloud308 installs

wa-builder

aws-samples/sample-well-architected-skills-and-steering

"Learn then Build" — help developers understand AWS Well-Architected best practices for their specific workload, then produce actionable visual artifacts (architecture diagrams with WA annotations, decision trees, improvement roadmaps) they can commit and use. Adapts explanations for beginners and generates artifacts faster for experienced builders. Use when the user wants to understand WA for their project, create architecture diagrams with pillar health overlays, get guided decision flows for architectural choices, or generate a visual improvement roadmap.

Popular devops & cloud skills

View category →

microsoft-foundry

microsoft/azure-skills

Build, deploy, evaluate, optimize, fine-tune, and manage Microsoft Foundry agents, models, and resources end to end. USE FOR: foundry, azd ai agent, azd provision/deploy, hosted agent scaffold/develop/run/deploy/troubleshoot, prompt agent create, managed harness agent create, GitHub Copilot harness agent, create agent, update agent, add tool to agent, invoke agent, agent insights, evaluate agent, batch eval, continuous eval, continuous monitoring, agent CI/CD, optimize prompt, improve prompt, optimize agent instructions, Agent Optimizer scaffold, dataset curation from traces, deploy model, model fine-tuning (SFT/DPO/RFT), Foundry project, RBAC, role assignment, permissions, quota, capacity, region, deployment failure, AI Services, create Foundry resource, knowledge index, customize deployment, onboard, availability, training-data, grader, distillation, large file upload. DO NOT USE FOR: Azure Functions, App Service, general Azure deploy (use azure-deploy), general Azure prep (use azure

OfficialDevOps & Cloud579.1K installs

azure-diagnostics

microsoft/azure-skills

Debug Azure production issues on Azure using AppLens, Azure Monitor, resource health, and safe triage. WHEN: debug production issues, troubleshoot app service, app service high CPU, app service deployment failure, troubleshoot container apps, container app 503 or target port mismatch, troubleshoot functions, function telemetry missing or stopped after a config/connection-string change, troubleshoot AKS, VM RDP, Linux SSH, VM black screen, can't connect to VM, reset VM password, NSG or firewall blocking, kubectl cannot connect, kube-system/CoreDNS failures, pod pending, crashloop, node not ready, upgrade failures, analyze logs, KQL, insights, image pull failures, cold start issues, health probe failures, resource health, root cause of errors, troubleshoot event hubs, troubleshoot service bus, messaging SDK error, AMQP connection failure, message lock lost, lock renewal during long-running processing, service bus dead letter.

OfficialDevOps & Cloud569.8K installs

azure-prepare

microsoft/azure-skills

Prepare azd-based Azure projects for deployment: generates azure.yaml, infrastructure (Bicep/Terraform), and Dockerfiles for the Azure Developer CLI (azd) workflow. USE ONLY when the user explicitly wants to use azd as the deployment tool, or the project already has an azure.yaml file. DO NOT USE FOR: non-azd deployments, Python App Service code-only deploys (use python-appservice-deploy), or cross-cloud migration (use azure-cloud-migrate). WHEN: prepare app for azd, create azure.yaml, set up azd infrastructure, modernize app for Azure with azd, deploy with azd, function app, timer trigger, service bus trigger, event-driven function, managed identity, generate Bicep, generate Terraform, create and deploy to Azure.

OfficialDevOps & Cloud569K installs

azure-ai

microsoft/azure-skills

Use for Azure AI: Search, Speech, OpenAI, Document Intelligence. Helps with search, vector/hybrid search, speech-to-text, text-to-speech, transcription, OCR. WHEN: AI Search, query search, vector search, hybrid search, semantic search, speech-to-text, text-to-speech, transcribe, OCR, convert text to speech.

OfficialDevOps & Cloud568.8K installs

azure-deploy

microsoft/azure-skills

Execute Azure deployments for ALREADY-PREPARED applications that have existing .azure/deployment-plan.md and infrastructure files. DO NOT use this skill when the user asks to CREATE a new application — use azure-prepare instead. This skill runs azd up, azd deploy, terraform apply, and az deployment commands with built-in error recovery. Requires .azure/deployment-plan.md from azure-prepare and validated status from azure-validate. WHEN: "run azd up", "run azd deploy", "execute deployment", "push to production", "push to cloud", "go live", "ship it", "bicep deploy", "terraform apply", "publish to Azure", "launch on Azure". DO NOT USE WHEN: "create and deploy", "build and deploy", "create a new app", "set up infrastructure", "create and deploy to Azure using Terraform" — use azure-prepare for these.

OfficialDevOps & Cloud568.6K installs

azure-validate

microsoft/azure-skills

Pre-deployment validation for Azure readiness. Run deep checks on configuration, infrastructure (Bicep or Terraform), RBAC role assignments, managed identity permissions, and prerequisites before deploying. WHEN: validate my app, check deployment readiness, run preflight checks, verify configuration, check if ready to deploy, validate azure.yaml, validate Bicep, test before deploying, troubleshoot deployment errors, validate Azure Functions, validate function app, validate serverless deployment, verify RBAC roles, check role assignments, review managed identity permissions, what-if analysis, validate Container Apps deployment.

OfficialDevOps & Cloud568K installs