[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A5FTWCASFJ4WX9QR8JKJNS":3,"skill-same:01M7A5FTWCASFJ4WX9QR8JKJNS":147},{"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":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M7A5FTWCASFJ4WX9QR8JKJNS","cloudwatch-dashboards-operator",null,"Operates Amazon CloudWatch dashboards end-to-end — dashboard creation and update via JSON model (PutDashboard\u002FGetDashboard API), custom widgets backed by Lambda functions, cross-account dashboards via CloudWatch Observability Access Manager (OAM) shared observability, metric math expressions for derived calculations, anomaly detection bands, alarm integration in dashboard widgets, dashboard sharing via resource-based policy, dashboard variables and parameters, auto-refresh intervals, cross-section (account and region switching), dashboard templates for common AWS services (RDS, EC2, Lambda, ECS), dashboard API automation for version-controlled IaC, and CloudWatch Metrics Insights for SQL-like metric queries. Runs deterministic pre-checks (dashboard JSON validity, Lambda widget permissions, OAM sink\u002Fsource configuration, metric namespace existence) behind a CONFIRM gate and emits OPERATION_COMPLETED or REVIEW_REQUIRED per operation. Use when creating service dashboards, adding metric math or anomaly...","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-dashboards-operator\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: cloudwatch-dashboards-operator\ndescription: Operates Amazon CloudWatch dashboards end-to-end — dashboard creation and update via JSON model (PutDashboard\u002FGetDashboard API), custom widgets backed by Lambda functions, cross-account dashboards via CloudWatch Observability Access Manager (OAM) shared observability, metric math expressions for derived calculations, anomaly detection bands, alarm integration in dashboard widgets, dashboard sharing via resource-based policy, dashboard variables and parameters, auto-refresh intervals, cross-section (account and region switching), dashboard templates for common AWS services (RDS, EC2, Lambda, ECS), dashboard API automation for version-controlled IaC, and CloudWatch Metrics Insights for SQL-like metric queries. Runs deterministic pre-checks (dashboard JSON validity, Lambda widget permissions, OAM sink\u002Fsource configuration, metric namespace existence) behind a CONFIRM gate and emits OPERATION_COMPLETED or REVIEW_REQUIRED per operation. Use when creating service dashboards, adding metric math or anomaly...\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, delete-dashboards, list-dashboards, put-metric-alarm, describe-alarms-for-metric, aws oam create-sink, create-link, aws lambda add-permission (AWS CLI v2, SSO or key-based credentials).\nmetadata:\n  domain: aws-cloudops\n  complexity: high\n  requires_llm: 'true'\n  phase: '4'\n  supports_pipeline: 'true'\n  entry_point: 'false'\n  family: Management\n  task_type: operate\n  skill_class: capability\n  lifecycle_status: active\n  verdict_shape: OPERATION_COMPLETED | REVIEW_REQUIRED\n  when_to_use: Creating or updating a CloudWatch dashboard via JSON model, adding metric math expressions or anomaly detection bands, integrating alarms into dashboard widgets, building cross-account dashboards via OAM, creating Lambda-backed custom widgets, sharing dashboards via resource-based policy, templating dashboards for common services (RDS, EC2, Lambda, ECS), running Metrics Insights queries in dashboards, or automating dashboard lifecycle via PutDashboard API for version-controlled IaC.\n  activation_triggers: create CloudWatch dashboard, update dashboard JSON, PutDashboard API, metric math expression, anomaly detection band, add alarm to dashboard, cross-account dashboard, OAM shared observability, dashboard sharing, dashboard variables, custom widget Lambda, dashboard template, RDS monitoring dashboard, EC2 monitoring dashboard, Lambda monitoring dashboard, ECS monitoring dashboard, Metrics Insights query, version-controlled dashboard, dashboard IaC\n  invocation_schema: 'Input: either (a) a dashboard specification (service type, metric names, layout preference) plus the intended operation (create- dashboard, update-dashboard, add-metric-math, add-anomaly-detection, share-dashboard, enable-cross-account, add-custom-widget, delete- dashboard), OR (b) a dashboard name + operation for live-account execution. Output: deterministic OPERATION \u002F VERDICT \u002F PRE_CHECKS \u002F STEPS \u002F POST_VERIFY \u002F NOTES block per dashboard operation, where VERDICT is OPERATION_COMPLETED or REVIEW_REQUIRED.'\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  keywords: CloudWatch dashboard, PutDashboard, GetDashboard, dashboard JSON, custom widget, Lambda widget, metric math, anomaly detection, alarm integration, cross-account dashboard, OAM, observability access manager, shared observability, dashboard sharing, dashboard variables, dashboard template, Metrics Insights, RDS dashboard, EC2 dashboard, Lambda dashboard, ECS dashboard, auto-refresh, dashboard IaC\n  tags: aws, cloudwatch, dashboard, monitoring, observability, metrics, oam, management, operate\n---\n\n# CloudWatch Dashboards Operator\n\n## What this skill does\n\nExecutes CloudWatch dashboard operations correctly and safely. Runs\ndeterministic pre-checks before any state-changing API call (dashboard\nJSON validity, widget metric namespace existence, Lambda custom-widget\npermissions, OAM sink\u002Fsource configuration, resource-based policy for\nsharing), executes the operation behind a CONFIRM gate, and verifies\nthe result by confirming the dashboard renders and all widgets return\ndata. Every create-dashboard operation produces a complete JSON model\nsuitable for PutDashboard API or IaC pipelines; every update-dashboard\noperation emits a diff between the current and proposed JSON so the\noperator can review changes before applying.\n\n## Quick navigation\n\n| Section | What it covers | When to read it |\n|---|---|---|\n| **§ Quick reference** | Verdict thresholds + pre-check priority | Before any operation |\n| **§ Mindset** | Metric math for derived calculations, OAM for cross-account, PutDashboard for IaC | Understanding the safety model |\n| **§ Pre-flight** | Dashboard metadata gate — existing dashboards, OAM sinks, metric namespaces | Before executing any CLI |\n| **§ Process** | Per-operation planning: create, update, metric-math, anomaly, share, cross-account, custom-widget, delete | When choosing which operation to run |\n| **§ Output format** | Structured OPERATION\u002FVERDICT\u002FPRE_CHECKS\u002FSTEPS\u002FPOST_VERIFY template | Formatting the response |\n| **§ Anti-Patterns** | NEVER list — common mistakes that break dashboards or hide data | Review before risky operations |\n| **§ Pre-flight safety** | Capture pre-state, dashboard JSON diff, OAM link verification | Defense-in-depth |\n\n## Quick reference — verdict thresholds\n\n| Verdict | Trigger condition | Action |\n|---|---|---|\n| `OPERATION_COMPLETED` | Dashboard operation finished and post-verification passed (PutDashboard returned 200, get-dashboard confirms JSON model applied, all widgets render with data) | Emit verification results, monitoring plan |\n| `REVIEW_REQUIRED` | Operation plan is ready but requires human review before execution (cross-account OAM link affects monitoring scope, dashboard sharing exposes data externally, custom Lambda widget executes arbitrary code, anomaly detection band needs tuning) | Emit plan with specific review items, wait for operator approval |\n\n**Priority order for pre-checks (apply in this sequence):**\n\n1. **Dashboard JSON validity** — the dashboard body must be valid JSON\n   with the required `widgets` array. Each widget must have `type`,\n   `x`, `y`, `width`, `height`, and `properties`.\n2. **Metric namespace existence** — verify the namespace\n   (e.g., `AWS\u002FRDS`, `AWS\u002FLambda`, `AWS\u002FECS`) has published data;\n   empty namespaces produce empty dashboards.\n3. **Metric dimensions** — verify dimension values (e.g., DBInstanceIdentifier)\n   match live resources; stale dimension values produce broken widgets.\n4. **OAM configuration** — for cross-account dashboards, verify the OAM\n   sink exists in the monitoring account and the source account has a\n   link attached.\n5. **Lambda custom-widget permissions** — for Lambda-backed widgets,\n   verify the Lambda function exists and has a resource-based policy\n   allowing `cloudwatch.amazonaws.com` to invoke it.\n6. **Anomaly detection model** — for anomaly detection bands, verify\n   the model has sufficient training data (minimum 15 minutes of\n   metrics; optimal with 2+ weeks).\n7. **Sharing policy** — for dashboard sharing, verify the resource-based\n   policy does not over-expose to `*` principal.\n\n**Cost\u002Ftime baselines (2026):**\n\n- Dashboard creation (PutDashboard): \u003C1 second API call. No per-dashboard\n  charge (CloudWatch dashboards are free up to 3; $3\u002Fdashboard\u002Fmonth\n  beyond 3).\n- Custom widget Lambda: per-invocation cost (Lambda free tier covers\n  most dashboard refresh patterns). Dashboard refreshes every 1-5 min.\n- Cross-account via OAM: no additional charge; metrics flow through the\n  existing OAM link (source account publishes, monitoring account\n  queries).\n- Anomaly detection: $0.015 per 1,000 anomalies detected. Training data\n  ingestion is free.\n- Metrics Insights queries: $0.005 per 1,000 queries (counted when used\n  in a dashboard widget that refreshes).\n- Dashboard API calls (GetDashboard, PutDashboard, ListDashboards):\n  counted against CloudWatch API limits (50 transactions\u002Fsecond by\n  default).\n\n## Mindset\n\n**One-line takeaway:** Metric math enables derived calculations beyond\nraw CloudWatch metrics; cross-account dashboards use OAM shared\nobservability (not cross-account IAM roles); PutDashboard API enables\nversion-controlled dashboard IaC. Driven by three CloudWatch realities:\n\n- **Metric math is the foundation of derived calculations.** Raw metrics\n  (e.g., `Invocations`, `Errors`) tell you counts. Metric math lets you\n  compute error rate (`Errors \u002F Invocations`), throttle ratio\n  (`Throttles \u002F Invocations`), or p99 latency from percentile metrics.\n  Without metric math, operators must export to a notebook or spreadsheet\n  to compute derived values — a workflow that breaks real-time visibility.\n\n- **Cross-account dashboards use OAM, not cross-account IAM role\n  assumption.** CloudWatch Observability Access Manager (OAM) creates a\n  sink in the monitoring account and links from source accounts. The\n  monitoring account's dashboard queries span all linked source accounts\n  via the `@Account` dimension. This is fundamentally simpler than the\n  legacy approach of cross-account IAM roles per source account, and it\n  scales to hundreds of accounts via AWS Organizations.\n\n- **PutDashboard API enables version-controlled IaC for dashboards.**\n  The dashboard body is a JSON string passed to `put-dashboard\n  --dashboard-body \u003Cjson>`. Store the JSON in Git, diff it in PRs, and\n  deploy via CI\u002FCD (CloudFormation, Terraform, or direct CLI). This is\n  the only way to maintain dashboard consistency across environments\n  (dev\u002Fstaging\u002Fprod) and recover from accidental console edits.\n\n## Pre-flight: dashboard metadata gate\n\nRun before classification. Misclassifying these produces wrong plans.\n\n**Pagination:** `list-dashboards` paginates at 1,000\u002Fpage (rarely an\nissue). `list-metrics` paginates at 500\u002Fpage — drain `--next-token` to\nfind all dimension combinations.\n\n**Live-account pre-flight (skip if offline plan audit):**\n1. `aws cloudwatch list-dashboards` — check if the target dashboard name\n   already exists (PutDashboard overwrites without confirmation).\n2. `aws cloudwatch get-dashboard --dashboard-name \u003Cname>` — for\n   update-dashboard, capture the current JSON body for diffing.\n3. `aws cloudwatch list-metrics --namespace \u003Cns>` — verify the\n   namespace has published data and identify available dimensions.\n4. `aws oam list-sinks` — for cross-account dashboards, verify an OAM\n   sink exists in the monitoring (current) account.\n5. `aws oam list-links` — verify source accounts are linked to the\n   sink. Capture `LinkStatus: LINKED`.\n6. `aws lambda get-function-configuration --function-name \u003Cfn>` — for\n   custom widgets, verify the Lambda function exists and `State: Active`.\n7. `aws lambda get-policy --function-name \u003Cfn>` — verify the resource-\n   based policy allows `cloudwatch.amazonaws.com` to\n   `lambda:InvokeFunction`.\n8. `aws cloudwatch describe-alarms-for-metric --namespace \u003Cns>\n  --metric-name \u003Cmetric>` — for alarm widgets, verify the alarm exists.\n\n**Malformed input:** if the input JSON is invalid or missing required\nfields, emit `VERDICT: ERROR` with `REASON: Dashboard specification is\nnot valid JSON or is missing required fields — cannot plan.` and\n`REMEDIATION: Provide a valid dashboard name, service type, and metric\nconfiguration. Use aws cloudwatch get-dashboard --dashboard-name \u003Cname>\n--output json as a template.`\n\n| Dashboard attribute | Effect on operation |\n|---|---|\n| Dashboard name already exists | PutDashboard OVERWRITES the entire dashboard body. Capture the current body for diff\u002Frollback before update. |\n| Namespace has no published data | Dashboard widgets render empty. Verify metric publishing before or after creation. |\n| Cross-account `@Account` dimension used | Requires OAM sink + source link in LINKED state. Without OAM, the dimension returns no data. |\n| Anomaly detection model age \u003C 15 min | Band may not render. Minimum 15 minutes of data needed; optimal with 2+ weeks. |\n| Lambda custom widget without resource policy | Widget renders an error. Lambda must allow `cloudwatch.amazonaws.com` to invoke. |\n| Dashboard body > 256 KB | PutDashboard rejects. CloudWatch limit is 256 KB per dashboard body (approximately 100-200 widgets depending on complexity). |\n| Alarm referenced in widget does not exist | Widget renders \"No alarms found.\" Verify alarm name matches an existing alarm. |\n| Metrics Insights query syntax error | Widget renders an error. Verify SQL-like syntax: `SELECT avg(CPUUtilization) FROM AWS\u002FRDS GROUP BY DBInstanceIdentifier`. |\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 (PutDashboard overwrite semantics, metric math, OAM, anomaly-band training data, custom-widget Lambda, sharing policy, variables, auto-refresh cost, Metrics Insights, @Account\u002F@Region, service templates, 256 KB limit, escaped GetDashboard body, log widgets) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when planning any operation — each behavior changes the plan if ignored.\n\n### Step 1: Pre-check gate — REVIEW_REQUIRED if any check needs human attention\n\nRun ALL pre-checks for the chosen operation.\n\n**For ALL operations:**\n1. Dashboard name is valid (alphanumeric, hyphens, underscores; 1-255\n   chars; no leading\u002Ftrailing spaces).\n2. Dashboard body is valid JSON with the `widgets` array.\n\n**For create-dashboard (`put-dashboard`):**\n3. Dashboard name does NOT already exist (or the operator confirms an\n   overwrite).\n4. Each metric namespace in the widgets has published data\n   (`list-metrics --namespace \u003Cns>`).\n5. Each dimension value matches a live resource.\n6. If anomaly detection is used: minimum 15 minutes of training data\n   available.\n\n**For update-dashboard (`put-dashboard` on existing):**\n3. Current dashboard body captured via GetDashboard.\n4. Diff between current and proposed body is presented for review.\n5. No widgets are silently dropped (widget count should be >= current\n   unless intentionally removing widgets).\n\n**For add-metric-math:**\n3. Referenced metrics (`id: m1`, `id: m2`) exist in the widget's\n   `metrics` array.\n4. Math expression is syntactically valid (CloudWatch metric math syntax).\n5. The expression result is dimensionally meaningful (e.g.,\n   `Errors \u002F Invocations` is a rate; `Errors + Invocations` is probably\n   not useful).\n\n**For enable-cross-account:**\n3. OAM sink exists in the monitoring account (`oam list-sinks`).\n4. Source account is linked and `LinkStatus: LINKED` (`oam list-links`).\n5. Widgets reference `@Account` dimension or use variables for account\n   selection.\n6. Verdict is REVIEW_REQUIRED (cross-account OAM link affects monitoring\n   scope across accounts; the operator must confirm which accounts are\n   in scope).\n\n**For share-dashboard:**\n3. Resource-based policy principal is a specific account ID or OU (not\n   `*`).\n4. Dashboard does not contain sensitive metric data that should not be\n   shared externally.\n5. Verdict is REVIEW_REQUIRED (sharing exposes dashboard data to the\n   target principal).\n\n**For add-custom-widget:**\n3. Lambda function exists and `State: Active`.\n4. Lambda resource-based policy allows `cloudwatch.amazonaws.com` to\n   `lambda:InvokeFunction`.\n5. Lambda code reviewed (custom widgets execute arbitrary code).\n6. Verdict is REVIEW_REQUIRED (code execution surface).\n\n### Step 2: OPERATION_COMPLETED or REVIEW_REQUIRED — emit operation plan\n\nIf all pre-checks pass and the operation is straightforward (create,\nupdate, add-metric-math, add-anomaly, delete), emit `VERDICT:\nOPERATION_COMPLETED` (for already-executed verification scenarios) or\nthe plan leading to completion. For operations requiring human review\n(enable-cross-account, share-dashboard, add-custom-widget), emit\n`VERDICT: REVIEW_REQUIRED` with the specific items to review.\n\nThe plan includes:\n- The exact AWS CLI command with the full dashboard JSON body.\n- The expected duration (PutDashboard: \u003C1 second; widget rendering:\n  first load takes 5-15 seconds for data to populate).\n- The expected side-effects (dashboard visible in console, widgets\n  render with data or empty, alarms show state).\n- The CONFIRM gate prompt.\n- The verification step (GetDashboard confirms body applied; console\n  confirms widgets render).\n\n### Step 3: Execute behind CONFIRM gate\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing API\n  (`put-dashboard`, `delete-dashboards`, `put-dashboard-sharing-config`,\n  `oam create-link`, `lambda add-permission`), emit:\n  `CONFIRM: About to \u003Coperation> on \u003Cdashboard-name> in account \u003Caccount>\n  region \u003Cregion>. This will \u003Cconsequence>. Proceed? (yes\u002Fno)`. Do NOT\n  execute until the operator confirms.\n- Capture pre-state: `aws cloudwatch get-dashboard --dashboard-name \u003Cname>\n  --output json > \u002Ftmp\u002F\u003Cname>-pre-$(date +%s).json` (for updates).\n- Execute the CLI. For PutDashboard, the API returns immediately with\n  a 200 status or error messages.\n- Verify: `aws cloudwatch get-dashboard --dashboard-name \u003Cname>` —\n  confirm the body matches the input.\n\n### Step 4: Post-verification — OPERATION_COMPLETED\n\nAfter the operation finishes, run post-verification.\n\n1. `get-dashboard --dashboard-name \u003Cname>` — confirm the JSON body\n   matches the input.\n2. Each widget references a valid metric with published data.\n3. For cross-account: verify the `@Account` dimension returns data from\n   linked source accounts.\n4. For alarm widgets: verify the referenced alarms exist and show state.\n5. For custom widgets: verify the Lambda function is invocable and\n   returns valid HTML.\n6. For anomaly detection: verify the band renders (may take 15 minutes\n   for initial training data).\n\nIf ANY verification fails, emit `VERDICT: ERROR` with the failure\ndetails — do not claim OPERATION_COMPLETED.\n\n## Output format (per operation)\n\n```text\nOPERATION: \u003Ccreate-dashboard | update-dashboard | add-metric-math | add-anomaly-detection | share-dashboard | enable-cross-account | add-custom-widget | delete-dashboard>\nVERDICT: OPERATION_COMPLETED | REVIEW_REQUIRED\nTARGET: \u003Cdashboard-name> (widgets: \u003Ccount>)\nPRE_CHECKS:\n  - [PASS] \u003Ccheck description>\n  - [REVIEW] \u003Ccheck description> — \u003Citem requiring human attention>\nSTEPS:\n  1. \u003CCLI command with dashboard JSON>\n  2. \u003Cverification command>\nPOST_VERIFY:\n  - [PASS] \u003Cverification description>\n  - [FAIL] \u003Cverification description> — \u003Creason>\nNOTES: \u003Cmonitoring, caveats>\n```\n\n### Worked example — create RDS monitoring dashboard\n\n```text\nOPERATION: create-dashboard\nVERDICT: OPERATION_COMPLETED\nTARGET: prod-rds-overview (widgets: 8)\nPRE_CHECKS:\n  - [PASS] Dashboard name \"prod-rds-overview\" does not already exist\n  - [PASS] Namespace AWS\u002FRDS has published data (42 metrics found)\n  - [PASS] DBInstanceIdentifier dimension values match live RDS instances\n  - [PASS] Alarm rds-cpu-high exists (for alarm widget)\n  - [PASS] Dashboard body size: 12 KB (\u003C 256 KB limit)\nSTEPS:\n  1. CONFIRM: About to create dashboard \"prod-rds-overview\" with 8\n     widgets (CPU, memory, connections, storage, query throughput,\n     replica lag, alarm, error logs) in account 111111111111 region\n     us-east-1. Proceed? (yes\u002Fno)\n  2. aws cloudwatch put-dashboard \\\n       --dashboard-name prod-rds-overview \\\n       --dashboard-body file:\u002F\u002Fprod-rds-overview.json\n  3. aws cloudwatch get-dashboard \\\n       --dashboard-name prod-rds-overview \\\n       --query 'DashboardName'\nPOST_VERIFY:\n  - [PASS] get-dashboard returns \"prod-rds-overview\"\n  - [PASS] Dashboard body matches input (8 widgets)\n  - [PASS] Namespace AWS\u002FRDS has data (widgets will render)\nNOTES:\n  - Dashboard includes metric math for connection utilization:\n    DatabaseConnections \u002F maxConnections * 100\n  - Alarm widget shows rds-cpu-high (threshold 80% for 5 min)\n  - Set up auto-refresh to 5 minutes in the console (cost-optimized)\n  - Store the dashboard JSON in Git for version-controlled IaC:\n    git add dashboards\u002Fprod-rds-overview.json\n```\n\n### Worked example — cross-account via OAM (REVIEW_REQUIRED)\n\nCross-account OAM worked example (REVIEW_REQUIRED verdict, sink\u002Flink pre-checks, Metrics Insights across @Account) moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nLoad on demand when planning an enable-cross-account operation.\n\n### Worked example — add anomaly detection\n\nAdd-anomaly-detection worked example (ANOMALY_DETECTION_BAND, stdev tuning, alarm-on-band CLI) moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nLoad on demand when adding anomaly detection bands.\n\n### Worked example — Metrics Insights dashboard\n\nMetrics Insights dashboard worked example (top-10 EC2 by CPU query, cost math) moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nLoad on demand when building top-N Metrics Insights dashboards.\n\n### Worked example — dashboard IaC via Git\n\nDashboard IaC via Git worked example (additive 8→10 widget diff, CI\u002FCD deploy, envsubst parameterization) moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nLoad on demand when maintaining dashboards as version-controlled IaC.\n\n## Anti-Patterns — NEVER\n\n- NEVER PutDashboard without capturing the current body first. The API\n  overwrites the ENTIRE dashboard. If the new body is incomplete, existing\n  widgets are permanently lost. Always GetDashboard, modify, then\n  PutDashboard the full body.\n\n- NEVER use dashboard auto-refresh at 1 minute for dashboards with 50+\n  widgets. Each refresh triggers GetMetricData calls for every widget.\n  With Metrics Insights widgets ($0.005\u002F1K queries), 50 widgets at 1-\n  minute refresh generates 72,000 queries\u002Fday = $0.36\u002Fday per dashboard.\n  Use 5-minute refresh for large dashboards.\n\n- NEVER share a dashboard to the `*` principal. This exposes all\n  dashboard data (metrics, logs, alarms, annotations) to any AWS account.\n  Always scope to specific account IDs or organizational units.\n\n- NEVER deploy a custom Lambda widget without reviewing the Lambda code.\n  Custom widgets execute arbitrary code on every dashboard refresh. A\n  malicious or buggy Lambda can exfiltrate data, make API calls, or\n  crash the dashboard rendering. Review the code, scope the IAM role,\n  and test the output format.\n\n- NEVER assume the `@Account` dimension works without OAM. The\n  dimension returns no data if there is no OAM sink + link configured.\n  Verify `oam list-sinks` and `oam list-links` before using cross-account\n  widgets.\n\n- NEVER create an anomaly detection band without checking training data\n  age. The band requires a minimum of 15 minutes of data; with less, it\n  renders empty. Optimal accuracy requires 2+ weeks. Always verify the\n  metric has history before adding the band.\n\n- NEVER use hard-coded dimension values in dashboards meant for reuse.\n  Use dashboard variables (`${DBInstance}`, `${FunctionName}`) to enable\n  dynamic filtering. Hard-coded values force creating a new dashboard\n  for each resource, defeating the purpose of templating.\n\n- NEVER confuse `GetDashboard` output with the input format.\n  `DashboardBody` in the response is an escaped JSON string, not a\n  nested object. Parse it with `jq -r '.DashboardBody | fromjson'`\n  before processing.\n\n- NEVER create a Metrics Insights query without the `LIMIT` clause for\n  top-N dashboards. Without `LIMIT`, the query returns all matching\n  resources, which can be hundreds of rows and exceed the widget rendering\n  capacity. Use `LIMIT 10` or `LIMIT 20`.\n\n- NEVER skip the CONFIRM gate for `delete-dashboards`. Dashboard\n  deletion is irreversible — there is no recycle bin. If the dashboard\n  JSON is not stored in Git, the work is permanently lost.\n\n- NEVER assume alarm widgets auto-update when the alarm is modified.\n  The widget references the alarm by name; if the alarm is renamed or\n  deleted, the widget shows \"No alarms found.\" Update the widget\n  reference when renaming alarms.\n\n- NEVER exceed the 256 KB dashboard body limit without splitting into\n  multiple dashboards. The PutDashboard API silently truncates oversized\n  bodies, leading to missing widgets that are difficult to diagnose.\n\n- NEVER use cross-account IAM role assumption for dashboards. This is\n  the legacy approach (pre-OAM). It requires one role per source account,\n  complex trust policies, and does not scale. Use OAM shared\n  observability for all cross-account dashboard needs.\n\n- NEVER deploy dashboards without testing in a non-production account\n  first. Widget rendering, metric availability, and Lambda custom\n  widgets behave differently across accounts and regions. Validate the\n  dashboard JSON in a test account before promoting to production.\n\n- NEVER assume metric math expressions handle missing data gracefully.\n  If a referenced metric has no data points (e.g., `m2` is null), the\n  expression (`m1 \u002F m2`) returns null. Use `FILL(m2, 0)` to replace\n  missing values with zero before computing.\n\n## Pre-flight safety checks (run before any remediation CLI)\n\nPre-flight safety checks (CONFIRM gate, pre-state capture, OAM verification, Lambda policy verification, JSON validation, additive-update preference) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad on demand before executing any remediation CLI.\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 variables, OAM, Metrics Insights, custom widgets, sharing, or Application Signals auto-dashboards.\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\u002Fworked-examples.md](references\u002Fworked-examples.md) — four secondary worked examples moved from SKILL.md (primary create-RDS example stays inline)\n- [references\u002Fcross-account-oam-setup.md](references\u002Fcross-account-oam-setup.md) — OAM sink\u002Flink setup walkthrough\n- [references\u002Fdashboard-json-templates.md](references\u002Fdashboard-json-templates.md) — service dashboard JSON templates\n\n## Domain\n\nAWS CloudOps \u002F CloudWatch Dashboard Operations, Metric Visualization &\nObservability.\n\n## AWS documentation\n\n- **Amazon CloudWatch User Guide — Using dashboards** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch_Dashboards.html\n- **Create a dashboard** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002Fcreate_dashboard.html\n- **CloudWatch metric math syntax** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002Fusing-metric-math.html\n- **Using metric anomalies** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch_Anomaly_Detection.html\n- **Cross-account cross-region dashboards** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCross-Account-Cross-Region-Dashboard.html\n- **CloudWatch OAM** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch-OAM.html\n- **Custom widgets** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002Fadd_custom_widget_dashboard.html\n- **CloudWatch Metrics Insights** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002Fquery_with_cloudwatch-metrics-insights.html\n- **Dashboard sharing** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002Fcloudwatch-sharing-dashboards.html\n- **CloudWatch API Reference — PutDashboard** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002FAPIReference\u002FAPI_PutDashboard.html\n- **CloudWatch API Reference — GetDashboard** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002FAPIReference\u002FAPI_GetDashboard.html\n","# CloudWatch Dashboards Operator\n\n## What this skill does\n\nExecutes CloudWatch dashboard operations correctly and safely. Runs\ndeterministic pre-checks before any state-changing API call (dashboard\nJSON validity, widget metric namespace existence, Lambda custom-widget\npermissions, OAM sink\u002Fsource configuration, resource-based policy for\nsharing), executes the operation behind a CONFIRM gate, and verifies\nthe result by confirming the dashboard renders and all widgets return\ndata. Every create-dashboard operation produces a complete JSON model\nsuitable for PutDashboard API or IaC pipelines; every update-dashboard\noperation emits a diff between the current and proposed JSON so the\noperator can review changes before applying.\n\n## Quick navigation\n\n| Section | What it covers | When to read it |\n|---|---|---|\n| **§ Quick reference** | Verdict thresholds + pre-check priority | Before any operation |\n| **§ Mindset** | Metric math for derived calculations, OAM for cross-account, PutDashboard for IaC | Understanding the safety model |\n| **§ Pre-flight** | Dashboard metadata gate — existing dashboards, OAM sinks, metric namespaces | Before executing any CLI |\n| **§ Process** | Per-operation planning: create, update, metric-math, anomaly, share, cross-account, custom-widget, delete | When choosing which operation to run |\n| **§ Output format** | Structured OPERATION\u002FVERDICT\u002FPRE_CHECKS\u002FSTEPS\u002FPOST_VERIFY template | Formatting the response |\n| **§ Anti-Patterns** | NEVER list — common mistakes that break dashboards or hide data | Review before risky operations |\n| **§ Pre-flight safety** | Capture pre-state, dashboard JSON diff, OAM link verification | Defense-in-depth |\n\n## Quick reference — verdict thresholds\n\n| Verdict | Trigger condition | Action |\n|---|---|---|\n| `OPERATION_COMPLETED` | Dashboard operation finished and post-verification passed (PutDashboard returned 200, get-dashboard confirms JSON model applied, all widgets render with data) | Emit verification results, monitoring plan |\n| `REVIEW_REQUIRED` | Operation plan is ready but requires human review before execution (cross-account OAM link affects monitoring scope, dashboard sharing exposes data externally, custom Lambda widget executes arbitrary code, anomaly detection band needs tuning) | Emit plan with specific review items, wait for operator approval |\n\n**Priority order for pre-checks (apply in this sequence):**\n\n1. **Dashboard JSON validity** — the dashboard body must be valid JSON\n   with the required `widgets` array. Each widget must have `type`,\n   `x`, `y`, `width`, `height`, and `properties`.\n2. **Metric namespace existence** — verify the namespace\n   (e.g., `AWS\u002FRDS`, `AWS\u002FLambda`, `AWS\u002FECS`) has published data;\n   empty namespaces produce empty dashboards.\n3. **Metric dimensions** — verify dimension values (e.g., DBInstanceIdentifier)\n   match live resources; stale dimension values produce broken widgets.\n4. **OAM configuration** — for cross-account dashboards, verify the OAM\n   sink exists in the monitoring account and the source account has a\n   link attached.\n5. **Lambda custom-widget permissions** — for Lambda-backed widgets,\n   verify the Lambda function exists and has a resource-based policy\n   allowing `cloudwatch.amazonaws.com` to invoke it.\n6. **Anomaly detection model** — for anomaly detection bands, verify\n   the model has sufficient training data (minimum 15 minutes of\n   metrics; optimal with 2+ weeks).\n7. **Sharing policy** — for dashboard sharing, verify the resource-based\n   policy does not over-expose to `*` principal.\n\n**Cost\u002Ftime baselines (2026):**\n\n- Dashboard creation (PutDashboard): \u003C1 second API call. No per-dashboard\n  charge (CloudWatch dashboards are free up to 3; $3\u002Fdashboard\u002Fmonth\n  beyond 3).\n- Custom widget Lambda: per-invocation cost (Lambda free tier covers\n  most dashboard refresh patterns). Dashboard refreshes every 1-5 min.\n- Cross-account via OAM: no additional charge; metrics flow through the\n  existing OAM link (source account publishes, monitoring account\n  queries).\n- Anomaly detection: $0.015 per 1,000 anomalies detected. Training data\n  ingestion is free.\n- Metrics Insights queries: $0.005 per 1,000 queries (counted when used\n  in a dashboard widget that refreshes).\n- Dashboard API calls (GetDashboard, PutDashboard, ListDashboards):\n  counted against CloudWatch API limits (50 transactions\u002Fsecond by\n  default).\n\n## Mindset\n\n**One-line takeaway:** Metric math enables derived calculations beyond\nraw CloudWatch metrics; cross-account dashboards use OAM shared\nobservability (not cross-account IAM roles); PutDashboard API enables\nversion-controlled dashboard IaC. Driven by three CloudWatch realities:\n\n- **Metric math is the foundation of derived calculations.** Raw metrics\n  (e.g., `Invocations`, `Errors`) tell you counts. Metric math lets you\n  compute error rate (`Errors \u002F Invocations`), throttle ratio\n  (`Throttles \u002F Invocations`), or p99 latency from percentile metrics.\n  Without metric math, operators must export to a notebook or spreadsheet\n  to compute derived values — a workflow that breaks real-time visibility.\n\n- **Cross-account dashboards use OAM, not cross-account IAM role\n  assumption.** CloudWatch Observability Access Manager (OAM) creates a\n  sink in the monitoring account and links from source accounts. The\n  monitoring account's dashboard queries span all linked source accounts\n  via the `@Account` dimension. This is fundamentally simpler than the\n  legacy approach of cross-account IAM roles per source account, and it\n  scales to hundreds of accounts via AWS Organizations.\n\n- **PutDashboard API enables version-controlled IaC for dashboards.**\n  The dashboard body is a JSON string passed to `put-dashboard\n  --dashboard-body \u003Cjson>`. Store the JSON in Git, diff it in PRs, and\n  deploy via CI\u002FCD (CloudFormation, Terraform, or direct CLI). This is\n  the only way to maintain dashboard consistency across environments\n  (dev\u002Fstaging\u002Fprod) and recover from accidental console edits.\n\n## Pre-flight: dashboard metadata gate\n\nRun before classification. Misclassifying these produces wrong plans.\n\n**Pagination:** `list-dashboards` paginates at 1,000\u002Fpage (rarely an\nissue). `list-metrics` paginates at 500\u002Fpage — drain `--next-token` to\nfind all dimension combinations.\n\n**Live-account pre-flight (skip if offline plan audit):**\n1. `aws cloudwatch list-dashboards` — check if the target dashboard name\n   already exists (PutDashboard overwrites without confirmation).\n2. `aws cloudwatch get-dashboard --dashboard-name \u003Cname>` — for\n   update-dashboard, capture the current JSON body for diffing.\n3. `aws cloudwatch list-metrics --namespace \u003Cns>` — verify the\n   namespace has published data and identify available dimensions.\n4. `aws oam list-sinks` — for cross-account dashboards, verify an OAM\n   sink exists in the monitoring (current) account.\n5. `aws oam list-links` — verify source accounts are linked to the\n   sink. Capture `LinkStatus: LINKED`.\n6. `aws lambda get-function-configuration --function-name \u003Cfn>` — for\n   custom widgets, verify the Lambda function exists and `State: Active`.\n7. `aws lambda get-policy --function-name \u003Cfn>` — verify the resource-\n   based policy allows `cloudwatch.amazonaws.com` to\n   `lambda:InvokeFunction`.\n8. `aws cloudwatch describe-alarms-for-metric --namespace \u003Cns>\n  --metric-name \u003Cmetric>` — for alarm widgets, verify the alarm exists.\n\n**Malformed input:** if the input JSON is invalid or missing required\nfields, emit `VERDICT: ERROR` with `REASON: Dashboard specification is\nnot valid JSON or is missing required fields — cannot plan.` and\n`REMEDIATION: Provide a valid dashboard name, service type, and metric\nconfiguration. Use aws cloudwatch get-dashboard --dashboard-name \u003Cname>\n--output json as a template.`\n\n| Dashboard attribute | Effect on operation |\n|---|---|\n| Dashboard name already exists | PutDashboard OVERWRITES the entire dashboard body. Capture the current body for diff\u002Frollback before update. |\n| Namespace has no published data | Dashboard widgets render empty. Verify metric publishing before or after creation. |\n| Cross-account `@Account` dimension used | Requires OAM sink + source link in LINKED state. Without OAM, the dimension returns no data. |\n| Anomaly detection model age \u003C 15 min | Band may not render. Minimum 15 minutes of data needed; optimal with 2+ weeks. |\n| Lambda custom widget without resource policy | Widget renders an error. Lambda must allow `cloudwatch.amazonaws.com` to invoke. |\n| Dashboard body > 256 KB | PutDashboard rejects. CloudWatch limit is 256 KB per dashboard body (approximately 100-200 widgets depending on complexity). |\n| Alarm referenced in widget does not exist | Widget renders \"No alarms found.\" Verify alarm name matches an existing alarm. |\n| Metrics Insights query syntax error | Widget renders an error. Verify SQL-like syntax: `SELECT avg(CPUUtilization) FROM AWS\u002FRDS GROUP BY DBInstanceIdentifier`. |\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 (PutDashboard overwrite semantics, metric math, OAM, anomaly-band training data, custom-widget Lambda, sharing policy, variables, auto-refresh cost, Metrics Insights, @Account\u002F@Region, service templates, 256 KB limit, escaped GetDashboard body, log widgets) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when planning any operation — each behavior changes the plan if ignored.\n\n### Step 1: Pre-check gate — REVIEW_REQUIRED if any check needs human attention\n\nRun ALL pre-checks for the chosen operation.\n\n**For ALL operations:**\n1. Dashboard name is valid (alphanumeric, hyphens, underscores; 1-255\n   chars; no leading\u002Ftrailing spaces).\n2. Dashboard body is valid JSON with the `widgets` array.\n\n**For create-dashboard (`put-dashboard`):**\n3. Dashboard name does NOT already exist (or the operator confirms an\n   overwrite).\n4. Each metric namespace in the widgets has published data\n   (`list-metrics --namespace \u003Cns>`).\n5. Each dimension value matches a live resource.\n6. If anomaly detection is used: minimum 15 minutes of training data\n   available.\n\n**For update-dashboard (`put-dashboard` on existing):**\n3. Current dashboard body captured via GetDashboard.\n4. Diff between current and proposed body is presented for review.\n5. No widgets are silently dropped (widget count should be >= current\n   unless intentionally removing widgets).\n\n**For add-metric-math:**\n3. Referenced metrics (`id: m1`, `id: m2`) exist in the widget's\n   `metrics` array.\n4. Math expression is syntactically valid (CloudWatch metric math syntax).\n5. The expression result is dimensionally meaningful (e.g.,\n   `Errors \u002F Invocations` is a rate; `Errors + Invocations` is probably\n   not useful).\n\n**For enable-cross-account:**\n3. OAM sink exists in the monitoring account (`oam list-sinks`).\n4. Source account is linked and `LinkStatus: LINKED` (`oam list-links`).\n5. Widgets reference `@Account` dimension or use variables for account\n   selection.\n6. Verdict is REVIEW_REQUIRED (cross-account OAM link affects monitoring\n   scope across accounts; the operator must confirm which accounts are\n   in scope).\n\n**For share-dashboard:**\n3. Resource-based policy principal is a specific account ID or OU (not\n   `*`).\n4. Dashboard does not contain sensitive metric data that should not be\n   shared externally.\n5. Verdict is REVIEW_REQUIRED (sharing exposes dashboard data to the\n   target principal).\n\n**For add-custom-widget:**\n3. Lambda function exists and `State: Active`.\n4. Lambda resource-based policy allows `cloudwatch.amazonaws.com` to\n   `lambda:InvokeFunction`.\n5. Lambda code reviewed (custom widgets execute arbitrary code).\n6. Verdict is REVIEW_REQUIRED (code execution surface).\n\n### Step 2: OPERATION_COMPLETED or REVIEW_REQUIRED — emit operation plan\n\nIf all pre-checks pass and the operation is straightforward (create,\nupdate, add-metric-math, add-anomaly, delete), emit `VERDICT:\nOPERATION_COMPLETED` (for already-executed verification scenarios) or\nthe plan leading to completion. For operations requiring human review\n(enable-cross-account, share-dashboard, add-custom-widget), emit\n`VERDICT: REVIEW_REQUIRED` with the specific items to review.\n\nThe plan includes:\n- The exact AWS CLI command with the full dashboard JSON body.\n- The expected duration (PutDashboard: \u003C1 second; widget rendering:\n  first load takes 5-15 seconds for data to populate).\n- The expected side-effects (dashboard visible in console, widgets\n  render with data or empty, alarms show state).\n- The CONFIRM gate prompt.\n- The verification step (GetDashboard confirms body applied; console\n  confirms widgets render).\n\n### Step 3: Execute behind CONFIRM gate\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing API\n  (`put-dashboard`, `delete-dashboards`, `put-dashboard-sharing-config`,\n  `oam create-link`, `lambda add-permission`), emit:\n  `CONFIRM: About to \u003Coperation> on \u003Cdashboard-name> in account \u003Caccount>\n  region \u003Cregion>. This will \u003Cconsequence>. Proceed? (yes\u002Fno)`. Do NOT\n  execute until the operator confirms.\n- Capture pre-state: `aws cloudwatch get-dashboard --dashboard-name \u003Cname>\n  --output json > \u002Ftmp\u002F\u003Cname>-pre-$(date +%s).json` (for updates).\n- Execute the CLI. For PutDashboard, the API returns immediately with\n  a 200 status or error messages.\n- Verify: `aws cloudwatch get-dashboard --dashboard-name \u003Cname>` —\n  confirm the body matches the input.\n\n### Step 4: Post-verification — OPERATION_COMPLETED\n\nAfter the operation finishes, run post-verification.\n\n1. `get-dashboard --dashboard-name \u003Cname>` — confirm the JSON body\n   matches the input.\n2. Each widget references a valid metric with published data.\n3. For cross-account: verify the `@Account` dimension returns data from\n   linked source accounts.\n4. For alarm widgets: verify the referenced alarms exist and show state.\n5. For custom widgets: verify the Lambda function is invocable and\n   returns valid HTML.\n6. For anomaly detection: verify the band renders (may take 15 minutes\n   for initial training data).\n\nIf ANY verification fails, emit `VERDICT: ERROR` with the failure\ndetails — do not claim OPERATION_COMPLETED.\n\n## Output format (per operation)\n\n```text\nOPERATION: \u003Ccreate-dashboard | update-dashboard | add-metric-math | add-anomaly-detection | share-dashboard | enable-cross-account | add-custom-widget | delete-dashboard>\nVERDICT: OPERATION_COMPLETED | REVIEW_REQUIRED\nTARGET: \u003Cdashboard-name> (widgets: \u003Ccount>)\nPRE_CHECKS:\n  - [PASS] \u003Ccheck description>\n  - [REVIEW] \u003Ccheck description> — \u003Citem requiring human attention>\nSTEPS:\n  1. \u003CCLI command with dashboard JSON>\n  2. \u003Cverification command>\nPOST_VERIFY:\n  - [PASS] \u003Cverification description>\n  - [FAIL] \u003Cverification description> — \u003Creason>\nNOTES: \u003Cmonitoring, caveats>\n```\n\n### Worked example — create RDS monitoring dashboard\n\n```text\nOPERATION: create-dashboard\nVERDICT: OPERATION_COMPLETED\nTARGET: prod-rds-overview (widgets: 8)\nPRE_CHECKS:\n  - [PASS] Dashboard name \"prod-rds-overview\" does not already exist\n  - [PASS] Namespace AWS\u002FRDS has published data (42 metrics found)\n  - [PASS] DBInstanceIdentifier dimension values match live RDS instances\n  - [PASS] Alarm rds-cpu-high exists (for alarm widget)\n  - [PASS] Dashboard body size: 12 KB (\u003C 256 KB limit)\nSTEPS:\n  1. CONFIRM: About to create dashboard \"prod-rds-overview\" with 8\n     widgets (CPU, memory, connections, storage, query throughput,\n     replica lag, alarm, error logs) in account 111111111111 region\n     us-east-1. Proceed? (yes\u002Fno)\n  2. aws cloudwatch put-dashboard \\\n       --dashboard-name prod-rds-overview \\\n       --dashboard-body file:\u002F\u002Fprod-rds-overview.json\n  3. aws cloudwatch get-dashboard \\\n       --dashboard-name prod-rds-overview \\\n       --query 'DashboardName'\nPOST_VERIFY:\n  - [PASS] get-dashboard returns \"prod-rds-overview\"\n  - [PASS] Dashboard body matches input (8 widgets)\n  - [PASS] Namespace AWS\u002FRDS has data (widgets will render)\nNOTES:\n  - Dashboard includes metric math for connection utilization:\n    DatabaseConnections \u002F maxConnections * 100\n  - Alarm widget shows rds-cpu-high (threshold 80% for 5 min)\n  - Set up auto-refresh to 5 minutes in the console (cost-optimized)\n  - Store the dashboard JSON in Git for version-controlled IaC:\n    git add dashboards\u002Fprod-rds-overview.json\n```\n\n### Worked example — cross-account via OAM (REVIEW_REQUIRED)\n\nCross-account OAM worked example (REVIEW_REQUIRED verdict, sink\u002Flink pre-checks, Metrics Insights across @Account) moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nLoad on demand when planning an enable-cross-account operation.\n\n### Worked example — add anomaly detection\n\nAdd-anomaly-detection worked example (ANOMALY_DETECTION_BAND, stdev tuning, alarm-on-band CLI) moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nLoad on demand when adding anomaly detection bands.\n\n### Worked example — Metrics Insights dashboard\n\nMetrics Insights dashboard worked example (top-10 EC2 by CPU query, cost math) moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nLoad on demand when building top-N Metrics Insights dashboards.\n\n### Worked example — dashboard IaC via Git\n\nDashboard IaC via Git worked example (additive 8→10 widget diff, CI\u002FCD deploy, envsubst parameterization) moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nLoad on demand when maintaining dashboards as version-controlled IaC.\n\n## Anti-Patterns — NEVER\n\n- NEVER PutDashboard without capturing the current body first. The API\n  overwrites the ENTIRE dashboard. If the new body is incomplete, existing\n  widgets are permanently lost. Always GetDashboard, modify, then\n  PutDashboard the full body.\n\n- NEVER use dashboard auto-refresh at 1 minute for dashboards with 50+\n  widgets. Each refresh triggers GetMetricData calls for every widget.\n  With Metrics Insights widgets ($0.005\u002F1K queries), 50 widgets at 1-\n  minute refresh generates 72,000 queries\u002Fday = $0.36\u002Fday per dashboard.\n  Use 5-minute refresh for large dashboards.\n\n- NEVER share a dashboard to the `*` principal. This exposes all\n  dashboard data (metrics, logs, alarms, annotations) to any AWS account.\n  Always scope to specific account IDs or organizational units.\n\n- NEVER deploy a custom Lambda widget without reviewing the Lambda code.\n  Custom widgets execute arbitrary code on every dashboard refresh. A\n  malicious or buggy Lambda can exfiltrate data, make API calls, or\n  crash the dashboard rendering. Review the code, scope the IAM role,\n  and test the output format.\n\n- NEVER assume the `@Account` dimension works without OAM. The\n  dimension returns no data if there is no OAM sink + link configured.\n  Verify `oam list-sinks` and `oam list-links` before using cross-account\n  widgets.\n\n- NEVER create an anomaly detection band without checking training data\n  age. The band requires a minimum of 15 minutes of data; with less, it\n  renders empty. Optimal accuracy requires 2+ weeks. Always verify the\n  metric has history before adding the band.\n\n- NEVER use hard-coded dimension values in dashboards meant for reuse.\n  Use dashboard variables (`${DBInstance}`, `${FunctionName}`) to enable\n  dynamic filtering. Hard-coded values force creating a new dashboard\n  for each resource, defeating the purpose of templating.\n\n- NEVER confuse `GetDashboard` output with the input format.\n  `DashboardBody` in the response is an escaped JSON string, not a\n  nested object. Parse it with `jq -r '.DashboardBody | fromjson'`\n  before processing.\n\n- NEVER create a Metrics Insights query without the `LIMIT` clause for\n  top-N dashboards. Without `LIMIT`, the query returns all matching\n  resources, which can be hundreds of rows and exceed the widget rendering\n  capacity. Use `LIMIT 10` or `LIMIT 20`.\n\n- NEVER skip the CONFIRM gate for `delete-dashboards`. Dashboard\n  deletion is irreversible — there is no recycle bin. If the dashboard\n  JSON is not stored in Git, the work is permanently lost.\n\n- NEVER assume alarm widgets auto-update when the alarm is modified.\n  The widget references the alarm by name; if the alarm is renamed or\n  deleted, the widget shows \"No alarms found.\" Update the widget\n  reference when renaming alarms.\n\n- NEVER exceed the 256 KB dashboard body limit without splitting into\n  multiple dashboards. The PutDashboard API silently truncates oversized\n  bodies, leading to missing widgets that are difficult to diagnose.\n\n- NEVER use cross-account IAM role assumption for dashboards. This is\n  the legacy approach (pre-OAM). It requires one role per source account,\n  complex trust policies, and does not scale. Use OAM shared\n  observability for all cross-account dashboard needs.\n\n- NEVER deploy dashboards without testing in a non-production account\n  first. Widget rendering, metric availability, and Lambda custom\n  widgets behave differently across accounts and regions. Validate the\n  dashboard JSON in a test account before promoting to production.\n\n- NEVER assume metric math expressions handle missing data gracefully.\n  If a referenced metric has no data points (e.g., `m2` is null), the\n  expression (`m1 \u002F m2`) returns null. Use `FILL(m2, 0)` to replace\n  missing values with zero before computing.\n\n## Pre-flight safety checks (run before any remediation CLI)\n\nPre-flight safety checks (CONFIRM gate, pre-state capture, OAM verification, Lambda policy verification, JSON validation, additive-update preference) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad on demand before executing any remediation CLI.\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 variables, OAM, Metrics Insights, custom widgets, sharing, or Application Signals auto-dashboards.\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\u002Fworked-examples.md](references\u002Fworked-examples.md) — four secondary worked examples moved from SKILL.md (primary create-RDS example stays inline)\n- [references\u002Fcross-account-oam-setup.md](references\u002Fcross-account-oam-setup.md) — OAM sink\u002Flink setup walkthrough\n- [references\u002Fdashboard-json-templates.md](references\u002Fdashboard-json-templates.md) — service dashboard JSON templates\n\n## Domain\n\nAWS CloudOps \u002F CloudWatch Dashboard Operations, Metric Visualization &\nObservability.\n\n## AWS documentation\n\n- **Amazon CloudWatch User Guide — Using dashboards** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch_Dashboards.html\n- **Create a dashboard** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002Fcreate_dashboard.html\n- **CloudWatch metric math syntax** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002Fusing-metric-math.html\n- **Using metric anomalies** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch_Anomaly_Detection.html\n- **Cross-account cross-region dashboards** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCross-Account-Cross-Region-Dashboard.html\n- **CloudWatch OAM** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch-OAM.html\n- **Custom widgets** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002Fadd_custom_widget_dashboard.html\n- **CloudWatch Metrics Insights** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002Fquery_with_cloudwatch-metrics-insights.html\n- **Dashboard sharing** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002Fcloudwatch-sharing-dashboards.html\n- **CloudWatch API Reference — PutDashboard** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002FAPIReference\u002FAPI_PutDashboard.html\n- **CloudWatch API Reference — GetDashboard** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002FAPIReference\u002FAPI_GetDashboard.html\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":42},{"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,"requires_llm":37,"verdict_shape":38,"lifecycle_status":39,"invocation_schema":40,"supports_pipeline":37,"activation_triggers":41},"aws, cloudwatch, dashboard, monitoring, observability, metrics, oam, management, operate","4","Jacky Chan — AWS Community Builder","aws-cloudops","Management","0.1.0","CloudWatch dashboard, PutDashboard, GetDashboard, dashboard JSON, custom widget, Lambda widget, metric math, anomaly detection, alarm integration, cross-account dashboard, OAM, observability access manager, shared observability, dashboard sharing, dashboard variables, dashboard template, Metrics Insights, RDS dashboard, EC2 dashboard, Lambda dashboard, ECS dashboard, auto-refresh, dashboard IaC","operate","high","false","capability","Creating or updating a CloudWatch dashboard via JSON model, adding metric math expressions or anomaly detection bands, integrating alarms into dashboard widgets, building cross-account dashboards via OAM, creating Lambda-backed custom widgets, sharing dashboards via resource-based policy, templating dashboards for common services (RDS, EC2, Lambda, ECS), running Metrics Insights queries in dashboards, or automating dashboard lifecycle via PutDashboard API for version-controlled IaC.","true","OPERATION_COMPLETED | REVIEW_REQUIRED","active","Input: either (a) a dashboard specification (service type, metric names, layout preference) plus the intended operation (create- dashboard, update-dashboard, add-metric-math, add-anomaly-detection, share-dashboard, enable-cross-account, add-custom-widget, delete- dashboard), OR (b) a dashboard name + operation for live-account execution. Output: deterministic OPERATION \u002F VERDICT \u002F PRE_CHECKS \u002F STEPS \u002F POST_VERIFY \u002F NOTES block per dashboard operation, where VERDICT is OPERATION_COMPLETED or REVIEW_REQUIRED.","create CloudWatch dashboard, update dashboard JSON, PutDashboard API, metric math expression, anomaly detection band, add alarm to dashboard, cross-account dashboard, OAM shared observability, dashboard sharing, dashboard variables, custom widget Lambda, dashboard template, RDS monitoring dashboard, EC2 monitoring dashboard, Lambda monitoring dashboard, ECS monitoring dashboard, Metrics Insights query, version-controlled dashboard, dashboard IaC","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, delete-dashboards, list-dashboards, put-metric-alarm, describe-alarms-for-metric, aws oam create-sink, create-link, aws lambda add-permission (AWS CLI v2, SSO or key-based credentials).","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fcloudwatch-dashboards-operator",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":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill cloudwatch-dashboards-operator",{"tool":57,"command":58},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill cloudwatch-dashboards-operator",{"tool":60,"command":61},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill cloudwatch-dashboards-operator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboards-operator\u002FSKILL.md",true,[65,71,75,79,83,87,91,95,99,103,107,111,115,119,123,127,131,135,139,143],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",7843,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboards-operator\u002Feval\u002Ftest-cases.yaml",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"evals\u002Fbaselines\u002Fadd-anomaly-detection-band-review.md",916,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboards-operator\u002Fevals\u002Fbaselines\u002Fadd-anomaly-detection-band-review.md",{"path":76,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":77,"sourceHtmlUrl":78},"evals\u002Fbaselines\u002Fcreate-rds-dashboard-completed.md",853,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboards-operator\u002Fevals\u002Fbaselines\u002Fcreate-rds-dashboard-completed.md",{"path":80,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":81,"sourceHtmlUrl":82},"evals\u002Fbaselines\u002Fcross-account-dashboard-oam-review.md",723,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboards-operator\u002Fevals\u002Fbaselines\u002Fcross-account-dashboard-oam-review.md",{"path":84,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":85,"sourceHtmlUrl":86},"evals\u002Fbaselines\u002Fdashboard-iac-version-controlled-completed.md",580,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboards-operator\u002Fevals\u002Fbaselines\u002Fdashboard-iac-version-controlled-completed.md",{"path":88,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":89,"sourceHtmlUrl":90},"evals\u002Fbaselines\u002Fmetrics-insights-dashboard-completed.md",828,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboards-operator\u002Fevals\u002Fbaselines\u002Fmetrics-insights-dashboard-completed.md",{"path":92,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":93,"sourceHtmlUrl":94},"evals\u002Feval_config.yaml",1963,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboards-operator\u002Fevals\u002Feval_config.yaml",{"path":96,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":97,"sourceHtmlUrl":98},"evals\u002Fevals.json",4410,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboards-operator\u002Fevals\u002Fevals.json",{"path":100,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":101,"sourceHtmlUrl":102},"evals\u002Fprompts\u002Fadd-anomaly-detection-band-review.md",751,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboards-operator\u002Fevals\u002Fprompts\u002Fadd-anomaly-detection-band-review.md",{"path":104,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":105,"sourceHtmlUrl":106},"evals\u002Fprompts\u002Fcreate-rds-dashboard-completed.md",946,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboards-operator\u002Fevals\u002Fprompts\u002Fcreate-rds-dashboard-completed.md",{"path":108,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":109,"sourceHtmlUrl":110},"evals\u002Fprompts\u002Fcross-account-dashboard-oam-review.md",1021,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboards-operator\u002Fevals\u002Fprompts\u002Fcross-account-dashboard-oam-review.md",{"path":112,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":113,"sourceHtmlUrl":114},"evals\u002Fprompts\u002Fdashboard-iac-version-controlled-completed.md",891,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboards-operator\u002Fevals\u002Fprompts\u002Fdashboard-iac-version-controlled-completed.md",{"path":116,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":117,"sourceHtmlUrl":118},"evals\u002Fprompts\u002Fmetrics-insights-dashboard-completed.md",792,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboards-operator\u002Fevals\u002Fprompts\u002Fmetrics-insights-dashboard-completed.md",{"path":120,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":121,"sourceHtmlUrl":122},"examples\u002FREADME.md",7099,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboards-operator\u002Fexamples\u002FREADME.md",{"path":124,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":125,"sourceHtmlUrl":126},"references\u002Fadvanced-patterns.md",8913,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboards-operator\u002Freferences\u002Fadvanced-patterns.md",{"path":128,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":129,"sourceHtmlUrl":130},"references\u002Fcross-account-oam-setup.md",7458,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboards-operator\u002Freferences\u002Fcross-account-oam-setup.md",{"path":132,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":133,"sourceHtmlUrl":134},"references\u002Fdashboard-json-templates.md",10860,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboards-operator\u002Freferences\u002Fdashboard-json-templates.md",{"path":136,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":137,"sourceHtmlUrl":138},"references\u002Fdiagnostic-commands.md",1809,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboards-operator\u002Freferences\u002Fdiagnostic-commands.md",{"path":140,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":141,"sourceHtmlUrl":142},"references\u002Fworked-examples.md",8168,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboards-operator\u002Freferences\u002Fworked-examples.md",{"path":144,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":145,"sourceHtmlUrl":146},"skill.usf.yaml",4676,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-dashboards-operator\u002Fskill.usf.yaml",[148,155,162,169,176,183],{"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},"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":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},"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":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},"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":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},"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":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},"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":184,"name":185,"nameZh":6,"description":186,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":187,"categories":188,"keywords":189,"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",[],[]]