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

> Architecture diagram of the GitHub repository aws-samples/sample-well-architected-skills-and-steering, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-06-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/aws-samples/sample-well-architected-skills-and-steering
- Repository: https://github.com/aws-samples/sample-well-architected-skills-and-steering

## Overview

1. **What this repo is**
   - This is a **content-and-tooling repository**, not an application runtime. Its purpose is to package AWS Well-Architected guidance so AI coding agents can consume it inside their own native configuration surfaces.

2. **Single source of truth**
   - The core knowledge lives in `skills/`, `steering/`, and `assets/`.
   - `skills/*/SKILL.md` are **tool-agnostic playbooks** for specific review tasks such as security, reliability, cost, performance, sustainability, operations, migration readiness, and architecture decision records.
   - `steering/well-architected.md` is the **always-on context** for architecture discussions, especially for Kiro.

3. **Shared reference layer**
   - `assets/` holds the reusable reference material the skills rely on: the AWS Well-Architected v13 best-practice library, pillar checklists, CloudWatch metric references, and incident-investigation patterns.
   - These files are not execution logic; they are the knowledge base that the skills and adapters package into agent-friendly form.

4. **Adapter boundary**
   - `adapters/` is the translation layer from the repo’s canonical content into each agent’s native format.
   - Each adapter maps the same underlying guidance into different surfaces such as `CLAUDE.md`, `.cursor/rules`, `AGENTS.md`, `.windsurfrules`, Copilot instructions, Gemini CLI guidance, and agent-specific skill directories.

5. **Supported agent targets**
   - The architecture is explicitly multi-tool: Kiro, Claude Code, Cursor, Codex, Windsurf, GitHub Copilot, Gemini CLI, Antigravity, Junie, Amp, OpenClaw, Cline, and AWS DevOps Agent.
   - The key design constraint is that the **content stays centralized**, while adapters reshape it to match each tool’s loading and activation model.

6. **Installation/distribution flow**
   - `install.sh`, `install.ps1`, `bootstrap.sh`, and `bootstrap.ps1` are the delivery mechanisms.
   - They detect a target environment, then copy or symlink steering and skills into the right local locations, either **project-scoped** or **global/user-scoped**.
   - For AWS DevOps Agent, the install flow packages skills into zip files for upload rather than writing into a local IDE config.

7. **Consumption model inside agent tools**
   - The repo distinguishes between **always-on guidance** and **task-triggered playbooks**.
   - Steering is loaded continuously where supported; skills are invoked when a user asks for a focused review or assessment.
   - For Kiro, the newer model is “Powers,” which are keyword-activated bundles that can combine steering, skills, and optional tool integration.

8. **Evaluation subsystem**
   - `evals/` is a separate Python-based harness for measuring whether the skills actually improve outputs.
   - It uses Amazon Bedrock to generate two answers per case: a **baseline** response and a **skill-augmented** response.
   - A second model acts as a judge to score concrete assertions, so the repo can quantify the effect of the guidance.

9. **Eval data flow**
   - Inputs come from per-skill test cases in `skills/*/evals/evals.json`.
   - The runner loads the skill text, sends prompts to Bedrock, grades outputs, and produces a score comparison.
   - This subsystem requires AWS credentials and Bedrock model access; the rest of the repo is designed to work locally without AWS calls.

10. **Operational boundary**
   - There is no shared service, database, or API backend.
   - The “runtime” is the consuming AI agent plus local files installed into that agent’s config directories.
   - The repo’s architecture is therefore a **distribution and evaluation platform for prompt/agent guidance**, not a hosted product.

11. **Repository structure to diagram**
   - Draw `skills/`, `steering/`, and `assets/` as the canonical knowledge layer.
   - Draw `adapters/` as the fan-out translation layer into multiple agent-specific targets.
   - Draw the install/bootstrap scripts as the deployment path from this repo into a user’s local tool configuration.
   - Draw `evals/` as a separate feedback loop that measures skill quality via Bedrock.

12. **Maintenance model**
   - New content is added once in the canonical skills/steering/assets layer, then selectively exposed through adapters and installation paths.
   - This keeps the architecture consistent across tools while letting each agent consume the same Well-Architected guidance in its own native format.

Main entry points: [`skills`](https://github.com/aws-samples/sample-well-architected-skills-and-steering/tree/main/skills) (Skills), [`adapters`](https://github.com/aws-samples/sample-well-architected-skills-and-steering/tree/main/adapters) (Adapters), [`evals/run.py`](https://github.com/aws-samples/sample-well-architected-skills-and-steering/blob/main/evals/run.py) (Eval runner), [`install.sh`](https://github.com/aws-samples/sample-well-architected-skills-and-steering/blob/main/install.sh) (Install scripts)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_canonical["Canonical guidance"]
  node_skills["Skills<br/>playbooks"]
  node_steering["Steering<br/>always-on context"]
  node_assets[("Assets<br/>reference library")]
  node_v13_library["WA v13<br/>best-practice corpus"]
  node_skill_playbook["WA review<br/>skill playbook<br/>[SKILL.md]"]
  node_security_playbook["Security<br/>skill playbook<br/>[SKILL.md]"]
  node_reliability_playbook["Reliability<br/>skill playbook<br/>[SKILL.md]"]
end

subgraph group_adapters["Tool adapters"]
  node_adapter_layer{{"Adapters<br/>translation layer"}}
  node_claude_code["Claude Code<br/>adapter target<br/>[CLAUDE.md]"]
  node_cursor_rules["Cursor<br/>adapter target"]
  node_copilot_instr["Copilot<br/>adapter target"]
  node_other_targets["Other tools<br/>adapter family"]
end

subgraph group_delivery["Install and bootstrap"]
  node_installers["Install scripts<br/>delivery scripts<br/>[install.sh]"]
  node_bootstrappers["Bootstrap scripts<br/>delivery scripts<br/>[bootstrap.sh]"]
  node_devops_package["DevOps packaging<br/>upload flow<br/>[README.md]"]
end

subgraph group_evals["Evaluation harness"]
  node_eval_runner["Eval runner<br/>python harness<br/>[run.py]"]
  node_judge_model["Judge<br/>scoring model<br/>[grade.py]"]
  node_eval_corpus["Eval cases<br/>test corpus<br/>[evals.json]"]
  node_results_store[("Reports<br/>results output")]
end

node_skills -->|"contains"| node_skill_playbook
node_skills -->|"contains"| node_security_playbook
node_skills -->|"contains"| node_reliability_playbook
node_skills -->|"provides cases"| node_eval_corpus
node_steering -->|"published through"| node_adapter_layer
node_assets -->|"includes"| node_v13_library
node_assets -->|"supports"| node_steering
node_assets -->|"supports"| node_skills
node_skills -->|"published through"| node_adapter_layer
node_adapter_layer -->|"maps to"| node_claude_code
node_adapter_layer -->|"maps to"| node_cursor_rules
node_adapter_layer -->|"maps to"| node_copilot_instr
node_adapter_layer -->|"maps to"| node_other_targets
node_bootstrappers -->|"invokes"| node_installers
node_installers -->|"installs"| node_skills
node_installers -->|"installs"| node_steering
node_installers -->|"deploys"| node_adapter_layer
node_devops_package -->|"packages"| node_skills
node_eval_runner -->|"loads"| node_eval_corpus
node_eval_runner -->|"loads text"| node_skills
node_eval_runner -->|"scores with"| node_judge_model
node_eval_runner -->|"writes"| node_results_store
node_judge_model -->|"informs"| node_results_store

click node_skills "https://github.com/aws-samples/sample-well-architected-skills-and-steering/tree/main/skills"
click node_steering "https://github.com/aws-samples/sample-well-architected-skills-and-steering/tree/main/steering"
click node_assets "https://github.com/aws-samples/sample-well-architected-skills-and-steering/tree/main/assets"
click node_v13_library "https://github.com/aws-samples/sample-well-architected-skills-and-steering/tree/main/assets/v13"
click node_skill_playbook "https://github.com/aws-samples/sample-well-architected-skills-and-steering/blob/main/skills/wa-review/SKILL.md"
click node_security_playbook "https://github.com/aws-samples/sample-well-architected-skills-and-steering/blob/main/skills/security-assessment/SKILL.md"
click node_reliability_playbook "https://github.com/aws-samples/sample-well-architected-skills-and-steering/blob/main/skills/reliability-improvement-plan/SKILL.md"
click node_adapter_layer "https://github.com/aws-samples/sample-well-architected-skills-and-steering/tree/main/adapters"
click node_claude_code "https://github.com/aws-samples/sample-well-architected-skills-and-steering/blob/main/adapters/claude-code/CLAUDE.md"
click node_cursor_rules "https://github.com/aws-samples/sample-well-architected-skills-and-steering/tree/main/adapters/cursor/rules"
click node_copilot_instr "https://github.com/aws-samples/sample-well-architected-skills-and-steering/blob/main/adapters/github-copilot/.github/copilot-instructions.md"
click node_other_targets "https://github.com/aws-samples/sample-well-architected-skills-and-steering/tree/main/adapters"
click node_installers "https://github.com/aws-samples/sample-well-architected-skills-and-steering/blob/main/install.sh"
click node_bootstrappers "https://github.com/aws-samples/sample-well-architected-skills-and-steering/blob/main/bootstrap.sh"
click node_devops_package "https://github.com/aws-samples/sample-well-architected-skills-and-steering/blob/main/adapters/devops-agent/README.md"
click node_eval_runner "https://github.com/aws-samples/sample-well-architected-skills-and-steering/blob/main/evals/run.py"
click node_judge_model "https://github.com/aws-samples/sample-well-architected-skills-and-steering/blob/main/evals/grade.py"
click node_eval_corpus "https://github.com/aws-samples/sample-well-architected-skills-and-steering/blob/main/skills/wa-review/evals/evals.json"
click node_results_store "https://github.com/aws-samples/sample-well-architected-skills-and-steering/tree/main/evals/results"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_skills,node_steering,node_assets,node_v13_library,node_skill_playbook,node_security_playbook,node_reliability_playbook toneBlue
class node_adapter_layer,node_claude_code,node_cursor_rules,node_copilot_instr,node_other_targets toneAmber
class node_installers,node_bootstrappers,node_devops_package toneMint
class node_eval_runner,node_judge_model,node_eval_corpus,node_results_store toneRose
```

## Components

### Canonical guidance

Single source of truth for Well-Architected guidance and reusable reference material.

- [Skills](https://github.com/aws-samples/sample-well-architected-skills-and-steering/tree/main/skills): playbooks · Task-focused Well-Architected review guides plus their metadata and evaluation cases. · `skills`
- [Steering](https://github.com/aws-samples/sample-well-architected-skills-and-steering/tree/main/steering): always-on context · Persistent architecture guidance loaded continuously where supported. · `steering`
- [Assets](https://github.com/aws-samples/sample-well-architected-skills-and-steering/tree/main/assets): reference library · Reusable reference material including best practices, checklists, metrics, and incident patterns. · `assets`
- [WA v13](https://github.com/aws-samples/sample-well-architected-skills-and-steering/tree/main/assets/v13): best-practice corpus · AWS Well-Architected v13 pillar and best-practice reference content. · `assets/v13`
- [WA review](https://github.com/aws-samples/sample-well-architected-skills-and-steering/blob/main/skills/wa-review/SKILL.md): skill playbook · General Well-Architected review workflow. · `skills/wa-review/SKILL.md`
- [Security](https://github.com/aws-samples/sample-well-architected-skills-and-steering/blob/main/skills/security-assessment/SKILL.md): skill playbook · Security assessment playbook. · `skills/security-assessment/SKILL.md`
- [Reliability](https://github.com/aws-samples/sample-well-architected-skills-and-steering/blob/main/skills/reliability-improvement-plan/SKILL.md): skill playbook · Reliability improvement playbook. · `skills/reliability-improvement-plan/SKILL.md`

### Tool adapters

Translations from canonical guidance into each agent's native configuration surface.

- [Adapters](https://github.com/aws-samples/sample-well-architected-skills-and-steering/tree/main/adapters): translation layer · Maps canonical content into agent-specific loading and activation formats. · `adapters`
- [Claude Code](https://github.com/aws-samples/sample-well-architected-skills-and-steering/blob/main/adapters/claude-code/CLAUDE.md): adapter target · Claude Code instructions and commands surface. · `adapters/claude-code/CLAUDE.md`
- [Cursor](https://github.com/aws-samples/sample-well-architected-skills-and-steering/tree/main/adapters/cursor/rules): adapter target · Cursor rules surface. · `adapters/cursor/rules`
- [Copilot](https://github.com/aws-samples/sample-well-architected-skills-and-steering/blob/main/adapters/github-copilot/.github/copilot-instructions.md): adapter target · GitHub Copilot instructions surface. · `adapters/github-copilot/.github/copilot-instructions.md`
- [Other tools](https://github.com/aws-samples/sample-well-architected-skills-and-steering/tree/main/adapters): adapter family · Additional targets such as Windsurf, Gemini CLI, Amp, Cline, Junie, OpenClaw, and DevOps Agent. · `adapters`

### Install and bootstrap

Scripts that place steering and skills into local tool environments or package them for upload.

- [Install scripts](https://github.com/aws-samples/sample-well-architected-skills-and-steering/blob/main/install.sh): delivery scripts · Shell and PowerShell installers for local tool setup. · `install.sh`
- [Bootstrap scripts](https://github.com/aws-samples/sample-well-architected-skills-and-steering/blob/main/bootstrap.sh): delivery scripts · Environment bootstrap entrypoints for deployment into user or project scopes. · `bootstrap.sh`
- [DevOps packaging](https://github.com/aws-samples/sample-well-architected-skills-and-steering/blob/main/adapters/devops-agent/README.md): upload flow · Packages skills into zip artifacts for AWS DevOps Agent upload. · `adapters/devops-agent/README.md`

### Evaluation harness

Python-based system that measures whether guidance improves model outputs.

- [Eval runner](https://github.com/aws-samples/sample-well-architected-skills-and-steering/blob/main/evals/run.py): python harness · Runs baseline versus skill-augmented generations and coordinates grading. · `evals/run.py`
- [Judge](https://github.com/aws-samples/sample-well-architected-skills-and-steering/blob/main/evals/grade.py): scoring model · Second-model grader that scores concrete assertions in generated answers. · `evals/grade.py`
- [Eval cases](https://github.com/aws-samples/sample-well-architected-skills-and-steering/blob/main/skills/wa-review/evals/evals.json): test corpus · Per-skill prompt cases used to measure guidance quality. · `skills/wa-review/evals/evals.json`
- [Reports](https://github.com/aws-samples/sample-well-architected-skills-and-steering/tree/main/evals/results): results output · Stored evaluation outputs and summary reporting. · `evals/results`

## Connections

- Skills → WA review: contains · The skills directory contains the general WA review playbook.
- Skills → Security: contains · The skills directory contains the security assessment playbook.
- Skills → Reliability: contains · The skills directory contains the reliability improvement playbook.
- Skills → Eval cases: provides cases · Skills contribute their own eval cases for quality checks.
- Steering → Adapters: published through · Always-on guidance is reshaped for each tool's native surface.
- Assets → WA v13: includes · Assets contains the v13 best-practice corpus and related references.
- Assets → Steering: supports · Shared references inform the always-on architecture guidance.
- Assets → Skills: supports · Skills rely on the shared reference library for review guidance.
- Skills → Adapters: published through · Canonical skills are selectively exposed via adapter targets.
- Adapters → Claude Code: maps to · Adapter layer emits Claude Code instructions.
- Adapters → Cursor: maps to · Adapter layer emits Cursor rules.
- Adapters → Copilot: maps to · Adapter layer emits Copilot instructions.
- Adapters → Other tools: maps to · Adapter layer fans out to the remaining supported tools.
- Bootstrap scripts → Install scripts: invokes · Bootstrap entrypoints drive installation for local environments.
- Install scripts → Skills: installs · Installers place skills into project-scoped or global locations.
- Install scripts → Steering: installs · Installers place steering files into supported agent locations.
- Install scripts → Adapters: deploys · Installers copy or symlink adapter outputs into local tool configs.
- DevOps packaging → Skills: packages · AWS DevOps Agent flow packages skills into zip artifacts for upload.
- Eval runner → Eval cases: loads · The runner reads per-skill evaluation cases.
- Eval runner → Skills: loads text · The runner loads the skill content used for skill-augmented generations.
- Eval runner → Judge: scores with · A judge model evaluates the generated answers.
- Eval runner → Reports: writes · Evaluation outputs are stored in results artifacts.
- Judge → Reports: informs · Judgment scores feed the evaluation reports.
