[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A5PRPTVGAA2XGZD9C9SNA1":3,"skill-same:01M7A5PRPTVGAA2XGZD9C9SNA1":146},{"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":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":48,"updatedAt":49,"install":50,"resources":63},"01M7A5PRPTVGAA2XGZD9C9SNA1","cloudwatch-rum-deployer",null,"Provisions CloudWatch RUM (Real User Monitoring) app monitors with production-grade defaults — domain allow-list, sample rate, cookie domain, telemetries (errors, performance, HTTP), X-Ray trace correlation, custom events, custom metrics, and the CloudWatch RUM JavaScript SDK integrated via CDN or npm. Wires Application Signals client-side correlation and emits a READY_TO_DEPLOY checklist verifying every prerequisite. Use when creating a RUM app monitor, injecting the RUM SDK (CDN script tag or npm import), wiring cookie domain, recording custom events \u002F custom metrics, enabling X-Ray trace integration, or correlating client-side RUM sessions with server-side Application Signals. Triggers: cloudwatch rum, real user monitoring, rum app monitor, rum javascript sdk, rum web client, rum cdn, rum npm, cookie domain, custom events rum, rum custom metrics, x-ray rum correlation, application signals client correlation, web vitals cloudwatch, client-side observability.","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-rum-deployer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: cloudwatch-rum-deployer\ndescription: 'Provisions CloudWatch RUM (Real User Monitoring) app monitors with production-grade defaults — domain allow-list, sample rate, cookie domain, telemetries (errors, performance, HTTP), X-Ray trace correlation, custom events, custom metrics, and the CloudWatch RUM JavaScript SDK integrated via CDN or npm. Wires Application Signals client-side correlation and emits a READY_TO_DEPLOY checklist verifying every prerequisite. Use when creating a RUM app monitor, injecting the RUM SDK (CDN script tag or npm import), wiring cookie domain, recording custom events \u002F custom metrics, enabling X-Ray trace integration, or correlating client-side RUM sessions with server-side Application Signals. Triggers: cloudwatch rum, real user monitoring, rum app monitor, rum javascript sdk, rum web client, rum cdn, rum npm, cookie domain, custom events rum, rum custom metrics, x-ray rum correlation, application signals client correlation, web vitals cloudwatch, client-side observability.'\nlicense: Apache-2.0\ncompatibility: 'Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). For live deployment: AWS CLI v2 with rum, cloudwatch, xray, iam, application-signals, and ssm access. Works with Terraform aws_cloudwatch_rum_app_monitor, CloudFormation AWS::RUM::AppMonitor, and the CloudWatch RUM JavaScript SDK (@\u002Faws-cdk\u002Faws-rum or aws-rum-web on npm).'\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: aws, cloudwatch, rum, observability, deploy, javascript-sdk, web-vitals\n  dependencies: aws-orchestrator\n  keywords: aws, cloudwatch, rum, real-user-monitoring, client-side-observability, cloudops, deploy, provisioning, javascript-sdk, web-vitals, cookie-domain, custom-events, custom-metrics, xray-correlation, application-signals\n  when_to_use: Invoke when the user wants to create a CloudWatch RUM app monitor (domain, sample rate, cookie domain, telemetries), inject the CloudWatch RUM JavaScript SDK via CDN or npm, wire cookie domain, record custom events or custom metrics, enable X-Ray tracing integration for client-to-server trace correlation, or correlate client-side RUM sessions with server-side Application Signals service map. Do NOT invoke for plain CloudWatch dashboards or alarms (use cloudwatch-dashboard-deployer \u002F cloudwatch-alarm-operator), for X-Ray-only tracing without RUM (use xray-tracing-deployer), or for Application Signals enablement on server workloads (use cloudwatch-application-signals-deployer).\n---\n\n# CloudWatch RUM Deployer\n\nAn AWS CloudOps agent skill that provisions CloudWatch RUM (Real\nUser Monitoring) app monitors with the correct production defaults\n— domain allow-list, sample rate, cookie domain, telemetry\nselection (errors, performance, HTTP), X-Ray trace correlation,\ncustom events, custom metrics, and Application Signals client-side\ncorrelation. Emits a READY_TO_DEPLOY checklist verifying every\nprerequisite.\n\n## Quick navigation\n\n| Need | Section |\n|---|---|\n| What MUST be in the response | \"STRICT output contract\" |\n| Why the provisioning order matters | \"Reasoning framework\" |\n| What to verify before enabling | \"Prerequisites\" |\n| The ordered provisioning steps | \"Deployment procedure\" |\n| Common silent-failure pitfalls | \"NEVER\" |\n| SDK integration, cookie domain, custom events | \"Deployment procedure\" Steps 3-7 |\n| X-Ray and Application Signals correlation | \"Deployment procedure\" Steps 5-9 |\n| Web client matrix (CDN \u002F npm \u002F React \u002F Vue) | \"Web client matrix\" |\n| 2024-2026 feature changes | \"Recent AWS features\" |\n| Deep CLI sequences | `references\u002Fdeployment-cli-commands.md` |\n| Custom events, metrics, X-Ray correlation | `references\u002Fcustom-events-and-correlation-guide.md` |\n\n## STRICT output contract\n\nWhen this skill is invoked with a CloudWatch RUM enablement request\n(domain, application name, sample rate, integration type, or a\npartial existing configuration), the agent MUST respond with the\nREADY_TO_DEPLOY checklist using the literal all-caps labels\n`RUM_APP:`, `VERDICT:`, `CHECKLIST:`, `JS_SNIPPET:`, and\n`VERIFICATION_COMMANDS:`. Do NOT preface the checklist with prose,\nheadings, or disclaimers — emit the block as the first lines of the\nresponse.\n\n### Required output structure\n\n1. `RUM_APP: \u003Capplication-name>` — the web app being monitored\n   (matches the `--name` \u002F `applicationId` on the app monitor).\n2. `VERDICT: READY_TO_DEPLOY` OR `VERDICT: PREREQUISITES_MISSING`.\n3. `CHECKLIST:` followed by indented rows. Every row uses a status\n   marker (`[✓]`, `[✗]`, `[OPTIONAL]`, `[INPUT NEEDED]`) and shows\n   `current: \u003Cvalue>  recommended: \u003Cvalue>` so the operator can see\n   the app monitor config at a glance: domain, sampling rate,\n   telemetries (errors \u002F performance \u002F http), cookie domain, guest\n   role ARN, X-Ray toggle, Application Signals correlation.\n4. `JS_SNIPPET:` followed by a fenced code block containing the\n   copy-pasteable CDN `\u003Cscript>` tag (or npm import) with every\n   placeholder resolved to real values from CHECKLIST. This is what\n   the operator inserts into the page template.\n5. `VERIFICATION_COMMANDS:` followed by indented `aws ...` commands.\n\n### FORBIDDEN output patterns\n\n1. **NEVER start with prose preamble** (\"Let me analyze…\", \"Looking\n   at your setup…\"). The first non-empty line MUST be `RUM_APP:`. No\n   greetings, no headings, no disclaimers before it.\n\n2. **NEVER use markdown variants of the labels.** Write `VERDICT:`,\n   not `**VERDICT:**`, `### Verdict`, `Verdict =`, or `` `VERDICT` ``.\n   The labels are parser-anchored; bold or heading variants break\n   downstream automation.\n\n3. **NEVER swap verdict tokens.** Exactly `READY_TO_DEPLOY` or\n   `PREREQUISITES_MISSING`. Not \"ready\", \"missing\", \"BLOCKED\", \"OK\",\n   \"PARTIAL\", or any invented token.\n\n4. **NEVER omit `JS_SNIPPET:` or emit it with placeholder values.**\n   The snippet MUST show real values for `applicationId`,\n   `guestRoleArn`, `identityPoolId`, `cookieDomain`, and\n   `sessionSampleRate` resolved from CHECKLIST. A snippet with\n   `\u003Cyour-app-monitor-name>` is a FORBIDDEN placeholder leak.\n\n5. **NEVER omit `VERIFICATION_COMMANDS:`** — include even when\n   PREREQUISITES_MISSING; the operator needs commands to verify gaps.\n\n6. **NEVER append extra sections after `VERIFICATION_COMMANDS:`.**\n   The checklist block IS the entire response. Put deeper explanation\n   in `references\u002F`.\n\n7. **NEVER invent status markers.** Use only `[✓]`, `[✗]`,\n   `[OPTIONAL]`, `[INPUT NEEDED]`. Do not emit `[?]`, `[!]`, `[WARN]`,\n   or emoji.\n\n8. **NEVER set `cookieDomain` to a public suffix** (`.com`, `.app`,\n   `.io`, `.dev`) in JS_SNIPPET or CHECKLIST — emit `[✗]` and cite\n   the leak risk if the operator requested one.\n\n### Perfect example — READY_TO_DEPLOY with XSS sanitization + X-Ray tracing\n\nEvery field below has real values. Copy this shape exactly and swap\nin the operator's values. The CHECKLIST rows surface the app monitor\nconfig (domain, sampling rate, telemetries, cookie domain, guest\nrole, X-Ray, Application Signals) as `current:` vs `recommended:`\npairs. The JS_SNIPPET is the copy-pasteable CDN script tag with XSS\nsanitization (SRI `integrity` attribute + `crossorigin=\"anonymous\"`)\nand `enableXRay:true` for client-to-server trace correlation.\n\n```text\nRUM_APP: checkout-web\nVERDICT: READY_TO_DEPLOY\nCHECKLIST:\n  [✓]      App monitor name — checkout-web-prod (arn:aws:rum:us-east-1:111122223333:appmonitor\u002Fcheckout-web-prod)\n  [✓]      Domain (AllowedOrigins) — https:\u002F\u002Fcheckout.example.com  (scheme+host+port; wildcard NOT supported)\n  [✓]      Sampling rate — current: 1.0   recommended: 1.0 (raise traffic \u003C100k sessions\u002Fday; drop to 0.1 above 1M)\n  [✓]      Cookie domain — current: .example.com   recommended: .example.com (NOT .com — TLD leak)\n  [✓]      Telemetries — current: errors, performance, http   recommended: errors, performance, http (declare ALL at init)\n  [✓]      Guest role — arn:aws:iam::111122223333:role\u002Fcheckout-web-rum-guest (rum:PutRumEvents scoped to app monitor ARN)\n  [✓]      Identity pool — us-east-1:abcd1234-efgh-5678 (Cognito unauth pool backing the guest role)\n  [✓]      X-Ray tracing — current: enableXRay=true   recommended: true (server sampling rule FixedRate 0.05 verified > 0)\n  [✓]      Application Signals correlation — AWS\u002FApplicationSignalsClient namespace (auto-populated when server enabled)\n  [✓]      XSS sanitization — CDN script loaded with SRI integrity=\"sha384-\u003Chash>\" + crossorigin=\"anonymous\"; no inline eval\n  [✓]      Custom metrics — AWS\u002FRUM, dimensions ApplicationName=checkout-web-prod + RumEventName (up to 100 definitions)\n  [✓]      CloudWatch metrics emitted — AWS\u002FRUM: Errors, JsErrorCount, SessionCount, WebVitalsLCP, WebVitalsINP, Http4xx, Http5xx\n  [OPTIONAL] Session sampling override — 0.05 for traffic > 1M daily sessions\n  [OPTIONAL] Sub-resource timing — PerformanceNavigationTiming details enabled\nJS_SNIPPET:\n  \u003C!-- Insert before \u003C\u002Fhead> on every page template. integrity attr =\n       Subresource Integrity (SRI); prevents CDN-tampered XSS. crossorigin\n       required for SRI enforcement. Pin the SDK version; never auto-upgrade. -->\n  \u003Cscript>\n    (function(n,i,v,r,s,c,x,z,h){var p=function(){var a=\n    Array.prototype.slice.call(arguments);return new (Function.\n    prototype.bind.apply(cwr,(a).concat(p.args)))},q=p.args=\n    Array.prototype.slice.call(arguments);(cwr=a=cwr||function(){\n    (cwr.q=cwr.q||[]).push(arguments)}).l=+new Date;cwr('init',\n    {clientConfig:{applicationId:'checkout-web-prod',\n    region:'us-east-1',version:'1.0.0',\n    guestRoleArn:'arn:aws:iam::111122223333:role\u002Fcheckout-web-rum-guest',\n    identityPoolId:'us-east-1:abcd1234-efgh-5678'},\n    telemetries:['errors','performance','http'],\n    sessionSampleRate:1.0,\n    sessionEventUrl:'https:\u002F\u002Fdataplane.rum.us-east-1.amazonaws.com',\n    cookieDomain:'.example.com',\n    enableXRay:true,\n    allowCookies:true,\n    disableXsrfCookie:false});cwr('load')})()\n  \u003C\u002Fscript>\n  \u003Cscript async src=\"https:\u002F\u002Fclient.rum.us-east-1.amazonaws.com\u002F1.18.0\u002Faws-rum-web.min.js\"\n          integrity=\"sha384-\u003Ccompute-sha384-of-the-file-and-insert-here>\"\n          crossorigin=\"anonymous\">\u003C\u002Fscript>\nVERIFICATION_COMMANDS:\n  aws rum list-app-monitors --region us-east-1\n  aws rum get-app-monitor --name checkout-web-prod --region us-east-1\n  aws cloudwatch list-metrics --namespace AWS\u002FRUM --dimensions Name=ApplicationName,Value=checkout-web-prod --region us-east-1\n  aws cloudwatch list-metrics --namespace AWS\u002FApplicationSignalsClient --region us-east-1\n  aws xray get-sampling-rules --region us-east-1\n  aws iam list-attached-role-policies --role-name checkout-web-rum-guest\n  aws logs describe-log-streams --log-group-name \u002Faws\u002Frum\u002Fcheckout-web-prod --limit 1 --order-by LastEventTime --descending --region us-east-1\n```\n\n### Perfect example — PREREQUISITES_MISSING\n\nWorked example — PREREQUISITES_MISSING (blocked cookie domain, missing guest role, zero X-Ray sampling, withheld JS_SNIPPET) moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nLoad it when any required prerequisite fails; the primary READY_TO_DEPLOY example stays above.\n\n## Reasoning framework (why the provisioning order matters)\n\nEnabling RUM has **dependency and ordering constraints** that make\nthe procedure non-trivial. Skipping or misordering causes silent\ngaps — the dashboard stays empty, sessions drop, or X-Ray traces\nnever link to client-side events:\n\n1. **App monitor FIRST** — `rum create-app-monitor` provisions the\n   telemetry sink and emits the application identity used by every\n   downstream SDK config and metric dimension. The monitor name is\n   embedded in the IAM resource ARN; recreating it breaks every\n   embedded snippet.\n2. **Domain allow-list** — RUM rejects `PutRumEvents` whose\n   `pageDomain` is not in the app monitor's `AppMonitorConfiguration.\n   AllowedOrigins`. A misconfigured allow-list silently drops all\n   telemetry; the dashboard shows zero sessions.\n3. **IAM guest role is mandatory** — the SDK authenticates via an\n   anonymous guest role (or authenticated Cognito identity) holding\n   `rum:PutRumEvents`. Without it, the browser console fills with\n   `AccessDenied` and no events land.\n4. **Cookie domain must match the deployment** — the cookie domain\n   drives session stitching across subdomains. An overly broad\n   cookie domain (`.com`) leaks sessions across unrelated sites; a\n   missing cookie domain breaks cross-subdomain session continuity.\n5. **Telemetries declared at init** — errors, performance, http\n   telemetries are gated by the `cwr('init', ...)` config. Adding\n   telemetry later requires a code change; declare all three at\n   init unless there is a deliberate reason to omit one.\n6. **X-Ray tracing requires sampling** — RUM correlates to X-Ray\n   by sending the client-side trace ID with `PutRumEvents`. The\n   server-side segment must be sampled by an X-Ray sampling rule\n   that includes the same trace ID. A 0% sampling rule on the\n   server blanks the correlation.\n7. **Application Signals correlation is auto-derived** — when both\n   Application Signals (server) and RUM (client) are enabled for\n   the same service, CloudWatch auto-populates the\n   `AWS\u002FApplicationSignalsClient` namespace. RUM does NOT merge\n   across Regions; plan per-Region app monitors.\n\n## Prerequisites (verify before deployment)\n\n| Prerequisite | Why it matters | How to verify |\n|---|---|---|\n| **AWS account opt-in for CloudWatch RUM** | RUM is Region-scoped and must be available. | `aws rum list-app-monitors` (no error = available) |\n| **Domain ownership** | The app monitor `AllowedOrigins` must enumerate every origin (scheme + host + port) the web app is served from. | Confirm with frontend team \u002F DNS records |\n| **Anonymous guest IAM role (or Cognito identity pool)** | The SDK must call `rum:PutRumEvents` from the browser; guest role holds the permission. | `aws iam list-attached-role-policies --role-name \u003Cguest-role>` |\n| **CORS configured** | RUM API requires CORS from the allowed origins. `AllowedOrigins` on the app monitor drives CORS validation. | Implicit via app monitor config |\n| **X-Ray tracing enabled** (optional) | Required for client-to-server trace correlation. | `aws xray get-encryption-config` |\n| **X-Ray sampling rule** (optional) | Default sampling rule must be > 0% for trace correlation. | `aws xray get-sampling-rules` (Default FixedRate > 0) |\n| **Application Signals enabled on the server** (optional) | Required for client\u002Fserver service-map correlation. | `aws application-signals list-services` |\n| **IAM permissions for caller** | Caller needs `rum:CreateAppMonitor`, `rum:GetAppMonitor`, `iam:PassRole`, `cloudwatch:ListMetrics`. | `aws sts get-caller-identity` |\n\n## Deployment procedure (apply in order)\n\n### Step 1: Create the app monitor\n\nThe app monitor provisions the telemetry sink. Provide a globally\nunique name (within the account-Region), the domain allow-list, and\nthe sample rate:\n\nApp-monitor creation CLI (name, AllowList, SessionSampleRate, Telemetries, EnableXRay, cw-log-group) moved verbatim to [references\u002Fdeployment-cli-commands.md](references\u002Fdeployment-cli-commands.md).\nLoad it when emitting the create-app-monitor command.\n\nThe app monitor name (`checkout-web-prod`) appears in the ARN and\nevery metric dimension. The `AllowList` enforces which origins\n(scheme + host + port) can send `PutRumEvents`. **Every origin\nmust be listed explicitly** — RUM does not support wildcard\nsubdomains in the allow-list.\n\n`SessionSampleRate` is a 0.0-1.0 fraction of sessions retained.\nUse `1.0` for low-traffic sites, `0.1` (10%) for sites above\n~1M daily sessions.\n\n`Telemetries` declares which telemetry types the SDK captures:\n- `errors` — uncaught JS exceptions, unhandled promise rejections.\n- `performance` — Web Vitals (LCP, FID, CLS, INP, TTFB), navigation\n  and resource timing.\n- `http` — fetch and XHR request\u002Fresponse timing and status.\n\n`EnableXRay: true` instructs the SDK to attach a client-side trace\nID to each event batch and emit a `PutTraceSegments` call for the\nclient-side segment.\n\n### Step 2: Create the anonymous guest IAM role\n\nThe SDK needs credentials with `rum:PutRumEvents` on the app\nmonitor. For browser-based apps, use an anonymous guest role\n(Cognito identity pool) — never embed long-lived AWS keys in JS.\n\nGuest-role creation CLI (Cognito-federated trust policy with aud\u002Famr conditions, create-role, PutRumEvents permission scoped to the app monitor ARN) moved verbatim to [references\u002Fdeployment-cli-commands.md](references\u002Fdeployment-cli-commands.md).\nLoad it when emitting the guest-role commands.\n\nResource-lock the policy to **this** app monitor ARN. A wildcard\n(`rum:PutRumEvents: *`) lets any malicious script send events to\nany app monitor in the account.\n\n### Step 3: Inject the RUM JavaScript SDK (CDN pattern)\n\nThe CDN pattern loads the SDK via a script tag and configures it\nwith the app monitor identity, guest role, and cookie domain:\n\nCDN injection snippet (cwr init config + SRI-pinned async loader) moved verbatim to [references\u002Fdeployment-cli-commands.md](references\u002Fdeployment-cli-commands.md).\nLoad it when wiring the CDN script tag; the annotated config attributes stay below.\n\nKey config attributes: `applicationId` (must EXACTLY match the app\nmonitor name), `guestRoleArn` + `identityPoolId` (guest role from\nStep 2), `telemetries` (must match the app monitor's `Telemetries`\nfield), `sessionSampleRate`, and `cookieDomain` (see Step 4).\n\n### Step 3b: Inject the RUM SDK (npm pattern)\n\nFor SPA frameworks (React, Vue, Angular, Next.js), install\n`aws-rum-web` via npm and construct the client:\n\nnpm injection snippet (AwsRum constructor + AwsRumConfig for SPA frameworks) moved verbatim to [references\u002Fdeployment-cli-commands.md](references\u002Fdeployment-cli-commands.md).\nLoad it when wiring React\u002FVue\u002FAngular\u002FNext.js integration.\n\nThe npm pattern is required for tree-shaking, build-time bundling,\nor typed event records. The CDN pattern is fine for static\nmarketing sites and POC deploys.\n\n### Step 4: Configure the cookie domain\n\nRUM stores a session cookie (`cwr_s`) used to stitch page views\ninto a single session across reloads and navigation. The\n`cookieDomain` controls which subdomains see the cookie:\n\n```typescript\ncookieDomain: '.example.com'  \u002F\u002F checkout.example.com, app.example.com, www.example.com all share\ncookieDomain: 'checkout.example.com'  \u002F\u002F only this exact subdomain\n```\n\n**NEVER** set `cookieDomain: '.com'` or any TLD — the cookie leaks\nto every `.com` site the user visits, breaking the session\ndefinition and risking leakage into other AWS customers' RUM\ndashboards if they share the browser.\n\nOmit `cookieDomain` to default to the current host only. This is\ncorrect for single-subdomain apps; multi-subdomain apps must set\nthe domain explicitly.\n\n### Step 5: Configure X-Ray trace correlation\n\nX-Ray correlation deep dive (client trace-ID attach, X-Amzn-Trace-Id header propagation format, server SDK join, >0% sampling-rule requirement) moved verbatim to [references\u002Fcustom-events-and-correlation-guide.md](references\u002Fcustom-events-and-correlation-guide.md).\nLoad it when enabling client-to-server trace correlation.\n\n### Step 6: Record custom events\n\nCustom-event recording snippets (cwr recordEvent and awsRum.recordEvent, snake_case type rule, 64 KB data limit) moved verbatim to [references\u002Fcustom-events-and-correlation-guide.md](references\u002Fcustom-events-and-correlation-guide.md).\nLoad it when recording funnel or business events.\n\n### Step 7: Configure RUM custom metrics\n\nCustom-metric extraction CLI (put-metrics-destination, value-key JSON path, ApplicationName + RumEventName dimensions, 100-definition limit) moved verbatim to [references\u002Fcustom-events-and-correlation-guide.md](references\u002Fcustom-events-and-correlation-guide.md).\nLoad it when turning custom events into CloudWatch metrics.\n\n### Step 8: Wire Application Signals client-side correlation\n\nWhen Application Signals is enabled on the server workload AND the\nRUM app monitor's domain matches the server-side service's\n`AWS_SERVICE_NAME`-derived endpoint, CloudWatch auto-joins the\nclient and server:\n\n- The `AWS\u002FApplicationSignalsClient` namespace populates with\n  `ClientURL` + `ServiceName` dimensions.\n- The service map shows a client node (browser) connected to the\n  server service node.\n\nTo verify correlation:\n\n```bash\naws cloudwatch list-metrics --namespace AWS\u002FApplicationSignalsClient \\\n  --dimensions Name=ServiceName,Value=payments-api --region us-east-1\n```\n\nIf the namespace stays empty, the cause is almost always:\n1. Application Signals not enabled on the server workload (use the\n   `cloudwatch-application-signals-deployer` skill).\n2. Server-side sampling rate too low (raise X-Ray Default rule).\n3. RUM app monitor domain mismatch with the server endpoint.\n\n### Step 9: Verify telemetry is flowing\n\nTelemetry-flow verification commands (list-metrics AWS\u002FRUM, describe-log-streams, xray get-trace-summaries) and the three silent-drop causes moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad it after deployment to confirm data is arriving.\n\n### Step 10: Tag, alarm, and visualize\n\nTagging and alarm CLI (tag-resource, put-metric-alarm on AWS\u002FRUM Errors with SNS action) moved verbatim to [references\u002Fdeployment-cli-commands.md](references\u002Fdeployment-cli-commands.md).\nLoad it when emitting the tagging and alarm setup commands.\n\nOpen the CloudWatch console → RUM → Application list to confirm\nthe application shows session count, page load times, and Web\nVitals (LCP, FID, CLS, INP) populated.\n\n## Web client matrix\n\n| Web client | Integration | Notes |\n|---|---|---|\n| Static HTML | CDN script tag | Easiest; fine for marketing sites |\n| React SPA | npm import + `AwsRum` constructor | Wrap in error boundary; record page views on route change |\n| Vue SPA | npm import | Record in `router.afterEach` |\n| Angular SPA | npm import | Register as an Angular provider |\n| Next.js (SSR) | npm import, guard against SSR | Use `if (typeof window !== 'undefined')` |\n| SvelteKit | npm import | Conditionally init in `onMount` |\n| Mobile webview | CDN or npm | Configure cookie domain to match the wrapping site |\n\n## Edge-case handling\n\nEdge-case catalog (scheme+host+port origin matching, guest-role AccessDenied, X-Ray correlation failures, rejected event types, cookie-domain mismatch, ad blockers, empty Application Signals, multi-Region) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it when the dashboard stays empty or events are rejected.\n\n## Recent AWS features (2024-2026)\n\nRecent AWS features 2024-2026 (Application Signals correlation, custom metrics via put-metrics-destination, Web Vitals INP GA, SDK version pinning, client-side SLOs, strict cookie-domain validation, 3 MB event batching, strict CORS matching) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it when advising on 2024-2026 RUM capabilities.\n\n## NEVER (top 5 — full list in references)\n\n- NEVER embed long-lived AWS access keys in JavaScript. The SDK\n  MUST authenticate via a Cognito identity pool guest role or a\n  web-identity role. Embedded keys leak to every site visitor.\n- NEVER set `cookieDomain` to a public suffix (`.com`, `.app`,\n  `.io`). The cookie leaks across unrelated sites and corrupts\n  session counts. Use the specific subdomain or the parent\n  organizational domain only.\n- NEVER omit a domain from `AllowedOrigins`. RUM silently drops\n  events from origins not on the list; the dashboard shows zero\n  sessions and there is no error in the console.\n- NEVER set the server-side X-Ray sampling rule to 0% when X-Ray\n  correlation is enabled. Client traces land, server traces do\n  not, and the correlation is lost. Use the default 5% rule or\n  higher.\n- NEVER recreate the app monitor with a new name. The name is\n  embedded in every metric dimension, every alarm, and the IAM\n  resource ARN. Renaming breaks every downstream alarm and\n  dashboard. Update in-place or migrate deliberately.\n\n## Expert heuristic — enabling RUM and choosing config\n\nConfig-choice heuristics (sample rate vs PutRumEvents cost, cookie-domain default, declare-all-telemetries-at-init, snake_case event types, guest-role ARN resource lock, X-Ray header propagation, adblocker under-count) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it when tuning sample rate, cookie domain, or telemetry selection.\n\n## Pre-flight safety checks (run before any enablement CLI)\n\nPre-flight safety checks (region availability, guest-role policy, X-Ray Default sampling rule >0, Application Signals enabled, domain allow-list, cookie-domain match) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad it before emitting any enablement CLI.\n\n## Output format — MANDATORY literal labels\n\nWhen invoked with a CloudWatch RUM enablement request, your\nENTIRE response MUST be the checklist block defined in\n\"STRICT output contract\" earlier in this document. The labels are\n**case-sensitive all-caps keywords** — write them EXACTLY as\nshown. Do NOT write a preamble. Start with `RUM_APP:` and\nstop after the `VERIFICATION_COMMANDS:` block. The five mandatory\nlabels in order are: `RUM_APP:`, `VERDICT:`, `CHECKLIST:`,\n`JS_SNIPPET:`, `VERIFICATION_COMMANDS:`. The full worked example\nshape (READY_TO_DEPLOY and PREREQUISITES_MISSING) lives in the\n\"STRICT output contract\" \u002F \"Perfect example\" subsection above —\ncopy that shape exactly and resolve every placeholder to a real\nvalue before emitting.\n\n**Status marker semantics:**\n- `[✓]` — applied and verified.\n- `[✗]` — NOT applied or misconfigured. Cite the gap.\n- `[OPTIONAL]` — recommended but not required for the workload\n  type.\n- `[INPUT NEEDED]` — prerequisite value missing; operator must\n  provide.\n\n**PREREQUISITES_MISSING verdict:** if any REQUIRED prerequisite\nis missing (domain not in `AllowedOrigins`, guest role ARN, X-Ray\nsampling rule when correlation enabled), the verdict is\n`PREREQUISITES_MISSING` with each gap listed in CHECKLIST as `[✗]`\nand `JS_SNIPPET:` withheld until every BLOCKED row is resolved.\n\n## References (load on demand)\n\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — edge-case catalog, config-choice heuristics, and 2024-2026 feature changes moved from SKILL.md\n- [references\u002Fdeployment-cli-commands.md](references\u002Fdeployment-cli-commands.md) — full CLI sequence; app-monitor, guest-role, SDK-injection, and alarm CLI moved from SKILL.md\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — telemetry-flow verification and pre-flight safety checks moved from SKILL.md\n- [references\u002Fcustom-events-and-correlation-guide.md](references\u002Fcustom-events-and-correlation-guide.md) — custom events, custom metrics, X-Ray correlation internals moved from SKILL.md\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — PREREQUISITES_MISSING worked example moved from SKILL.md; the primary READY_TO_DEPLOY example stays in SKILL.md\n\n## Domain\n\nAWS CloudOps \u002F Client-Side Observability Provisioning.\n\n## AWS documentation\n\n- **CloudWatch RUM User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch-RUM.html\n- **Creating a RUM app monitor** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch-RUM-create-appmon.html\n- **RUM JavaScript SDK** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch-RUM-sdk.html\n- **RUM custom metrics** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch-RUM-metrics.html\n- **RUM X-Ray integration** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch-RUM-Xray.html\n- **RUM Application Signals correlation** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch-Application-Signals.html\n- **aws-rum-web npm package** — https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Faws-rum-web\n- **AWS CLI rum reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Frum\u002F\n- **AWS::RUM::AppMonitor CloudFormation** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Faws-resource-rum-appmonitor.html\n\n## References\n\n- `references\u002Fdeployment-cli-commands.md` — full copy-pasteable\n  CLI command sequence for all 10 enablement steps, including\n  Terraform equivalents, CloudFormation snippets, and per-framework\n  (React, Vue, Angular, Next.js) integration code.\n\n- `references\u002Fcustom-events-and-correlation-guide.md` — deep\n  reference on custom event schemas, custom metric extraction,\n  X-Ray header propagation, Application Signals client correlation\n  internals, full NEVER list, and edge-case handling.\n","# CloudWatch RUM Deployer\n\nAn AWS CloudOps agent skill that provisions CloudWatch RUM (Real\nUser Monitoring) app monitors with the correct production defaults\n— domain allow-list, sample rate, cookie domain, telemetry\nselection (errors, performance, HTTP), X-Ray trace correlation,\ncustom events, custom metrics, and Application Signals client-side\ncorrelation. Emits a READY_TO_DEPLOY checklist verifying every\nprerequisite.\n\n## Quick navigation\n\n| Need | Section |\n|---|---|\n| What MUST be in the response | \"STRICT output contract\" |\n| Why the provisioning order matters | \"Reasoning framework\" |\n| What to verify before enabling | \"Prerequisites\" |\n| The ordered provisioning steps | \"Deployment procedure\" |\n| Common silent-failure pitfalls | \"NEVER\" |\n| SDK integration, cookie domain, custom events | \"Deployment procedure\" Steps 3-7 |\n| X-Ray and Application Signals correlation | \"Deployment procedure\" Steps 5-9 |\n| Web client matrix (CDN \u002F npm \u002F React \u002F Vue) | \"Web client matrix\" |\n| 2024-2026 feature changes | \"Recent AWS features\" |\n| Deep CLI sequences | `references\u002Fdeployment-cli-commands.md` |\n| Custom events, metrics, X-Ray correlation | `references\u002Fcustom-events-and-correlation-guide.md` |\n\n## STRICT output contract\n\nWhen this skill is invoked with a CloudWatch RUM enablement request\n(domain, application name, sample rate, integration type, or a\npartial existing configuration), the agent MUST respond with the\nREADY_TO_DEPLOY checklist using the literal all-caps labels\n`RUM_APP:`, `VERDICT:`, `CHECKLIST:`, `JS_SNIPPET:`, and\n`VERIFICATION_COMMANDS:`. Do NOT preface the checklist with prose,\nheadings, or disclaimers — emit the block as the first lines of the\nresponse.\n\n### Required output structure\n\n1. `RUM_APP: \u003Capplication-name>` — the web app being monitored\n   (matches the `--name` \u002F `applicationId` on the app monitor).\n2. `VERDICT: READY_TO_DEPLOY` OR `VERDICT: PREREQUISITES_MISSING`.\n3. `CHECKLIST:` followed by indented rows. Every row uses a status\n   marker (`[✓]`, `[✗]`, `[OPTIONAL]`, `[INPUT NEEDED]`) and shows\n   `current: \u003Cvalue>  recommended: \u003Cvalue>` so the operator can see\n   the app monitor config at a glance: domain, sampling rate,\n   telemetries (errors \u002F performance \u002F http), cookie domain, guest\n   role ARN, X-Ray toggle, Application Signals correlation.\n4. `JS_SNIPPET:` followed by a fenced code block containing the\n   copy-pasteable CDN `\u003Cscript>` tag (or npm import) with every\n   placeholder resolved to real values from CHECKLIST. This is what\n   the operator inserts into the page template.\n5. `VERIFICATION_COMMANDS:` followed by indented `aws ...` commands.\n\n### FORBIDDEN output patterns\n\n1. **NEVER start with prose preamble** (\"Let me analyze…\", \"Looking\n   at your setup…\"). The first non-empty line MUST be `RUM_APP:`. No\n   greetings, no headings, no disclaimers before it.\n\n2. **NEVER use markdown variants of the labels.** Write `VERDICT:`,\n   not `**VERDICT:**`, `### Verdict`, `Verdict =`, or `` `VERDICT` ``.\n   The labels are parser-anchored; bold or heading variants break\n   downstream automation.\n\n3. **NEVER swap verdict tokens.** Exactly `READY_TO_DEPLOY` or\n   `PREREQUISITES_MISSING`. Not \"ready\", \"missing\", \"BLOCKED\", \"OK\",\n   \"PARTIAL\", or any invented token.\n\n4. **NEVER omit `JS_SNIPPET:` or emit it with placeholder values.**\n   The snippet MUST show real values for `applicationId`,\n   `guestRoleArn`, `identityPoolId`, `cookieDomain`, and\n   `sessionSampleRate` resolved from CHECKLIST. A snippet with\n   `\u003Cyour-app-monitor-name>` is a FORBIDDEN placeholder leak.\n\n5. **NEVER omit `VERIFICATION_COMMANDS:`** — include even when\n   PREREQUISITES_MISSING; the operator needs commands to verify gaps.\n\n6. **NEVER append extra sections after `VERIFICATION_COMMANDS:`.**\n   The checklist block IS the entire response. Put deeper explanation\n   in `references\u002F`.\n\n7. **NEVER invent status markers.** Use only `[✓]`, `[✗]`,\n   `[OPTIONAL]`, `[INPUT NEEDED]`. Do not emit `[?]`, `[!]`, `[WARN]`,\n   or emoji.\n\n8. **NEVER set `cookieDomain` to a public suffix** (`.com`, `.app`,\n   `.io`, `.dev`) in JS_SNIPPET or CHECKLIST — emit `[✗]` and cite\n   the leak risk if the operator requested one.\n\n### Perfect example — READY_TO_DEPLOY with XSS sanitization + X-Ray tracing\n\nEvery field below has real values. Copy this shape exactly and swap\nin the operator's values. The CHECKLIST rows surface the app monitor\nconfig (domain, sampling rate, telemetries, cookie domain, guest\nrole, X-Ray, Application Signals) as `current:` vs `recommended:`\npairs. The JS_SNIPPET is the copy-pasteable CDN script tag with XSS\nsanitization (SRI `integrity` attribute + `crossorigin=\"anonymous\"`)\nand `enableXRay:true` for client-to-server trace correlation.\n\n```text\nRUM_APP: checkout-web\nVERDICT: READY_TO_DEPLOY\nCHECKLIST:\n  [✓]      App monitor name — checkout-web-prod (arn:aws:rum:us-east-1:111122223333:appmonitor\u002Fcheckout-web-prod)\n  [✓]      Domain (AllowedOrigins) — https:\u002F\u002Fcheckout.example.com  (scheme+host+port; wildcard NOT supported)\n  [✓]      Sampling rate — current: 1.0   recommended: 1.0 (raise traffic \u003C100k sessions\u002Fday; drop to 0.1 above 1M)\n  [✓]      Cookie domain — current: .example.com   recommended: .example.com (NOT .com — TLD leak)\n  [✓]      Telemetries — current: errors, performance, http   recommended: errors, performance, http (declare ALL at init)\n  [✓]      Guest role — arn:aws:iam::111122223333:role\u002Fcheckout-web-rum-guest (rum:PutRumEvents scoped to app monitor ARN)\n  [✓]      Identity pool — us-east-1:abcd1234-efgh-5678 (Cognito unauth pool backing the guest role)\n  [✓]      X-Ray tracing — current: enableXRay=true   recommended: true (server sampling rule FixedRate 0.05 verified > 0)\n  [✓]      Application Signals correlation — AWS\u002FApplicationSignalsClient namespace (auto-populated when server enabled)\n  [✓]      XSS sanitization — CDN script loaded with SRI integrity=\"sha384-\u003Chash>\" + crossorigin=\"anonymous\"; no inline eval\n  [✓]      Custom metrics — AWS\u002FRUM, dimensions ApplicationName=checkout-web-prod + RumEventName (up to 100 definitions)\n  [✓]      CloudWatch metrics emitted — AWS\u002FRUM: Errors, JsErrorCount, SessionCount, WebVitalsLCP, WebVitalsINP, Http4xx, Http5xx\n  [OPTIONAL] Session sampling override — 0.05 for traffic > 1M daily sessions\n  [OPTIONAL] Sub-resource timing — PerformanceNavigationTiming details enabled\nJS_SNIPPET:\n  \u003C!-- Insert before \u003C\u002Fhead> on every page template. integrity attr =\n       Subresource Integrity (SRI); prevents CDN-tampered XSS. crossorigin\n       required for SRI enforcement. Pin the SDK version; never auto-upgrade. -->\n  \u003Cscript>\n    (function(n,i,v,r,s,c,x,z,h){var p=function(){var a=\n    Array.prototype.slice.call(arguments);return new (Function.\n    prototype.bind.apply(cwr,(a).concat(p.args)))},q=p.args=\n    Array.prototype.slice.call(arguments);(cwr=a=cwr||function(){\n    (cwr.q=cwr.q||[]).push(arguments)}).l=+new Date;cwr('init',\n    {clientConfig:{applicationId:'checkout-web-prod',\n    region:'us-east-1',version:'1.0.0',\n    guestRoleArn:'arn:aws:iam::111122223333:role\u002Fcheckout-web-rum-guest',\n    identityPoolId:'us-east-1:abcd1234-efgh-5678'},\n    telemetries:['errors','performance','http'],\n    sessionSampleRate:1.0,\n    sessionEventUrl:'https:\u002F\u002Fdataplane.rum.us-east-1.amazonaws.com',\n    cookieDomain:'.example.com',\n    enableXRay:true,\n    allowCookies:true,\n    disableXsrfCookie:false});cwr('load')})()\n  \u003C\u002Fscript>\n  \u003Cscript async src=\"https:\u002F\u002Fclient.rum.us-east-1.amazonaws.com\u002F1.18.0\u002Faws-rum-web.min.js\"\n          integrity=\"sha384-\u003Ccompute-sha384-of-the-file-and-insert-here>\"\n          crossorigin=\"anonymous\">\u003C\u002Fscript>\nVERIFICATION_COMMANDS:\n  aws rum list-app-monitors --region us-east-1\n  aws rum get-app-monitor --name checkout-web-prod --region us-east-1\n  aws cloudwatch list-metrics --namespace AWS\u002FRUM --dimensions Name=ApplicationName,Value=checkout-web-prod --region us-east-1\n  aws cloudwatch list-metrics --namespace AWS\u002FApplicationSignalsClient --region us-east-1\n  aws xray get-sampling-rules --region us-east-1\n  aws iam list-attached-role-policies --role-name checkout-web-rum-guest\n  aws logs describe-log-streams --log-group-name \u002Faws\u002Frum\u002Fcheckout-web-prod --limit 1 --order-by LastEventTime --descending --region us-east-1\n```\n\n### Perfect example — PREREQUISITES_MISSING\n\nWorked example — PREREQUISITES_MISSING (blocked cookie domain, missing guest role, zero X-Ray sampling, withheld JS_SNIPPET) moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nLoad it when any required prerequisite fails; the primary READY_TO_DEPLOY example stays above.\n\n## Reasoning framework (why the provisioning order matters)\n\nEnabling RUM has **dependency and ordering constraints** that make\nthe procedure non-trivial. Skipping or misordering causes silent\ngaps — the dashboard stays empty, sessions drop, or X-Ray traces\nnever link to client-side events:\n\n1. **App monitor FIRST** — `rum create-app-monitor` provisions the\n   telemetry sink and emits the application identity used by every\n   downstream SDK config and metric dimension. The monitor name is\n   embedded in the IAM resource ARN; recreating it breaks every\n   embedded snippet.\n2. **Domain allow-list** — RUM rejects `PutRumEvents` whose\n   `pageDomain` is not in the app monitor's `AppMonitorConfiguration.\n   AllowedOrigins`. A misconfigured allow-list silently drops all\n   telemetry; the dashboard shows zero sessions.\n3. **IAM guest role is mandatory** — the SDK authenticates via an\n   anonymous guest role (or authenticated Cognito identity) holding\n   `rum:PutRumEvents`. Without it, the browser console fills with\n   `AccessDenied` and no events land.\n4. **Cookie domain must match the deployment** — the cookie domain\n   drives session stitching across subdomains. An overly broad\n   cookie domain (`.com`) leaks sessions across unrelated sites; a\n   missing cookie domain breaks cross-subdomain session continuity.\n5. **Telemetries declared at init** — errors, performance, http\n   telemetries are gated by the `cwr('init', ...)` config. Adding\n   telemetry later requires a code change; declare all three at\n   init unless there is a deliberate reason to omit one.\n6. **X-Ray tracing requires sampling** — RUM correlates to X-Ray\n   by sending the client-side trace ID with `PutRumEvents`. The\n   server-side segment must be sampled by an X-Ray sampling rule\n   that includes the same trace ID. A 0% sampling rule on the\n   server blanks the correlation.\n7. **Application Signals correlation is auto-derived** — when both\n   Application Signals (server) and RUM (client) are enabled for\n   the same service, CloudWatch auto-populates the\n   `AWS\u002FApplicationSignalsClient` namespace. RUM does NOT merge\n   across Regions; plan per-Region app monitors.\n\n## Prerequisites (verify before deployment)\n\n| Prerequisite | Why it matters | How to verify |\n|---|---|---|\n| **AWS account opt-in for CloudWatch RUM** | RUM is Region-scoped and must be available. | `aws rum list-app-monitors` (no error = available) |\n| **Domain ownership** | The app monitor `AllowedOrigins` must enumerate every origin (scheme + host + port) the web app is served from. | Confirm with frontend team \u002F DNS records |\n| **Anonymous guest IAM role (or Cognito identity pool)** | The SDK must call `rum:PutRumEvents` from the browser; guest role holds the permission. | `aws iam list-attached-role-policies --role-name \u003Cguest-role>` |\n| **CORS configured** | RUM API requires CORS from the allowed origins. `AllowedOrigins` on the app monitor drives CORS validation. | Implicit via app monitor config |\n| **X-Ray tracing enabled** (optional) | Required for client-to-server trace correlation. | `aws xray get-encryption-config` |\n| **X-Ray sampling rule** (optional) | Default sampling rule must be > 0% for trace correlation. | `aws xray get-sampling-rules` (Default FixedRate > 0) |\n| **Application Signals enabled on the server** (optional) | Required for client\u002Fserver service-map correlation. | `aws application-signals list-services` |\n| **IAM permissions for caller** | Caller needs `rum:CreateAppMonitor`, `rum:GetAppMonitor`, `iam:PassRole`, `cloudwatch:ListMetrics`. | `aws sts get-caller-identity` |\n\n## Deployment procedure (apply in order)\n\n### Step 1: Create the app monitor\n\nThe app monitor provisions the telemetry sink. Provide a globally\nunique name (within the account-Region), the domain allow-list, and\nthe sample rate:\n\nApp-monitor creation CLI (name, AllowList, SessionSampleRate, Telemetries, EnableXRay, cw-log-group) moved verbatim to [references\u002Fdeployment-cli-commands.md](references\u002Fdeployment-cli-commands.md).\nLoad it when emitting the create-app-monitor command.\n\nThe app monitor name (`checkout-web-prod`) appears in the ARN and\nevery metric dimension. The `AllowList` enforces which origins\n(scheme + host + port) can send `PutRumEvents`. **Every origin\nmust be listed explicitly** — RUM does not support wildcard\nsubdomains in the allow-list.\n\n`SessionSampleRate` is a 0.0-1.0 fraction of sessions retained.\nUse `1.0` for low-traffic sites, `0.1` (10%) for sites above\n~1M daily sessions.\n\n`Telemetries` declares which telemetry types the SDK captures:\n- `errors` — uncaught JS exceptions, unhandled promise rejections.\n- `performance` — Web Vitals (LCP, FID, CLS, INP, TTFB), navigation\n  and resource timing.\n- `http` — fetch and XHR request\u002Fresponse timing and status.\n\n`EnableXRay: true` instructs the SDK to attach a client-side trace\nID to each event batch and emit a `PutTraceSegments` call for the\nclient-side segment.\n\n### Step 2: Create the anonymous guest IAM role\n\nThe SDK needs credentials with `rum:PutRumEvents` on the app\nmonitor. For browser-based apps, use an anonymous guest role\n(Cognito identity pool) — never embed long-lived AWS keys in JS.\n\nGuest-role creation CLI (Cognito-federated trust policy with aud\u002Famr conditions, create-role, PutRumEvents permission scoped to the app monitor ARN) moved verbatim to [references\u002Fdeployment-cli-commands.md](references\u002Fdeployment-cli-commands.md).\nLoad it when emitting the guest-role commands.\n\nResource-lock the policy to **this** app monitor ARN. A wildcard\n(`rum:PutRumEvents: *`) lets any malicious script send events to\nany app monitor in the account.\n\n### Step 3: Inject the RUM JavaScript SDK (CDN pattern)\n\nThe CDN pattern loads the SDK via a script tag and configures it\nwith the app monitor identity, guest role, and cookie domain:\n\nCDN injection snippet (cwr init config + SRI-pinned async loader) moved verbatim to [references\u002Fdeployment-cli-commands.md](references\u002Fdeployment-cli-commands.md).\nLoad it when wiring the CDN script tag; the annotated config attributes stay below.\n\nKey config attributes: `applicationId` (must EXACTLY match the app\nmonitor name), `guestRoleArn` + `identityPoolId` (guest role from\nStep 2), `telemetries` (must match the app monitor's `Telemetries`\nfield), `sessionSampleRate`, and `cookieDomain` (see Step 4).\n\n### Step 3b: Inject the RUM SDK (npm pattern)\n\nFor SPA frameworks (React, Vue, Angular, Next.js), install\n`aws-rum-web` via npm and construct the client:\n\nnpm injection snippet (AwsRum constructor + AwsRumConfig for SPA frameworks) moved verbatim to [references\u002Fdeployment-cli-commands.md](references\u002Fdeployment-cli-commands.md).\nLoad it when wiring React\u002FVue\u002FAngular\u002FNext.js integration.\n\nThe npm pattern is required for tree-shaking, build-time bundling,\nor typed event records. The CDN pattern is fine for static\nmarketing sites and POC deploys.\n\n### Step 4: Configure the cookie domain\n\nRUM stores a session cookie (`cwr_s`) used to stitch page views\ninto a single session across reloads and navigation. The\n`cookieDomain` controls which subdomains see the cookie:\n\n```typescript\ncookieDomain: '.example.com'  \u002F\u002F checkout.example.com, app.example.com, www.example.com all share\ncookieDomain: 'checkout.example.com'  \u002F\u002F only this exact subdomain\n```\n\n**NEVER** set `cookieDomain: '.com'` or any TLD — the cookie leaks\nto every `.com` site the user visits, breaking the session\ndefinition and risking leakage into other AWS customers' RUM\ndashboards if they share the browser.\n\nOmit `cookieDomain` to default to the current host only. This is\ncorrect for single-subdomain apps; multi-subdomain apps must set\nthe domain explicitly.\n\n### Step 5: Configure X-Ray trace correlation\n\nX-Ray correlation deep dive (client trace-ID attach, X-Amzn-Trace-Id header propagation format, server SDK join, >0% sampling-rule requirement) moved verbatim to [references\u002Fcustom-events-and-correlation-guide.md](references\u002Fcustom-events-and-correlation-guide.md).\nLoad it when enabling client-to-server trace correlation.\n\n### Step 6: Record custom events\n\nCustom-event recording snippets (cwr recordEvent and awsRum.recordEvent, snake_case type rule, 64 KB data limit) moved verbatim to [references\u002Fcustom-events-and-correlation-guide.md](references\u002Fcustom-events-and-correlation-guide.md).\nLoad it when recording funnel or business events.\n\n### Step 7: Configure RUM custom metrics\n\nCustom-metric extraction CLI (put-metrics-destination, value-key JSON path, ApplicationName + RumEventName dimensions, 100-definition limit) moved verbatim to [references\u002Fcustom-events-and-correlation-guide.md](references\u002Fcustom-events-and-correlation-guide.md).\nLoad it when turning custom events into CloudWatch metrics.\n\n### Step 8: Wire Application Signals client-side correlation\n\nWhen Application Signals is enabled on the server workload AND the\nRUM app monitor's domain matches the server-side service's\n`AWS_SERVICE_NAME`-derived endpoint, CloudWatch auto-joins the\nclient and server:\n\n- The `AWS\u002FApplicationSignalsClient` namespace populates with\n  `ClientURL` + `ServiceName` dimensions.\n- The service map shows a client node (browser) connected to the\n  server service node.\n\nTo verify correlation:\n\n```bash\naws cloudwatch list-metrics --namespace AWS\u002FApplicationSignalsClient \\\n  --dimensions Name=ServiceName,Value=payments-api --region us-east-1\n```\n\nIf the namespace stays empty, the cause is almost always:\n1. Application Signals not enabled on the server workload (use the\n   `cloudwatch-application-signals-deployer` skill).\n2. Server-side sampling rate too low (raise X-Ray Default rule).\n3. RUM app monitor domain mismatch with the server endpoint.\n\n### Step 9: Verify telemetry is flowing\n\nTelemetry-flow verification commands (list-metrics AWS\u002FRUM, describe-log-streams, xray get-trace-summaries) and the three silent-drop causes moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad it after deployment to confirm data is arriving.\n\n### Step 10: Tag, alarm, and visualize\n\nTagging and alarm CLI (tag-resource, put-metric-alarm on AWS\u002FRUM Errors with SNS action) moved verbatim to [references\u002Fdeployment-cli-commands.md](references\u002Fdeployment-cli-commands.md).\nLoad it when emitting the tagging and alarm setup commands.\n\nOpen the CloudWatch console → RUM → Application list to confirm\nthe application shows session count, page load times, and Web\nVitals (LCP, FID, CLS, INP) populated.\n\n## Web client matrix\n\n| Web client | Integration | Notes |\n|---|---|---|\n| Static HTML | CDN script tag | Easiest; fine for marketing sites |\n| React SPA | npm import + `AwsRum` constructor | Wrap in error boundary; record page views on route change |\n| Vue SPA | npm import | Record in `router.afterEach` |\n| Angular SPA | npm import | Register as an Angular provider |\n| Next.js (SSR) | npm import, guard against SSR | Use `if (typeof window !== 'undefined')` |\n| SvelteKit | npm import | Conditionally init in `onMount` |\n| Mobile webview | CDN or npm | Configure cookie domain to match the wrapping site |\n\n## Edge-case handling\n\nEdge-case catalog (scheme+host+port origin matching, guest-role AccessDenied, X-Ray correlation failures, rejected event types, cookie-domain mismatch, ad blockers, empty Application Signals, multi-Region) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it when the dashboard stays empty or events are rejected.\n\n## Recent AWS features (2024-2026)\n\nRecent AWS features 2024-2026 (Application Signals correlation, custom metrics via put-metrics-destination, Web Vitals INP GA, SDK version pinning, client-side SLOs, strict cookie-domain validation, 3 MB event batching, strict CORS matching) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it when advising on 2024-2026 RUM capabilities.\n\n## NEVER (top 5 — full list in references)\n\n- NEVER embed long-lived AWS access keys in JavaScript. The SDK\n  MUST authenticate via a Cognito identity pool guest role or a\n  web-identity role. Embedded keys leak to every site visitor.\n- NEVER set `cookieDomain` to a public suffix (`.com`, `.app`,\n  `.io`). The cookie leaks across unrelated sites and corrupts\n  session counts. Use the specific subdomain or the parent\n  organizational domain only.\n- NEVER omit a domain from `AllowedOrigins`. RUM silently drops\n  events from origins not on the list; the dashboard shows zero\n  sessions and there is no error in the console.\n- NEVER set the server-side X-Ray sampling rule to 0% when X-Ray\n  correlation is enabled. Client traces land, server traces do\n  not, and the correlation is lost. Use the default 5% rule or\n  higher.\n- NEVER recreate the app monitor with a new name. The name is\n  embedded in every metric dimension, every alarm, and the IAM\n  resource ARN. Renaming breaks every downstream alarm and\n  dashboard. Update in-place or migrate deliberately.\n\n## Expert heuristic — enabling RUM and choosing config\n\nConfig-choice heuristics (sample rate vs PutRumEvents cost, cookie-domain default, declare-all-telemetries-at-init, snake_case event types, guest-role ARN resource lock, X-Ray header propagation, adblocker under-count) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it when tuning sample rate, cookie domain, or telemetry selection.\n\n## Pre-flight safety checks (run before any enablement CLI)\n\nPre-flight safety checks (region availability, guest-role policy, X-Ray Default sampling rule >0, Application Signals enabled, domain allow-list, cookie-domain match) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad it before emitting any enablement CLI.\n\n## Output format — MANDATORY literal labels\n\nWhen invoked with a CloudWatch RUM enablement request, your\nENTIRE response MUST be the checklist block defined in\n\"STRICT output contract\" earlier in this document. The labels are\n**case-sensitive all-caps keywords** — write them EXACTLY as\nshown. Do NOT write a preamble. Start with `RUM_APP:` and\nstop after the `VERIFICATION_COMMANDS:` block. The five mandatory\nlabels in order are: `RUM_APP:`, `VERDICT:`, `CHECKLIST:`,\n`JS_SNIPPET:`, `VERIFICATION_COMMANDS:`. The full worked example\nshape (READY_TO_DEPLOY and PREREQUISITES_MISSING) lives in the\n\"STRICT output contract\" \u002F \"Perfect example\" subsection above —\ncopy that shape exactly and resolve every placeholder to a real\nvalue before emitting.\n\n**Status marker semantics:**\n- `[✓]` — applied and verified.\n- `[✗]` — NOT applied or misconfigured. Cite the gap.\n- `[OPTIONAL]` — recommended but not required for the workload\n  type.\n- `[INPUT NEEDED]` — prerequisite value missing; operator must\n  provide.\n\n**PREREQUISITES_MISSING verdict:** if any REQUIRED prerequisite\nis missing (domain not in `AllowedOrigins`, guest role ARN, X-Ray\nsampling rule when correlation enabled), the verdict is\n`PREREQUISITES_MISSING` with each gap listed in CHECKLIST as `[✗]`\nand `JS_SNIPPET:` withheld until every BLOCKED row is resolved.\n\n## References (load on demand)\n\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — edge-case catalog, config-choice heuristics, and 2024-2026 feature changes moved from SKILL.md\n- [references\u002Fdeployment-cli-commands.md](references\u002Fdeployment-cli-commands.md) — full CLI sequence; app-monitor, guest-role, SDK-injection, and alarm CLI moved from SKILL.md\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — telemetry-flow verification and pre-flight safety checks moved from SKILL.md\n- [references\u002Fcustom-events-and-correlation-guide.md](references\u002Fcustom-events-and-correlation-guide.md) — custom events, custom metrics, X-Ray correlation internals moved from SKILL.md\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — PREREQUISITES_MISSING worked example moved from SKILL.md; the primary READY_TO_DEPLOY example stays in SKILL.md\n\n## Domain\n\nAWS CloudOps \u002F Client-Side Observability Provisioning.\n\n## AWS documentation\n\n- **CloudWatch RUM User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch-RUM.html\n- **Creating a RUM app monitor** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch-RUM-create-appmon.html\n- **RUM JavaScript SDK** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch-RUM-sdk.html\n- **RUM custom metrics** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch-RUM-metrics.html\n- **RUM X-Ray integration** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch-RUM-Xray.html\n- **RUM Application Signals correlation** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch-Application-Signals.html\n- **aws-rum-web npm package** — https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Faws-rum-web\n- **AWS CLI rum reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Frum\u002F\n- **AWS::RUM::AppMonitor CloudFormation** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Faws-resource-rum-appmonitor.html\n\n## References\n\n- `references\u002Fdeployment-cli-commands.md` — full copy-pasteable\n  CLI command sequence for all 10 enablement steps, including\n  Terraform equivalents, CloudFormation snippets, and per-framework\n  (React, Vue, Angular, Next.js) integration code.\n\n- `references\u002Fcustom-events-and-correlation-guide.md` — deep\n  reference on custom event schemas, custom metric extraction,\n  X-Ray header propagation, Application Signals client correlation\n  internals, full NEVER list, and edge-case handling.\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":41},{"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,"supports_pipeline":38},"aws, cloudwatch, rum, observability, deploy, javascript-sdk, web-vitals","1","Jacky Chan — AWS Community Builder","aws-cloudops","Management","0.1.0","aws, cloudwatch, rum, real-user-monitoring, client-side-observability, cloudops, deploy, provisioning, javascript-sdk, web-vitals, cookie-domain, custom-events, custom-metrics, xray-correlation, application-signals","deploy","high","false","capability","Invoke when the user wants to create a CloudWatch RUM app monitor (domain, sample rate, cookie domain, telemetries), inject the CloudWatch RUM JavaScript SDK via CDN or npm, wire cookie domain, record custom events or custom metrics, enable X-Ray tracing integration for client-to-server trace correlation, or correlate client-side RUM sessions with server-side Application Signals service map. Do NOT invoke for plain CloudWatch dashboards or alarms (use cloudwatch-dashboard-deployer \u002F cloudwatch-alarm-operator), for X-Ray-only tracing without RUM (use xray-tracing-deployer), or for Application Signals enablement on server workloads (use cloudwatch-application-signals-deployer).","aws-orchestrator","true","READY_TO_DEPLOY | PREREQUISITES_MISSING","active","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). For live deployment: AWS CLI v2 with rum, cloudwatch, xray, iam, application-signals, and ssm access. Works with Terraform aws_cloudwatch_rum_app_monitor, CloudFormation AWS::RUM::AppMonitor, and the CloudWatch RUM JavaScript SDK (@\u002Faws-cdk\u002Faws-rum or aws-rum-web on npm).","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fcloudwatch-rum-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":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill cloudwatch-rum-deployer",{"tool":56,"command":57},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill cloudwatch-rum-deployer",{"tool":59,"command":60},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill cloudwatch-rum-deployer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-rum-deployer\u002FSKILL.md",true,[64,70,74,78,82,86,90,94,98,102,106,110,114,118,122,126,130,134,138,142],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",5778,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-rum-deployer\u002Feval\u002Ftest-cases.yaml",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"evals\u002Fbaselines\u002Frum-application-signals-correlation-gap.md",569,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-rum-deployer\u002Fevals\u002Fbaselines\u002Frum-application-signals-correlation-gap.md",{"path":75,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":76,"sourceHtmlUrl":77},"evals\u002Fbaselines\u002Frum-blocked-domain-missing-from-allowlist.md",606,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-rum-deployer\u002Fevals\u002Fbaselines\u002Frum-blocked-domain-missing-from-allowlist.md",{"path":79,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":80,"sourceHtmlUrl":81},"evals\u002Fbaselines\u002Frum-cdn-static-site-enable.md",740,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-rum-deployer\u002Fevals\u002Fbaselines\u002Frum-cdn-static-site-enable.md",{"path":83,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":84,"sourceHtmlUrl":85},"evals\u002Fbaselines\u002Frum-custom-events-and-custom-metrics.md",603,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-rum-deployer\u002Fevals\u002Fbaselines\u002Frum-custom-events-and-custom-metrics.md",{"path":87,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":88,"sourceHtmlUrl":89},"evals\u002Fbaselines\u002Frum-npm-spa-with-xray.md",570,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-rum-deployer\u002Fevals\u002Fbaselines\u002Frum-npm-spa-with-xray.md",{"path":91,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":92,"sourceHtmlUrl":93},"evals\u002Feval_config.yaml",1872,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-rum-deployer\u002Fevals\u002Feval_config.yaml",{"path":95,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":96,"sourceHtmlUrl":97},"evals\u002Fevals.json",4608,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-rum-deployer\u002Fevals\u002Fevals.json",{"path":99,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":100,"sourceHtmlUrl":101},"evals\u002Fprompts\u002Frum-application-signals-correlation-gap.md",1261,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-rum-deployer\u002Fevals\u002Fprompts\u002Frum-application-signals-correlation-gap.md",{"path":103,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":104,"sourceHtmlUrl":105},"evals\u002Fprompts\u002Frum-blocked-domain-missing-from-allowlist.md",1084,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-rum-deployer\u002Fevals\u002Fprompts\u002Frum-blocked-domain-missing-from-allowlist.md",{"path":107,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":108,"sourceHtmlUrl":109},"evals\u002Fprompts\u002Frum-cdn-static-site-enable.md",1062,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-rum-deployer\u002Fevals\u002Fprompts\u002Frum-cdn-static-site-enable.md",{"path":111,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":112,"sourceHtmlUrl":113},"evals\u002Fprompts\u002Frum-custom-events-and-custom-metrics.md",1222,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-rum-deployer\u002Fevals\u002Fprompts\u002Frum-custom-events-and-custom-metrics.md",{"path":115,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":116,"sourceHtmlUrl":117},"evals\u002Fprompts\u002Frum-npm-spa-with-xray.md",1193,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-rum-deployer\u002Fevals\u002Fprompts\u002Frum-npm-spa-with-xray.md",{"path":119,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":120,"sourceHtmlUrl":121},"example\u002FREADME.md",5122,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-rum-deployer\u002Fexample\u002FREADME.md",{"path":123,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":124,"sourceHtmlUrl":125},"references\u002Fadvanced-patterns.md",4997,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-rum-deployer\u002Freferences\u002Fadvanced-patterns.md",{"path":127,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":128,"sourceHtmlUrl":129},"references\u002Fcustom-events-and-correlation-guide.md",14061,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-rum-deployer\u002Freferences\u002Fcustom-events-and-correlation-guide.md",{"path":131,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":132,"sourceHtmlUrl":133},"references\u002Fdeployment-cli-commands.md",13770,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-rum-deployer\u002Freferences\u002Fdeployment-cli-commands.md",{"path":135,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":136,"sourceHtmlUrl":137},"references\u002Fdiagnostic-commands.md",1981,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-rum-deployer\u002Freferences\u002Fdiagnostic-commands.md",{"path":139,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":140,"sourceHtmlUrl":141},"references\u002Fworked-examples.md",1885,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-rum-deployer\u002Freferences\u002Fworked-examples.md",{"path":143,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":144,"sourceHtmlUrl":145},"skill.usf.yaml",4293,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-rum-deployer\u002Fskill.usf.yaml",[147,154,161,168,175,182],{"skillNo":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":153,"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":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":160,"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":162,"name":163,"nameZh":6,"description":164,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":165,"categories":166,"keywords":167,"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":169,"name":170,"nameZh":6,"description":171,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":172,"categories":173,"keywords":174,"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":176,"name":177,"nameZh":6,"description":178,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":179,"categories":180,"keywords":181,"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":183,"name":184,"nameZh":6,"description":185,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":186,"categories":187,"keywords":188,"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",[],[]]