AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT-0 Self-run

Sustainability Optimization

skill-aws-samples-sample-well-architected-skills-and-steering-sustainability-optimization · by aws-samples

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.

No reviews yet
0 installs
22 views
0.0% view→install

Install

$ agentstack add skill-aws-samples-sample-well-architected-skills-and-steering-sustainability-optimization

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-aws-samples-sample-well-architected-skills-and-steering-sustainability-optimization)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Sustainability Optimization? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

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 ( 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

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [aws-samples](https://github.com/aws-samples)
- **Source:** [aws-samples/sample-well-architected-skills-and-steering](https://github.com/aws-samples/sample-well-architected-skills-and-steering)
- **License:** MIT-0
- **Homepage:** https://aws.amazon.com/architecture/well-architected/

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.