agentleFS
kayamankayaman/skills/aws-well-architected/SKILL.md

aws-well-architected

Skill3 starsChanged 8 months agoCC0-1.0View on GitHub

Enforces AWS Well-Architected Framework best practices across all six pillars (Operational Excellence, Security, Reliability, Performance Efficiency, Cost Optimization, Sustainability). Use when designing AWS architecture, writing infrastructure code (CDK, CloudFormation, Terraform), reviewing pull requests for cloud workloads, or making technology selection decisions on AWS.

The file

Show its rules and text

We split this skill into the rules it gives an agent

45 rules. About 0 are common, 43 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈43

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Treat infrastructure as code — define all resources in version-controlled templates

    line 24
  2. Distinctive:

    Prefer managed services over self-managed to reduce operational burden

    line 25
  3. Distinctive:

    MUST define and expose operational KPIs tied to business outcomes, not just technical metrics

    line 49
  4. Distinctive:

    MUST implement structured logging, distributed tracing, and dashboards for every workload

    line 50
  5. Distinctive:

    MUST use automation (CI/CD pipelines, runbooks-as-code) for all deployments and operational tasks

    line 51
  6. Distinctive:

    SHOULD document and regularly rehearse runbooks for failure scenarios

    line 52
  7. Distinctive:

    SHOULD hold post-incident reviews and feed learnings back into procedures

    line 53
  8. Distinctive:

    Keep people away from data: minimize direct access to production data.

    line 68
  9. Very specific:

    MUST enforce least-privilege IAM policies.

    line 73
  10. Distinctive:

    MUST enable encryption at rest and in transit for all data stores and communication channels

    line 74
  11. Distinctive:

    MUST enable CloudTrail, VPC Flow Logs, and GuardDuty in every account

    line 75
  12. Distinctive:

    MUST rotate credentials and secrets automatically (use AWS Secrets Manager or Parameter Store)

    line 76
  13. Distinctive:

    SHOULD use AWS Organizations SCPs to enforce account-level guardrails

    line 77
  14. Distinctive:

    SHOULD separate workload environments (dev, staging, production) into distinct AWS accounts

    line 78
  15. Distinctive:

    Focus: Ensure a workload performs its intended function correctly and consistently.

    line 84
  16. Distinctive:

    Test recovery procedures using automation to simulate failures before they occur in production

    line 89
  17. Distinctive:

    Stop guessing capacity — monitor demand and use auto-scaling

    line 91
  18. Distinctive:

    MUST design for multi-AZ deployments for all stateful services.

    line 96
  19. Distinctive:

    MUST implement health checks and automatic replacement of unhealthy instances

    line 97
  20. Distinctive:

    MUST define and test RTO/RPO targets.

    line 98
  21. Distinctive:

    MUST use managed queues (SQS, EventBridge) to decouple components and absorb load spikes

    line 99
  22. Distinctive:

    SHOULD implement chaos engineering or fault injection testing (AWS Fault Injection Service)

    line 100
  23. Distinctive:

    SHOULD use circuit breakers and retry logic with exponential backoff for all service calls

    line 101
  24. Distinctive:

    Focus: Use computing resources efficiently to meet system requirements and adapt as demand changes.

    line 107
  25. Distinctive:

    Use serverless architectures to eliminate server management and reduce transactional costs

    line 113
  26. Distinctive:

    MUST select storage and database types based on access patterns (e.g., DynamoDB for key-value, Aurora for relational, S3 for object)

    line 119
  27. Distinctive:

    MUST configure auto-scaling for all compute resources to match demand without over-provisioning

    line 120
  28. Distinctive:

    SHOULD use caching layers (ElastiCache, DAX, CloudFront) to reduce latency and backend load

    line 121
  29. Distinctive:

    SHOULD benchmark and load-test before production launches and after significant architecture changes

    line 122
  30. Distinctive:

    SHOULD place resources in Regions closest to end users.

    line 123
  31. Distinctive:

    Focus: Avoid unnecessary costs and achieve business value from every dollar spent.

    line 129
  32. Distinctive:

    Stop spending on undifferentiated heavy lifting: prefer managed services over self-managed infrastructure

    line 136
  33. Very specific:

    MUST tag all AWS resources with at minimum project, environment, and owner tags

    line 141
  34. Distinctive:

    MUST set AWS Budgets alerts for every account and workload

    line 142
  35. Distinctive:

    SHOULD use Savings Plans or Reserved Instances for predictable, sustained compute workloads

    line 143
  36. Distinctive:

    SHOULD use Spot Instances for fault-tolerant, batch, or stateless workloads where applicable

    line 144
  37. Distinctive:

    SHOULD regularly review AWS Cost Explorer and Trusted Advisor recommendations

    line 145
  38. Distinctive:

    MUST delete or stop unused resources (development environments, snapshots, orphaned volumes)

    line 146
  39. Distinctive:

    Use managed services to benefit from AWS's infrastructure efficiency at scale

    line 160
  40. Distinctive:

    SHOULD right-size all compute resources — avoid persistent over-provisioning

    line 165
  41. Distinctive:

    SHOULD use graviton-based (ARM) instances where workload is compatible.

    line 166
  42. Distinctive:

    SHOULD implement S3 Lifecycle policies to move infrequently accessed data to cheaper, lower-energy storage tiers

    line 167
  43. Distinctive:

    SHOULD use auto-scaling and serverless to avoid idle capacity

    line 168
  44. Distinctive:

    SHOULD measure and report on resource efficiency (cost and compute per transaction/user)

    line 169
  45. Distinctive:

    Use this checklist when proposing or reviewing AWS architecture.

    line 175

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

AWS Well-Architected Framework

Reference: https://docs.aws.amazon.com/wellarchitected/latest/framework/welcome.html

When to Apply

Apply this skill whenever:

  • Proposing or reviewing AWS architecture decisions
  • Writing or reviewing IaC (CDK, CloudFormation, Terraform, SAM)
  • Reviewing pull requests that touch cloud infrastructure or AWS service integrations
  • Selecting AWS services or making technology trade-off decisions
  • Evaluating cost, performance, security, or reliability implications of a change

General Principles

These cross-cutting principles apply to all pillars:

  • Treat infrastructure as code — define all resources in version-controlled templates
  • Prefer managed services over self-managed to reduce operational burden
  • Design for failure — assume components will fail; build resilience into the architecture
  • Automate operations — deployments, scaling, remediation, and testing
  • Make frequent, small, reversible changes; avoid large, risky releases
  • Collect and act on observability data (metrics, logs, traces) at every layer

Pillar 1: Operational Excellence

Focus: Build and run workloads correctly while continuously improving processes.

Design Principles

  • Organize teams around business outcomes with aligned KPIs
  • Implement observability for actionable insights across all layers
  • Automate operations safely with guardrails (rate control, error thresholds, approvals)
  • Make frequent, small, reversible changes
  • Anticipate failure — run failure simulations and game days
  • Learn from all operational events and share learnings across teams
  • Refine operational procedures frequently

Rules

  • MUST define and expose operational KPIs tied to business outcomes, not just technical metrics
  • MUST implement structured logging, distributed tracing, and dashboards for every workload
  • MUST use automation (CI/CD pipelines, runbooks-as-code) for all deployments and operational tasks
  • SHOULD document and regularly rehearse runbooks for failure scenarios
  • SHOULD hold post-incident reviews and feed learnings back into procedures

Pillar 2: Security

Focus: Protect data, systems, and assets using cloud-native security controls.

Design Principles

  • Implement a strong identity foundation: least privilege, separation of duties, no long-term static credentials
  • Maintain traceability: real-time monitoring, alerting, and auditing of all actions
  • Apply security at all layers: edge, VPC, load balancers, compute, OS, application, code
  • Automate security: define and manage security controls as code in version-controlled templates
  • Protect data in transit and at rest: classify data by sensitivity; use encryption and access controls
  • Keep people away from data: minimize direct access to production data; use automation
  • Prepare for security events: define incident response playbooks and run simulations

Rules

  • MUST enforce least-privilege IAM policies; MUST NOT use wildcard (*) permissions in production
  • MUST enable encryption at rest and in transit for all data stores and communication channels
  • MUST enable CloudTrail, VPC Flow Logs, and GuardDuty in every account
  • MUST rotate credentials and secrets automatically (use AWS Secrets Manager or Parameter Store)
  • SHOULD use AWS Organizations SCPs to enforce account-level guardrails
  • SHOULD separate workload environments (dev, staging, production) into distinct AWS accounts

Pillar 3: Reliability

Focus: Ensure a workload performs its intended function correctly and consistently.

Design Principles

  • Automatically recover from failure by monitoring KPIs and triggering automated remediation
  • Test recovery procedures using automation to simulate failures before they occur in production
  • Scale horizontally to eliminate single points of failure
  • Stop guessing capacity — monitor demand and use auto-scaling
  • Manage all infrastructure changes through automation

Rules

  • MUST design for multi-AZ deployments for all stateful services; MUST NOT rely on single-AZ for production
  • MUST implement health checks and automatic replacement of unhealthy instances
  • MUST define and test RTO/RPO targets; document and rehearse DR procedures
  • MUST use managed queues (SQS, EventBridge) to decouple components and absorb load spikes
  • SHOULD implement chaos engineering or fault injection testing (AWS Fault Injection Service)
  • SHOULD use circuit breakers and retry logic with exponential backoff for all service calls

Pillar 4: Performance Efficiency

Focus: Use computing resources efficiently to meet system requirements and adapt as demand changes.

Design Principles

  • Democratize advanced technologies — consume ML, NoSQL, transcoding as managed services
  • Go global in minutes — leverage multiple AWS Regions and edge services (CloudFront, Global Accelerator)
  • Use serverless architectures to eliminate server management and reduce transactional costs
  • Experiment more often — compare resource types and configurations using automated benchmarks
  • Apply mechanical sympathy — choose services that match access patterns and workload characteristics

Rules

  • MUST select storage and database types based on access patterns (e.g., DynamoDB for key-value, Aurora for relational, S3 for object)
  • MUST configure auto-scaling for all compute resources to match demand without over-provisioning
  • SHOULD use caching layers (ElastiCache, DAX, CloudFront) to reduce latency and backend load
  • SHOULD benchmark and load-test before production launches and after significant architecture changes
  • SHOULD place resources in Regions closest to end users; use CDN for static and cacheable content

Pillar 5: Cost Optimization

Focus: Avoid unnecessary costs and achieve business value from every dollar spent.

Design Principles

  • Implement Cloud Financial Management: build FinOps capability, set budgets, and review spend regularly
  • Adopt a consumption model: pay only for what you use; shut down idle resources
  • Measure overall efficiency: track cost per unit of business output
  • Stop spending on undifferentiated heavy lifting: prefer managed services over self-managed infrastructure
  • Analyze and attribute expenditure: tag all resources; allocate costs to workload owners

Rules

  • MUST tag all AWS resources with at minimum project, environment, and owner tags
  • MUST set AWS Budgets alerts for every account and workload
  • SHOULD use Savings Plans or Reserved Instances for predictable, sustained compute workloads
  • SHOULD use Spot Instances for fault-tolerant, batch, or stateless workloads where applicable
  • SHOULD regularly review AWS Cost Explorer and Trusted Advisor recommendations
  • MUST delete or stop unused resources (development environments, snapshots, orphaned volumes)

Pillar 6: Sustainability

Focus: Minimize the environmental impact of running cloud workloads.

Design Principles

  • Understand your impact: measure resource consumption and emissions per unit of work
  • Establish sustainability goals and track regression against them
  • Maximize utilization: right-size workloads; eliminate idle resources
  • Anticipate and adopt more efficient hardware and software offerings as they become available
  • Use managed services to benefit from AWS's infrastructure efficiency at scale
  • Reduce downstream impact: minimize client-side resource requirements

Rules

  • SHOULD right-size all compute resources — avoid persistent over-provisioning
  • SHOULD use graviton-based (ARM) instances where workload is compatible; they deliver better performance per watt
  • SHOULD implement S3 Lifecycle policies to move infrequently accessed data to cheaper, lower-energy storage tiers
  • SHOULD use auto-scaling and serverless to avoid idle capacity
  • SHOULD measure and report on resource efficiency (cost and compute per transaction/user)

Architecture Review Checklist

Use this checklist when proposing or reviewing AWS architecture. Address any unchecked item before approving.

Operational Excellence

  • Observability is defined: metrics, structured logs, and distributed traces are collected
  • Deployments are automated via CI/CD pipelines with rollback capability
  • Operational runbooks exist for known failure scenarios
  • KPIs tied to business outcomes are identified and monitored

Security

  • All IAM roles and policies follow least privilege; no wildcard permissions in production
  • All data at rest and in transit is encrypted
  • CloudTrail, GuardDuty, and VPC Flow Logs are enabled
  • Secrets are managed via Secrets Manager or Parameter Store, not hardcoded
  • Network access is restricted with security groups and NACLs

Reliability

  • Workload is deployed across multiple availability zones
  • Health checks and auto-healing are configured
  • RTO and RPO are defined; backup and DR procedures are tested
  • Components are decoupled using queues or event buses
  • Service quotas are known and headroom is sufficient

Performance Efficiency

  • Storage and database types are matched to access patterns
  • Auto-scaling is configured for all compute resources
  • Caching is applied where latency reduction is needed
  • Load testing has been performed against expected peak traffic

Cost Optimization

  • All resources are tagged with project, environment, owner
  • AWS Budgets alerts are configured
  • Idle or unused resources have been removed
  • Right-sizing analysis has been performed
  • Savings Plans / Reserved Instances evaluated for sustained workloads

Sustainability

  • Compute resources are right-sized; no persistent idle capacity
  • Graviton instances evaluated for compatible workloads
  • S3 Lifecycle policies applied to data with varying access frequency
  • Serverless or auto-scaling used to eliminate idle compute

Trade-off Guidance

Common tensions between pillars and how to resolve them:

TensionGuidance
Security vs. PerformancePrefer TLS termination at the load balancer, not per-instance; use regional endpoints to avoid cross-region latency
Cost vs. ReliabilityUse multi-AZ for stateful tiers (databases, queues); accept single-AZ for stateless compute only in non-critical environments
Cost vs. PerformanceUse reserved capacity for baseline load and on-demand/Spot for burst; cache aggressively
Operational simplicity vs. ReliabilityPrefer managed services even at higher unit cost; reduced operational burden outweighs marginal cost difference for most workloads
Sustainability vs. PerformanceRight-sizing and graviton instances generally improve both; resolve conflicts by optimizing for per-transaction cost

Additional Resources

For detailed best practices per pillar, see reference.md.

Official whitepapers:

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.