[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A6AYGF079Z35K5M8R0PW88":3,"skill-same:01M7A6AYGF079Z35K5M8R0PW88":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},"01M7A6AYGF079Z35K5M8R0PW88","connect-instance-deployer",null,"Provisions Amazon Connect instances, contact flows, queues, routing profiles, phone numbers, and integrations with production defaults. Instance creation with three identity modes (SAML federation, Connect directory, existing AWS Directory Service directory). Contact flows authored as JSON specs with Lambda invoke blocks (InvokeLambda), branching, queue transfers, and Lex bot integration (InvokeAmazonLex). Routing profiles with skill requirements (skill name + proficiency), queue associations, agent hierarchy. Phone number claim (toll-free, DID). Voice ID (speaker enrollment, fraud risk). Contact Lens (sentiment, transcription, redaction). Chat, voice, task channels. S3 recording storage with KMS encryption. Lex V2 for IVR. Real-time\u002Fhistorical metrics. Emits READY_TO_DEPLOY with verification commands. Use when creating a Connect instance, authoring a contact flow, configuring routing skills, claiming a phone number, integrating Lex for IVR, enabling Voice ID or Contact Lens, or setting up recording storage.","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\u002Fconnect-instance-deployer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: connect-instance-deployer\ndescription: Provisions Amazon Connect instances, contact flows, queues, routing profiles, phone numbers, and integrations with production defaults. Instance creation with three identity modes (SAML federation, Connect directory, existing AWS Directory Service directory). Contact flows authored as JSON specs with Lambda invoke blocks (InvokeLambda), branching, queue transfers, and Lex bot integration (InvokeAmazonLex). Routing profiles with skill requirements (skill name + proficiency), queue associations, agent hierarchy. Phone number claim (toll-free, DID). Voice ID (speaker enrollment, fraud risk). Contact Lens (sentiment, transcription, redaction). Chat, voice, task channels. S3 recording storage with KMS encryption. Lex V2 for IVR. Real-time\u002Fhistorical metrics. Emits READY_TO_DEPLOY with verification commands. Use when creating a Connect instance, authoring a contact flow, configuring routing skills, claiming a phone number, integrating Lex for IVR, enabling Voice ID or Contact Lens, or setting up recording storage.\nlicense: Apache-2.0\ncompatibility: 'Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). For live deployment: AWS CLI v2 with connect access (and connect-contact-lens for Contact Lens, lexv2-runtime for Lex, s3 for recording storage, kms for key policy). Works with Terraform aws_connect_instance, aws_connect_contact_flow, aws_connect_queue, aws_connect_routing_profile, aws_connect_phone_number, aws_connect_user, aws_connect_user_hierarchy_group resources and CloudFormation AWS::Connect::* 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, connect, appintegration, deploy, contact-center, contact-flow, routing, voice\n  dependencies: aws-orchestrator\n  keywords: aws, connect, amazon connect, contact center, contact flow, lambda invoke, queue, routing profile, skill requirement, phone number, toll-free, did, saml, directory, voice id, contact lens, sentiment, transcription, chat, voice, task, lex bot, ivr, recording, s3, kms, real-time metrics, historical metrics\n  when_to_use: Invoke when the user wants to create an Amazon Connect instance (SAML, Connect directory, or existing AWS Directory Service directory), author a contact flow with Lambda invoke blocks or Lex integration, configure a routing profile with skill requirements, claim a phone number (toll-free, DID), set up queues with quick- connect lists, integrate Amazon Lex V2 for IVR, enable Voice ID speaker enrollment, enable Contact Lens for sentiment \u002F transcription \u002F redaction, configure chat and voice channels, manage tasks, set up S3 recording storage with KMS encryption, or wire real-time and historical metrics. Do NOT invoke for Amazon Chime SDK, Amazon WorkSpaces, or standalone Amazon Lex bot deployment.\n---\n\n# Connect Instance Deployer\n\nAn AWS CloudOps agent skill that provisions Amazon Connect instances,\ncontact flows, queues, routing profiles, phone numbers, and channel\nintegrations with contact-center-best-practice defaults. The skill\nwalks identity-mode selection (SAML, Connect directory, existing AWS\nDirectory Service directory), contact-flow authoring (JSON spec with\nLambda invoke blocks, branching, queue transfers, Lex IVR), routing-\nprofile skill requirements (skill name + proficiency level), phone\nnumber claim (toll-free, DID), Voice ID, Contact Lens, S3 recording\nwith KMS, and metrics. The skill surfaces the three expert\nheuristics (contact flow JSON with Lambda invoke blocks, routing\nprofile skill requirements, Lex bot integration for IVR) and emits a\nREADY_TO_DEPLOY checklist with verification commands.\n\n## Activation keywords\n\ncreate Connect instance, SAML identity, contact flow JSON, Lambda\ninvoke block, queue and routing profile, routing profile skill,\nclaim phone number toll-free, DID porting, Lex bot IVR, Voice ID\nenrollment, Contact Lens sentiment, Connect task, S3 recording KMS,\nquick-connect, agent hierarchy, real-time metrics.\n\n## STRICT output contract\n\nWhen invoked with a Connect-provisioning request, the agent MUST\nrespond with the READY_TO_DEPLOY checklist defined below. This\ncontract is what assertion-based evals and downstream pipelines rely\non; deviating breaks automation silently.\n\n### Required output structure\n\nThe model MUST emit output using these literal labels, in this order,\nas the FIRST lines of the response (no prose, headings, or disclaimers\nbefore them):\n\n- `CONNECT_INSTANCE: \u003Cinstance-id> (\u003Calias>, \u003Cidentity-mode>)` — first line\n- `VERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING` — second line\n- `CHECKLIST:` followed by `- [✓]` or `- [✗]` items (one row per dimension below)\n- `CONTACT_FLOW_SNIPPET:` followed by a fenced JSON block (the actual flow, not a placeholder)\n- `VERIFICATION_COMMANDS:` followed by a fenced block of copy-pasteable CLI\n\nThe CHECKLIST MUST cover every dimension, in this order: instance +\nidentity mode (SAML \u002F CONNECT_MANAGED \u002F EXISTING_DIRECTORY), directory\nID (or N\u002FA), contact flow (flow ID + name + type + \"all referenced\nresources verified\"), Lambda integration (function ARN + resource\npolicy grants `connect.amazonaws.com`), queues (queue IDs), routing\nprofile (profile ID + queues + skills + concurrency), skill\nrequirements (skill name + proficiency threshold), user hierarchy,\nphone number (E.164 + toll-free\u002FDID + region), Lex bot (bot alias ARN\n+ V2 + published + locale), Voice ID (domain ID + consent disclosure),\nContact Lens (real-time \u002F post-call \u002F both), channels (VOICE \u002F CHAT \u002F\nTASK), recording storage (S3 bucket + KMS key ID), and tags.\n\nThe CONTACT_FLOW_SNIPPET MUST be a real, runnable JSON block (not a\nplaceholder, not pseudocode) showing at minimum: Start, a CheckHoursOfOperation\nbranch, an InvokeLambda Action with Exception transitions, an\nInvokeAmazonLex Action, a TransferToQueue Terminal, and a Disconnect\nTerminal. Use concrete Identifier values and real ARNs consistent with\nthe CHECKLIST rows.\n\n### Decision tree (determines VERDICT)\n\n```text\nIs the instance alias unique (no existing instance with same alias)?\n├── NO  → VERDICT: PREREQUISITES_MISSING  ([✗] Instance alias collision)\n└── YES → Is the identity mode decided (SAML \u002F CONNECT_MANAGED \u002F EXISTING_DIRECTORY)?\n          ├── NO  → VERDICT: PREREQUISITES_MISSING  ([✗] Identity mode)\n          └── YES → If SAML, is the IdP metadata document available?\n                    ├── NO  → VERDICT: PREREQUISITES_MISSING  ([✗] SAML metadata)\n                    └── YES → Does every contact-flow reference resolve (queue, Lambda, Lex)?\n                              ├── NO  → VERDICT: PREREQUISITES_MISSING  ([✗] Dangling flow reference — name it)\n                              └── YES → Does every Lambda have a resource policy granting connect.amazonaws.com?\n                                        ├── NO  → VERDICT: PREREQUISITES_MISSING  ([✗] Lambda resource policy)\n                                        └── YES → Is the Lex bot a published V2 alias (not DRAFT) with matching locale?\n                                                  ├── NO  → VERDICT: PREREQUISITES_MISSING  ([✗] Lex bot alias)\n                                                  └── YES → All prerequisites satisfied\n                                                            → VERDICT: READY_TO_DEPLOY\n```\n\n### FORBIDDEN patterns (NEVER)\n\n1. **NEVER preface the CHECKLIST** with prose, headings, or disclaimers — emit the block as the first lines of the response.\n2. **NEVER omit the VERIFICATION_COMMANDS section**, even when every checklist item passes.\n3. **NEVER use generic placeholders** (`\u003Cinstance-id>`, `\u003Cyour-flow>`, `\u003Cregion>`) in a worked example — always use concrete instance IDs, real ARNs, actual queue\u002Fprofile IDs, and specific CLI commands.\n4. **NEVER mix verdict shapes** — if any prerequisite is `[✗]`, VERDICT MUST be `PREREQUISITES_MISSING` and `READY_TO_DEPLOY` MUST NOT also appear.\n5. **NEVER skip a CHECKLIST row** — every dimension (instance, identity, directory, flow, Lambda, queues, routing profile, skills, hierarchy, phone number, Lex, Voice ID, Contact Lens, channels, recording, tags) gets a `[✓]` or `[✗]` line.\n6. **NEVER emit a CONTACT_FLOW_SNIPPET that is pseudocode or a placeholder** — it MUST be valid JSON that `create-contact-flow --content` would accept.\n7. **NEVER list a Lambda integration as `[✓]` without confirming the resource policy** grants `connect.amazonaws.com` invoke with the instance ARN as `SourceArn` — otherwise InvokeLambda returns AccessDenied at run time.\n8. **NEVER list a Lex bot as `[✓]` if the alias is DRAFT** — Connect invokes published aliases only; DRAFT changes break the flow silently.\n9. **NEVER list a routing profile as `[✓]` without skill requirements** if the scenario calls for skills-based routing — without skills, routing silently degrades to queue-priority.\n\n### Perfect example — SAML instance with Lambda-driven flow and Lex V2 IVR\n\nThis is the EXACT shape the model emits for a positive scenario. The\nCONTACT_FLOW_SNIPPET is a real JSON block (Start → CheckHours →\nInvokeLambda → InvokeAmazonLex → branch → TransferToQueue \u002F Disconnect).\nReplace the concrete values with the scenario's values; do not\ngenericise them into placeholders.\n\n```text\nCONNECT_INSTANCE: inst-abc123def456 (my-connect-cc, SAML)\nVERDICT: READY_TO_DEPLOY\nCHECKLIST:\n  [✓] Instance: inst-abc123def456 (alias my-connect-cc, us-east-1)\n  [✓] Identity mode: SAML (Okta IdP, metadata document loaded)\n  [✓] Directory: N\u002FA (SAML federation, no Connect-managed directory)\n  [✓] Contact flow: flow-def456789 (inbound-main-flow, CONTACT_FLOW, all referenced resources verified)\n  [✓] Lambda integration: arn:aws:lambda:us-east-1:123456789012:function:lookup-customer (resource policy grants connect.amazonaws.com, SourceArn inst-abc123def456)\n  [✓] Queues: sales-queue-id-111, support-queue-id-222, default-queue-id-333\n  [✓] Routing profile: rp-xyz998877 (sales queue P1, support queue P2, VOICE concurrency 1)\n  [✓] Skill requirements: Sales (proficiency ≥ 4), Support (proficiency ≥ 4)\n  [✓] User hierarchy: Sales - North America (hg-sales-na)\n  [✓] Phone number: +18005551234 (toll-free, us-east-1, claimed via pn-456789)\n  [✓] Lex bot: arn:aws:lex:us-east-1:123456789012:bot-alias\u002FCustomerService:Prod (V2, published alias Prod, locale en_US matches instance)\n  [✓] Voice ID: disabled (consent disclosure not yet added to flow)\n  [✓] Contact Lens: post-call (transcription + sentiment + redaction)\n  [✓] Channels: VOICE, CHAT, TASK\n  [✓] Recording storage: S3 connect-recordings-123456789012 (KMS key arn:aws:kms:us-east-1:123456789012:key\u002Fabc-123-def-456)\n  [✓] Tags: Environment=production, Project=sales-cc, Owner=cc-ops\nCONTACT_FLOW_SNIPPET:\n{\n  \"Version\": \"1\",\n  \"StartAction\": \"check-hours\",\n  \"Actions\": [\n    {\n      \"Identifier\": \"check-hours\",\n      \"Type\": \"CheckHoursOfOperation\",\n      \"Transitions\": {\n        \"NextAction\": \"invoke-lookup-customer\",\n        \"Conditions\": [\n          {\"NextAction\": \"play-closed\", \"Condition\": {\"Operator\": \"Equals\", \"Operand\": \"False\"}}\n        ]\n      }\n    },\n    {\n      \"Identifier\": \"invoke-lookup-customer\",\n      \"Type\": \"InvokeLambda\",\n      \"Parameters\": {\n        \"FunctionARN\": \"arn:aws:lambda:us-east-1:123456789012:function:lookup-customer\",\n        \"InvocationTimeLimitSeconds\": 5\n      },\n      \"Transitions\": {\n        \"NextAction\": \"play-greeting\",\n        \"Exceptions\": [\n          {\"NextAction\": \"transfer-default\", \"Error\": \"Lambda.AccessDenied\"},\n          {\"NextAction\": \"transfer-default\", \"Error\": \"Lambda.Timeout\"}\n        ]\n      }\n    },\n    {\n      \"Identifier\": \"play-greeting\",\n      \"Type\": \"PlayPrompt\",\n      \"Parameters\": {\"Text\": \"Thanks for calling. How can I help you today?\"},\n      \"Transitions\": {\"NextAction\": \"invoke-lex-router\"}\n    },\n    {\n      \"Identifier\": \"invoke-lex-router\",\n      \"Type\": \"InvokeAmazonLex\",\n      \"Parameters\": {\n        \"BotAliasArn\": \"arn:aws:lex:us-east-1:123456789012:bot-alias\u002FCustomerService:Prod\",\n        \"Intent\": \"RouteCall\",\n        \"Slots\": {\"department\": null},\n        \"SessionAttributes\": {\"caller_id\": \"$.CustomerEndpoint.Address\"}\n      },\n      \"Transitions\": {\n        \"NextAction\": \"branch-on-department\",\n        \"Exceptions\": [{\"NextAction\": \"transfer-default\", \"Error\": \"Lex.Timeout\"}]\n      }\n    },\n    {\n      \"Identifier\": \"branch-on-department\",\n      \"Type\": \"Branch\",\n      \"Transitions\": {\n        \"Conditions\": [\n          {\"NextAction\": \"transfer-sales\",    \"Condition\": {\"Operator\": \"Equals\", \"Operand\": \"Sales\",   \"Reference\": \"$.Lex.Slots.department\"}},\n          {\"NextAction\": \"transfer-support\",  \"Condition\": {\"Operator\": \"Equals\", \"Operand\": \"Support\", \"Reference\": \"$.Lex.Slots.department\"}}\n        ]\n      }\n    },\n    {\"Identifier\": \"transfer-sales\",   \"Type\": \"TransferToQueue\", \"Parameters\": {\"QueueId\": \"sales-queue-id-111\"},   \"Transitions\": {}},\n    {\"Identifier\": \"transfer-support\", \"Type\": \"TransferToQueue\", \"Parameters\": {\"QueueId\": \"support-queue-id-222\"}, \"Transitions\": {}},\n    {\"Identifier\": \"transfer-default\", \"Type\": \"TransferToQueue\", \"Parameters\": {\"QueueId\": \"default-queue-id-333\"}, \"Transitions\": {}},\n    {\"Identifier\": \"play-closed\",      \"Type\": \"PlayPrompt\",      \"Parameters\": {\"Text\": \"We are closed. Please call back during business hours.\"}, \"Transitions\": {\"NextAction\": \"disconnect\"}},\n    {\"Identifier\": \"disconnect\",       \"Type\": \"Disconnect\",      \"Parameters\": {}, \"Transitions\": {}}\n  ]\n}\nVERIFICATION_COMMANDS:\n  aws connect describe-instance --instance-id inst-abc123def456\n  aws connect describe-contact-flow --instance-id inst-abc123def456 --contact-flow-id flow-def456789\n  aws connect describe-routing-profile --instance-id inst-abc123def456 --routing-profile-id rp-xyz998877\n  aws connect describe-phone-number --instance-id inst-abc123def456 --phone-number-id pn-456789\n  aws lambda get-policy --function-name lookup-customer --query 'Policy' --output text | grep connect.amazonaws.com\n  aws lexv2-models describe-bot-alias --bot-alias-id Prod --bot-id CustomerService\n  aws connect list-instance-storage-configs --instance-id inst-abc123def456\n```\n\nIf any prerequisite fails, emit the SAME shape with\n`VERDICT: PREREQUISITES_MISSING`, the failing row marked `[✗]` with a\nspecific gap citation (e.g. `[✗] Lex bot alias: DRAFT alias is not\npublishable — create a published alias`), the passing rows still listed,\nthe CONTACT_FLOW_SNIPPET still emitted (so the operator can see the\ndangling reference), and VERIFICATION_COMMANDS showing the command that\nwould confirm the gap.\n\n## Quick navigation\n\n| Section | When to read |\n|---|---|\n| Prerequisites | Always — verify before provisioning |\n| Step 1 — Instance creation (SAML, Connect dir, existing dir) | Identity mode |\n| Step 2 — Contact flow JSON | Authoring flows |\n| Step 3 — Lambda function integration (InvokeLambda block) | Dynamic IVR logic |\n| Step 4 — Queues and quick-connect lists | Routing targets |\n| Step 5 — Routing profiles (skills, proficiency) | Agent routing |\n| Step 6 — Agent hierarchy | Org structure |\n| Step 7 — Phone number claim (toll-free, DID) | Inbound numbers |\n| Step 8 — Skills-based routing | Skill matching |\n| Step 9 — Amazon Lex bot integration (IVR) | Conversational IVR |\n| Step 10 — Voice ID | Caller authentication |\n| Step 11 — Contact Lens | Quality analytics |\n| Step 12 — Chat, voice, task channels | Channel coverage |\n| Step 13 — S3 recording storage (KMS) | Call recordings |\n| Step 14 — Real-time and historical metrics | Operations |\n| Step 15 — Recent features | Latest |\n| NEVER do these things | Review before signing off |\n| Output format | The literal checklist template |\n| references\u002Fcontact-flow-json-and-lambda.md | Contact flow + Lambda detail |\n| references\u002Frouting-and-lex-integration.md | Routing profile + Lex detail |\n\n## Mindset\n\n**One-line takeaway:** An Amazon Connect instance is a contact-flow-\ncentric contact center. Every inbound contact traverses a contact\nflow (a JSON spec DAG of Action \u002F Branch \u002F Terminal blocks). Lambda\nfunctions invoked from the flow provide dynamic IVR logic. Routing\nprofiles match agents to contacts via skills (skill name +\nproficiency level). Lex bots handle conversational IVR inside the\nflow.\n\nThree misconceptions dominate Connect misdesign:\n\nThe three misconceptions in full (contact flow is a JSON DAG, routing profile carries skill requirements, IVR is conversational Lex) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand before designing the deployment.\n\n## Configuration dependency graph\n\nThe full dependency table (instance → flow → queue\u002Frouting\u002FLambda\u002FLex → phone\u002FVoice ID\u002FContact Lens\u002Frecording\u002Fmetrics) and cross-dependency gotchas moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand before sequencing the deployment.\n\n## Expert heuristic: contact flow JSON with Lambda invoke blocks\n\nContact-flow DAG walkthrough (CheckHours → InvokeLambda → Lex → branch → TransferToQueue), InvokeLambda JSON anatomy, and the resource-policy implication moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when authoring flows.\n\n## Expert heuristic: routing profile skill requirements\n\nSkills-based routing worked scenario (Agent A\u002FB eligibility by proficiency) and the three-component model moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when configuring routing.\n\n## Expert heuristic: Lex bot integration for IVR\n\nConversational-IVR walkthrough (intent elicitation, slot filling, branch-on-slot, unknown-intent loop) and published-alias requirement moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when wiring Lex.\n\n## Prerequisites (verify before provisioning)\n\n| Prerequisite | Why | How to verify |\n|---|---|---|\n| Instance alias unique | Alias is immutable once set | `aws connect list-instances` |\n| Identity mode decided | Set at instance creation | Confirm via planning |\n| SAML metadata (if SAML) | SAML federation needs IdP metadata | Verify metadata document |\n| Directory ID (if existing dir) | Existing-dir mode needs directory ID | `aws ds describe-directories` |\n| Service-linked role | Connect needs AWSServiceRoleForAmazonConnect (auto-created) | `aws iam get-role` |\n| Lambda functions deployed (if referenced) | Dangling refs fail at run time | `aws lambda get-function` |\n| Lambda resource policy grants Connect | Without it, InvokeLambda fails AccessDenied | `aws lambda get-policy` (look for connect.amazonaws.com) |\n| Lex V2 bot published (if used) | Connect invokes published alias | `aws lexv2-models describe-bot-alias` |\n| S3 bucket for recordings with KMS | Recording storage requires S3 + KMS | `aws s3api get-bucket-encryption` + `aws kms describe-key` |\n| KMS key policy grants Connect | Without policy, recordings cannot be encrypted | `aws kms get-key-policy` |\n| IAM permissions | Operator needs connect:CreateInstance, CreateContactFlow, etc. | Check attached policies |\n| Phone number quota | Each instance has a quota (soft limit) | `aws service-quotas get-service-quota` |\n\nIf any prerequisite is missing, output\n`VERDICT: PREREQUISITES_MISSING` and cite the specific gap.\n\n## Step 1 — Instance creation (SAML, Connect directory, existing directory)\n\n| Mode | Identity source | Use case |\n|---|---|---|\n| `SAML` | External IdP via SAML 2.0 (Okta, Azure AD) | Enterprise SSO |\n| `CONNECT_MANAGED` | Amazon Connect directory (built-in user pool) | Standalone; small teams |\n| `EXISTING_DIRECTORY` | Existing AWS Directory Service directory | AD-integrated enterprises |\n\nStep 1 create-instance CLI (SAML \u002F CONNECT_MANAGED \u002F EXISTING_DIRECTORY variants) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when provisioning the instance.\n\n## Step 2 — Contact flow JSON\n\nStep 2 block-category catalog, create-contact-flow CLI, JSON schema notes, and verify commands moved verbatim to [references\u002Fcontact-flow-json-and-lambda.md](references\u002Fcontact-flow-json-and-lambda.md).\nLoad on demand when authoring the flow.\n\n## Step 3 — Lambda function integration (InvokeLambda block)\n\nStep 3 add-permission CLI (connect.amazonaws.com principal + SourceArn), Python handler example, and exception-handling requirement moved verbatim to [references\u002Fcontact-flow-json-and-lambda.md](references\u002Fcontact-flow-json-and-lambda.md).\nLoad on demand when integrating Lambda.\n\n## Step 4 — Queues and quick-connect lists\n\nStep 4 create-queue and create-quick-connect CLI moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when creating queues.\n\n## Step 5 — Routing profiles (skills, proficiency, queue associations)\n\nStep 5 create-routing-profile CLI (queue configs, priorities, media concurrencies) and queue-priority guidance moved verbatim to [references\u002Frouting-and-lex-integration.md](references\u002Frouting-and-lex-integration.md).\nLoad on demand when creating routing profiles.\n\n## Step 6 — Agent hierarchy\n\nStep 6 create-user-hierarchy-group CLI moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when building the hierarchy.\n\n## Step 7 — Phone number claim (toll-free, DID)\n\nStep 7 claim-phone-number CLI, DID\u002Fporting notes, and region-matching rule moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when claiming numbers.\n\n## Step 8 — Skills-based routing\n\nStep 8 three-component table (skill on instance, proficiency on agent, required skill on contact) and configuration notes moved verbatim to [references\u002Frouting-and-lex-integration.md](references\u002Frouting-and-lex-integration.md).\nLoad on demand when configuring skills-based routing.\n\n## Step 9 — Amazon Lex bot integration (IVR)\n\nLex V2 bots are integrated via the InvokeAmazonLex block. The bot\nelicits an intent and fills slots via conversation, then returns\nintent + slots to the flow.\n\nPrerequisites: Lex V2 bot with at least one published alias (NOT\nDRAFT); bot locale matches the Connect instance language.\n\nStep 9 InvokeAmazonLex block JSON (BotAliasArn, Intent, Slots, SessionAttributes, Lex.Timeout exception) moved verbatim to [references\u002Frouting-and-lex-integration.md](references\u002Frouting-and-lex-integration.md).\nLoad on demand when wiring Lex IVR.\n\nVerify: `aws lexv2-models describe-bot-alias` and\n`aws lexv2-runtime recognize-text`. Lex V1 is on a deprecation\npath — use Lex V2 for all new deployments.\n\n## Step 10 — Voice ID (speaker enrollment, fraud)\n\nStep 10 Voice ID prerequisites (domain, consent disclosure) and block JSON (enroll\u002Fauthenticate, result branches) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when enabling Voice ID.\n\n## Step 11 — Contact Lens (sentiment, transcription, redaction)\n\nStep 11 Contact Lens feature table (real-time vs post-call) and storage-config CLI moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when enabling Contact Lens.\n\n## Step 12 — Chat, voice, task channels\n\nStep 12 channel table (VOICE\u002FCHAT\u002FTASK provisioning) and create-task-template CLI moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when covering channels.\n\n## Step 13 — S3 recording storage (KMS encryption)\n\nStep 13 put-bucket-encryption + associate-instance-storage-config CLI and the KMS key-policy requirement moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when configuring recordings.\n\n## Step 14 — Real-time and historical metrics\n\nStep 14 metrics table (real-time, historical CTR, Kinesis custom) and get-contact-metrics CLI moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when wiring metrics.\n\n## Step 15 — Recent features\n\nStep 15 recent features (Amazon Q in Connect, Customer Profiles, Cases, Voice ID improvements, real-time summaries, Lex generative AI, WebRTC) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand for latest capabilities.\n\n## NEVER do these things\n\n1. **NEVER author a contact flow without verifying referenced\n   resources.** A flow with a dangling queue\u002FLambda\u002FLex ARN\n   creates successfully but fails at run time.\n2. **NEVER invoke a Lambda without a resource policy granting\n   Connect.** Without it, InvokeLambda returns AccessDenied. Add\n   via `aws lambda add-permission --principal connect.amazonaws.com`.\n3. **NEVER assume a routing profile without skills produces\n   skills-based routing.** Without skill requirements, routing\n   silently degrades to queue-priority.\n4. **NEVER use Lex V1 for new deployments.** Lex V1 is on a\n   deprecation path. Use Lex V2 via InvokeAmazonLex.\n5. **NEVER claim a phone number in a region different from the\n   instance.** US toll-free does not work in EU instances.\n6. **NEVER enable Voice ID without consent disclosure.** Voice\n   biometrics require caller consent (legal requirement).\n7. **NEVER store call recordings in S3 without KMS encryption.**\n   Always use SSE-KMS with a key policy granting Connect.\n8. **NEVER use a DRAFT Lex bot alias in production.** Connect\n   invokes published aliases. DRAFT changes can break the flow\n   silently.\n9. **NEVER forget exceptions on InvokeLambda blocks.** Handle\n   AccessDenied, Timeout, GenericError — otherwise the contact is\n   trapped.\n10. **NEVER assume instance alias is mutable.** Alias is set at\n    instance creation and is immutable.\n\n## Output format\n\n```text\nCONNECT_INSTANCE: \u003Cinstance-id> (\u003Calias>, \u003Cidentity-mode>)\nVERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING\nCHECKLIST:\n  [✓|✗] Instance: \u003Cinstance-id> (\u003Calias>)\n  [✓|✗] Identity mode: SAML | CONNECT_MANAGED | EXISTING_DIRECTORY\n  [✓|✗] Directory: \u003Cdirectory-id or N\u002FA>\n  [✓|✗] Contact flow: \u003Cflow-id> (\u003Cname>, \u003Ctype>, \u003Cverified>)\n  [✓|✗] Lambda integration: \u003Cfunction-arn> (resource policy grants Connect)\n  [✓|✗] Queues: \u003Cqueue-id list>\n  [✓|✗] Routing profile: \u003Cprofile-id> (queues, skills, concurrency)\n  [✓|✗] Skill requirements: \u003Cskill-name:proficiency> | none (queue-priority only)\n  [✓|✗] User hierarchy: \u003Chierarchy-group-id>\n  [✓|✗] Phone number: \u003CE.164> (\u003Ctoll-free | DID>, \u003Cregion>)\n  [✓|✗] Lex bot: \u003Cbot-alias-arn> (V2, published, locale matches)\n  [✓|✗] Voice ID: \u003Cdomain-id> (consent disclosure in flow) | disabled\n  [✓|✗] Contact Lens: \u003Creal-time | post-call | both>\n  [✓|✗] Channels: VOICE | CHAT | TASK\n  [✓|✗] Recording storage: S3 (\u003Cbucket>, KMS \u003Ckey-id>)\n  [✓|✗] Tags: \u003Ckey=value list>\nVERIFICATION_COMMANDS:\n  aws connect describe-instance --instance-id \u003Cinstance-id>\n  aws connect describe-contact-flow --instance-id \u003Cinstance-id> --contact-flow-id \u003Cflow-id>\n  aws connect describe-routing-profile --instance-id \u003Cinstance-id> --routing-profile-id \u003Cprofile-id>\n  aws connect describe-phone-number --instance-id \u003Cinstance-id> --phone-number-id \u003Cphone-number-id>\n  aws connect list-instance-storage-configs --instance-id \u003Cinstance-id>\n```\n\n### Worked example — SAML instance with Lambda-driven flow and Lex IVR\n\nWorked example — SAML instance with Lambda-driven flow and Lex IVR (READY_TO_DEPLOY checklist + verification commands) moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nLoad on demand for the filled-in output shape.\n\n## Error handling\n\nError handling (dangling flow refs, Lambda AccessDenied, wrong-agent routing, phone-claim failures, Lex timeouts, Voice ID consent, missing recordings, metrics) moved verbatim to [references\u002Ferror-handling.md](references\u002Ferror-handling.md).\nLoad on demand when diagnosing failures.\n\n## References (load on demand)\n\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — Mindset misconceptions, configuration dependency graph, expert heuristics, Step 1\u002F4\u002F6\u002F7\u002F10-15 provisioning recipes, and recent features moved from SKILL.md.\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — the checklist-form worked example moved from SKILL.md.\n- [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — error handling for flows, Lambda, routing, phone claims, Lex, Voice ID, recordings, and metrics moved from SKILL.md.\n- [references\u002Fcontact-flow-json-and-lambda.md](references\u002Fcontact-flow-json-and-lambda.md) — now also holds the Step 2 flow-JSON detail and Step 3 Lambda-integration detail moved from SKILL.md.\n- [references\u002Frouting-and-lex-integration.md](references\u002Frouting-and-lex-integration.md) — now also holds the Step 5 routing-profile CLI, Step 8 skills components, and Step 9 InvokeAmazonLex JSON moved from SKILL.md.\n\n## Domain\n\nAWS CloudOps \u002F Amazon Connect Contact Center Provisioning —\nInstances, Contact Flows, Queues, Routing Profiles, Phone Numbers,\nVoice ID, Contact Lens, Channels, Recording Storage, Metrics.\n\n## AWS documentation\n\n- **Amazon Connect Administrator Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fconnect\u002Flatest\u002Fadminguide\u002Fwhat-is-amazon-connect.html\n- **Create instance (SAML, Connect dir, existing dir)** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fconnect\u002Flatest\u002Fadminguide\u002Fconnect-launch.html\n- **Contact flows (drag-and-drop, JSON)** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fconnect\u002Flatest\u002Fadminguide\u002Fcontact-flows.html\n- **Contact flow JSON schema** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fconnect\u002Flatest\u002Fadminguide\u002Fcontact-flow-language.html\n- **Lambda function invocation** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fconnect\u002Flatest\u002Fadminguide\u002Fconnect-lambda-functions.html\n- **Queues, routing profiles, skills-based routing** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fconnect\u002Flatest\u002Fadminguide\u002Fqueues-and-routing.html\n- **Claim phone numbers** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fconnect\u002Flatest\u002Fadminguide\u002Fclaim-phone-number.html\n- **Amazon Lex integration \u002F Voice ID** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fconnect\u002Flatest\u002Fadminguide\u002Fconnect-lex-bots.html\n- **Contact Lens for Amazon Connect** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fconnect\u002Flatest\u002Fadminguide\u002Fenable-analytics.html\n- **Chat \u002F Task channels** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fconnect\u002Flatest\u002Fadminguide\u002Fchat.html\n- **S3 recording storage with KMS** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fconnect\u002Flatest\u002Fadminguide\u002Fsetup-data-storage.html\n- **Real-time and historical metrics** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fconnect\u002Flatest\u002Fadminguide\u002Fmetrics.html\n- **API reference \u002F Amazon Q in Connect** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fconnect\u002Flatest\u002FAPIReference\u002FWelcome.html","# Connect Instance Deployer\n\nAn AWS CloudOps agent skill that provisions Amazon Connect instances,\ncontact flows, queues, routing profiles, phone numbers, and channel\nintegrations with contact-center-best-practice defaults. The skill\nwalks identity-mode selection (SAML, Connect directory, existing AWS\nDirectory Service directory), contact-flow authoring (JSON spec with\nLambda invoke blocks, branching, queue transfers, Lex IVR), routing-\nprofile skill requirements (skill name + proficiency level), phone\nnumber claim (toll-free, DID), Voice ID, Contact Lens, S3 recording\nwith KMS, and metrics. The skill surfaces the three expert\nheuristics (contact flow JSON with Lambda invoke blocks, routing\nprofile skill requirements, Lex bot integration for IVR) and emits a\nREADY_TO_DEPLOY checklist with verification commands.\n\n## Activation keywords\n\ncreate Connect instance, SAML identity, contact flow JSON, Lambda\ninvoke block, queue and routing profile, routing profile skill,\nclaim phone number toll-free, DID porting, Lex bot IVR, Voice ID\nenrollment, Contact Lens sentiment, Connect task, S3 recording KMS,\nquick-connect, agent hierarchy, real-time metrics.\n\n## STRICT output contract\n\nWhen invoked with a Connect-provisioning request, the agent MUST\nrespond with the READY_TO_DEPLOY checklist defined below. This\ncontract is what assertion-based evals and downstream pipelines rely\non; deviating breaks automation silently.\n\n### Required output structure\n\nThe model MUST emit output using these literal labels, in this order,\nas the FIRST lines of the response (no prose, headings, or disclaimers\nbefore them):\n\n- `CONNECT_INSTANCE: \u003Cinstance-id> (\u003Calias>, \u003Cidentity-mode>)` — first line\n- `VERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING` — second line\n- `CHECKLIST:` followed by `- [✓]` or `- [✗]` items (one row per dimension below)\n- `CONTACT_FLOW_SNIPPET:` followed by a fenced JSON block (the actual flow, not a placeholder)\n- `VERIFICATION_COMMANDS:` followed by a fenced block of copy-pasteable CLI\n\nThe CHECKLIST MUST cover every dimension, in this order: instance +\nidentity mode (SAML \u002F CONNECT_MANAGED \u002F EXISTING_DIRECTORY), directory\nID (or N\u002FA), contact flow (flow ID + name + type + \"all referenced\nresources verified\"), Lambda integration (function ARN + resource\npolicy grants `connect.amazonaws.com`), queues (queue IDs), routing\nprofile (profile ID + queues + skills + concurrency), skill\nrequirements (skill name + proficiency threshold), user hierarchy,\nphone number (E.164 + toll-free\u002FDID + region), Lex bot (bot alias ARN\n+ V2 + published + locale), Voice ID (domain ID + consent disclosure),\nContact Lens (real-time \u002F post-call \u002F both), channels (VOICE \u002F CHAT \u002F\nTASK), recording storage (S3 bucket + KMS key ID), and tags.\n\nThe CONTACT_FLOW_SNIPPET MUST be a real, runnable JSON block (not a\nplaceholder, not pseudocode) showing at minimum: Start, a CheckHoursOfOperation\nbranch, an InvokeLambda Action with Exception transitions, an\nInvokeAmazonLex Action, a TransferToQueue Terminal, and a Disconnect\nTerminal. Use concrete Identifier values and real ARNs consistent with\nthe CHECKLIST rows.\n\n### Decision tree (determines VERDICT)\n\n```text\nIs the instance alias unique (no existing instance with same alias)?\n├── NO  → VERDICT: PREREQUISITES_MISSING  ([✗] Instance alias collision)\n└── YES → Is the identity mode decided (SAML \u002F CONNECT_MANAGED \u002F EXISTING_DIRECTORY)?\n          ├── NO  → VERDICT: PREREQUISITES_MISSING  ([✗] Identity mode)\n          └── YES → If SAML, is the IdP metadata document available?\n                    ├── NO  → VERDICT: PREREQUISITES_MISSING  ([✗] SAML metadata)\n                    └── YES → Does every contact-flow reference resolve (queue, Lambda, Lex)?\n                              ├── NO  → VERDICT: PREREQUISITES_MISSING  ([✗] Dangling flow reference — name it)\n                              └── YES → Does every Lambda have a resource policy granting connect.amazonaws.com?\n                                        ├── NO  → VERDICT: PREREQUISITES_MISSING  ([✗] Lambda resource policy)\n                                        └── YES → Is the Lex bot a published V2 alias (not DRAFT) with matching locale?\n                                                  ├── NO  → VERDICT: PREREQUISITES_MISSING  ([✗] Lex bot alias)\n                                                  └── YES → All prerequisites satisfied\n                                                            → VERDICT: READY_TO_DEPLOY\n```\n\n### FORBIDDEN patterns (NEVER)\n\n1. **NEVER preface the CHECKLIST** with prose, headings, or disclaimers — emit the block as the first lines of the response.\n2. **NEVER omit the VERIFICATION_COMMANDS section**, even when every checklist item passes.\n3. **NEVER use generic placeholders** (`\u003Cinstance-id>`, `\u003Cyour-flow>`, `\u003Cregion>`) in a worked example — always use concrete instance IDs, real ARNs, actual queue\u002Fprofile IDs, and specific CLI commands.\n4. **NEVER mix verdict shapes** — if any prerequisite is `[✗]`, VERDICT MUST be `PREREQUISITES_MISSING` and `READY_TO_DEPLOY` MUST NOT also appear.\n5. **NEVER skip a CHECKLIST row** — every dimension (instance, identity, directory, flow, Lambda, queues, routing profile, skills, hierarchy, phone number, Lex, Voice ID, Contact Lens, channels, recording, tags) gets a `[✓]` or `[✗]` line.\n6. **NEVER emit a CONTACT_FLOW_SNIPPET that is pseudocode or a placeholder** — it MUST be valid JSON that `create-contact-flow --content` would accept.\n7. **NEVER list a Lambda integration as `[✓]` without confirming the resource policy** grants `connect.amazonaws.com` invoke with the instance ARN as `SourceArn` — otherwise InvokeLambda returns AccessDenied at run time.\n8. **NEVER list a Lex bot as `[✓]` if the alias is DRAFT** — Connect invokes published aliases only; DRAFT changes break the flow silently.\n9. **NEVER list a routing profile as `[✓]` without skill requirements** if the scenario calls for skills-based routing — without skills, routing silently degrades to queue-priority.\n\n### Perfect example — SAML instance with Lambda-driven flow and Lex V2 IVR\n\nThis is the EXACT shape the model emits for a positive scenario. The\nCONTACT_FLOW_SNIPPET is a real JSON block (Start → CheckHours →\nInvokeLambda → InvokeAmazonLex → branch → TransferToQueue \u002F Disconnect).\nReplace the concrete values with the scenario's values; do not\ngenericise them into placeholders.\n\n```text\nCONNECT_INSTANCE: inst-abc123def456 (my-connect-cc, SAML)\nVERDICT: READY_TO_DEPLOY\nCHECKLIST:\n  [✓] Instance: inst-abc123def456 (alias my-connect-cc, us-east-1)\n  [✓] Identity mode: SAML (Okta IdP, metadata document loaded)\n  [✓] Directory: N\u002FA (SAML federation, no Connect-managed directory)\n  [✓] Contact flow: flow-def456789 (inbound-main-flow, CONTACT_FLOW, all referenced resources verified)\n  [✓] Lambda integration: arn:aws:lambda:us-east-1:123456789012:function:lookup-customer (resource policy grants connect.amazonaws.com, SourceArn inst-abc123def456)\n  [✓] Queues: sales-queue-id-111, support-queue-id-222, default-queue-id-333\n  [✓] Routing profile: rp-xyz998877 (sales queue P1, support queue P2, VOICE concurrency 1)\n  [✓] Skill requirements: Sales (proficiency ≥ 4), Support (proficiency ≥ 4)\n  [✓] User hierarchy: Sales - North America (hg-sales-na)\n  [✓] Phone number: +18005551234 (toll-free, us-east-1, claimed via pn-456789)\n  [✓] Lex bot: arn:aws:lex:us-east-1:123456789012:bot-alias\u002FCustomerService:Prod (V2, published alias Prod, locale en_US matches instance)\n  [✓] Voice ID: disabled (consent disclosure not yet added to flow)\n  [✓] Contact Lens: post-call (transcription + sentiment + redaction)\n  [✓] Channels: VOICE, CHAT, TASK\n  [✓] Recording storage: S3 connect-recordings-123456789012 (KMS key arn:aws:kms:us-east-1:123456789012:key\u002Fabc-123-def-456)\n  [✓] Tags: Environment=production, Project=sales-cc, Owner=cc-ops\nCONTACT_FLOW_SNIPPET:\n{\n  \"Version\": \"1\",\n  \"StartAction\": \"check-hours\",\n  \"Actions\": [\n    {\n      \"Identifier\": \"check-hours\",\n      \"Type\": \"CheckHoursOfOperation\",\n      \"Transitions\": {\n        \"NextAction\": \"invoke-lookup-customer\",\n        \"Conditions\": [\n          {\"NextAction\": \"play-closed\", \"Condition\": {\"Operator\": \"Equals\", \"Operand\": \"False\"}}\n        ]\n      }\n    },\n    {\n      \"Identifier\": \"invoke-lookup-customer\",\n      \"Type\": \"InvokeLambda\",\n      \"Parameters\": {\n        \"FunctionARN\": \"arn:aws:lambda:us-east-1:123456789012:function:lookup-customer\",\n        \"InvocationTimeLimitSeconds\": 5\n      },\n      \"Transitions\": {\n        \"NextAction\": \"play-greeting\",\n        \"Exceptions\": [\n          {\"NextAction\": \"transfer-default\", \"Error\": \"Lambda.AccessDenied\"},\n          {\"NextAction\": \"transfer-default\", \"Error\": \"Lambda.Timeout\"}\n        ]\n      }\n    },\n    {\n      \"Identifier\": \"play-greeting\",\n      \"Type\": \"PlayPrompt\",\n      \"Parameters\": {\"Text\": \"Thanks for calling. How can I help you today?\"},\n      \"Transitions\": {\"NextAction\": \"invoke-lex-router\"}\n    },\n    {\n      \"Identifier\": \"invoke-lex-router\",\n      \"Type\": \"InvokeAmazonLex\",\n      \"Parameters\": {\n        \"BotAliasArn\": \"arn:aws:lex:us-east-1:123456789012:bot-alias\u002FCustomerService:Prod\",\n        \"Intent\": \"RouteCall\",\n        \"Slots\": {\"department\": null},\n        \"SessionAttributes\": {\"caller_id\": \"$.CustomerEndpoint.Address\"}\n      },\n      \"Transitions\": {\n        \"NextAction\": \"branch-on-department\",\n        \"Exceptions\": [{\"NextAction\": \"transfer-default\", \"Error\": \"Lex.Timeout\"}]\n      }\n    },\n    {\n      \"Identifier\": \"branch-on-department\",\n      \"Type\": \"Branch\",\n      \"Transitions\": {\n        \"Conditions\": [\n          {\"NextAction\": \"transfer-sales\",    \"Condition\": {\"Operator\": \"Equals\", \"Operand\": \"Sales\",   \"Reference\": \"$.Lex.Slots.department\"}},\n          {\"NextAction\": \"transfer-support\",  \"Condition\": {\"Operator\": \"Equals\", \"Operand\": \"Support\", \"Reference\": \"$.Lex.Slots.department\"}}\n        ]\n      }\n    },\n    {\"Identifier\": \"transfer-sales\",   \"Type\": \"TransferToQueue\", \"Parameters\": {\"QueueId\": \"sales-queue-id-111\"},   \"Transitions\": {}},\n    {\"Identifier\": \"transfer-support\", \"Type\": \"TransferToQueue\", \"Parameters\": {\"QueueId\": \"support-queue-id-222\"}, \"Transitions\": {}},\n    {\"Identifier\": \"transfer-default\", \"Type\": \"TransferToQueue\", \"Parameters\": {\"QueueId\": \"default-queue-id-333\"}, \"Transitions\": {}},\n    {\"Identifier\": \"play-closed\",      \"Type\": \"PlayPrompt\",      \"Parameters\": {\"Text\": \"We are closed. Please call back during business hours.\"}, \"Transitions\": {\"NextAction\": \"disconnect\"}},\n    {\"Identifier\": \"disconnect\",       \"Type\": \"Disconnect\",      \"Parameters\": {}, \"Transitions\": {}}\n  ]\n}\nVERIFICATION_COMMANDS:\n  aws connect describe-instance --instance-id inst-abc123def456\n  aws connect describe-contact-flow --instance-id inst-abc123def456 --contact-flow-id flow-def456789\n  aws connect describe-routing-profile --instance-id inst-abc123def456 --routing-profile-id rp-xyz998877\n  aws connect describe-phone-number --instance-id inst-abc123def456 --phone-number-id pn-456789\n  aws lambda get-policy --function-name lookup-customer --query 'Policy' --output text | grep connect.amazonaws.com\n  aws lexv2-models describe-bot-alias --bot-alias-id Prod --bot-id CustomerService\n  aws connect list-instance-storage-configs --instance-id inst-abc123def456\n```\n\nIf any prerequisite fails, emit the SAME shape with\n`VERDICT: PREREQUISITES_MISSING`, the failing row marked `[✗]` with a\nspecific gap citation (e.g. `[✗] Lex bot alias: DRAFT alias is not\npublishable — create a published alias`), the passing rows still listed,\nthe CONTACT_FLOW_SNIPPET still emitted (so the operator can see the\ndangling reference), and VERIFICATION_COMMANDS showing the command that\nwould confirm the gap.\n\n## Quick navigation\n\n| Section | When to read |\n|---|---|\n| Prerequisites | Always — verify before provisioning |\n| Step 1 — Instance creation (SAML, Connect dir, existing dir) | Identity mode |\n| Step 2 — Contact flow JSON | Authoring flows |\n| Step 3 — Lambda function integration (InvokeLambda block) | Dynamic IVR logic |\n| Step 4 — Queues and quick-connect lists | Routing targets |\n| Step 5 — Routing profiles (skills, proficiency) | Agent routing |\n| Step 6 — Agent hierarchy | Org structure |\n| Step 7 — Phone number claim (toll-free, DID) | Inbound numbers |\n| Step 8 — Skills-based routing | Skill matching |\n| Step 9 — Amazon Lex bot integration (IVR) | Conversational IVR |\n| Step 10 — Voice ID | Caller authentication |\n| Step 11 — Contact Lens | Quality analytics |\n| Step 12 — Chat, voice, task channels | Channel coverage |\n| Step 13 — S3 recording storage (KMS) | Call recordings |\n| Step 14 — Real-time and historical metrics | Operations |\n| Step 15 — Recent features | Latest |\n| NEVER do these things | Review before signing off |\n| Output format | The literal checklist template |\n| references\u002Fcontact-flow-json-and-lambda.md | Contact flow + Lambda detail |\n| references\u002Frouting-and-lex-integration.md | Routing profile + Lex detail |\n\n## Mindset\n\n**One-line takeaway:** An Amazon Connect instance is a contact-flow-\ncentric contact center. Every inbound contact traverses a contact\nflow (a JSON spec DAG of Action \u002F Branch \u002F Terminal blocks). Lambda\nfunctions invoked from the flow provide dynamic IVR logic. Routing\nprofiles match agents to contacts via skills (skill name +\nproficiency level). Lex bots handle conversational IVR inside the\nflow.\n\nThree misconceptions dominate Connect misdesign:\n\nThe three misconceptions in full (contact flow is a JSON DAG, routing profile carries skill requirements, IVR is conversational Lex) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand before designing the deployment.\n\n## Configuration dependency graph\n\nThe full dependency table (instance → flow → queue\u002Frouting\u002FLambda\u002FLex → phone\u002FVoice ID\u002FContact Lens\u002Frecording\u002Fmetrics) and cross-dependency gotchas moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand before sequencing the deployment.\n\n## Expert heuristic: contact flow JSON with Lambda invoke blocks\n\nContact-flow DAG walkthrough (CheckHours → InvokeLambda → Lex → branch → TransferToQueue), InvokeLambda JSON anatomy, and the resource-policy implication moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when authoring flows.\n\n## Expert heuristic: routing profile skill requirements\n\nSkills-based routing worked scenario (Agent A\u002FB eligibility by proficiency) and the three-component model moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when configuring routing.\n\n## Expert heuristic: Lex bot integration for IVR\n\nConversational-IVR walkthrough (intent elicitation, slot filling, branch-on-slot, unknown-intent loop) and published-alias requirement moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when wiring Lex.\n\n## Prerequisites (verify before provisioning)\n\n| Prerequisite | Why | How to verify |\n|---|---|---|\n| Instance alias unique | Alias is immutable once set | `aws connect list-instances` |\n| Identity mode decided | Set at instance creation | Confirm via planning |\n| SAML metadata (if SAML) | SAML federation needs IdP metadata | Verify metadata document |\n| Directory ID (if existing dir) | Existing-dir mode needs directory ID | `aws ds describe-directories` |\n| Service-linked role | Connect needs AWSServiceRoleForAmazonConnect (auto-created) | `aws iam get-role` |\n| Lambda functions deployed (if referenced) | Dangling refs fail at run time | `aws lambda get-function` |\n| Lambda resource policy grants Connect | Without it, InvokeLambda fails AccessDenied | `aws lambda get-policy` (look for connect.amazonaws.com) |\n| Lex V2 bot published (if used) | Connect invokes published alias | `aws lexv2-models describe-bot-alias` |\n| S3 bucket for recordings with KMS | Recording storage requires S3 + KMS | `aws s3api get-bucket-encryption` + `aws kms describe-key` |\n| KMS key policy grants Connect | Without policy, recordings cannot be encrypted | `aws kms get-key-policy` |\n| IAM permissions | Operator needs connect:CreateInstance, CreateContactFlow, etc. | Check attached policies |\n| Phone number quota | Each instance has a quota (soft limit) | `aws service-quotas get-service-quota` |\n\nIf any prerequisite is missing, output\n`VERDICT: PREREQUISITES_MISSING` and cite the specific gap.\n\n## Step 1 — Instance creation (SAML, Connect directory, existing directory)\n\n| Mode | Identity source | Use case |\n|---|---|---|\n| `SAML` | External IdP via SAML 2.0 (Okta, Azure AD) | Enterprise SSO |\n| `CONNECT_MANAGED` | Amazon Connect directory (built-in user pool) | Standalone; small teams |\n| `EXISTING_DIRECTORY` | Existing AWS Directory Service directory | AD-integrated enterprises |\n\nStep 1 create-instance CLI (SAML \u002F CONNECT_MANAGED \u002F EXISTING_DIRECTORY variants) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when provisioning the instance.\n\n## Step 2 — Contact flow JSON\n\nStep 2 block-category catalog, create-contact-flow CLI, JSON schema notes, and verify commands moved verbatim to [references\u002Fcontact-flow-json-and-lambda.md](references\u002Fcontact-flow-json-and-lambda.md).\nLoad on demand when authoring the flow.\n\n## Step 3 — Lambda function integration (InvokeLambda block)\n\nStep 3 add-permission CLI (connect.amazonaws.com principal + SourceArn), Python handler example, and exception-handling requirement moved verbatim to [references\u002Fcontact-flow-json-and-lambda.md](references\u002Fcontact-flow-json-and-lambda.md).\nLoad on demand when integrating Lambda.\n\n## Step 4 — Queues and quick-connect lists\n\nStep 4 create-queue and create-quick-connect CLI moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when creating queues.\n\n## Step 5 — Routing profiles (skills, proficiency, queue associations)\n\nStep 5 create-routing-profile CLI (queue configs, priorities, media concurrencies) and queue-priority guidance moved verbatim to [references\u002Frouting-and-lex-integration.md](references\u002Frouting-and-lex-integration.md).\nLoad on demand when creating routing profiles.\n\n## Step 6 — Agent hierarchy\n\nStep 6 create-user-hierarchy-group CLI moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when building the hierarchy.\n\n## Step 7 — Phone number claim (toll-free, DID)\n\nStep 7 claim-phone-number CLI, DID\u002Fporting notes, and region-matching rule moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when claiming numbers.\n\n## Step 8 — Skills-based routing\n\nStep 8 three-component table (skill on instance, proficiency on agent, required skill on contact) and configuration notes moved verbatim to [references\u002Frouting-and-lex-integration.md](references\u002Frouting-and-lex-integration.md).\nLoad on demand when configuring skills-based routing.\n\n## Step 9 — Amazon Lex bot integration (IVR)\n\nLex V2 bots are integrated via the InvokeAmazonLex block. The bot\nelicits an intent and fills slots via conversation, then returns\nintent + slots to the flow.\n\nPrerequisites: Lex V2 bot with at least one published alias (NOT\nDRAFT); bot locale matches the Connect instance language.\n\nStep 9 InvokeAmazonLex block JSON (BotAliasArn, Intent, Slots, SessionAttributes, Lex.Timeout exception) moved verbatim to [references\u002Frouting-and-lex-integration.md](references\u002Frouting-and-lex-integration.md).\nLoad on demand when wiring Lex IVR.\n\nVerify: `aws lexv2-models describe-bot-alias` and\n`aws lexv2-runtime recognize-text`. Lex V1 is on a deprecation\npath — use Lex V2 for all new deployments.\n\n## Step 10 — Voice ID (speaker enrollment, fraud)\n\nStep 10 Voice ID prerequisites (domain, consent disclosure) and block JSON (enroll\u002Fauthenticate, result branches) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when enabling Voice ID.\n\n## Step 11 — Contact Lens (sentiment, transcription, redaction)\n\nStep 11 Contact Lens feature table (real-time vs post-call) and storage-config CLI moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when enabling Contact Lens.\n\n## Step 12 — Chat, voice, task channels\n\nStep 12 channel table (VOICE\u002FCHAT\u002FTASK provisioning) and create-task-template CLI moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when covering channels.\n\n## Step 13 — S3 recording storage (KMS encryption)\n\nStep 13 put-bucket-encryption + associate-instance-storage-config CLI and the KMS key-policy requirement moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when configuring recordings.\n\n## Step 14 — Real-time and historical metrics\n\nStep 14 metrics table (real-time, historical CTR, Kinesis custom) and get-contact-metrics CLI moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when wiring metrics.\n\n## Step 15 — Recent features\n\nStep 15 recent features (Amazon Q in Connect, Customer Profiles, Cases, Voice ID improvements, real-time summaries, Lex generative AI, WebRTC) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand for latest capabilities.\n\n## NEVER do these things\n\n1. **NEVER author a contact flow without verifying referenced\n   resources.** A flow with a dangling queue\u002FLambda\u002FLex ARN\n   creates successfully but fails at run time.\n2. **NEVER invoke a Lambda without a resource policy granting\n   Connect.** Without it, InvokeLambda returns AccessDenied. Add\n   via `aws lambda add-permission --principal connect.amazonaws.com`.\n3. **NEVER assume a routing profile without skills produces\n   skills-based routing.** Without skill requirements, routing\n   silently degrades to queue-priority.\n4. **NEVER use Lex V1 for new deployments.** Lex V1 is on a\n   deprecation path. Use Lex V2 via InvokeAmazonLex.\n5. **NEVER claim a phone number in a region different from the\n   instance.** US toll-free does not work in EU instances.\n6. **NEVER enable Voice ID without consent disclosure.** Voice\n   biometrics require caller consent (legal requirement).\n7. **NEVER store call recordings in S3 without KMS encryption.**\n   Always use SSE-KMS with a key policy granting Connect.\n8. **NEVER use a DRAFT Lex bot alias in production.** Connect\n   invokes published aliases. DRAFT changes can break the flow\n   silently.\n9. **NEVER forget exceptions on InvokeLambda blocks.** Handle\n   AccessDenied, Timeout, GenericError — otherwise the contact is\n   trapped.\n10. **NEVER assume instance alias is mutable.** Alias is set at\n    instance creation and is immutable.\n\n## Output format\n\n```text\nCONNECT_INSTANCE: \u003Cinstance-id> (\u003Calias>, \u003Cidentity-mode>)\nVERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING\nCHECKLIST:\n  [✓|✗] Instance: \u003Cinstance-id> (\u003Calias>)\n  [✓|✗] Identity mode: SAML | CONNECT_MANAGED | EXISTING_DIRECTORY\n  [✓|✗] Directory: \u003Cdirectory-id or N\u002FA>\n  [✓|✗] Contact flow: \u003Cflow-id> (\u003Cname>, \u003Ctype>, \u003Cverified>)\n  [✓|✗] Lambda integration: \u003Cfunction-arn> (resource policy grants Connect)\n  [✓|✗] Queues: \u003Cqueue-id list>\n  [✓|✗] Routing profile: \u003Cprofile-id> (queues, skills, concurrency)\n  [✓|✗] Skill requirements: \u003Cskill-name:proficiency> | none (queue-priority only)\n  [✓|✗] User hierarchy: \u003Chierarchy-group-id>\n  [✓|✗] Phone number: \u003CE.164> (\u003Ctoll-free | DID>, \u003Cregion>)\n  [✓|✗] Lex bot: \u003Cbot-alias-arn> (V2, published, locale matches)\n  [✓|✗] Voice ID: \u003Cdomain-id> (consent disclosure in flow) | disabled\n  [✓|✗] Contact Lens: \u003Creal-time | post-call | both>\n  [✓|✗] Channels: VOICE | CHAT | TASK\n  [✓|✗] Recording storage: S3 (\u003Cbucket>, KMS \u003Ckey-id>)\n  [✓|✗] Tags: \u003Ckey=value list>\nVERIFICATION_COMMANDS:\n  aws connect describe-instance --instance-id \u003Cinstance-id>\n  aws connect describe-contact-flow --instance-id \u003Cinstance-id> --contact-flow-id \u003Cflow-id>\n  aws connect describe-routing-profile --instance-id \u003Cinstance-id> --routing-profile-id \u003Cprofile-id>\n  aws connect describe-phone-number --instance-id \u003Cinstance-id> --phone-number-id \u003Cphone-number-id>\n  aws connect list-instance-storage-configs --instance-id \u003Cinstance-id>\n```\n\n### Worked example — SAML instance with Lambda-driven flow and Lex IVR\n\nWorked example — SAML instance with Lambda-driven flow and Lex IVR (READY_TO_DEPLOY checklist + verification commands) moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nLoad on demand for the filled-in output shape.\n\n## Error handling\n\nError handling (dangling flow refs, Lambda AccessDenied, wrong-agent routing, phone-claim failures, Lex timeouts, Voice ID consent, missing recordings, metrics) moved verbatim to [references\u002Ferror-handling.md](references\u002Ferror-handling.md).\nLoad on demand when diagnosing failures.\n\n## References (load on demand)\n\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — Mindset misconceptions, configuration dependency graph, expert heuristics, Step 1\u002F4\u002F6\u002F7\u002F10-15 provisioning recipes, and recent features moved from SKILL.md.\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — the checklist-form worked example moved from SKILL.md.\n- [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — error handling for flows, Lambda, routing, phone claims, Lex, Voice ID, recordings, and metrics moved from SKILL.md.\n- [references\u002Fcontact-flow-json-and-lambda.md](references\u002Fcontact-flow-json-and-lambda.md) — now also holds the Step 2 flow-JSON detail and Step 3 Lambda-integration detail moved from SKILL.md.\n- [references\u002Frouting-and-lex-integration.md](references\u002Frouting-and-lex-integration.md) — now also holds the Step 5 routing-profile CLI, Step 8 skills components, and Step 9 InvokeAmazonLex JSON moved from SKILL.md.\n\n## Domain\n\nAWS CloudOps \u002F Amazon Connect Contact Center Provisioning —\nInstances, Contact Flows, Queues, Routing Profiles, Phone Numbers,\nVoice ID, Contact Lens, Channels, Recording Storage, Metrics.\n\n## AWS documentation\n\n- **Amazon Connect Administrator Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fconnect\u002Flatest\u002Fadminguide\u002Fwhat-is-amazon-connect.html\n- **Create instance (SAML, Connect dir, existing dir)** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fconnect\u002Flatest\u002Fadminguide\u002Fconnect-launch.html\n- **Contact flows (drag-and-drop, JSON)** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fconnect\u002Flatest\u002Fadminguide\u002Fcontact-flows.html\n- **Contact flow JSON schema** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fconnect\u002Flatest\u002Fadminguide\u002Fcontact-flow-language.html\n- **Lambda function invocation** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fconnect\u002Flatest\u002Fadminguide\u002Fconnect-lambda-functions.html\n- **Queues, routing profiles, skills-based routing** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fconnect\u002Flatest\u002Fadminguide\u002Fqueues-and-routing.html\n- **Claim phone numbers** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fconnect\u002Flatest\u002Fadminguide\u002Fclaim-phone-number.html\n- **Amazon Lex integration \u002F Voice ID** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fconnect\u002Flatest\u002Fadminguide\u002Fconnect-lex-bots.html\n- **Contact Lens for Amazon Connect** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fconnect\u002Flatest\u002Fadminguide\u002Fenable-analytics.html\n- **Chat \u002F Task channels** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fconnect\u002Flatest\u002Fadminguide\u002Fchat.html\n- **S3 recording storage with KMS** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fconnect\u002Flatest\u002Fadminguide\u002Fsetup-data-storage.html\n- **Real-time and historical metrics** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fconnect\u002Flatest\u002Fadminguide\u002Fmetrics.html\n- **API reference \u002F Amazon Q in Connect** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fconnect\u002Flatest\u002FAPIReference\u002FWelcome.html",{"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, connect, appintegration, deploy, contact-center, contact-flow, routing, voice","1","Jacky Chan — AWS Community Builder","aws-cloudops","AppIntegration","0.1.0","aws, connect, amazon connect, contact center, contact flow, lambda invoke, queue, routing profile, skill requirement, phone number, toll-free, did, saml, directory, voice id, contact lens, sentiment, transcription, chat, voice, task, lex bot, ivr, recording, s3, kms, real-time metrics, historical metrics","deploy","high","false","capability","Invoke when the user wants to create an Amazon Connect instance (SAML, Connect directory, or existing AWS Directory Service directory), author a contact flow with Lambda invoke blocks or Lex integration, configure a routing profile with skill requirements, claim a phone number (toll-free, DID), set up queues with quick- connect lists, integrate Amazon Lex V2 for IVR, enable Voice ID speaker enrollment, enable Contact Lens for sentiment \u002F transcription \u002F redaction, configure chat and voice channels, manage tasks, set up S3 recording storage with KMS encryption, or wire real-time and historical metrics. Do NOT invoke for Amazon Chime SDK, Amazon WorkSpaces, or standalone Amazon Lex bot deployment.","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 connect access (and connect-contact-lens for Contact Lens, lexv2-runtime for Lex, s3 for recording storage, kms for key policy). Works with Terraform aws_connect_instance, aws_connect_contact_flow, aws_connect_queue, aws_connect_routing_profile, aws_connect_phone_number, aws_connect_user, aws_connect_user_hierarchy_group resources and CloudFormation AWS::Connect::* templates.","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fconnect-instance-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 connect-instance-deployer",{"tool":56,"command":57},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill connect-instance-deployer",{"tool":59,"command":60},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill connect-instance-deployer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fconnect-instance-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","参考文档",5193,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fconnect-instance-deployer\u002Feval\u002Ftest-cases.yaml",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"evals\u002Fbaselines\u002Fcontact-flow-with-lambda.md",853,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fconnect-instance-deployer\u002Fevals\u002Fbaselines\u002Fcontact-flow-with-lambda.md",{"path":75,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":76,"sourceHtmlUrl":77},"evals\u002Fbaselines\u002Flex-bot-ivr-integration.md",718,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fconnect-instance-deployer\u002Fevals\u002Fbaselines\u002Flex-bot-ivr-integration.md",{"path":79,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":80,"sourceHtmlUrl":81},"evals\u002Fbaselines\u002Fmissing-instance-id-prereq.md",627,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fconnect-instance-deployer\u002Fevals\u002Fbaselines\u002Fmissing-instance-id-prereq.md",{"path":83,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":84,"sourceHtmlUrl":85},"evals\u002Fbaselines\u002Fphone-number-claim.md",637,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fconnect-instance-deployer\u002Fevals\u002Fbaselines\u002Fphone-number-claim.md",{"path":87,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":88,"sourceHtmlUrl":89},"evals\u002Fbaselines\u002Frouting-profile-skill-requirements.md",816,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fconnect-instance-deployer\u002Fevals\u002Fbaselines\u002Frouting-profile-skill-requirements.md",{"path":91,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":92,"sourceHtmlUrl":93},"evals\u002Feval_config.yaml",1798,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fconnect-instance-deployer\u002Fevals\u002Feval_config.yaml",{"path":95,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":96,"sourceHtmlUrl":97},"evals\u002Fevals.json",9456,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fconnect-instance-deployer\u002Fevals\u002Fevals.json",{"path":99,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":100,"sourceHtmlUrl":101},"evals\u002Fprompts\u002Fcontact-flow-with-lambda.md",763,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fconnect-instance-deployer\u002Fevals\u002Fprompts\u002Fcontact-flow-with-lambda.md",{"path":103,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":104,"sourceHtmlUrl":105},"evals\u002Fprompts\u002Flex-bot-ivr-integration.md",562,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fconnect-instance-deployer\u002Fevals\u002Fprompts\u002Flex-bot-ivr-integration.md",{"path":107,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":108,"sourceHtmlUrl":109},"evals\u002Fprompts\u002Fmissing-instance-id-prereq.md",375,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fconnect-instance-deployer\u002Fevals\u002Fprompts\u002Fmissing-instance-id-prereq.md",{"path":111,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":112,"sourceHtmlUrl":113},"evals\u002Fprompts\u002Fphone-number-claim.md",339,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fconnect-instance-deployer\u002Fevals\u002Fprompts\u002Fphone-number-claim.md",{"path":115,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":116,"sourceHtmlUrl":117},"evals\u002Fprompts\u002Frouting-profile-skill-requirements.md",543,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fconnect-instance-deployer\u002Fevals\u002Fprompts\u002Frouting-profile-skill-requirements.md",{"path":119,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":120,"sourceHtmlUrl":121},"examples\u002FREADME.md",10218,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fconnect-instance-deployer\u002Fexamples\u002FREADME.md",{"path":123,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":124,"sourceHtmlUrl":125},"references\u002Fadvanced-patterns.md",14655,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fconnect-instance-deployer\u002Freferences\u002Fadvanced-patterns.md",{"path":127,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":128,"sourceHtmlUrl":129},"references\u002Fcontact-flow-json-and-lambda.md",11442,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fconnect-instance-deployer\u002Freferences\u002Fcontact-flow-json-and-lambda.md",{"path":131,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":132,"sourceHtmlUrl":133},"references\u002Ferror-handling.md",1261,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fconnect-instance-deployer\u002Freferences\u002Ferror-handling.md",{"path":135,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":136,"sourceHtmlUrl":137},"references\u002Frouting-and-lex-integration.md",11960,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fconnect-instance-deployer\u002Freferences\u002Frouting-and-lex-integration.md",{"path":139,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":140,"sourceHtmlUrl":141},"references\u002Fworked-examples.md",1895,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fconnect-instance-deployer\u002Freferences\u002Fworked-examples.md",{"path":143,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":144,"sourceHtmlUrl":145},"skill.usf.yaml",4668,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fconnect-instance-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",[],[]]