[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A39WCS17PBRWMCQ89ZZDVF":3,"skill-same:01M7A39WCS17PBRWMCQ89ZZDVF":142},{"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},"01M7A39WCS17PBRWMCQ89ZZDVF","apigateway-websocket-deployer",null,"Provisions Amazon API Gateway WebSocket APIs with production defaults: route selection expression ($request.body.action), connection routes ($connect, $disconnect), custom routes, route responses (two-way communication), integration types (Lambda, AWS Service, Mock, HTTP), deployment and stage management, connection-level throttling, CloudWatch Logs (execution + access logs), WAF integration, Lambda custom authorizers, backend connection management (DynamoDB ConnectionId table), ping\u002Fpong keepalive, cross-account backend invocation, and 128 KB message size limit. Emits a READY_TO_DEPLOY checklist with verification commands. Use when creating a WebSocket API, configuring route selection, managing WebSocket connections, setting up Lambda authorizers for WebSocket, deploying a. Triggers: create websocket api, configure route selection expression, websocket connection management, lambda authorizer websocket, websocket deployment stage, bidirectional communication api gateway, websocket ping pong keepalive.","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\u002Fapigateway-websocket-deployer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: apigateway-websocket-deployer\ndescription: 'Provisions Amazon API Gateway WebSocket APIs with production defaults: route selection expression ($request.body.action), connection routes ($connect, $disconnect), custom routes, route responses (two-way communication), integration types (Lambda, AWS Service, Mock, HTTP), deployment and stage management, connection-level throttling, CloudWatch Logs (execution + access logs), WAF integration, Lambda custom authorizers, backend connection management (DynamoDB ConnectionId table), ping\u002Fpong keepalive, cross-account backend invocation, and 128 KB message size limit. Emits a READY_TO_DEPLOY checklist with verification commands. Use when creating a WebSocket API, configuring route selection, managing WebSocket connections, setting up Lambda authorizers for WebSocket, deploying a. Triggers: create websocket api, configure route selection expression, websocket connection management, lambda authorizer websocket, websocket deployment stage, bidirectional communication api gateway, websocket ping pong keepalive.'\nlicense: Apache-2.0\ncompatibility: 'Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). For live deployment: AWS CLI v2 with apigateway \u002F lambda \u002F dynamodb access. Works with Terraform aws_apigatewayv2_api \u002F aws_apigatewayv2_route \u002F aws_apigatewayv2_integration \u002F aws_apigatewayv2_deployment resources and CloudFormation AWS::ApiGatewayV2::Api templates.'\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: AppIntegration\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, api-gateway, websocket, cloudops, deploy, appintegration, provisioning, route-selection, connection-management, lambda-authorizer, waf, real-time\n  dependencies: aws-orchestrator\n  keywords: aws, api gateway, websocket, cloudops, deploy, provisioning, route selection, connection management, lambda authorizer, waf, bidirectional, real-time, dynamodb connections, ping pong\n  when_to_use: Invoke when the user wants to create an API Gateway WebSocket API, configure route selection expressions, manage WebSocket connections ($connect\u002F$disconnect), set up Lambda custom authorizers for WebSocket auth, deploy a WebSocket stage, implement bidirectional real-time communication, configure connection management with DynamoDB, or integrate WAF with a WebSocket API. Do NOT invoke for API Gateway REST APIs or HTTP APIs (use apigateway-rest-deployer or apigateway-http-api-deployer), for AppSync subscriptions (use appsync skills), or for IoT Core (use iot skills).\n---\n\n# API Gateway WebSocket Deployer\n\nAn AWS CloudOps agent skill that provisions Amazon API Gateway\nWebSocket APIs with correct defaults. The skill walks the route\nselection expression, connection routes ($connect\u002F$disconnect),\ncustom routes, route responses for bidirectional communication,\nintegration types (Lambda, AWS Service, Mock, HTTP), deployment and\nstage management, connection-level throttling, CloudWatch Logs, WAF\nintegration, Lambda custom authorizers, backend connection\nmanagement (DynamoDB ConnectionId table), ping\u002Fpong keepalive,\ncross-account backend invocation, and the 128 KB message size\nlimit, captures architecture decisions, explains why each default\nmatters, and emits a READY_TO_DEPLOY checklist with copy-pasteable\nverification commands.\n\n## Activation keywords\n\ncreate WebSocket API, configure route selection expression,\nWebSocket connection management, Lambda authorizer WebSocket,\nWebSocket deployment stage, bidirectional communication API Gateway,\nWebSocket ping pong keepalive, WebSocket $connect $disconnect,\nWebSocket DynamoDB connections.\n\n## STRICT output contract\n\nWhen this skill is invoked with a WebSocket-API-provisioning\nrequest (create a WebSocket API, configure routes, set up\nconnection management, deploy a stage, configure authorizers, or a\npartial configuration), the agent MUST respond with the\nREADY_TO_DEPLOY checklist defined in the \"Output format\" section\nusing the literal all-caps labels `WEBSOCKET_API:`, `VERDICT:`,\n`CHECKLIST:`, and `VERIFICATION_COMMANDS:`. Do NOT preface the\nchecklist with prose, headings, or disclaimers — emit the block as\nthe first lines of the response. This contract is what\nassertion-based evals and downstream provisioning pipelines rely\non; deviating from the literal labels breaks automation silently.\n\nIf any prerequisite is missing, the verdict is `PREREQUISITES_MISSING`\nwith a specific gap citation in the checklist (marked `[✗]`), and\n`READY_TO_DEPLOY` MUST NOT also appear.\n\n## Quick navigation\n\n| Section | When to read |\n|---|---|\n| Prerequisites | Always — verify before provisioning |\n| Step 1 — Route selection expression | Core routing model |\n| Step 2 — Connection routes ($connect, $disconnect) | Connection lifecycle |\n| Step 3 — Custom routes | Message routing |\n| Step 4 — Route responses (bidirectional) | Two-way communication |\n| Step 5 — Integration types | Backend connection |\n| Step 6 — Deployment and stage | Publishing the API |\n| Step 7 — Connection management (DynamoDB) | Stateful connections |\n| Step 8 — Custom authorizer (Lambda) | Authentication |\n| Step 9 — CloudWatch Logs | Observability |\n| Step 10 — WAF integration | Security |\n| Step 11 — Ping\u002Fpong keepalive | Connection health |\n| Step 12 — Cross-account backend invocation | Multi-account |\n| Step 13 — Message size limit (128 KB) | Limits |\n| Step 14 — Recent features | Latest |\n| NEVER do these things | Review before signing off |\n| Output format | The literal checklist template |\n| references\u002Froutes-and-integrations.md | Routes + integrations detail |\n| references\u002Fconnection-management-and-auth.md | Connections + auth detail |\n| references\u002Fadvanced-patterns.md | Heuristics + edge cases + recent features |\n| references\u002Ferror-handling.md | Symptom-to-cause remedies |\n\n## Mindset\n\n**One-line takeaway:** An API Gateway WebSocket API is a\nstateful, bidirectional, real-time communication endpoint. The\nroute selection expression evaluates each incoming message's body\nto determine which route (and integration) handles it. Connection\nmanagement is YOUR application's responsibility — store the\nConnectionId on $connect, use it to send messages back via the\nPostToConnection API, and delete it on $disconnect. Idle\nconnections auto-disconnect after 2 hours.\n\nFive misconceptions dominate WebSocket API misdesign at provisioning\ntime:\n\n- **\"The WebSocket API manages connections for me.\"** It does not.\n  API Gateway maintains the WebSocket connection at the transport\n  level, but the APPLICATION is responsible for tracking\n  ConnectionIds. On $connect, you must store the ConnectionId (e.g.,\n  in DynamoDB). To send a message to a client, you use the\n  ConnectionId with the PostToConnection API (via the\n  ApiGatewayManagementApi SDK). On $disconnect, you delete the\n  ConnectionId. A baseline model that skips connection management\n  produces an API where clients can connect but the server cannot\n  push messages back.\n\n- **\"Route selection expression is optional.\"** It is not. The\n  route selection expression tells API Gateway which route to\n  invoke for each incoming message. The default\n  `$request.body.action` evaluates the `action` field in the JSON\n  message body. Without a route selection expression, ALL messages\n  go to the `$default` route (or are rejected if no `$default`\n  exists). A baseline model that omits the route selection\n  expression produces a WebSocket API where custom routes never\n  fire.\n\n- **\"Usage plans and API keys work the same as REST APIs.\"** They\n  do not. WebSocket APIs do not support usage plans or API keys\n  directly. Throttling is done at the connection level via stage\n  settings. For per-client throttling, implement it in the backend\n  using the ConnectionId. A baseline model that tries to attach a\n  usage plan to a WebSocket API will fail.\n\n- **\"WebSocket connections persist indefinitely.\"** They do not.\n  API Gateway WebSocket connections idle-disconnect after **2 hours**\n  (7200 seconds). Long-lived connections must implement ping\u002Fpong\n  keepalive to prevent disconnection. The client or the server\n  must send periodic ping frames or application-level heartbeat\n  messages. A baseline model that does not implement keepalive\n  will see connections drop after 2 hours of inactivity.\n\n- **\"Messages can be any size.\"** They cannot. The maximum message\n  size for WebSocket API messages is **128 KB** (per frame).\n  Messages larger than 128 KB are rejected. For large payloads,\n  chunk them into multiple messages or offload to S3 and send a\n  reference. A baseline model that sends large JSON payloads will\n  hit the 128 KB limit silently.\n\n## Configuration dependency graph (novel heuristic)\n\nWebSocket API configurations are NOT independent. The API must be\ncreated before routes. Routes must reference integrations.\nDeployment requires at least one route. Stage references a\ndeployment. Connection management requires a backend data store.\nUse this graph to sequence provisioning.\n\n| Configuration | Hard dependencies (API error without) | Silent failure \u002F immutability | Enables downstream |\n|---|---|---|---|\n| WebSocket API creation | None (creates the API container) | API has no routes until routes are added; RouteSelectionExpression set at creation | the API container |\n| Route selection expression | WebSocket API exists | set at API creation; changing requires update-api; without it ALL messages go to $default | message routing to custom routes |\n| $connect route | WebSocket API exists; integration exists (Lambda\u002FHTTP\u002FAWS) | fires on every new WebSocket connection; ConnectionId available in event | connection lifecycle entry |\n| $disconnect route | WebSocket API exists; integration exists | fires on connection close (clean or idle timeout); ConnectionId in event | connection lifecycle exit |\n| Custom route | WebSocket API exists; route selection expression set; integration exists | route key must match what the selection expression evaluates to (e.g., action=sendMessage → route \"sendMessage\") | message-type-specific handling |\n| Integration (Lambda) | Lambda function exists; resource-based policy grants apigateway invoke permission | Lambda invoked synchronously; timeout 30s max for WebSocket integrations | backend processing |\n| Deployment | At least one route exists | deployment is immutable snapshot; must create new deployment after route changes | versioned API snapshot |\n| Stage | Deployment exists | stage name becomes part of the WebSocket URL; auto-deploy stage does NOT auto-create on first deploy | the client-facing endpoint |\n| Connection management | DynamoDB table (or equivalent) exists; $connect handler stores ConnectionId | without ConnectionId storage, server CANNOT push messages to clients | bidirectional communication |\n| Custom authorizer | Authorizer Lambda function exists; attached to $connect route | fires BEFORE the $connect integration; if denied, connection rejected | authenticated connections |\n| WAF Web ACL | WebSocket API stage exists | WAF inspects connection requests; does NOT inspect individual WebSocket frames after connection | connection-level filtering |\n\n**The connection-management row is the one a baseline model misses.**\nA baseline model creates the WebSocket API, routes, integrations,\ndeployment, and stage — but does not address how the backend tracks\nConnectionIds. Without storing ConnectionIds on $connect, the server\ncannot send messages to specific clients via PostToConnection. The\nprocedure below forces an explicit connection-management decision.\n\n**Cross-dependency gotchas:**\n- Route changes require a new deployment. Without re-deploying, route\n  changes are NOT live. Auto-deploy stages handle this automatically.\n- The $connect route fires BEFORE the connection is fully\n  established. If the $connect integration returns a non-2xx status,\n  the connection is rejected. This is where custom authorizers run.\n- PostToConnection uses the ApiGatewayManagementApi SDK (NOT the\n  ApiGatewayV2 SDK). The endpoint URL format is\n  `https:\u002F\u002F{api-id}.execute-api.{region}.amazonaws.com\u002F{stage}`.\n- Lambda integrations for WebSocket have a 30-second timeout\n  (regardless of the function's configured timeout).\n- The DynamoDB ConnectionId table must be in the same region as the\n  WebSocket API for lowest latency.\n\n## Expert heuristic: the connection management lifecycle\n\nDeep dive: [advanced-patterns.md](references\u002Fadvanced-patterns.md). The four-phase lifecycle — $connect stores the ConnectionId in DynamoDB, route-selection dispatch handles messages, $disconnect deletes it, and the 2-hour idle timeout fires $disconnect.\nWithout ConnectionId storage the server cannot push via PostToConnection — the #1 cause of \"my WebSocket API can receive but not send\".\n\n## Expert heuristic: route selection expression mechanics\n\nDeep dive: [advanced-patterns.md](references\u002Fadvanced-patterns.md). The VTL expression (default `$request.body.action`) evaluates each message body to a route key; unmatched or null keys fall to `$default` or are rejected.\nThe expression MUST match the client's message format or custom routes never fire.\n\n## Expert heuristic: idle disconnect and keepalive\n\nDeep dive: [advanced-patterns.md](references\u002Fadvanced-patterns.md). Connections idle-disconnect after 2 hours (hard limit); keepalive via client ping frames, application-level heartbeat every 30-60 s, or server-side PostToConnection heartbeats.\nAny traffic on the connection resets the idle timer.\n\n## Prerequisites (verify before provisioning)\n\nBefore emitting provisioning commands, verify these prerequisites.\nIf any are missing, the verdict is **PREREQUISITES_MISSING**.\n\n| Prerequisite | Why it matters | How to verify |\n|---|---|---|\n| Route selection expression designed | Determines message routing; must match client message format | Confirm the expression (e.g., `$request.body.action`) |\n| Lambda function for integrations | Backend handler for $connect, $disconnect, custom routes | `aws lambda get-function --function-name \u003Cname>` |\n| DynamoDB table for ConnectionId storage | Without ConnectionId tracking, server cannot push messages | `aws dynamodb describe-table --table-name \u003Cname>` |\n| Lambda resource-based policy | API Gateway needs `lambda:InvokeFunction` permission | `aws lambda get-policy --function-name \u003Cname>` |\n| Authorizer Lambda function (if custom auth) | For authenticated WebSocket connections | Verify function exists |\n| IAM execution role for Lambda | Lambda needs DynamoDB + ApiGatewayManagementApi permissions | Verify role has required policies |\n| Region identified | WebSocket API and DynamoDB should be co-located | Confirm region |\n\nIf any prerequisite is missing, output `VERDICT: PREREQUISITES_MISSING`\nand cite the specific gap.\n\n## Step 1 — Route selection expression\n\nCLI walkthrough: [routes-and-integrations.md](references\u002Froutes-and-integrations.md). `create-api` sets the route selection expression at creation; `update-api` changes it, which requires a new deployment (auto-deploy stages excepted).\nCommon expressions: `$request.body.action`, `$request.body.type`, `$request.body.routeKey`.\n\n## Step 2 — Connection routes ($connect, $disconnect)\n\nCLI walkthrough: [connection-management-and-auth.md](references\u002Fconnection-management-and-auth.md). `$connect` fires on open (store the ConnectionId; a non-2xx integration response rejects the connection) and `$disconnect` fires on close or idle timeout (delete the ConnectionId).\nEvent structures carry `requestContext.connectionId` — the key the backend must persist.\n\n## Step 3 — Custom routes\n\nCLI walkthrough: [routes-and-integrations.md](references\u002Froutes-and-integrations.md). Route keys must match what the selection expression evaluates (e.g., `action=sendMessage` → route `sendMessage`).\nAdd a `$default` route to catch unmatched messages.\n\n## Step 4 — Route responses (bidirectional communication)\n\nCLI walkthrough: [routes-and-integrations.md](references\u002Froutes-and-integrations.md). `create-route-response` enables synchronous two-way replies from the integration.\nRoute responses are NOT push notifications — server-initiated pushes use PostToConnection (Step 7).\n\n## Step 5 — Integration types\n\nCLI walkthrough: [routes-and-integrations.md](references\u002Froutes-and-integrations.md). Lambda (AWS_PROXY, 30 s max), AWS Service, Mock, and HTTP integrations.\nGrant `lambda:InvokeFunction` to `apigateway.amazonaws.com` via `add-permission`, or integrations return 500.\n\n## Step 6 — Deployment and stage\n\nCLI walkthrough: [routes-and-integrations.md](references\u002Froutes-and-integrations.md). Deployments are immutable snapshots; the stage exposes `wss:\u002F\u002F{api-id}.execute-api.{region}.amazonaws.com\u002F{stage}`.\nPrefer `--auto-deploy` stages; throttle via stage route settings (WebSocket APIs do NOT support usage plans or API keys).\n\n## Step 7 — Connection management (DynamoDB)\n\nCLI walkthrough: [connection-management-and-auth.md](references\u002Fconnection-management-and-auth.md). DynamoDB connections table + `$connect`\u002F`$disconnect` handlers + PostToConnection via the ApiGatewayManagementApi SDK (NOT ApiGatewayV2).\nHandle 410 Gone by deleting the stale ConnectionId; the SDK does NOT auto-detect the endpoint.\n\n## Step 8 — Custom authorizer (Lambda)\n\nCLI walkthrough: [connection-management-and-auth.md](references\u002Fconnection-management-and-auth.md). REQUEST authorizer attached to `$connect` with an identity source (e.g., `$request.querystring.token`).\nReturns `{ isAuthorized: boolean }` and runs BEFORE the $connect integration; `false` rejects the connection with 403.\n\n## Step 9 — CloudWatch Logs\n\nCLI walkthrough: [routes-and-integrations.md](references\u002Froutes-and-integrations.md). Execution logs via stage `LoggingLevel` (OFF\u002FINFO\u002FERROR) and access logs via `--access-log-settings`.\n`DataTraceEnabled` logs full request\u002Fresponse payloads — use with caution for sensitive data.\n\n## Step 10 — WAF integration\n\nCLI walkthrough: [connection-management-and-auth.md](references\u002Fconnection-management-and-auth.md). Associate the Web ACL with the API stage ARN; WAF inspects ONLY the initial handshake.\nPost-connection frames are NOT inspected — message-level filtering belongs in the backend.\n\n## Step 11 — Ping\u002Fpong keepalive\n\nCLI walkthrough: [connection-management-and-auth.md](references\u002Fconnection-management-and-auth.md). Client-side heartbeat every 30-60 s (e.g., `{ \"action\": \"ping\" }`) with a pong route response.\nAny traffic on the connection resets the 2-hour idle timer.\n\n## Step 12 — Cross-account backend invocation\n\nDeep dive: [advanced-patterns.md](references\u002Fadvanced-patterns.md). Cross-account Lambda invocation needs `add-permission` in the Lambda account.\nScope `--source-arn` to the API account's ID: `arn:aws:execute-api:{region}:\u003Capi-account-id>:{api-id}\u002F*\u002F*`.\n\n## Step 13 — Message size limit (128 KB)\n\nDeep dive: [advanced-patterns.md](references\u002Fadvanced-patterns.md). 128 KB per-frame limit (131,072 bytes); larger messages are rejected with 413.\nBase64 inflates binary ~33% (~96 KB effective); chunk frames or offload to S3 and send a reference.\n\n## Step 14 — Recent features\n\nDeep dive: [advanced-patterns.md](references\u002Fadvanced-patterns.md). Auto-deploy stages, VPC-link private integrations, WAF WebSocket conditions, batch PostToConnection, WebSocket CloudWatch metrics, tagging (2023-2026).\nLoaded on demand when the task calls for the newest capabilities.\n\n## NEVER do these things\n\n1. **NEVER skip connection management.** The APPLICATION must store\n   ConnectionIds (e.g., in DynamoDB) on $connect and delete them on\n   $disconnect. Without this, the server cannot push messages to\n   clients via PostToConnection.\n\n2. **NEVER omit the route selection expression.** Without it, ALL\n   messages go to $default (or are rejected). The expression must\n   match the client's message format (e.g., `$request.body.action`\n   requires an `action` field in the message body).\n\n3. **NEVER try to attach a usage plan to a WebSocket API.** WebSocket\n   APIs do not support usage plans or API keys. Throttling is done\n   at the stage level via route settings.\n\n4. **NEVER forget to re-deploy after route changes.** Route and\n   integration changes require a new deployment (unless using\n   auto-deploy stages). Without re-deployment, changes are NOT live.\n\n5. **NEVER use the ApiGatewayV2 SDK for PostToConnection.** Use the\n   `ApiGatewayManagementApi` SDK (`AWS.ApiGatewayManagementApi`).\n   The ApiGatewayV2 SDK does not have PostToConnection. The endpoint\n   must be constructed from `event.requestContext.domainName + '\u002F' +\n   event.requestContext.stage`.\n\n6. **NEVER assume WebSocket connections persist indefinitely.** Idle\n   connections auto-disconnect after 2 hours (7200 seconds).\n   Implement keepalive (client-side ping or application-level\n   heartbeat) for long-lived connections.\n\n7. **NEVER send messages larger than 128 KB.** The per-frame limit\n   is 128 KB. Messages exceeding this are rejected (413). Chunk\n   large payloads or offload to S3.\n\n8. **NEVER forget to grant `lambda:InvokeFunction` to\n   `apigateway.amazonaws.com`.** Without the resource-based policy,\n   API Gateway cannot invoke the Lambda function and integrations\n   return 500.\n\n9. **NEVER confuse route responses with push notifications.** Route\n   responses are synchronous replies to the client's message. For\n   server-initiated push messages, use PostToConnection with the\n   stored ConnectionId.\n\n10. **NEVER skip the 410 Gone handling in PostToConnection.** A 410\n    status means the connection is gone (client disconnected without\n    $disconnect firing). Delete the stale ConnectionId from DynamoDB.\n    Without this handling, stale connections accumulate.\n\n## Output format\n\n```text\nWEBSOCKET_API: \u003Capi-name> (\u003Capi-id>)\nVERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING\nCHECKLIST:\n  [✓|✗] WebSocket API: \u003Capi-id> (\u003Cname>)\n  [✓|✗] Route selection expression: $request.body.\u003Cfield>\n  [✓|✗] $connect route: \u003Croute-id> → \u003Cintegration> (Lambda: \u003Cfunction-name>)\n  [✓|✗] $disconnect route: \u003Croute-id> → \u003Cintegration> (Lambda: \u003Cfunction-name>)\n  [✓|✗] Custom routes: \u003Croute-key-list>\n  [✓|✗] Route responses (bidirectional): enabled on \u003Croute-key-list> | disabled\n  [✓|✗] Integration type: Lambda | AWS Service | Mock | HTTP\n  [✓|✗] Deployment: \u003Cdeployment-id> on stage \u003Cstage-name>\n  [✓|✗] Connection management: DynamoDB \u003Ctable-name> (store on $connect, delete on $disconnect)\n  [✓|✗] Custom authorizer (if applicable): \u003Cauthorizer-name> on $connect\n  [✓|✗] CloudWatch Logs: execution (INFO), access (log group: \u003Cname>)\n  [✓|✗] WAF (if applicable): \u003Cweb-acl-name> on stage \u003Cstage-name>\n  [✓|✗] Keepalive: \u003Cstrategy> (interval: \u003Cn>s)\n  [✓|✗] Lambda resource-based policy: grants lambda:InvokeFunction to apigateway.amazonaws.com\n  [✓|✗] Message size limit: 128 KB\n  [✓|✗] Tags: \u003Ckey=value list>\nVERIFICATION_COMMANDS:\n  aws apigatewayv2 get-api --api-id \u003Capi-id> --region \u003Cregion>\n  aws apigatewayv2 get-routes --api-id \u003Capi-id> --region \u003Cregion>\n  aws apigatewayv2 get-stage --api-id \u003Capi-id> --stage-name \u003Cstage> --region \u003Cregion>\n  aws lambda get-policy --function-name \u003Cfunction-name> --region \u003Cregion>\n  aws dynamodb describe-table --table-name \u003Cconnections-table> --region \u003Cregion>\n```\n\n### Worked example — chat WebSocket API with Lambda, DynamoDB, and authorizer\n\n```text\nWEBSOCKET_API: my-chat-api (abc123def4)\nVERDICT: READY_TO_DEPLOY\nCHECKLIST:\n  [✓] WebSocket API: abc123def4 (my-chat-api)\n  [✓] Route selection expression: $request.body.action\n  [✓] $connect route: conn-route → Lambda: ws-connect-handler (stores ConnectionId)\n  [✓] $disconnect route: disc-route → Lambda: ws-disconnect-handler (deletes ConnectionId)\n  [✓] Custom routes: sendMessage, joinRoom, leaveRoom\n  [✓] Route responses (bidirectional): enabled on sendMessage\n  [✓] Integration type: Lambda (AWS_PROXY)\n  [✓] Deployment: auto-deploy on stage prod\n  [✓] Connection management: DynamoDB WebSocketConnections (store on $connect, delete on $disconnect)\n  [✓] Custom authorizer: ws-auth on $connect (token from query string)\n  [✓] CloudWatch Logs: execution (INFO), access (log group: \u002Faws\u002Fapigateway\u002Fws-chat)\n  [✓] Keepalive: client-side application heartbeat (interval: 60s)\n  [✓] Lambda resource-based policy: grants lambda:InvokeFunction to apigateway.amazonaws.com\n  [✓] Message size limit: 128 KB\n  [✓] Tags: Environment=production, Service=chat\nVERIFICATION_COMMANDS:\n  aws apigatewayv2 get-api --api-id abc123def4 --region us-east-1\n  aws apigatewayv2 get-routes --api-id abc123def4 --region us-east-1\n  aws apigatewayv2 get-stage --api-id abc123def4 --stage-name prod --region us-east-1\n  aws lambda get-policy --function-name ws-connect-handler --region us-east-1\n  aws dynamodb describe-table --table-name WebSocketConnections --region us-east-1\n```\n\n## Error handling\n\nDeep dive: [error-handling.md](references\u002Ferror-handling.md). Symptom-to-cause remedies for the six common failure modes.\nNo server push (ConnectionId not stored), routes never firing (expression mismatch), 500s (missing invoke permission), 410 Gone (stale connection), 2-hour drops (idle timeout), 413 (size limit).\n\n## References (load on demand)\n\n- [Routes and integrations](references\u002Froutes-and-integrations.md) — route selection expressions, route types, route responses, integration types, deployment\u002Fstage\u002Fthrottling, CloudWatch log enablement (Steps 1, 3, 4, 5, 6, 9 CLI walkthroughs in detail)\n- [Connection management and auth](references\u002Fconnection-management-and-auth.md) — DynamoDB ConnectionId tracking, PostToConnection, Lambda authorizers, WAF, keepalive, 128 KB limit (Steps 2, 7, 8, 10, 11, 13 CLI walkthroughs in detail)\n- [Advanced patterns](references\u002Fadvanced-patterns.md) — connection-lifecycle \u002F route-selection \u002F keepalive expert heuristics, cross-account invocation (Step 12), recent AWS features 2023-2026 (Step 14)\n- [Error handling](references\u002Ferror-handling.md) — symptom-to-cause remedies: no server push, routes not firing, 500s, 410 Gone, 2-hour idle drops, 413 size rejections\n\n## Domain\n\nAWS CloudOps \u002F Amazon API Gateway WebSocket API Provisioning &\nReal-Time Communication.\n\n## AWS documentation\n\n- **API Gateway WebSocket APIs** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fapigateway-websocket-api.html\n- **Creating a WebSocket API** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fapigateway-create-websocket-api.html\n- **Route selection expressions** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fapigateway-websocket-api-route-expressions.html\n- **WebSocket API routes** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fapigateway-websocket-api-routes.html\n- **WebSocket API integrations** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fapigateway-websocket-api-integrations.html\n- **Managing WebSocket connections** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fapigateway-how-to-call-websocket-api.html\n- **ApiGatewayManagementApi** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSJavaScriptSDK\u002Flatest\u002FAWS\u002FApiGatewayManagementApi.html\n- **WebSocket API deployment** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fapigateway-websocket-api-deploy.html\n- **WebSocket API limits** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Flimits.html\n- **WAF and API Gateway** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fwaf\u002Flatest\u002Fdeveloperguide\u002Fcloudfront-managed-rule-groups.html\n","# API Gateway WebSocket Deployer\n\nAn AWS CloudOps agent skill that provisions Amazon API Gateway\nWebSocket APIs with correct defaults. The skill walks the route\nselection expression, connection routes ($connect\u002F$disconnect),\ncustom routes, route responses for bidirectional communication,\nintegration types (Lambda, AWS Service, Mock, HTTP), deployment and\nstage management, connection-level throttling, CloudWatch Logs, WAF\nintegration, Lambda custom authorizers, backend connection\nmanagement (DynamoDB ConnectionId table), ping\u002Fpong keepalive,\ncross-account backend invocation, and the 128 KB message size\nlimit, captures architecture decisions, explains why each default\nmatters, and emits a READY_TO_DEPLOY checklist with copy-pasteable\nverification commands.\n\n## Activation keywords\n\ncreate WebSocket API, configure route selection expression,\nWebSocket connection management, Lambda authorizer WebSocket,\nWebSocket deployment stage, bidirectional communication API Gateway,\nWebSocket ping pong keepalive, WebSocket $connect $disconnect,\nWebSocket DynamoDB connections.\n\n## STRICT output contract\n\nWhen this skill is invoked with a WebSocket-API-provisioning\nrequest (create a WebSocket API, configure routes, set up\nconnection management, deploy a stage, configure authorizers, or a\npartial configuration), the agent MUST respond with the\nREADY_TO_DEPLOY checklist defined in the \"Output format\" section\nusing the literal all-caps labels `WEBSOCKET_API:`, `VERDICT:`,\n`CHECKLIST:`, and `VERIFICATION_COMMANDS:`. Do NOT preface the\nchecklist with prose, headings, or disclaimers — emit the block as\nthe first lines of the response. This contract is what\nassertion-based evals and downstream provisioning pipelines rely\non; deviating from the literal labels breaks automation silently.\n\nIf any prerequisite is missing, the verdict is `PREREQUISITES_MISSING`\nwith a specific gap citation in the checklist (marked `[✗]`), and\n`READY_TO_DEPLOY` MUST NOT also appear.\n\n## Quick navigation\n\n| Section | When to read |\n|---|---|\n| Prerequisites | Always — verify before provisioning |\n| Step 1 — Route selection expression | Core routing model |\n| Step 2 — Connection routes ($connect, $disconnect) | Connection lifecycle |\n| Step 3 — Custom routes | Message routing |\n| Step 4 — Route responses (bidirectional) | Two-way communication |\n| Step 5 — Integration types | Backend connection |\n| Step 6 — Deployment and stage | Publishing the API |\n| Step 7 — Connection management (DynamoDB) | Stateful connections |\n| Step 8 — Custom authorizer (Lambda) | Authentication |\n| Step 9 — CloudWatch Logs | Observability |\n| Step 10 — WAF integration | Security |\n| Step 11 — Ping\u002Fpong keepalive | Connection health |\n| Step 12 — Cross-account backend invocation | Multi-account |\n| Step 13 — Message size limit (128 KB) | Limits |\n| Step 14 — Recent features | Latest |\n| NEVER do these things | Review before signing off |\n| Output format | The literal checklist template |\n| references\u002Froutes-and-integrations.md | Routes + integrations detail |\n| references\u002Fconnection-management-and-auth.md | Connections + auth detail |\n| references\u002Fadvanced-patterns.md | Heuristics + edge cases + recent features |\n| references\u002Ferror-handling.md | Symptom-to-cause remedies |\n\n## Mindset\n\n**One-line takeaway:** An API Gateway WebSocket API is a\nstateful, bidirectional, real-time communication endpoint. The\nroute selection expression evaluates each incoming message's body\nto determine which route (and integration) handles it. Connection\nmanagement is YOUR application's responsibility — store the\nConnectionId on $connect, use it to send messages back via the\nPostToConnection API, and delete it on $disconnect. Idle\nconnections auto-disconnect after 2 hours.\n\nFive misconceptions dominate WebSocket API misdesign at provisioning\ntime:\n\n- **\"The WebSocket API manages connections for me.\"** It does not.\n  API Gateway maintains the WebSocket connection at the transport\n  level, but the APPLICATION is responsible for tracking\n  ConnectionIds. On $connect, you must store the ConnectionId (e.g.,\n  in DynamoDB). To send a message to a client, you use the\n  ConnectionId with the PostToConnection API (via the\n  ApiGatewayManagementApi SDK). On $disconnect, you delete the\n  ConnectionId. A baseline model that skips connection management\n  produces an API where clients can connect but the server cannot\n  push messages back.\n\n- **\"Route selection expression is optional.\"** It is not. The\n  route selection expression tells API Gateway which route to\n  invoke for each incoming message. The default\n  `$request.body.action` evaluates the `action` field in the JSON\n  message body. Without a route selection expression, ALL messages\n  go to the `$default` route (or are rejected if no `$default`\n  exists). A baseline model that omits the route selection\n  expression produces a WebSocket API where custom routes never\n  fire.\n\n- **\"Usage plans and API keys work the same as REST APIs.\"** They\n  do not. WebSocket APIs do not support usage plans or API keys\n  directly. Throttling is done at the connection level via stage\n  settings. For per-client throttling, implement it in the backend\n  using the ConnectionId. A baseline model that tries to attach a\n  usage plan to a WebSocket API will fail.\n\n- **\"WebSocket connections persist indefinitely.\"** They do not.\n  API Gateway WebSocket connections idle-disconnect after **2 hours**\n  (7200 seconds). Long-lived connections must implement ping\u002Fpong\n  keepalive to prevent disconnection. The client or the server\n  must send periodic ping frames or application-level heartbeat\n  messages. A baseline model that does not implement keepalive\n  will see connections drop after 2 hours of inactivity.\n\n- **\"Messages can be any size.\"** They cannot. The maximum message\n  size for WebSocket API messages is **128 KB** (per frame).\n  Messages larger than 128 KB are rejected. For large payloads,\n  chunk them into multiple messages or offload to S3 and send a\n  reference. A baseline model that sends large JSON payloads will\n  hit the 128 KB limit silently.\n\n## Configuration dependency graph (novel heuristic)\n\nWebSocket API configurations are NOT independent. The API must be\ncreated before routes. Routes must reference integrations.\nDeployment requires at least one route. Stage references a\ndeployment. Connection management requires a backend data store.\nUse this graph to sequence provisioning.\n\n| Configuration | Hard dependencies (API error without) | Silent failure \u002F immutability | Enables downstream |\n|---|---|---|---|\n| WebSocket API creation | None (creates the API container) | API has no routes until routes are added; RouteSelectionExpression set at creation | the API container |\n| Route selection expression | WebSocket API exists | set at API creation; changing requires update-api; without it ALL messages go to $default | message routing to custom routes |\n| $connect route | WebSocket API exists; integration exists (Lambda\u002FHTTP\u002FAWS) | fires on every new WebSocket connection; ConnectionId available in event | connection lifecycle entry |\n| $disconnect route | WebSocket API exists; integration exists | fires on connection close (clean or idle timeout); ConnectionId in event | connection lifecycle exit |\n| Custom route | WebSocket API exists; route selection expression set; integration exists | route key must match what the selection expression evaluates to (e.g., action=sendMessage → route \"sendMessage\") | message-type-specific handling |\n| Integration (Lambda) | Lambda function exists; resource-based policy grants apigateway invoke permission | Lambda invoked synchronously; timeout 30s max for WebSocket integrations | backend processing |\n| Deployment | At least one route exists | deployment is immutable snapshot; must create new deployment after route changes | versioned API snapshot |\n| Stage | Deployment exists | stage name becomes part of the WebSocket URL; auto-deploy stage does NOT auto-create on first deploy | the client-facing endpoint |\n| Connection management | DynamoDB table (or equivalent) exists; $connect handler stores ConnectionId | without ConnectionId storage, server CANNOT push messages to clients | bidirectional communication |\n| Custom authorizer | Authorizer Lambda function exists; attached to $connect route | fires BEFORE the $connect integration; if denied, connection rejected | authenticated connections |\n| WAF Web ACL | WebSocket API stage exists | WAF inspects connection requests; does NOT inspect individual WebSocket frames after connection | connection-level filtering |\n\n**The connection-management row is the one a baseline model misses.**\nA baseline model creates the WebSocket API, routes, integrations,\ndeployment, and stage — but does not address how the backend tracks\nConnectionIds. Without storing ConnectionIds on $connect, the server\ncannot send messages to specific clients via PostToConnection. The\nprocedure below forces an explicit connection-management decision.\n\n**Cross-dependency gotchas:**\n- Route changes require a new deployment. Without re-deploying, route\n  changes are NOT live. Auto-deploy stages handle this automatically.\n- The $connect route fires BEFORE the connection is fully\n  established. If the $connect integration returns a non-2xx status,\n  the connection is rejected. This is where custom authorizers run.\n- PostToConnection uses the ApiGatewayManagementApi SDK (NOT the\n  ApiGatewayV2 SDK). The endpoint URL format is\n  `https:\u002F\u002F{api-id}.execute-api.{region}.amazonaws.com\u002F{stage}`.\n- Lambda integrations for WebSocket have a 30-second timeout\n  (regardless of the function's configured timeout).\n- The DynamoDB ConnectionId table must be in the same region as the\n  WebSocket API for lowest latency.\n\n## Expert heuristic: the connection management lifecycle\n\nDeep dive: [advanced-patterns.md](references\u002Fadvanced-patterns.md). The four-phase lifecycle — $connect stores the ConnectionId in DynamoDB, route-selection dispatch handles messages, $disconnect deletes it, and the 2-hour idle timeout fires $disconnect.\nWithout ConnectionId storage the server cannot push via PostToConnection — the #1 cause of \"my WebSocket API can receive but not send\".\n\n## Expert heuristic: route selection expression mechanics\n\nDeep dive: [advanced-patterns.md](references\u002Fadvanced-patterns.md). The VTL expression (default `$request.body.action`) evaluates each message body to a route key; unmatched or null keys fall to `$default` or are rejected.\nThe expression MUST match the client's message format or custom routes never fire.\n\n## Expert heuristic: idle disconnect and keepalive\n\nDeep dive: [advanced-patterns.md](references\u002Fadvanced-patterns.md). Connections idle-disconnect after 2 hours (hard limit); keepalive via client ping frames, application-level heartbeat every 30-60 s, or server-side PostToConnection heartbeats.\nAny traffic on the connection resets the idle timer.\n\n## Prerequisites (verify before provisioning)\n\nBefore emitting provisioning commands, verify these prerequisites.\nIf any are missing, the verdict is **PREREQUISITES_MISSING**.\n\n| Prerequisite | Why it matters | How to verify |\n|---|---|---|\n| Route selection expression designed | Determines message routing; must match client message format | Confirm the expression (e.g., `$request.body.action`) |\n| Lambda function for integrations | Backend handler for $connect, $disconnect, custom routes | `aws lambda get-function --function-name \u003Cname>` |\n| DynamoDB table for ConnectionId storage | Without ConnectionId tracking, server cannot push messages | `aws dynamodb describe-table --table-name \u003Cname>` |\n| Lambda resource-based policy | API Gateway needs `lambda:InvokeFunction` permission | `aws lambda get-policy --function-name \u003Cname>` |\n| Authorizer Lambda function (if custom auth) | For authenticated WebSocket connections | Verify function exists |\n| IAM execution role for Lambda | Lambda needs DynamoDB + ApiGatewayManagementApi permissions | Verify role has required policies |\n| Region identified | WebSocket API and DynamoDB should be co-located | Confirm region |\n\nIf any prerequisite is missing, output `VERDICT: PREREQUISITES_MISSING`\nand cite the specific gap.\n\n## Step 1 — Route selection expression\n\nCLI walkthrough: [routes-and-integrations.md](references\u002Froutes-and-integrations.md). `create-api` sets the route selection expression at creation; `update-api` changes it, which requires a new deployment (auto-deploy stages excepted).\nCommon expressions: `$request.body.action`, `$request.body.type`, `$request.body.routeKey`.\n\n## Step 2 — Connection routes ($connect, $disconnect)\n\nCLI walkthrough: [connection-management-and-auth.md](references\u002Fconnection-management-and-auth.md). `$connect` fires on open (store the ConnectionId; a non-2xx integration response rejects the connection) and `$disconnect` fires on close or idle timeout (delete the ConnectionId).\nEvent structures carry `requestContext.connectionId` — the key the backend must persist.\n\n## Step 3 — Custom routes\n\nCLI walkthrough: [routes-and-integrations.md](references\u002Froutes-and-integrations.md). Route keys must match what the selection expression evaluates (e.g., `action=sendMessage` → route `sendMessage`).\nAdd a `$default` route to catch unmatched messages.\n\n## Step 4 — Route responses (bidirectional communication)\n\nCLI walkthrough: [routes-and-integrations.md](references\u002Froutes-and-integrations.md). `create-route-response` enables synchronous two-way replies from the integration.\nRoute responses are NOT push notifications — server-initiated pushes use PostToConnection (Step 7).\n\n## Step 5 — Integration types\n\nCLI walkthrough: [routes-and-integrations.md](references\u002Froutes-and-integrations.md). Lambda (AWS_PROXY, 30 s max), AWS Service, Mock, and HTTP integrations.\nGrant `lambda:InvokeFunction` to `apigateway.amazonaws.com` via `add-permission`, or integrations return 500.\n\n## Step 6 — Deployment and stage\n\nCLI walkthrough: [routes-and-integrations.md](references\u002Froutes-and-integrations.md). Deployments are immutable snapshots; the stage exposes `wss:\u002F\u002F{api-id}.execute-api.{region}.amazonaws.com\u002F{stage}`.\nPrefer `--auto-deploy` stages; throttle via stage route settings (WebSocket APIs do NOT support usage plans or API keys).\n\n## Step 7 — Connection management (DynamoDB)\n\nCLI walkthrough: [connection-management-and-auth.md](references\u002Fconnection-management-and-auth.md). DynamoDB connections table + `$connect`\u002F`$disconnect` handlers + PostToConnection via the ApiGatewayManagementApi SDK (NOT ApiGatewayV2).\nHandle 410 Gone by deleting the stale ConnectionId; the SDK does NOT auto-detect the endpoint.\n\n## Step 8 — Custom authorizer (Lambda)\n\nCLI walkthrough: [connection-management-and-auth.md](references\u002Fconnection-management-and-auth.md). REQUEST authorizer attached to `$connect` with an identity source (e.g., `$request.querystring.token`).\nReturns `{ isAuthorized: boolean }` and runs BEFORE the $connect integration; `false` rejects the connection with 403.\n\n## Step 9 — CloudWatch Logs\n\nCLI walkthrough: [routes-and-integrations.md](references\u002Froutes-and-integrations.md). Execution logs via stage `LoggingLevel` (OFF\u002FINFO\u002FERROR) and access logs via `--access-log-settings`.\n`DataTraceEnabled` logs full request\u002Fresponse payloads — use with caution for sensitive data.\n\n## Step 10 — WAF integration\n\nCLI walkthrough: [connection-management-and-auth.md](references\u002Fconnection-management-and-auth.md). Associate the Web ACL with the API stage ARN; WAF inspects ONLY the initial handshake.\nPost-connection frames are NOT inspected — message-level filtering belongs in the backend.\n\n## Step 11 — Ping\u002Fpong keepalive\n\nCLI walkthrough: [connection-management-and-auth.md](references\u002Fconnection-management-and-auth.md). Client-side heartbeat every 30-60 s (e.g., `{ \"action\": \"ping\" }`) with a pong route response.\nAny traffic on the connection resets the 2-hour idle timer.\n\n## Step 12 — Cross-account backend invocation\n\nDeep dive: [advanced-patterns.md](references\u002Fadvanced-patterns.md). Cross-account Lambda invocation needs `add-permission` in the Lambda account.\nScope `--source-arn` to the API account's ID: `arn:aws:execute-api:{region}:\u003Capi-account-id>:{api-id}\u002F*\u002F*`.\n\n## Step 13 — Message size limit (128 KB)\n\nDeep dive: [advanced-patterns.md](references\u002Fadvanced-patterns.md). 128 KB per-frame limit (131,072 bytes); larger messages are rejected with 413.\nBase64 inflates binary ~33% (~96 KB effective); chunk frames or offload to S3 and send a reference.\n\n## Step 14 — Recent features\n\nDeep dive: [advanced-patterns.md](references\u002Fadvanced-patterns.md). Auto-deploy stages, VPC-link private integrations, WAF WebSocket conditions, batch PostToConnection, WebSocket CloudWatch metrics, tagging (2023-2026).\nLoaded on demand when the task calls for the newest capabilities.\n\n## NEVER do these things\n\n1. **NEVER skip connection management.** The APPLICATION must store\n   ConnectionIds (e.g., in DynamoDB) on $connect and delete them on\n   $disconnect. Without this, the server cannot push messages to\n   clients via PostToConnection.\n\n2. **NEVER omit the route selection expression.** Without it, ALL\n   messages go to $default (or are rejected). The expression must\n   match the client's message format (e.g., `$request.body.action`\n   requires an `action` field in the message body).\n\n3. **NEVER try to attach a usage plan to a WebSocket API.** WebSocket\n   APIs do not support usage plans or API keys. Throttling is done\n   at the stage level via route settings.\n\n4. **NEVER forget to re-deploy after route changes.** Route and\n   integration changes require a new deployment (unless using\n   auto-deploy stages). Without re-deployment, changes are NOT live.\n\n5. **NEVER use the ApiGatewayV2 SDK for PostToConnection.** Use the\n   `ApiGatewayManagementApi` SDK (`AWS.ApiGatewayManagementApi`).\n   The ApiGatewayV2 SDK does not have PostToConnection. The endpoint\n   must be constructed from `event.requestContext.domainName + '\u002F' +\n   event.requestContext.stage`.\n\n6. **NEVER assume WebSocket connections persist indefinitely.** Idle\n   connections auto-disconnect after 2 hours (7200 seconds).\n   Implement keepalive (client-side ping or application-level\n   heartbeat) for long-lived connections.\n\n7. **NEVER send messages larger than 128 KB.** The per-frame limit\n   is 128 KB. Messages exceeding this are rejected (413). Chunk\n   large payloads or offload to S3.\n\n8. **NEVER forget to grant `lambda:InvokeFunction` to\n   `apigateway.amazonaws.com`.** Without the resource-based policy,\n   API Gateway cannot invoke the Lambda function and integrations\n   return 500.\n\n9. **NEVER confuse route responses with push notifications.** Route\n   responses are synchronous replies to the client's message. For\n   server-initiated push messages, use PostToConnection with the\n   stored ConnectionId.\n\n10. **NEVER skip the 410 Gone handling in PostToConnection.** A 410\n    status means the connection is gone (client disconnected without\n    $disconnect firing). Delete the stale ConnectionId from DynamoDB.\n    Without this handling, stale connections accumulate.\n\n## Output format\n\n```text\nWEBSOCKET_API: \u003Capi-name> (\u003Capi-id>)\nVERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING\nCHECKLIST:\n  [✓|✗] WebSocket API: \u003Capi-id> (\u003Cname>)\n  [✓|✗] Route selection expression: $request.body.\u003Cfield>\n  [✓|✗] $connect route: \u003Croute-id> → \u003Cintegration> (Lambda: \u003Cfunction-name>)\n  [✓|✗] $disconnect route: \u003Croute-id> → \u003Cintegration> (Lambda: \u003Cfunction-name>)\n  [✓|✗] Custom routes: \u003Croute-key-list>\n  [✓|✗] Route responses (bidirectional): enabled on \u003Croute-key-list> | disabled\n  [✓|✗] Integration type: Lambda | AWS Service | Mock | HTTP\n  [✓|✗] Deployment: \u003Cdeployment-id> on stage \u003Cstage-name>\n  [✓|✗] Connection management: DynamoDB \u003Ctable-name> (store on $connect, delete on $disconnect)\n  [✓|✗] Custom authorizer (if applicable): \u003Cauthorizer-name> on $connect\n  [✓|✗] CloudWatch Logs: execution (INFO), access (log group: \u003Cname>)\n  [✓|✗] WAF (if applicable): \u003Cweb-acl-name> on stage \u003Cstage-name>\n  [✓|✗] Keepalive: \u003Cstrategy> (interval: \u003Cn>s)\n  [✓|✗] Lambda resource-based policy: grants lambda:InvokeFunction to apigateway.amazonaws.com\n  [✓|✗] Message size limit: 128 KB\n  [✓|✗] Tags: \u003Ckey=value list>\nVERIFICATION_COMMANDS:\n  aws apigatewayv2 get-api --api-id \u003Capi-id> --region \u003Cregion>\n  aws apigatewayv2 get-routes --api-id \u003Capi-id> --region \u003Cregion>\n  aws apigatewayv2 get-stage --api-id \u003Capi-id> --stage-name \u003Cstage> --region \u003Cregion>\n  aws lambda get-policy --function-name \u003Cfunction-name> --region \u003Cregion>\n  aws dynamodb describe-table --table-name \u003Cconnections-table> --region \u003Cregion>\n```\n\n### Worked example — chat WebSocket API with Lambda, DynamoDB, and authorizer\n\n```text\nWEBSOCKET_API: my-chat-api (abc123def4)\nVERDICT: READY_TO_DEPLOY\nCHECKLIST:\n  [✓] WebSocket API: abc123def4 (my-chat-api)\n  [✓] Route selection expression: $request.body.action\n  [✓] $connect route: conn-route → Lambda: ws-connect-handler (stores ConnectionId)\n  [✓] $disconnect route: disc-route → Lambda: ws-disconnect-handler (deletes ConnectionId)\n  [✓] Custom routes: sendMessage, joinRoom, leaveRoom\n  [✓] Route responses (bidirectional): enabled on sendMessage\n  [✓] Integration type: Lambda (AWS_PROXY)\n  [✓] Deployment: auto-deploy on stage prod\n  [✓] Connection management: DynamoDB WebSocketConnections (store on $connect, delete on $disconnect)\n  [✓] Custom authorizer: ws-auth on $connect (token from query string)\n  [✓] CloudWatch Logs: execution (INFO), access (log group: \u002Faws\u002Fapigateway\u002Fws-chat)\n  [✓] Keepalive: client-side application heartbeat (interval: 60s)\n  [✓] Lambda resource-based policy: grants lambda:InvokeFunction to apigateway.amazonaws.com\n  [✓] Message size limit: 128 KB\n  [✓] Tags: Environment=production, Service=chat\nVERIFICATION_COMMANDS:\n  aws apigatewayv2 get-api --api-id abc123def4 --region us-east-1\n  aws apigatewayv2 get-routes --api-id abc123def4 --region us-east-1\n  aws apigatewayv2 get-stage --api-id abc123def4 --stage-name prod --region us-east-1\n  aws lambda get-policy --function-name ws-connect-handler --region us-east-1\n  aws dynamodb describe-table --table-name WebSocketConnections --region us-east-1\n```\n\n## Error handling\n\nDeep dive: [error-handling.md](references\u002Ferror-handling.md). Symptom-to-cause remedies for the six common failure modes.\nNo server push (ConnectionId not stored), routes never firing (expression mismatch), 500s (missing invoke permission), 410 Gone (stale connection), 2-hour drops (idle timeout), 413 (size limit).\n\n## References (load on demand)\n\n- [Routes and integrations](references\u002Froutes-and-integrations.md) — route selection expressions, route types, route responses, integration types, deployment\u002Fstage\u002Fthrottling, CloudWatch log enablement (Steps 1, 3, 4, 5, 6, 9 CLI walkthroughs in detail)\n- [Connection management and auth](references\u002Fconnection-management-and-auth.md) — DynamoDB ConnectionId tracking, PostToConnection, Lambda authorizers, WAF, keepalive, 128 KB limit (Steps 2, 7, 8, 10, 11, 13 CLI walkthroughs in detail)\n- [Advanced patterns](references\u002Fadvanced-patterns.md) — connection-lifecycle \u002F route-selection \u002F keepalive expert heuristics, cross-account invocation (Step 12), recent AWS features 2023-2026 (Step 14)\n- [Error handling](references\u002Ferror-handling.md) — symptom-to-cause remedies: no server push, routes not firing, 500s, 410 Gone, 2-hour idle drops, 413 size rejections\n\n## Domain\n\nAWS CloudOps \u002F Amazon API Gateway WebSocket API Provisioning &\nReal-Time Communication.\n\n## AWS documentation\n\n- **API Gateway WebSocket APIs** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fapigateway-websocket-api.html\n- **Creating a WebSocket API** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fapigateway-create-websocket-api.html\n- **Route selection expressions** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fapigateway-websocket-api-route-expressions.html\n- **WebSocket API routes** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fapigateway-websocket-api-routes.html\n- **WebSocket API integrations** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fapigateway-websocket-api-integrations.html\n- **Managing WebSocket connections** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fapigateway-how-to-call-websocket-api.html\n- **ApiGatewayManagementApi** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSJavaScriptSDK\u002Flatest\u002FAWS\u002FApiGatewayManagementApi.html\n- **WebSocket API deployment** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fapigateway-websocket-api-deploy.html\n- **WebSocket API limits** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Flimits.html\n- **WAF and API Gateway** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fwaf\u002Flatest\u002Fdeveloperguide\u002Fcloudfront-managed-rule-groups.html\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, api-gateway, websocket, cloudops, deploy, appintegration, provisioning, route-selection, connection-management, lambda-authorizer, waf, real-time","1","Jacky Chan — AWS Community Builder","aws-cloudops","AppIntegration","0.1.0","aws, api gateway, websocket, cloudops, deploy, provisioning, route selection, connection management, lambda authorizer, waf, bidirectional, real-time, dynamodb connections, ping pong","deploy","high","false","capability","Invoke when the user wants to create an API Gateway WebSocket API, configure route selection expressions, manage WebSocket connections ($connect\u002F$disconnect), set up Lambda custom authorizers for WebSocket auth, deploy a WebSocket stage, implement bidirectional real-time communication, configure connection management with DynamoDB, or integrate WAF with a WebSocket API. Do NOT invoke for API Gateway REST APIs or HTTP APIs (use apigateway-rest-deployer or apigateway-http-api-deployer), for AppSync subscriptions (use appsync skills), or for IoT Core (use iot skills).","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 apigateway \u002F lambda \u002F dynamodb access. Works with Terraform aws_apigatewayv2_api \u002F aws_apigatewayv2_route \u002F aws_apigatewayv2_integration \u002F aws_apigatewayv2_deployment resources and CloudFormation AWS::ApiGatewayV2::Api templates.","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fapigateway-websocket-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 apigateway-websocket-deployer",{"tool":56,"command":57},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill apigateway-websocket-deployer",{"tool":59,"command":60},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill apigateway-websocket-deployer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fapigateway-websocket-deployer\u002FSKILL.md",true,[64,70,74,78,82,86,90,94,98,102,106,110,114,118,122,126,130,134,138],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",6014,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fapigateway-websocket-deployer\u002Feval\u002Ftest-cases.yaml",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"evals\u002Fbaselines\u002Fbasic-connect-disconnect.md",719,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fapigateway-websocket-deployer\u002Fevals\u002Fbaselines\u002Fbasic-connect-disconnect.md",{"path":75,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":76,"sourceHtmlUrl":77},"evals\u002Fbaselines\u002Fcustom-routes-selection.md",711,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fapigateway-websocket-deployer\u002Fevals\u002Fbaselines\u002Fcustom-routes-selection.md",{"path":79,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":80,"sourceHtmlUrl":81},"evals\u002Fbaselines\u002Flambda-authorizer-waf.md",614,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fapigateway-websocket-deployer\u002Fevals\u002Fbaselines\u002Flambda-authorizer-waf.md",{"path":83,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":84,"sourceHtmlUrl":85},"evals\u002Fbaselines\u002Fmissing-route-selection.md",513,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fapigateway-websocket-deployer\u002Fevals\u002Fbaselines\u002Fmissing-route-selection.md",{"path":87,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":88,"sourceHtmlUrl":89},"evals\u002Fbaselines\u002Froute-response-keepalive.md",631,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fapigateway-websocket-deployer\u002Fevals\u002Fbaselines\u002Froute-response-keepalive.md",{"path":91,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":92,"sourceHtmlUrl":93},"evals\u002Feval_config.yaml",1774,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fapigateway-websocket-deployer\u002Fevals\u002Feval_config.yaml",{"path":95,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":96,"sourceHtmlUrl":97},"evals\u002Fevals.json",9818,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fapigateway-websocket-deployer\u002Fevals\u002Fevals.json",{"path":99,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":100,"sourceHtmlUrl":101},"evals\u002Fprompts\u002Fbasic-connect-disconnect.md",625,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fapigateway-websocket-deployer\u002Fevals\u002Fprompts\u002Fbasic-connect-disconnect.md",{"path":103,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":104,"sourceHtmlUrl":105},"evals\u002Fprompts\u002Fcustom-routes-selection.md",655,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fapigateway-websocket-deployer\u002Fevals\u002Fprompts\u002Fcustom-routes-selection.md",{"path":107,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":108,"sourceHtmlUrl":109},"evals\u002Fprompts\u002Flambda-authorizer-waf.md",657,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fapigateway-websocket-deployer\u002Fevals\u002Fprompts\u002Flambda-authorizer-waf.md",{"path":111,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":112,"sourceHtmlUrl":113},"evals\u002Fprompts\u002Fmissing-route-selection.md",362,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fapigateway-websocket-deployer\u002Fevals\u002Fprompts\u002Fmissing-route-selection.md",{"path":115,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":116,"sourceHtmlUrl":117},"evals\u002Fprompts\u002Froute-response-keepalive.md",635,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fapigateway-websocket-deployer\u002Fevals\u002Fprompts\u002Froute-response-keepalive.md",{"path":119,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":120,"sourceHtmlUrl":121},"examples\u002FREADME.md",8642,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fapigateway-websocket-deployer\u002Fexamples\u002FREADME.md",{"path":123,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":124,"sourceHtmlUrl":125},"references\u002Fadvanced-patterns.md",5881,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fapigateway-websocket-deployer\u002Freferences\u002Fadvanced-patterns.md",{"path":127,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":128,"sourceHtmlUrl":129},"references\u002Fconnection-management-and-auth.md",23012,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fapigateway-websocket-deployer\u002Freferences\u002Fconnection-management-and-auth.md",{"path":131,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":132,"sourceHtmlUrl":133},"references\u002Ferror-handling.md",1446,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fapigateway-websocket-deployer\u002Freferences\u002Ferror-handling.md",{"path":135,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":136,"sourceHtmlUrl":137},"references\u002Froutes-and-integrations.md",18677,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fapigateway-websocket-deployer\u002Freferences\u002Froutes-and-integrations.md",{"path":139,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":140,"sourceHtmlUrl":141},"skill.usf.yaml",4464,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fapigateway-websocket-deployer\u002Fskill.usf.yaml",[143,150,157,164,171,178],{"skillNo":144,"name":145,"nameZh":6,"description":146,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":147,"categories":148,"keywords":149,"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":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":156,"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":158,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":161,"categories":162,"keywords":163,"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":165,"name":166,"nameZh":6,"description":167,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":168,"categories":169,"keywords":170,"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":172,"name":173,"nameZh":6,"description":174,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":175,"categories":176,"keywords":177,"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":179,"name":180,"nameZh":6,"description":181,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":182,"categories":183,"keywords":184,"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",[],[]]