[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A5EY0YVXH6HAKW47XKGV5Y":3,"skill-same:01M7A5EY0YVXH6HAKW47XKGV5Y":140},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":6,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":50,"updatedAt":51,"install":52,"resources":65},"01M7A5EY0YVXH6HAKW47XKGV5Y","cloudwatch-dashboard-deployer",null,"Provisions CloudWatch dashboards with widget layouts, metric selections, and sharing models. Covers dashboard JSON (widgets, layout), metric widgets (namespace\u002Fmetric\u002Fdimensions\u002Fstatistics), log insights widgets (query syntax), alarm widgets, text widgets, metric math expressions, custom metrics (CloudWatch agent, PutMetricData, EMF), cross-account shared dashboards, snapshot sharing, dashboard variables ($INSTANCE_ID), SLO\u002Foperational\u002F executive dashboards, Metric Explorer, and Application Signals auto-discovery. Runs pre-checks (namespace availability, metric publishing, IAM, cross-account role), emits put-dashboard CLI behind a CONFIRM gate, and verifies widget rendering. Emits READY_TO_DEPLOY | PREREQUISITES_MISSING. Use when creating operational, SLO, executive, cross-account, log insights, or metric math dashboards.","jhkchan\u002Faws-agent-skills","jhkchan","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1083902?v=4","01M7A2SVQYP9GQTPTDXP5JKYQ4","Jacky Chan","01M7A2SVS117YWCTZABB75HZR1",4,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboard-deployer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: cloudwatch-dashboard-deployer\ndescription: Provisions CloudWatch dashboards with widget layouts, metric selections, and sharing models. Covers dashboard JSON (widgets, layout), metric widgets (namespace\u002Fmetric\u002Fdimensions\u002Fstatistics), log insights widgets (query syntax), alarm widgets, text widgets, metric math expressions, custom metrics (CloudWatch agent, PutMetricData, EMF), cross-account shared dashboards, snapshot sharing, dashboard variables ($INSTANCE_ID), SLO\u002Foperational\u002F executive dashboards, Metric Explorer, and Application Signals auto-discovery. Runs pre-checks (namespace availability, metric publishing, IAM, cross-account role), emits put-dashboard CLI behind a CONFIRM gate, and verifies widget rendering. Emits READY_TO_DEPLOY | PREREQUISITES_MISSING. Use when creating operational, SLO, executive, cross-account, log insights, or metric math dashboards.\nlicense: Apache-2.0\ncompatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline plan classification. Live-account operations use aws cloudwatch put-dashboard, get-dashboard, list-dashboards, delete-dashboards, get-metric-statistics (AWS CLI v2, SSO or key-based credentials).\nmetadata:\n  domain: aws-cloudops\n  complexity: high\n  requires_llm: 'true'\n  phase: '1'\n  supports_pipeline: 'true'\n  entry_point: 'false'\n  family: Management\n  task_type: deploy\n  skill_class: capability\n  lifecycle_status: active\n  verdict_shape: READY_TO_DEPLOY | PREREQUISITES_MISSING\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  tags: cloudwatch, monitoring, dashboards, observability, deploy, metric-widgets, cross-account\n  dependencies: aws-orchestrator\n  keywords: CloudWatch, dashboards, put-dashboard, metric widgets, log insights widgets, alarm widgets, text widgets, metric math, custom metrics, CloudWatch agent, PutMetricData, embedded metrics format, cross-account dashboards, snapshot sharing, dashboard variables, SLO dashboards, operational dashboards, executive dashboards, metric explorer, Application Signals, auto-discovery\n  when_to_use: Creating CloudWatch dashboards (operational, SLO, executive, cross- account), building metric widgets with correct namespace\u002Fdimensions\u002F statistics, adding log insights widgets with query syntax, using metric math to combine multiple metrics, configuring dashboard variables for dynamic filtering, deploying shared cross-account dashboards, setting up snapshot sharing, leveraging Application Signals auto-discovery, or auditing dashboard widget correctness.\n  activation_triggers: create CloudWatch dashboard, provision dashboard, metric widget, log insights widget, alarm widget, text widget, metric math dashboard, custom metrics dashboard, cross-account dashboard, snapshot sharing dashboard, dashboard variables, SLO dashboard, operational dashboard, executive dashboard, metric explorer, Application Signals dashboard\n  invocation_schema: 'Input: either (a) a dashboard deployment intent (create, update, share) with target dashboard name, widget specifications, metric namespace\u002F dimensions, and sharing model, OR (b) a dashboard name for live-account update or validation. Output: deterministic DASHBOARD\u002FVERDICT\u002FPRE_CHECKS\u002F STEPS\u002FPOST_VERIFY block per operation, where VERDICT is one of READY_TO_DEPLOY, PREREQUISITES_MISSING.'\n---\n\n# CloudWatch Dashboard Deployer\n\n## What this skill does\n\nProvisions CloudWatch dashboards with correct widget layouts, metric\nselections, and sharing models. Runs deterministic pre-checks before any\nstate-changing CLI (do the namespaces exist? are dimensions correct?\nis the cross-account sharing role configured? does the IAM principal hold\n`cloudwatch:PutDashboard`?), emits the exact `put-dashboard` CLI behind a\nCONFIRM gate, and verifies widget rendering after apply. Every dashboard\nplan surfaces the widget count cap, the 24-hour auto-refresh limit, and the\nmetric-math expression limits.\n\n## Quick navigation\n\n| Section | What it covers | When to read it |\n|---|---|---|\n| **§ Quick reference** | Verdict thresholds + pre-check priority order + widget types | Before any operation |\n| **§ Mindset** | Why widget layout matters, dashboard JSON structure, sharing limits | Understanding the deployment model |\n| **§ Pre-flight** | Metric\u002Fmetadata gate — namespace, dimensions, sharing role | Before executing any CLI |\n| **§ Process** | Per-operation planning: create, update, share, validate | When choosing which operation |\n| **§ Common patterns** | Operational \u002F SLO \u002F executive \u002F cross-account boilerplate | Boilerplate lookup |\n| **§ Output format** | Structured output template with VERDICT, COMMANDS, POST_VERIFY | Formatting the response |\n| **§ Anti-Patterns** | NEVER list — common mistakes that cause empty\u002Fbroken dashboards | Review before deploy |\n| **§ Pre-flight safety** | Additional checks before any provisioning CLI | Defense-in-depth |\n\n## Quick reference — verdict thresholds\n\n| Verdict | Trigger condition | Action |\n|---|---|---|\n| `PREREQUISITES_MISSING` | One or more pre-checks failed (namespace not publishing, dimensions wrong, cross-account role absent, IAM permission missing, dashboard JSON invalid) | List failures, do NOT execute |\n| `READY_TO_DEPLOY` | All pre-checks passed; awaiting CONFIRM gate | Emit exact CLI sequence with dashboard JSON body, wait for operator yes |\n\n**Priority order for pre-checks (apply in this sequence, all must pass for\nREADY_TO_DEPLOY):**\n\n1. **Dashboard JSON structure** — valid DashboardBody with widgets array,\n   each widget has type, properties, position (x, y, width, height).\n2. **Metric namespace + dimensions** — for each metric widget, the namespace\n   exists and dimensions match the metric's native structure.\n3. **Metric publishing** — `get-metric-statistics` returns non-empty\n   datapoints for the metrics referenced in each widget.\n4. **Statistic \u002F period alignment** — Statistic matches metric semantics\n   (Sum for counts, Average for utilization); Period >= native publishing\n   interval.\n5. **Log group existence** — for log insights widgets, the referenced log\n   groups exist and are receiving log events.\n6. **Alarm existence** — for alarm widgets, the referenced alarm names\n   resolve to existing alarms.\n7. **Cross-account sharing role** — for cross-account dashboards, the\n   CloudWatch-CrossAccountSharingRole is configured in each source account.\n8. **IAM permissions** — the operator principal holds\n   `cloudwatch:PutDashboard` and (for sharing) `iam:PassRole`.\n9. **Widget count** — total widgets \u003C= 100 per dashboard (hard cap).\n10. **Dashboard variables** — referenced variables ($INSTANCE_ID, etc.)\n    match available metric dimensions.\n\n**Dashboard limits (2026):**\n\n- Max widgets per dashboard: 100.\n- Max dashboard name length: 255 chars.\n- DashboardBody max size: 256 KB.\n- Widget grid: 24 columns wide, unlimited rows.\n- Metric expressions per widget: up to 100 metrics\u002Fexpressions.\n- Auto-refresh intervals: 1m, 2m, 5m, 10m, 15m (max 15m).\n- Cross-account dashboards: up to 200 source accounts per sharing account.\n\n## Mindset\n\n**One-line takeaway:** a dashboard is only as good as its widgets are\ncorrect. A widget with the wrong namespace or dimensions renders blank\nforever — no error, no alert, just an empty chart that erodes operator\ntrust. Driven by three CloudWatch realities:\n\n- **PutDashboard overwrites atomically.** Dashboard names are unique\n  within account+region. `put-dashboard` replaces the ENTIRE\n  DashboardBody — there is no partial update. A deployment that adds one\n  widget but omits the existing widgets silently deletes the old layout.\n  Always snapshot via `get-dashboard` first.\n\n- **Metric widgets silently render empty.** If the namespace, metric name,\n  or dimensions are wrong, the widget shows no error — just a flat empty\n  chart. Operators assume the metric has no data, when in fact the widget\n  config is incorrect. The only way to verify a widget is correct is\n  `get-metric-statistics` on the exact same namespace\u002Fmetric\u002Fdimensions.\n\n- **Cross-account sharing requires a role in EACH source account.** The\n  sharing (monitoring) account can see metrics from source accounts only\n  if each source account has the `CloudWatch-CrossAccountSharingRole`\n  trust policy granting the sharing account access. Missing the role in\n  one source account means that account's metrics silently render empty\n  on the shared dashboard.\n\n## Pre-flight: dashboard metadata gate\n\nRun before classification. Misclassifying these produces wrong plans.\n\n**Pagination:** `list-dashboards` returns at most 1000 dashboards per\npage (via `--page-size`). Use `--starting-token` to drain.\n\n**Live-account pre-flight (skip if offline plan audit):**\n1. `aws cloudwatch get-dashboard --dashboard-name \u003Cname>` — confirm the\n   dashboard exists (or doesn't, for create ops). Capture the full\n   DashboardBody for snapshot\u002Fdiff.\n2. `aws cloudwatch get-metric-statistics --namespace \u003Cns> --metric-name\n   \u003Cmn> --dimensions \u003Cdims> --start-time \u003Ciso> --end-time \u003Ciso> --period\n   \u003Cp> --statistics \u003Cstat>` — for each metric widget, confirm the metric\n   is publishing and observe the typical range.\n3. `aws logs describe-log-groups --log-group-name-prefix \u003Cprefix>` — for\n   log insights widgets, verify the referenced log groups exist.\n4. `aws cloudwatch describe-alarms --alarm-names \u003Cname>` — for alarm\n   widgets, verify the referenced alarms exist.\n5. `aws iam get-role --role-name CloudWatch-CrossAccountSharingRole` —\n   for cross-account dashboards, verify the sharing role exists in each\n   source account.\n6. `aws cloudwatch list-dashboards` — check for naming conflicts.\n\n**Malformed input:** if the dashboard JSON is invalid or missing required\nfields, emit `VERDICT: PREREQUISITES_MISSING` with `REASON: Dashboard\nJSON is not valid or is missing required widget fields — cannot plan.`\nand `REMEDIATION: Validate the DashboardBody structure at\nhttps:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002FAPIReference\u002Fcloudwatch-dashboards.html.`\n\n| Attribute | Effect on operation |\n|---|---|\n| Dashboard name already exists | Update operation. Must snapshot existing body first; put-dashboard overwrites. |\n| Metric widget with 0 datapoints | Widget will render empty. Surface as PREREQUISITES_MISSING: verify namespace\u002Fdimensions. |\n| Log insights widget referencing non-existent log group | Widget will error at render time. PREREQUISITES_MISSING. |\n| Alarm widget referencing non-existent alarm | Widget renders \"Alarm not found.\" PREREQUISITES_MISSING. |\n| Cross-account dashboard without sharing role | Source account metrics render empty. PREREQUISITES_MISSING. |\n| > 100 widgets in DashboardBody | PutDashboard API rejects. PREREQUISITES_MISSING. |\n\n## Process — operation planning (apply in order)\n\n### Step 0: Expert knowledge — non-obvious CloudWatch dashboard behaviors\n\nStep 0 expert knowledge — non-obvious dashboard behaviors (atomic PutDashboard, 24-column grid, period auto, log query cost, m\u002Fe ID conventions, AccountId, variables, sharing semantics, snapshots, EMF) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand before classifying an operation or planning widget layout.\n\n### Step 1: Pre-check gate — PREREQUISITES_MISSING if any check fails\n\nRun ALL of the following pre-checks. If ANY fails, the verdict is\nPREREQUISITES_MISSING with the failed checks enumerated in PRE_CHECKS.\nDo NOT execute.\n\n**For ALL operations:**\n1. The DashboardBody is valid JSON with the required `widgets` array.\n2. Dashboard name is \u003C= 255 chars, matches `^[a-zA-Z0-9-_.\u002F]+$`.\n3. Total widget count \u003C= 100.\n4. No widget positions overlap (x+width \u003C= 24, no y-axis collisions).\n5. The IAM principal holds `cloudwatch:PutDashboard`.\n\n**For create\u002Fupdate dashboard (`put-dashboard`):**\n6. For each **metric widget**: namespace + metric name + dimensions\n   return datapoints via `get-metric-statistics` within the last hour.\n7. For each **metric widget**: Period >= metric native publishing\n   interval; Statistic matches metric semantics.\n8. For each **log insights widget**: referenced log groups exist and\n   are receiving events (`aws logs describe-log-groups`).\n9. For each **alarm widget**: referenced alarm names resolve via\n   `describe-alarms`.\n10. For each **metric math expression**: expression syntax is valid\n    (m-IDs reference defined metrics, e-IDs use valid math operators).\n11. For each **dashboard variable**: the variable maps to a valid\n    dimension name in the referenced metric namespace.\n\n**For cross-account shared dashboard:**\n12. `CloudWatch-CrossAccountSharingRole` exists in each source account.\n13. The sharing account has `sts:AssumeRole` permission on each source\n    account's sharing role.\n14. Each metric widget includes the correct `AccountId` field for the\n    source account.\n\n**For snapshot sharing:**\n12. The S3 bucket for snapshot storage exists and the operator has\n    `s3:PutObject` permission.\n13. The bucket policy allows presigned URL generation for the intended\n    recipients.\n\n### Step 2: READY_TO_DEPLOY — emit deployment plan\n\nIf all pre-checks pass, emit `VERDICT: READY_TO_DEPLOY` with the exact\nCLI sequence and the CONFIRM gate. The plan includes:\n\n- The exact `aws cloudwatch put-dashboard` CLI with the DashboardBody\n  as a JSON string (or file reference).\n- The expected widget count and layout summary.\n- The expected sharing behavior (single-account vs cross-account).\n- The CONFIRM gate prompt.\n\n### Step 3: Execute behind CONFIRM gate\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing CLI\n  (`put-dashboard`, `delete-dashboards`), emit:\n  `CONFIRM: About to \u003Coperation> dashboard \u003Cname> in account \u003Caccount>\n  region \u003Cregion>. This will \u003Cconsequence>. Proceed? (yes\u002Fno)`. Do NOT\n  execute until the operator confirms.\n- Snapshot the current dashboard config before modification:\n  `aws cloudwatch get-dashboard --dashboard-name \u003Cname> --output json >\n  \u002Ftmp\u002F\u003Cname>-backup-$(date +%s).json`.\n- Execute the CLI with the full DashboardBody.\n\n### Step 4: Post-verification\n\nAfter the operation finishes, run post-verification:\n\n1. `get-dashboard --dashboard-name \u003Cname>` returns the expected\n   DashboardBody with all widgets present.\n2. For each metric widget: the metric is rendering (no empty charts) —\n   verify by checking `get-metric-statistics` for the widget's\n   namespace\u002Fmetric\u002Fdimensions.\n3. For cross-account dashboards: verify at least one source account's\n   metrics render by spot-checking a metric widget with `AccountId`\n   set.\n4. Dashboard loads within 30 seconds (no slow log insights queries\n   blocking render).\n\n## Common dashboard patterns (boilerplate)\n\n### Operational dashboard — EC2 fleet (metric widgets)\n\nOperational EC2-fleet dashboard boilerplate (put-dashboard CLI with metric, CWAgent, and metric-math widgets) moved verbatim to [references\u002Fdashboard-widget-patterns.md](references\u002Fdashboard-widget-patterns.md).\nLoad on demand when building the standard ops dashboard.\n\n### Log insights widget — error analysis\n\nLog insights widget boilerplate (error-analysis query JSON) moved verbatim to [references\u002Fdashboard-widget-patterns.md](references\u002Fdashboard-widget-patterns.md).\nLoad on demand when adding a log query widget.\n\n### Alarm widget\n\nAlarm widget boilerplate (alarm ARN list JSON) moved verbatim to [references\u002Fdashboard-widget-patterns.md](references\u002Fdashboard-widget-patterns.md).\nLoad on demand when surfacing existing alarms.\n\n### Text widget (Markdown runbook link)\n\nText widget boilerplate (Markdown runbook JSON) moved verbatim to [references\u002Fdashboard-widget-patterns.md](references\u002Fdashboard-widget-patterns.md).\nLoad on demand when adding runbook links or section headers.\n\n### Metric math — error rate (errors \u002F total requests)\n\nMetric-math error-rate widget boilerplate (m1\u002Fm2 expression JSON) moved verbatim to [references\u002Fdashboard-widget-patterns.md](references\u002Fdashboard-widget-patterns.md).\nLoad on demand when plotting ratio metrics.\n\n### SLO dashboard — burn rate (Application Signals)\n\nSLO burn-rate widget boilerplate (ConsumedRAT\u002FRequestedRAT with burn annotations) moved verbatim to [references\u002Fdashboard-widget-patterns.md](references\u002Fdashboard-widget-patterns.md).\nLoad on demand when building an Application Signals SLO view.\n\n### Cross-account dashboard (shared)\n\nCross-account dashboard boilerplate (AccountId-tagged metric widgets) moved verbatim to [references\u002Fdashboard-widget-patterns.md](references\u002Fdashboard-widget-patterns.md).\nLoad on demand when comparing metrics across source accounts.\n\n### Executive dashboard — KPI summary (single-value widgets)\n\nExecutive KPI boilerplate (singleValue widget JSON) moved verbatim to [references\u002Fdashboard-widget-patterns.md](references\u002Fdashboard-widget-patterns.md).\nLoad on demand when building KPI summary views.\n\n## STRICT output contract\n\n### Required output structure\n\nEvery response MUST begin with this block — no preamble, no conversational\nopening:\n\n```text\nDASHBOARD: \u003Cdashboard-name>\nVERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING\nTARGET: \u003Cdashboard-name>\nPRE_CHECKS:\n  - [PASS] \u003Ccheck description>\n  - [FAIL] \u003Ccheck description> — \u003Creason>\nSTEPS:\n  1. CONFIRM: About to \u003Coperation> dashboard \u003Cname> in account \u003Caccount> region \u003Cregion>. This will \u003Cconsequence>. Proceed? (yes\u002Fno)\n  2. \u003Cexact CLI command with DashboardBody — no placeholders>\nPOST_VERIFY:\n  - [PASS] \u003Cverification description>\n  - [FAIL] \u003Cverification description> — \u003Creason>\nWIDGETS: \u003Ccount> widgets (\u003Cmetric>, \u003Clog>, \u003Calarm>, \u003Ctext>)\nSHARING: \u003Csingle-account | cross-account:N-source-accounts | snapshot>\nNOTES: \u003Cwidget layout rationale, sharing caveats, variable configuration>\n```\n\n### FORBIDDEN output patterns\n\n- NEVER start with \"Let me analyze…\" or \"I'll create…\" — the VERDICT\n  block is the FIRST line, always. No conversational preamble.\n- NEVER use lowercase verdict values — emit `READY_TO_DEPLOY` or\n  `PREREQUISITES_MISSING` (not `ready`, `prerequisites`).\n- NEVER omit PRE_CHECKS — every pre-check run must appear with `[PASS]`\n  or `[FAIL]` and a specific reason for each failure. An empty\n  PRE_CHECKS block is non-compliant.\n- NEVER emit a metric widget with placeholder dimensions (e.g.,\n  `\"\u003Cinstance-id>\"`) in a READY_TO_DEPLOY plan — every field must be\n  populated with actual values or dashboard variables from the input.\n- NEVER omit the CONFIRM gate as the first STEPS entry for any\n  state-changing operation.\n- NEVER claim success without verifying that each metric widget's\n  namespace\u002Fmetric\u002Fdimensions actually return datapoints — empty widgets\n  are the #1 dashboard failure mode.\n- NEVER put-dashboard without snapshotting the existing body first —\n  PutDashboard replaces the entire DashboardBody with no diff or rollback.\n- NEVER reference a dashboard variable without confirming it maps to a\n  valid dimension in the referenced metric namespace.\n\n### Perfect example output\n\n```text\nDASHBOARD: prod-ec2-ops\nVERDICT: READY_TO_DEPLOY\nTARGET: prod-ec2-ops\nPRE_CHECKS:\n  - [PASS] DashboardBody valid JSON, 3 widgets, 0 overlaps\n  - [PASS] Widget 1: AWS\u002FEC2 CPUUtilization InstanceId=${INSTANCE_ID} returns datapoints\n  - [PASS] Widget 2: CWAgent mem_used_percent InstanceId=${INSTANCE_ID} returns datapoints\n  - [PASS] Widget 3: metric math m1\u002F1048576 valid (NetworkIn exists)\n  - [PASS] Dashboard variable INSTANCE_ID maps to valid dimension on AWS\u002FEC2\n  - [PASS] IAM principal holds cloudwatch:PutDashboard\n  - [PASS] 3 widgets \u003C= 100 cap\nSTEPS:\n  1. CONFIRM: About to put-dashboard prod-ec2-ops in account 111111111111 region us-east-1. This will CREATE a new dashboard with 3 metric widgets (CPU, Memory, Network). Proceed? (yes\u002Fno)\n  2. aws cloudwatch put-dashboard --dashboard-name prod-ec2-ops --dashboard-body '{\"widgets\":[...]}'\nPOST_VERIFY:\n  - (pending execution)\n  - get-dashboard returns 3 widgets with correct positions\n  - Each metric widget renders non-empty within the dashboard time range\nWIDGETS: 3 widgets (3 metric, 0 log, 0 alarm, 0 text)\nSHARING: single-account\nNOTES:\n  - Dashboard variable INSTANCE_ID configured for dynamic instance selection.\n  - CWAgent widget requires CloudWatch agent installed on target instances —\n    verify agent status if memory chart renders empty.\n  - No auto-refresh configured — set to 5m for operational use via the\n    console or dashboard update.\n```\n\n## Anti-Patterns — NEVER do these things\n\n- NEVER PutDashboard without snapshotting the existing body first.\n  `get-dashboard --output json > \u002Ftmp\u002F\u003Cname>-backup-$(date +%s).json`.\n  PutDashboard replaces the entire body with no version history.\n\n- NEVER create a metric widget without verifying via\n  `get-metric-statistics` that the metric is publishing. A wrong\n  namespace or dimension produces an empty chart that silently erodes\n  operator trust — no error is surfaced.\n\n- NEVER use Period \u003C metric native publishing interval in a widget.\n  A 5-minute metric (basic monitoring) with Period=60 produces mostly\n  empty windows. Match the period to the metric's resolution.\n\n- NEVER hardcode instance IDs in production dashboards. Use dashboard\n  variables ($INSTANCE_ID) so the dashboard adapts to fleet changes.\n  Hardcoded IDs break when instances are replaced.\n\n- NEVER build a cross-account dashboard without verifying the\n  `CloudWatch-CrossAccountSharingRole` exists in each source account.\n  Missing the role causes source account metrics to silently render\n  empty — the dashboard appears configured but shows no data.\n\n- NEVER create a log insights widget with an unbounded query (no\n  `limit` clause, no time bucketing). Expensive queries on large log\n  groups can take minutes to render and cause dashboard timeouts.\n\n- NEVER exceed 100 widgets per dashboard. The PutDashboard API silently\n  rejects the 101st widget. Split into multiple dashboards or use a\n  dashboard link in a text widget.\n\n- NEVER mix regions in widget properties without setting the `region`\n  field explicitly in each widget. A dashboard in us-east-1 with a\n  widget missing the `region` field queries us-east-1 — even if the\n  operator intended a multi-region view.\n\n- NEVER use `stat: \"Sum\"` for utilization metrics (CPU, memory, disk).\n  Sum aggregates across all datapoints in the period, producing\n  misleadingly high values for high-resolution metrics. Use `Average`\n  for utilization, `Sum` for counts\u002Fvolumes.\n\n- NEVER auto-execute PutDashboard without the CONFIRM gate. PutDashboard\n  overwrites the entire dashboard config with no version history and no\n  rollback path. Always snapshot first.\n\n- NEVER create a dashboard with overlapping widget positions. The API\n  accepts overlapping positions but the rendering is unpredictable —\n  widgets may occlude each other or render in the wrong z-order.\n\n- NEVER forget the `view` field in widget properties. Without `view`\n  (e.g., `timeSeries`, `singleValue`, `bar`, `pie`, `gauge`), the\n  widget defaults to `timeSeries` which may not match the intended\n  visualization for KPI\u002Fexecutive dashboards.\n\n- NEVER use Embedded Metrics Format (EMF) without testing the metric\n  extraction. EMF payloads with malformed JSON or missing metric\n  directives silently produce no metrics — verify via\n  `get-metric-statistics` on the expected namespace after deploying\n  the EMF log ingestion.\n\n## Pre-flight safety checks (run before any provisioning CLI)\n\nPre-flight safety checks (CONFIRM gate, snapshot-before-overwrite, sharing role per source account, log query render time, additive-change preference, snapshot lifecycle) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad on demand before executing any provisioning CLI.\n\n## Expert heuristic: empty widgets vs no data\n\nAn empty widget does NOT mean \"the metric has no data.\" It means **the\nwidget's metric query returned zero datapoints for the dashboard's time\nrange** — which can be caused by either a real data gap or (more commonly)\na widget configuration error.\n\n**Diagnostic decision tree:**\n\n```\nEmpty metric widget\n   ├─ Is the namespace correct? (case-sensitive)\n   │    ├─ NO → Fix namespace (AWS\u002FEC2 not aws\u002Fec2)\n   │    └─ YES → Check dimensions\n   │              ├─ Are dimension names\u002Fvalues correct?\n   │              ├─ If dashboard variable: does the variable resolve?\n   │              └─ If cross-account: is AccountId set correctly?\n   │\n   └─ Confirm via get-metric-statistics:\n        aws cloudwatch get-metric-statistics \\\n          --namespace \u003Cwidget-namespace> \\\n          --metric-name \u003Cwidget-metric> \\\n          --dimensions \u003Cwidget-dimensions> \\\n          --start-time \u003Cnow-1h> --end-time \u003Cnow> \\\n          --period \u003Cwidget-period> --statistics \u003Cwidget-stat>\n        If datapoints > 0 → widget config is wrong somewhere\n        If datapoints = 0 → metric is genuinely not publishing\n```\n\n**Per-widget-type empty render causes:**\n\n| Widget type | What to check when widget is empty |\n|---|---|\n| Metric | Namespace case? Dimensions match? Period >= native resolution? Stat matches? Cross-account AccountId correct? |\n| Log insights | Log group exists? Query syntax valid? Log group receiving events? Time range matches? |\n| Alarm | Alarm ARN\u002Fname correct? Alarm still exists (not deleted)? |\n| Text | Markdown syntax valid? (rarely empty — usually a rendering issue) |\n\n**Fix — verify the widget config against get-metric-statistics:**\n- If `get-metric-statistics` returns datapoints but the widget is empty:\n  the widget config is wrong. Diff the widget's namespace\u002Fmetric\u002F\n  dimensions against the working CLI command.\n- If `get-metric-statistics` also returns nothing: the metric source\n  is not publishing. Check the CloudWatch agent, the PutMetricData\n  calls, or the EMF log ingestion.\n\nALWAYS test a dashboard's metric widgets by rendering it in the console\nafter PutDashboard — the API confirms structure but not visual correctness.\n\n## Recent AWS features (2024-2026)\n\nRecent AWS features (2024-2026) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when deciding between Metric Explorer, variables, EMF v2, or snapshot sharing.\n\n## AWS documentation\n\n- **Amazon CloudWatch User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FWhatIsCloudWatch.html\n- **CloudWatch Dashboards** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch_Dashboards.html\n- **Dashboard JSON Structure** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002Fcloudwatch-dashboards.html\n- **Cross-Account Cross-Region Dashboards** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCross-Account-Cross-Region-Dashboard.html\n- **CloudWatch Logs Insights** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Flogs\u002FAnalyzingLogData.html\n- **Metric Math** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002Fusing-metric-math.html\n- **Embedded Metrics Format** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch_Embedded_Metric_Format.html\n- **CloudWatch Application Signals** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch-Application-Signals.html\n\n## References (load on demand)\n\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — Step 0 expert knowledge and Recent AWS features (2024-2026) moved from SKILL.md\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — pre-flight safety checks moved from SKILL.md\n- [references\u002Fdashboard-widget-patterns.md](references\u002Fdashboard-widget-patterns.md) — widget patterns; now also holds all eight Common-patterns boilerplate blocks moved from SKILL.md\n\n## Domain\n\nAWS CloudOps \u002F CloudWatch Dashboard Provisioning & Observability Visualization.\n\n","# CloudWatch Dashboard Deployer\n\n## What this skill does\n\nProvisions CloudWatch dashboards with correct widget layouts, metric\nselections, and sharing models. Runs deterministic pre-checks before any\nstate-changing CLI (do the namespaces exist? are dimensions correct?\nis the cross-account sharing role configured? does the IAM principal hold\n`cloudwatch:PutDashboard`?), emits the exact `put-dashboard` CLI behind a\nCONFIRM gate, and verifies widget rendering after apply. Every dashboard\nplan surfaces the widget count cap, the 24-hour auto-refresh limit, and the\nmetric-math expression limits.\n\n## Quick navigation\n\n| Section | What it covers | When to read it |\n|---|---|---|\n| **§ Quick reference** | Verdict thresholds + pre-check priority order + widget types | Before any operation |\n| **§ Mindset** | Why widget layout matters, dashboard JSON structure, sharing limits | Understanding the deployment model |\n| **§ Pre-flight** | Metric\u002Fmetadata gate — namespace, dimensions, sharing role | Before executing any CLI |\n| **§ Process** | Per-operation planning: create, update, share, validate | When choosing which operation |\n| **§ Common patterns** | Operational \u002F SLO \u002F executive \u002F cross-account boilerplate | Boilerplate lookup |\n| **§ Output format** | Structured output template with VERDICT, COMMANDS, POST_VERIFY | Formatting the response |\n| **§ Anti-Patterns** | NEVER list — common mistakes that cause empty\u002Fbroken dashboards | Review before deploy |\n| **§ Pre-flight safety** | Additional checks before any provisioning CLI | Defense-in-depth |\n\n## Quick reference — verdict thresholds\n\n| Verdict | Trigger condition | Action |\n|---|---|---|\n| `PREREQUISITES_MISSING` | One or more pre-checks failed (namespace not publishing, dimensions wrong, cross-account role absent, IAM permission missing, dashboard JSON invalid) | List failures, do NOT execute |\n| `READY_TO_DEPLOY` | All pre-checks passed; awaiting CONFIRM gate | Emit exact CLI sequence with dashboard JSON body, wait for operator yes |\n\n**Priority order for pre-checks (apply in this sequence, all must pass for\nREADY_TO_DEPLOY):**\n\n1. **Dashboard JSON structure** — valid DashboardBody with widgets array,\n   each widget has type, properties, position (x, y, width, height).\n2. **Metric namespace + dimensions** — for each metric widget, the namespace\n   exists and dimensions match the metric's native structure.\n3. **Metric publishing** — `get-metric-statistics` returns non-empty\n   datapoints for the metrics referenced in each widget.\n4. **Statistic \u002F period alignment** — Statistic matches metric semantics\n   (Sum for counts, Average for utilization); Period >= native publishing\n   interval.\n5. **Log group existence** — for log insights widgets, the referenced log\n   groups exist and are receiving log events.\n6. **Alarm existence** — for alarm widgets, the referenced alarm names\n   resolve to existing alarms.\n7. **Cross-account sharing role** — for cross-account dashboards, the\n   CloudWatch-CrossAccountSharingRole is configured in each source account.\n8. **IAM permissions** — the operator principal holds\n   `cloudwatch:PutDashboard` and (for sharing) `iam:PassRole`.\n9. **Widget count** — total widgets \u003C= 100 per dashboard (hard cap).\n10. **Dashboard variables** — referenced variables ($INSTANCE_ID, etc.)\n    match available metric dimensions.\n\n**Dashboard limits (2026):**\n\n- Max widgets per dashboard: 100.\n- Max dashboard name length: 255 chars.\n- DashboardBody max size: 256 KB.\n- Widget grid: 24 columns wide, unlimited rows.\n- Metric expressions per widget: up to 100 metrics\u002Fexpressions.\n- Auto-refresh intervals: 1m, 2m, 5m, 10m, 15m (max 15m).\n- Cross-account dashboards: up to 200 source accounts per sharing account.\n\n## Mindset\n\n**One-line takeaway:** a dashboard is only as good as its widgets are\ncorrect. A widget with the wrong namespace or dimensions renders blank\nforever — no error, no alert, just an empty chart that erodes operator\ntrust. Driven by three CloudWatch realities:\n\n- **PutDashboard overwrites atomically.** Dashboard names are unique\n  within account+region. `put-dashboard` replaces the ENTIRE\n  DashboardBody — there is no partial update. A deployment that adds one\n  widget but omits the existing widgets silently deletes the old layout.\n  Always snapshot via `get-dashboard` first.\n\n- **Metric widgets silently render empty.** If the namespace, metric name,\n  or dimensions are wrong, the widget shows no error — just a flat empty\n  chart. Operators assume the metric has no data, when in fact the widget\n  config is incorrect. The only way to verify a widget is correct is\n  `get-metric-statistics` on the exact same namespace\u002Fmetric\u002Fdimensions.\n\n- **Cross-account sharing requires a role in EACH source account.** The\n  sharing (monitoring) account can see metrics from source accounts only\n  if each source account has the `CloudWatch-CrossAccountSharingRole`\n  trust policy granting the sharing account access. Missing the role in\n  one source account means that account's metrics silently render empty\n  on the shared dashboard.\n\n## Pre-flight: dashboard metadata gate\n\nRun before classification. Misclassifying these produces wrong plans.\n\n**Pagination:** `list-dashboards` returns at most 1000 dashboards per\npage (via `--page-size`). Use `--starting-token` to drain.\n\n**Live-account pre-flight (skip if offline plan audit):**\n1. `aws cloudwatch get-dashboard --dashboard-name \u003Cname>` — confirm the\n   dashboard exists (or doesn't, for create ops). Capture the full\n   DashboardBody for snapshot\u002Fdiff.\n2. `aws cloudwatch get-metric-statistics --namespace \u003Cns> --metric-name\n   \u003Cmn> --dimensions \u003Cdims> --start-time \u003Ciso> --end-time \u003Ciso> --period\n   \u003Cp> --statistics \u003Cstat>` — for each metric widget, confirm the metric\n   is publishing and observe the typical range.\n3. `aws logs describe-log-groups --log-group-name-prefix \u003Cprefix>` — for\n   log insights widgets, verify the referenced log groups exist.\n4. `aws cloudwatch describe-alarms --alarm-names \u003Cname>` — for alarm\n   widgets, verify the referenced alarms exist.\n5. `aws iam get-role --role-name CloudWatch-CrossAccountSharingRole` —\n   for cross-account dashboards, verify the sharing role exists in each\n   source account.\n6. `aws cloudwatch list-dashboards` — check for naming conflicts.\n\n**Malformed input:** if the dashboard JSON is invalid or missing required\nfields, emit `VERDICT: PREREQUISITES_MISSING` with `REASON: Dashboard\nJSON is not valid or is missing required widget fields — cannot plan.`\nand `REMEDIATION: Validate the DashboardBody structure at\nhttps:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002FAPIReference\u002Fcloudwatch-dashboards.html.`\n\n| Attribute | Effect on operation |\n|---|---|\n| Dashboard name already exists | Update operation. Must snapshot existing body first; put-dashboard overwrites. |\n| Metric widget with 0 datapoints | Widget will render empty. Surface as PREREQUISITES_MISSING: verify namespace\u002Fdimensions. |\n| Log insights widget referencing non-existent log group | Widget will error at render time. PREREQUISITES_MISSING. |\n| Alarm widget referencing non-existent alarm | Widget renders \"Alarm not found.\" PREREQUISITES_MISSING. |\n| Cross-account dashboard without sharing role | Source account metrics render empty. PREREQUISITES_MISSING. |\n| > 100 widgets in DashboardBody | PutDashboard API rejects. PREREQUISITES_MISSING. |\n\n## Process — operation planning (apply in order)\n\n### Step 0: Expert knowledge — non-obvious CloudWatch dashboard behaviors\n\nStep 0 expert knowledge — non-obvious dashboard behaviors (atomic PutDashboard, 24-column grid, period auto, log query cost, m\u002Fe ID conventions, AccountId, variables, sharing semantics, snapshots, EMF) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand before classifying an operation or planning widget layout.\n\n### Step 1: Pre-check gate — PREREQUISITES_MISSING if any check fails\n\nRun ALL of the following pre-checks. If ANY fails, the verdict is\nPREREQUISITES_MISSING with the failed checks enumerated in PRE_CHECKS.\nDo NOT execute.\n\n**For ALL operations:**\n1. The DashboardBody is valid JSON with the required `widgets` array.\n2. Dashboard name is \u003C= 255 chars, matches `^[a-zA-Z0-9-_.\u002F]+$`.\n3. Total widget count \u003C= 100.\n4. No widget positions overlap (x+width \u003C= 24, no y-axis collisions).\n5. The IAM principal holds `cloudwatch:PutDashboard`.\n\n**For create\u002Fupdate dashboard (`put-dashboard`):**\n6. For each **metric widget**: namespace + metric name + dimensions\n   return datapoints via `get-metric-statistics` within the last hour.\n7. For each **metric widget**: Period >= metric native publishing\n   interval; Statistic matches metric semantics.\n8. For each **log insights widget**: referenced log groups exist and\n   are receiving events (`aws logs describe-log-groups`).\n9. For each **alarm widget**: referenced alarm names resolve via\n   `describe-alarms`.\n10. For each **metric math expression**: expression syntax is valid\n    (m-IDs reference defined metrics, e-IDs use valid math operators).\n11. For each **dashboard variable**: the variable maps to a valid\n    dimension name in the referenced metric namespace.\n\n**For cross-account shared dashboard:**\n12. `CloudWatch-CrossAccountSharingRole` exists in each source account.\n13. The sharing account has `sts:AssumeRole` permission on each source\n    account's sharing role.\n14. Each metric widget includes the correct `AccountId` field for the\n    source account.\n\n**For snapshot sharing:**\n12. The S3 bucket for snapshot storage exists and the operator has\n    `s3:PutObject` permission.\n13. The bucket policy allows presigned URL generation for the intended\n    recipients.\n\n### Step 2: READY_TO_DEPLOY — emit deployment plan\n\nIf all pre-checks pass, emit `VERDICT: READY_TO_DEPLOY` with the exact\nCLI sequence and the CONFIRM gate. The plan includes:\n\n- The exact `aws cloudwatch put-dashboard` CLI with the DashboardBody\n  as a JSON string (or file reference).\n- The expected widget count and layout summary.\n- The expected sharing behavior (single-account vs cross-account).\n- The CONFIRM gate prompt.\n\n### Step 3: Execute behind CONFIRM gate\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing CLI\n  (`put-dashboard`, `delete-dashboards`), emit:\n  `CONFIRM: About to \u003Coperation> dashboard \u003Cname> in account \u003Caccount>\n  region \u003Cregion>. This will \u003Cconsequence>. Proceed? (yes\u002Fno)`. Do NOT\n  execute until the operator confirms.\n- Snapshot the current dashboard config before modification:\n  `aws cloudwatch get-dashboard --dashboard-name \u003Cname> --output json >\n  \u002Ftmp\u002F\u003Cname>-backup-$(date +%s).json`.\n- Execute the CLI with the full DashboardBody.\n\n### Step 4: Post-verification\n\nAfter the operation finishes, run post-verification:\n\n1. `get-dashboard --dashboard-name \u003Cname>` returns the expected\n   DashboardBody with all widgets present.\n2. For each metric widget: the metric is rendering (no empty charts) —\n   verify by checking `get-metric-statistics` for the widget's\n   namespace\u002Fmetric\u002Fdimensions.\n3. For cross-account dashboards: verify at least one source account's\n   metrics render by spot-checking a metric widget with `AccountId`\n   set.\n4. Dashboard loads within 30 seconds (no slow log insights queries\n   blocking render).\n\n## Common dashboard patterns (boilerplate)\n\n### Operational dashboard — EC2 fleet (metric widgets)\n\nOperational EC2-fleet dashboard boilerplate (put-dashboard CLI with metric, CWAgent, and metric-math widgets) moved verbatim to [references\u002Fdashboard-widget-patterns.md](references\u002Fdashboard-widget-patterns.md).\nLoad on demand when building the standard ops dashboard.\n\n### Log insights widget — error analysis\n\nLog insights widget boilerplate (error-analysis query JSON) moved verbatim to [references\u002Fdashboard-widget-patterns.md](references\u002Fdashboard-widget-patterns.md).\nLoad on demand when adding a log query widget.\n\n### Alarm widget\n\nAlarm widget boilerplate (alarm ARN list JSON) moved verbatim to [references\u002Fdashboard-widget-patterns.md](references\u002Fdashboard-widget-patterns.md).\nLoad on demand when surfacing existing alarms.\n\n### Text widget (Markdown runbook link)\n\nText widget boilerplate (Markdown runbook JSON) moved verbatim to [references\u002Fdashboard-widget-patterns.md](references\u002Fdashboard-widget-patterns.md).\nLoad on demand when adding runbook links or section headers.\n\n### Metric math — error rate (errors \u002F total requests)\n\nMetric-math error-rate widget boilerplate (m1\u002Fm2 expression JSON) moved verbatim to [references\u002Fdashboard-widget-patterns.md](references\u002Fdashboard-widget-patterns.md).\nLoad on demand when plotting ratio metrics.\n\n### SLO dashboard — burn rate (Application Signals)\n\nSLO burn-rate widget boilerplate (ConsumedRAT\u002FRequestedRAT with burn annotations) moved verbatim to [references\u002Fdashboard-widget-patterns.md](references\u002Fdashboard-widget-patterns.md).\nLoad on demand when building an Application Signals SLO view.\n\n### Cross-account dashboard (shared)\n\nCross-account dashboard boilerplate (AccountId-tagged metric widgets) moved verbatim to [references\u002Fdashboard-widget-patterns.md](references\u002Fdashboard-widget-patterns.md).\nLoad on demand when comparing metrics across source accounts.\n\n### Executive dashboard — KPI summary (single-value widgets)\n\nExecutive KPI boilerplate (singleValue widget JSON) moved verbatim to [references\u002Fdashboard-widget-patterns.md](references\u002Fdashboard-widget-patterns.md).\nLoad on demand when building KPI summary views.\n\n## STRICT output contract\n\n### Required output structure\n\nEvery response MUST begin with this block — no preamble, no conversational\nopening:\n\n```text\nDASHBOARD: \u003Cdashboard-name>\nVERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING\nTARGET: \u003Cdashboard-name>\nPRE_CHECKS:\n  - [PASS] \u003Ccheck description>\n  - [FAIL] \u003Ccheck description> — \u003Creason>\nSTEPS:\n  1. CONFIRM: About to \u003Coperation> dashboard \u003Cname> in account \u003Caccount> region \u003Cregion>. This will \u003Cconsequence>. Proceed? (yes\u002Fno)\n  2. \u003Cexact CLI command with DashboardBody — no placeholders>\nPOST_VERIFY:\n  - [PASS] \u003Cverification description>\n  - [FAIL] \u003Cverification description> — \u003Creason>\nWIDGETS: \u003Ccount> widgets (\u003Cmetric>, \u003Clog>, \u003Calarm>, \u003Ctext>)\nSHARING: \u003Csingle-account | cross-account:N-source-accounts | snapshot>\nNOTES: \u003Cwidget layout rationale, sharing caveats, variable configuration>\n```\n\n### FORBIDDEN output patterns\n\n- NEVER start with \"Let me analyze…\" or \"I'll create…\" — the VERDICT\n  block is the FIRST line, always. No conversational preamble.\n- NEVER use lowercase verdict values — emit `READY_TO_DEPLOY` or\n  `PREREQUISITES_MISSING` (not `ready`, `prerequisites`).\n- NEVER omit PRE_CHECKS — every pre-check run must appear with `[PASS]`\n  or `[FAIL]` and a specific reason for each failure. An empty\n  PRE_CHECKS block is non-compliant.\n- NEVER emit a metric widget with placeholder dimensions (e.g.,\n  `\"\u003Cinstance-id>\"`) in a READY_TO_DEPLOY plan — every field must be\n  populated with actual values or dashboard variables from the input.\n- NEVER omit the CONFIRM gate as the first STEPS entry for any\n  state-changing operation.\n- NEVER claim success without verifying that each metric widget's\n  namespace\u002Fmetric\u002Fdimensions actually return datapoints — empty widgets\n  are the #1 dashboard failure mode.\n- NEVER put-dashboard without snapshotting the existing body first —\n  PutDashboard replaces the entire DashboardBody with no diff or rollback.\n- NEVER reference a dashboard variable without confirming it maps to a\n  valid dimension in the referenced metric namespace.\n\n### Perfect example output\n\n```text\nDASHBOARD: prod-ec2-ops\nVERDICT: READY_TO_DEPLOY\nTARGET: prod-ec2-ops\nPRE_CHECKS:\n  - [PASS] DashboardBody valid JSON, 3 widgets, 0 overlaps\n  - [PASS] Widget 1: AWS\u002FEC2 CPUUtilization InstanceId=${INSTANCE_ID} returns datapoints\n  - [PASS] Widget 2: CWAgent mem_used_percent InstanceId=${INSTANCE_ID} returns datapoints\n  - [PASS] Widget 3: metric math m1\u002F1048576 valid (NetworkIn exists)\n  - [PASS] Dashboard variable INSTANCE_ID maps to valid dimension on AWS\u002FEC2\n  - [PASS] IAM principal holds cloudwatch:PutDashboard\n  - [PASS] 3 widgets \u003C= 100 cap\nSTEPS:\n  1. CONFIRM: About to put-dashboard prod-ec2-ops in account 111111111111 region us-east-1. This will CREATE a new dashboard with 3 metric widgets (CPU, Memory, Network). Proceed? (yes\u002Fno)\n  2. aws cloudwatch put-dashboard --dashboard-name prod-ec2-ops --dashboard-body '{\"widgets\":[...]}'\nPOST_VERIFY:\n  - (pending execution)\n  - get-dashboard returns 3 widgets with correct positions\n  - Each metric widget renders non-empty within the dashboard time range\nWIDGETS: 3 widgets (3 metric, 0 log, 0 alarm, 0 text)\nSHARING: single-account\nNOTES:\n  - Dashboard variable INSTANCE_ID configured for dynamic instance selection.\n  - CWAgent widget requires CloudWatch agent installed on target instances —\n    verify agent status if memory chart renders empty.\n  - No auto-refresh configured — set to 5m for operational use via the\n    console or dashboard update.\n```\n\n## Anti-Patterns — NEVER do these things\n\n- NEVER PutDashboard without snapshotting the existing body first.\n  `get-dashboard --output json > \u002Ftmp\u002F\u003Cname>-backup-$(date +%s).json`.\n  PutDashboard replaces the entire body with no version history.\n\n- NEVER create a metric widget without verifying via\n  `get-metric-statistics` that the metric is publishing. A wrong\n  namespace or dimension produces an empty chart that silently erodes\n  operator trust — no error is surfaced.\n\n- NEVER use Period \u003C metric native publishing interval in a widget.\n  A 5-minute metric (basic monitoring) with Period=60 produces mostly\n  empty windows. Match the period to the metric's resolution.\n\n- NEVER hardcode instance IDs in production dashboards. Use dashboard\n  variables ($INSTANCE_ID) so the dashboard adapts to fleet changes.\n  Hardcoded IDs break when instances are replaced.\n\n- NEVER build a cross-account dashboard without verifying the\n  `CloudWatch-CrossAccountSharingRole` exists in each source account.\n  Missing the role causes source account metrics to silently render\n  empty — the dashboard appears configured but shows no data.\n\n- NEVER create a log insights widget with an unbounded query (no\n  `limit` clause, no time bucketing). Expensive queries on large log\n  groups can take minutes to render and cause dashboard timeouts.\n\n- NEVER exceed 100 widgets per dashboard. The PutDashboard API silently\n  rejects the 101st widget. Split into multiple dashboards or use a\n  dashboard link in a text widget.\n\n- NEVER mix regions in widget properties without setting the `region`\n  field explicitly in each widget. A dashboard in us-east-1 with a\n  widget missing the `region` field queries us-east-1 — even if the\n  operator intended a multi-region view.\n\n- NEVER use `stat: \"Sum\"` for utilization metrics (CPU, memory, disk).\n  Sum aggregates across all datapoints in the period, producing\n  misleadingly high values for high-resolution metrics. Use `Average`\n  for utilization, `Sum` for counts\u002Fvolumes.\n\n- NEVER auto-execute PutDashboard without the CONFIRM gate. PutDashboard\n  overwrites the entire dashboard config with no version history and no\n  rollback path. Always snapshot first.\n\n- NEVER create a dashboard with overlapping widget positions. The API\n  accepts overlapping positions but the rendering is unpredictable —\n  widgets may occlude each other or render in the wrong z-order.\n\n- NEVER forget the `view` field in widget properties. Without `view`\n  (e.g., `timeSeries`, `singleValue`, `bar`, `pie`, `gauge`), the\n  widget defaults to `timeSeries` which may not match the intended\n  visualization for KPI\u002Fexecutive dashboards.\n\n- NEVER use Embedded Metrics Format (EMF) without testing the metric\n  extraction. EMF payloads with malformed JSON or missing metric\n  directives silently produce no metrics — verify via\n  `get-metric-statistics` on the expected namespace after deploying\n  the EMF log ingestion.\n\n## Pre-flight safety checks (run before any provisioning CLI)\n\nPre-flight safety checks (CONFIRM gate, snapshot-before-overwrite, sharing role per source account, log query render time, additive-change preference, snapshot lifecycle) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad on demand before executing any provisioning CLI.\n\n## Expert heuristic: empty widgets vs no data\n\nAn empty widget does NOT mean \"the metric has no data.\" It means **the\nwidget's metric query returned zero datapoints for the dashboard's time\nrange** — which can be caused by either a real data gap or (more commonly)\na widget configuration error.\n\n**Diagnostic decision tree:**\n\n```\nEmpty metric widget\n   ├─ Is the namespace correct? (case-sensitive)\n   │    ├─ NO → Fix namespace (AWS\u002FEC2 not aws\u002Fec2)\n   │    └─ YES → Check dimensions\n   │              ├─ Are dimension names\u002Fvalues correct?\n   │              ├─ If dashboard variable: does the variable resolve?\n   │              └─ If cross-account: is AccountId set correctly?\n   │\n   └─ Confirm via get-metric-statistics:\n        aws cloudwatch get-metric-statistics \\\n          --namespace \u003Cwidget-namespace> \\\n          --metric-name \u003Cwidget-metric> \\\n          --dimensions \u003Cwidget-dimensions> \\\n          --start-time \u003Cnow-1h> --end-time \u003Cnow> \\\n          --period \u003Cwidget-period> --statistics \u003Cwidget-stat>\n        If datapoints > 0 → widget config is wrong somewhere\n        If datapoints = 0 → metric is genuinely not publishing\n```\n\n**Per-widget-type empty render causes:**\n\n| Widget type | What to check when widget is empty |\n|---|---|\n| Metric | Namespace case? Dimensions match? Period >= native resolution? Stat matches? Cross-account AccountId correct? |\n| Log insights | Log group exists? Query syntax valid? Log group receiving events? Time range matches? |\n| Alarm | Alarm ARN\u002Fname correct? Alarm still exists (not deleted)? |\n| Text | Markdown syntax valid? (rarely empty — usually a rendering issue) |\n\n**Fix — verify the widget config against get-metric-statistics:**\n- If `get-metric-statistics` returns datapoints but the widget is empty:\n  the widget config is wrong. Diff the widget's namespace\u002Fmetric\u002F\n  dimensions against the working CLI command.\n- If `get-metric-statistics` also returns nothing: the metric source\n  is not publishing. Check the CloudWatch agent, the PutMetricData\n  calls, or the EMF log ingestion.\n\nALWAYS test a dashboard's metric widgets by rendering it in the console\nafter PutDashboard — the API confirms structure but not visual correctness.\n\n## Recent AWS features (2024-2026)\n\nRecent AWS features (2024-2026) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when deciding between Metric Explorer, variables, EMF v2, or snapshot sharing.\n\n## AWS documentation\n\n- **Amazon CloudWatch User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FWhatIsCloudWatch.html\n- **CloudWatch Dashboards** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch_Dashboards.html\n- **Dashboard JSON Structure** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002Fcloudwatch-dashboards.html\n- **Cross-Account Cross-Region Dashboards** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCross-Account-Cross-Region-Dashboard.html\n- **CloudWatch Logs Insights** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Flogs\u002FAnalyzingLogData.html\n- **Metric Math** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002Fusing-metric-math.html\n- **Embedded Metrics Format** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch_Embedded_Metric_Format.html\n- **CloudWatch Application Signals** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch-Application-Signals.html\n\n## References (load on demand)\n\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — Step 0 expert knowledge and Recent AWS features (2024-2026) moved from SKILL.md\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — pre-flight safety checks moved from SKILL.md\n- [references\u002Fdashboard-widget-patterns.md](references\u002Fdashboard-widget-patterns.md) — widget patterns; now also holds all eight Common-patterns boilerplate blocks moved from SKILL.md\n\n## Domain\n\nAWS CloudOps \u002F CloudWatch Dashboard Provisioning & Observability Visualization.\n\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":43},{"tags":25,"phase":26,"author":27,"domain":28,"family":29,"version":30,"keywords":31,"task_type":32,"complexity":33,"entry_point":34,"skill_class":35,"when_to_use":36,"dependencies":37,"requires_llm":38,"verdict_shape":39,"lifecycle_status":40,"invocation_schema":41,"supports_pipeline":38,"activation_triggers":42},"cloudwatch, monitoring, dashboards, observability, deploy, metric-widgets, cross-account","1","Jacky Chan — AWS Community Builder","aws-cloudops","Management","0.1.0","CloudWatch, dashboards, put-dashboard, metric widgets, log insights widgets, alarm widgets, text widgets, metric math, custom metrics, CloudWatch agent, PutMetricData, embedded metrics format, cross-account dashboards, snapshot sharing, dashboard variables, SLO dashboards, operational dashboards, executive dashboards, metric explorer, Application Signals, auto-discovery","deploy","high","false","capability","Creating CloudWatch dashboards (operational, SLO, executive, cross- account), building metric widgets with correct namespace\u002Fdimensions\u002F statistics, adding log insights widgets with query syntax, using metric math to combine multiple metrics, configuring dashboard variables for dynamic filtering, deploying shared cross-account dashboards, setting up snapshot sharing, leveraging Application Signals auto-discovery, or auditing dashboard widget correctness.","aws-orchestrator","true","READY_TO_DEPLOY | PREREQUISITES_MISSING","active","Input: either (a) a dashboard deployment intent (create, update, share) with target dashboard name, widget specifications, metric namespace\u002F dimensions, and sharing model, OR (b) a dashboard name for live-account update or validation. Output: deterministic DASHBOARD\u002FVERDICT\u002FPRE_CHECKS\u002F STEPS\u002FPOST_VERIFY block per operation, where VERDICT is one of READY_TO_DEPLOY, PREREQUISITES_MISSING.","create CloudWatch dashboard, provision dashboard, metric widget, log insights widget, alarm widget, text widget, metric math dashboard, custom metrics dashboard, cross-account dashboard, snapshot sharing dashboard, dashboard variables, SLO dashboard, operational dashboard, executive dashboard, metric explorer, Application Signals dashboard","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline plan classification. Live-account operations use aws cloudwatch put-dashboard, get-dashboard, list-dashboards, delete-dashboards, get-metric-statistics (AWS CLI v2, SSO or key-based credentials).","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fcloudwatch-dashboard-deployer",0,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills","https:\u002F\u002Fgithub.com\u002Fjhkchan","CTO & Co-Founder @Beever-AI  & @votee. CAISP. AWS Community Builder. Organizer@GDGCloudHK. MongoDB Champion. Technopreneur + Infornographer.","2026-09-24 08:54:10",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill cloudwatch-dashboard-deployer",{"tool":58,"command":59},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill cloudwatch-dashboard-deployer",{"tool":61,"command":62},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill cloudwatch-dashboard-deployer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboard-deployer\u002FSKILL.md",true,[66,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136],{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",11928,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboard-deployer\u002Feval\u002Ftest-cases.yaml",{"path":73,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":74,"sourceHtmlUrl":75},"evals\u002Fbaselines\u002Fdeploy-cross-account-dashboard-prereqs-missing.md",779,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboard-deployer\u002Fevals\u002Fbaselines\u002Fdeploy-cross-account-dashboard-prereqs-missing.md",{"path":77,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":78,"sourceHtmlUrl":79},"evals\u002Fbaselines\u002Fdeploy-ec2-ops-dashboard-ready.md",734,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboard-deployer\u002Fevals\u002Fbaselines\u002Fdeploy-ec2-ops-dashboard-ready.md",{"path":81,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":82,"sourceHtmlUrl":83},"evals\u002Fbaselines\u002Fdeploy-log-insights-dashboard-ready.md",767,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboard-deployer\u002Fevals\u002Fbaselines\u002Fdeploy-log-insights-dashboard-ready.md",{"path":85,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":86,"sourceHtmlUrl":87},"evals\u002Fbaselines\u002Fdeploy-metric-math-dashboard-ready.md",893,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboard-deployer\u002Fevals\u002Fbaselines\u002Fdeploy-metric-math-dashboard-ready.md",{"path":89,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":90,"sourceHtmlUrl":91},"evals\u002Fbaselines\u002Fdeploy-slo-dashboard-ready.md",771,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboard-deployer\u002Fevals\u002Fbaselines\u002Fdeploy-slo-dashboard-ready.md",{"path":93,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":94,"sourceHtmlUrl":95},"evals\u002Feval_config.yaml",2028,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboard-deployer\u002Fevals\u002Feval_config.yaml",{"path":97,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":98,"sourceHtmlUrl":99},"evals\u002Fevals.json",4696,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboard-deployer\u002Fevals\u002Fevals.json",{"path":101,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":102,"sourceHtmlUrl":103},"evals\u002Fprompts\u002Fdeploy-cross-account-dashboard-prereqs-missing.md",1744,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboard-deployer\u002Fevals\u002Fprompts\u002Fdeploy-cross-account-dashboard-prereqs-missing.md",{"path":105,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":106,"sourceHtmlUrl":107},"evals\u002Fprompts\u002Fdeploy-ec2-ops-dashboard-ready.md",1487,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboard-deployer\u002Fevals\u002Fprompts\u002Fdeploy-ec2-ops-dashboard-ready.md",{"path":109,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":110,"sourceHtmlUrl":111},"evals\u002Fprompts\u002Fdeploy-log-insights-dashboard-ready.md",1115,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboard-deployer\u002Fevals\u002Fprompts\u002Fdeploy-log-insights-dashboard-ready.md",{"path":113,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":114,"sourceHtmlUrl":115},"evals\u002Fprompts\u002Fdeploy-metric-math-dashboard-ready.md",1025,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboard-deployer\u002Fevals\u002Fprompts\u002Fdeploy-metric-math-dashboard-ready.md",{"path":117,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":118,"sourceHtmlUrl":119},"evals\u002Fprompts\u002Fdeploy-slo-dashboard-ready.md",1611,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboard-deployer\u002Fevals\u002Fprompts\u002Fdeploy-slo-dashboard-ready.md",{"path":121,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":122,"sourceHtmlUrl":123},"examples\u002FREADME.md",10904,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboard-deployer\u002Fexamples\u002FREADME.md",{"path":125,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":126,"sourceHtmlUrl":127},"references\u002Fadvanced-patterns.md",5944,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboard-deployer\u002Freferences\u002Fadvanced-patterns.md",{"path":129,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":130,"sourceHtmlUrl":131},"references\u002Fdashboard-widget-patterns.md",15988,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboard-deployer\u002Freferences\u002Fdashboard-widget-patterns.md",{"path":133,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":134,"sourceHtmlUrl":135},"references\u002Fdiagnostic-commands.md",1592,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboard-deployer\u002Freferences\u002Fdiagnostic-commands.md",{"path":137,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":138,"sourceHtmlUrl":139},"skill.usf.yaml",4515,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboard-deployer\u002Fskill.usf.yaml",[141,148,155,162,169,176],{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":19},"01M7ADVD60X4PCAPKSE58P9NDC","xray-tracing-deployer","Deploys AWS X-Ray distributed tracing with production-grade configuration: X-Ray daemon deployment (EC2 systemd, ECS sidecar, EKS DaemonSet, Lambda built-in), SDK instrumentation (Java, Python, Node.js, Go, .NET) with annotations and metadata, sampling rules (default reservoir + rate vs custom rules with URL \u002F method \u002F service-name predicates), service map generation, trace query and retrieval, groups and insights, CloudWatch ServiceLens integration, IAM permissions (PutTraceSegments, GetSamplingRules), and latest features (Lambda Powertools tracing, OpenTelemetry \u002F ADOT Collector support, W3C trace context). Emits a READY_TO_DEPLOY checklist with every configuration item verified. Use when enabling X-Ray on a new application, adding tracing to ECS \u002F EKS \u002F Lambda, validating a sampling configuration, or generating daemon deployment CLI and IaC templates. Triggers: X-Ray, distributed tracing, X-Ray daemon, sampling rules, service map, X-Ray SDK, OpenTelemetry, ADOT, Lambda Powertools, CloudWatch ServiceLens.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxray-tracing-deployer\u002FSKILL.md",[],[],{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":154,"publishedAt":19},"01M7ADTVJ7DCBM9CB1FY51GH7J","wellarchitected-workload-auditor","Audits AWS Well-Architected Tool workloads for review staleness, per-pillar high-risk issue counts, milestone tracking gaps, and remediation plan completeness. Emits a deterministic verdict (STALE_REVIEW | HIGH_RISK | CONFIG_GAP | OK) per workload with per-pillar risk breakdown, milestone trend analysis, and specific remediation. Use when reviewing Well-Architected workloads, checking WA review freshness, auditing high-risk issues per pillar, validating milestone coverage, or tracking remediation plans.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-workload-auditor\u002FSKILL.md",[],[],{"skillNo":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":161,"publishedAt":19},"01M7ADT59G6FTTNZYHT2QRPNNP","wellarchitected-review-operator","Operates AWS Well-Architected Tool reviews end-to-end — creates workloads, runs pillar reviews (operational excellence, security, reliability, performance, cost optimization, sustainability, Prosperity), answers questions with risk-tier rationale, generates reports and improvement plans, creates milestones, and integrates with Trusted Advisor and Well-Architected Labs. Runs deterministic pre-checks (workload existence, lens availability, pillar coverage), emits the exact update-answer \u002F get-consolidated-report CLI behind a CONFIRM gate, and verifies risk-tier transitions. Emits READY | BLOCKED | COMPLETED. Use when creating a workload, answering pillar questions, generating an improvement plan, creating a milestone, or integrating with Trusted Advisor. Triggers: well-architected tool, well architected review, workload review, pillar, operational excellence, security, reliability, performance, cost optimization, sustainability, prosperity, improvement plan, milestone, trusted advisor.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-review-operator\u002FSKILL.md",[],[],{"skillNo":163,"name":164,"nameZh":6,"description":165,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":166,"categories":167,"keywords":168,"publishedAt":19},"01M7ADSH5JA9QHNPPHQCD7EVA7","wafv2-web-acl-deployer","Provisions AWS WAFv2 Web ACLs with correct production defaults: scope selection (CLOUDFRONT vs REGIONAL), managed rule groups (AWSManagedRulesCommonRuleSet, SQLiRuleSet, LinuxRuleSet, WindowsRuleSet, IPReputationList, BotControlRuleSet, AmazonIpReputationList, ATP), custom rules (byte match, IP set, regex pattern, geo match, size constraint, rate-based), rule priority ordering, logging destinations (Kinesis Firehose, CloudWatch Logs, S3), resource association (ALB, API Gateway, CloudFront), rate-based rules with aggregate keys (IP, forwarded IP), Challenge and CAPTCHA actions, and account takeover prevention. Emits a READY_TO_DEPLOY checklist. Use when creating a Web ACL, attaching managed rules, configuring rate limiting, enabling WAF logging, associating a Web ACL with an ALB\u002FAPI Gateway\u002FCloudFront, or configuring CAPTCHA\u002FChallenge actions. Triggers: create WAF Web ACL, WAFv2, managed rule groups, WAF rate limiting, WAF logging, WAF CAPTCHA, WAF Challenge action, bot control, ATP managed rules.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-deployer\u002FSKILL.md",[],[],{"skillNo":170,"name":171,"nameZh":6,"description":172,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":173,"categories":174,"keywords":175,"publishedAt":19},"01M7ADRYFAT8R73FBNCHRC573X","wafv2-web-acl-auditor","Audits AWS WAFv2 Web ACL configurations to determine whether the ACL provides effective protection: default-action posture (Allow vs Block), managed-rule-group coverage gaps, rule effectiveness (BLOCK vs COUNT, shadow\u002Fbypass rules, stale exclusions), rate-based rule correctness, logging and visibility configuration, and text-transformation bypass vectors. Emits a deterministic verdict per Web ACL. Use when reviewing a WAFv2 Web ACL for security posture, checking managed-rule coverage, validating rate-limit configuration, auditing WAF logging, or hardening a WAF before production deployment. Triggers: WAF, WAFv2, Web ACL, managed rule group, AWSManagedRules, rate-based rule, CAPTCHA, Challenge, OverrideAction, Count mode, forwarded IP, Bot Control, ATP, text transformation, WAF logging, WAF visibility, OWASP, SQLi, XSS, RFI.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-auditor\u002FSKILL.md",[],[],{"skillNo":177,"name":178,"nameZh":6,"description":179,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":180,"categories":181,"keywords":182,"publishedAt":19},"01M7ADR8W7G72JX4KFGN03QK8Q","waf-rule-deployer","Provisions AWS WAFv2 rule sets with production defaults: Web ACL creation (CloudFront scope in us-east-1 vs Regional scope), rule groups (managed vs custom) with capacity planning in WCU (Web ACL Capacity Units, 1500 default per ACL), managed rule groups (AWSManagedRulesCommonRuleSet, AWSManagedRulesSQLiRuleSet, AWSManagedRulesAmazonIpReputationList, AWSManagedRulesLinuxRuleSet, AWSManagedRulesWindowsRuleSet, AWSManagedRulesUnixRuleSet), custom rules (byte-match, regex pattern set, geo-match, rate-based), IP set and regex pattern set resources, rule priority ordering (lowest number evaluated first), action types (allow, block, count, CAPTCHA, Challenge), bot control managed rule group, account takeover. Triggers: create WAF rule, WAF managed rule group, WAF custom rule, WAF byte match, WAF geo match, WAF rate based rule, WAF IP set, WAF regex pattern set, WAF WCU budget, WAF CloudFront ACL, WAF logging Kinesis Firehose, WAF bot control, WAF ATP, WAF label matching, WAF Challenge action, WAF CAPTCHA.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwaf-rule-deployer\u002FSKILL.md",[],[]]