[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A5RPK8DZR7CA2PDC0W9FY3":3,"skill-same:01M7A5RPK8DZR7CA2PDC0W9FY3":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},"01M7A5RPK8DZR7CA2PDC0W9FY3","codeartifact-domain-deployer",null,"Provisions AWS CodeArtifact domains with production defaults: domain creation (create-domain), repository creation within a domain (create-repository), upstream repository configuration (npm, pip, maven, nuget), external connection cascade (npmjs.com, pypi.org, mavencentral, nuget.org), package ingest via publish\u002Fcopy-package, package consumption via authorization token (aws codeartifact login, 12-hour expiry), repository policy (cross-account read\u002Fwrite), domain owner vs repository admin separation, asset retention and lifecycle policy, package version immutability, VPC interface endpoint for private access, KMS encryption (customer managed key), CloudWatch metrics. Triggers: codeartifact domain, codeartifact external connection, codeartifact upstream cascade, codeartifact login, codeartifact authorization token, codeartifact VPC endpoint, codeartifact KMS encryption, codeartifact repository policy, codeartifact lifecycle policy, codeartifact package immutability, codeartifact cross-account.","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\u002Fcodeartifact-domain-deployer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: codeartifact-domain-deployer\ndescription: 'Provisions AWS CodeArtifact domains with production defaults: domain creation (create-domain), repository creation within a domain (create-repository), upstream repository configuration (npm, pip, maven, nuget), external connection cascade (npmjs.com, pypi.org, mavencentral, nuget.org), package ingest via publish\u002Fcopy-package, package consumption via authorization token (aws codeartifact login, 12-hour expiry), repository policy (cross-account read\u002Fwrite), domain owner vs repository admin separation, asset retention and lifecycle policy, package version immutability, VPC interface endpoint for private access, KMS encryption (customer managed key), CloudWatch metrics. Triggers: codeartifact domain, codeartifact external connection, codeartifact upstream cascade, codeartifact login, codeartifact authorization token, codeartifact VPC endpoint, codeartifact KMS encryption, codeartifact repository policy, codeartifact lifecycle policy, codeartifact package immutability, codeartifact cross-account.'\nlicense: Apache-2.0\ncompatibility: 'Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). For live deployment: AWS CLI v2 with codeartifact, iam, kms, ec2 (VPC endpoint), and sts access. Works with Terraform aws_codeartifact_domain \u002F aws_codeartifact_repository \u002F aws_codeartifact_domain_permissions_policy resources, CloudFormation AWS::CodeArtifact::Domain \u002F AWS::CodeArtifact::Repository templates, and the CodeArtifact login CLI for npm \u002F pip \u002F maven \u002F nuget.'\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: DevTools\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, codeartifact, domain, devtools, cloudops, deploy, provisioning, upstream, external-connection, kms, vpc-endpoint, lifecycle, cross-account\n  dependencies: aws-orchestrator\n  keywords: aws, codeartifact, domain, devtools, cloudops, deploy, provisioning, upstream, external-connection, authorization-token, kms, vpc-endpoint, lifecycle, immutability, cross-account, repository-policy, package-registry\n  when_to_use: Invoke when the user wants to create a CodeArtifact domain, configure the upstream and external-connection cascade for dependency resolution, set up package consumption authorization tokens (aws codeartifact login), share repositories cross-account via repository policy, enable private access via VPC interface endpoint, configure KMS encryption, set lifecycle\u002Fretention policies, or enforce package version immutability. Do NOT invoke for CodeArtifact repository-only operations without domain context (use codeartifact-repository-deployer), plain S3-backed package storage, or GitHub Packages (separate service).\n---\n\n# CodeArtifact Domain Deployer\n\nAn AWS CloudOps agent skill that provisions AWS CodeArtifact domains\nwith correct production defaults. The skill walks the domain-as-IAM-\nboundary model, the upstream and external-connection cascade for\ndependency resolution, authorization token lifecycle (12-hour expiry\nvia `aws codeartifact login`), cross-account repository policy,\nVPC interface endpoint for private access, KMS encryption, lifecycle\npolicy, and package version immutability, captures governance and\ndependency-resolution decisions, explains why each default matters,\nand emits a READY_TO_DEPLOY checklist with copy-pasteable verification\ncommands.\n\n## Activation keywords\n\ncodeartifact domain, codeartifact external connection, codeartifact\nupstream cascade, codeartifact login, codeartifact authorization token,\ncodeartifact VPC endpoint, codeartifact KMS encryption, codeartifact\nrepository policy, codeartifact lifecycle policy, codeartifact package\nimmutability, codeartifact cross-account.\n\n## STRICT output contract\n\nWhen this skill is invoked with a CodeArtifact-domain-provisioning\nrequest (create a domain, configure upstream\u002Fexternal-connection cascade,\nset up auth tokens, share cross-account, enable VPC endpoint, configure\nKMS, set lifecycle, enforce immutability, or a partial configuration),\nthe agent MUST respond with the READY_TO_DEPLOY checklist defined in\nthe \"Output format\" section using the literal all-caps labels\n`CODEARTIFACT_DOMAIN:`, `VERDICT:`, `CHECKLIST:`, and\n`VERIFICATION_COMMANDS:`. Do NOT preface the checklist with prose,\nheadings, or disclaimers — emit the block as the first lines of the\nresponse. This contract is what assertion-based evals and downstream\nprovisioning pipelines rely on; deviating from the literal labels\nbreaks 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 — Domain as IAM boundary | Core domain model |\n| Step 2 — Repository creation within domain | Repository setup |\n| Step 3 — Upstream repository cascade | Dependency resolution chain |\n| Step 4 — External connection (public registry) | npmjs.com, pypi.org, etc. |\n| Step 5 — Authorization token (aws codeartifact login) | Package consumption auth |\n| Step 6 — Package ingest (publish \u002F copy-package) | Publishing packages |\n| Step 7 — Cross-account repository policy | Sharing repositories |\n| Step 8 — VPC interface endpoint (private access) | Network isolation |\n| Step 9 — KMS encryption | Encryption at rest |\n| Step 10 — Lifecycle policy and immutability | Retention governance |\n| Step 11 — CloudWatch metrics | Monitoring |\n| Step 12 — Recent features | Latest |\n| NEVER do these things | Review before signing off |\n| Output format | The literal checklist template |\n| references\u002Fupstream-cascade-and-auth-tokens.md | Upstream + auth detail |\n| references\u002Fencryption-vpc-endpoint-and-metrics.md | KMS + VPCe + metrics |\n\n## Mindset\n\n**One-line takeaway:** The CodeArtifact domain is the IAM and\nencryption boundary. Every repository lives inside a domain. The\nupstream and external-connection cascade determines how package\ndependencies are resolved — a package not found locally cascades\nthrough the upstream chain to public registries. The authorization\ntoken from `aws codeartifact login` expires every 12 hours and MUST\nbe refreshed by CI\u002FCD pipelines.\n\nThe three-misconception deep-dive (repository-is-NOT-the-boundary, upstream vs external connection, token permanence): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## Configuration dependency graph (novel heuristic)\n\nCodeArtifact domain configurations are NOT independent. The domain\nmust exist before repositories. External connections are domain-level\nresources. Upstream chains must form a valid cascade. VPC endpoints\nrequire DNS private hostnames. Use this graph to sequence provisioning.\n\n| Configuration | Hard dependencies (API error without) | Silent failure \u002F immutability | Enables downstream |\n|---|---|---|---|\n| Domain | KMS key (if encryption-key arn specified); caller has codeartifact:CreateDomain | domain encryption CANNOT be changed after creation — the KMS key is immutable | repository creation, external connections |\n| Repository | Parent domain exists; caller has codeartifact:CreateRepository | repository domain association CANNOT be changed — a repo cannot move domains | upstream configuration, package publish\u002Fconsume |\n| Upstream repository | Repository exists; upstream repository exists in same domain or shared domain | upstream order matters — cascade traverses in list order | internal dependency resolution |\n| External connection | Domain exists; only ONE external connection per external source per domain | external connection connects to public registry — cannot be scoped or filtered | public package resolution (npmjs.com, pypi.org, etc.) |\n| Authorization token | Domain or repository exists; caller has codeartifact:GetAuthorizationToken | token expires after 12 hours — MUST be refreshed | package consumption (npm install, pip install, etc.) |\n| Repository policy (cross-account) | Repository exists; target account ID known; caller has codeartifact:PutRepositoryPermissionsPolicy | policy CANNOT be set at domain level for repository access — must be per-repository | cross-account read\u002Fwrite to specific repositories |\n| VPC interface endpoint | VPC exists; private DNS enabled for codeartifact.\u003Cregion>.amazonaws.com | without private DNS, the endpoint does NOT intercept the default CodeArtifact hostname | private package access without internet gateway |\n| KMS encryption | KMS CMK exists; domain being created (NOT updateable post-creation) | encryption CANNOT be changed after domain creation — default AWS-managed key vs CMK is a create-time decision | encryption-at-rest governance |\n| Lifecycle policy | Repository exists; caller has codeartifact:PutLifecyclePolicy | lifecycle rules apply to future package versions — existing versions are NOT retroactively affected | automated package retention\u002Fcleanup |\n| Package immutability | Domain exists; immutability enforced at domain level | published package versions CANNOT be overwritten or deleted (unless lifecycle policy removes them) | supply-chain integrity |\n\n**The domain-is-the-boundary row is the one a baseline model misses.**\nA model that treats the repository as the primary entity will try to\nchange encryption at the repo level (impossible), set domain-wide access\nat the repo level (wrong scope), or forget that the domain owner pays\nfor all storage. The procedure below forces an explicit decision on\nthe domain boundary first.\n\n**Cross-dependency gotchas:**\n- The domain KMS key is immutable. If you create the domain with the\n  default AWS-managed key, you CANNOT switch to a CMK later without\n  recreating the domain and all repositories.\n- External connections are domain-scoped, not repository-scoped. One\n  external connection to npmjs.com serves ALL repositories in the\n  domain that reference it as an upstream.\n- Upstream cascade order determines resolution. If repo-A has upstreams\n  [repo-B, ext:npmjs], a package not in repo-A is searched in repo-B\n  first, then npmjs. Reversing the order changes behavior.\n- The auth token is scoped to a domain (or a specific repository). A\n  domain-scoped token grants access to ALL repositories in the domain.\n  A repository-scoped token is more restrictive.\n\n## Expert heuristic: the upstream and external-connection cascade\n\nFull cascade heuristic with the package-resolution walk and the supply-chain-security implication: [Upstream cascade and auth tokens](references\u002Fupstream-cascade-and-auth-tokens.md).\n\n## Expert heuristic: the 12-hour authorization token\n\nToken lifecycle, CI\u002FCD implication, and domain- vs repository-scoped tokens: [Upstream cascade and auth tokens](references\u002Fupstream-cascade-and-auth-tokens.md).\n\n## Expert heuristic: domain owner vs repository admin\n\nAccount topology and cross-account sharing flow (the domain owner pays for all storage): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## Prerequisites (verify before provisioning)\n\nBefore emitting provisioning commands, verify these prerequisites. If\nany are missing, the verdict is **PREREQUISITES_MISSING**.\n\n| Prerequisite | Why it matters | How to verify |\n|---|---|---|\n| Domain name decided | Domain names are immutable identifiers | Confirm domain name (unique per account per region) |\n| KMS key ARN (if custom encryption) | Encryption key is immutable at domain creation | `aws kms describe-key --key-id \u003Ckey-id>` |\n| Package format identified (npm, pip, maven, nuget) | Determines external connection and login tool | Confirm format(s) needed |\n| External connection source (if consuming public packages) | External connection must exist in the domain | `aws codeartifact list-external-connections` |\n| Target account ID (if cross-account repository policy) | Repository policy needs the consumer account ID | `aws sts get-caller-identity` (consumer account) |\n| VPC ID and subnet (if VPC interface endpoint) | VPC endpoint needs a VPC and subnet | `aws ec2 describe-vpcs --vpc-ids \u003Cvpc-id>` |\n| IAM permissions (codeartifact:CreateDomain, CreateRepository) | Caller must have permissions | `aws iam get-user` + check attached policies |\n| CI\u002FCD token refresh strategy | Auth token expires every 12 hours | Confirm pipeline can run login per build |\n\nIf any prerequisite is missing, output `VERDICT: PREREQUISITES_MISSING`\nand cite the specific gap.\n\n## Step 1 — Domain as IAM boundary\n\nThe CodeArtifact domain is the top-level container. It owns the\nencryption key, the domain permissions policy, and all repositories\nwithin it. The domain cannot be renamed or moved — it is immutable.\n\n| Property | Domain-level | Repository-level |\n|---|---|---|\n| KMS encryption key | Owned by domain (immutable at creation) | Inherited from domain |\n| Permissions policy | Domain permissions policy (who can create\u002Fmanage repos) | Repository policy (who can read\u002Fwrite packages) |\n| Storage cost | Borne by domain owner account | N\u002FA (domain owner pays) |\n| External connections | Domain-scoped (one per public registry) | Referenced as upstream |\n| Lifecycle policy | N\u002FA | Per-repository |\n| Deletion | Deletes ALL repositories and packages | Deletes one repo and its packages |\n\n**Create a domain:**\n\nCreate-domain commands (AWS-managed key and custom CMK — encryption is immutable at creation): [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n**Domain permissions policy (controls who can administer the domain):**\n\nput-domain-permissions-policy command: [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\nWhere `domain-policy.json` grants domain administration to specific\nprincipals.\n\n## Step 2 — Repository creation within domain\n\nRepositories are created within a domain. Each repository has a\npackage format (npm, pip, maven, nuget, etc.) and can have upstreams.\n\ncreate-repository command: [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n**Repository description** is mutable. **Repository name** is immutable.\n\n## Step 3 — Upstream repository cascade\n\nUpstream repositories form the dependency resolution chain. When a\npackage is requested from a repository, CodeArtifact searches the\nlocal repository first, then traverses upstreams in order.\n\nupdate-repository upstreams command (order matters — first match wins): [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n**Cascade order is a security control.** Internal repositories should\ncome before external connections to prevent dependency confusion\nattacks.\n\n## Step 4 — External connection (public registry)\n\nExternal connections link the domain to a PUBLIC package registry.\nThey are created at the DOMAIN level and referenced by repositories\nas upstreams.\n\nlist-external-connections command and the common external connections: [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\nExternal connections do NOT require creation — they are pre-provisioned\nby AWS. You reference them as an upstream:\n\nupdate-repository with external-connection upstream (LAST in the cascade): [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n**Key rule:** only ONE external connection per public source per\ndomain. You cannot have two npmjs connections in the same domain.\n\n## Step 5 — Authorization token (aws codeartifact login)\n\nPackage consumption requires an authorization token. The `aws\ncodeartifact login` command generates a token (valid for 12 hours)\nand configures the package manager.\n\nLogin commands (npm, pip) and the get-authorization-token CI\u002FCD pattern (12-hour expiry): [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n**Critical:** the token expires after 12 hours. CI\u002FCD pipelines MUST\nrun `aws codeartifact login` (or call `get-authorization-token`) on\nevery build. Caching the token across runs causes silent auth failures.\n\n## Step 6 — Package ingest (publish \u002F copy-package)\n\nPackages can be published directly (npm publish, twine upload) or\ncopied from upstream repositories.\n\n**Direct publish (npm):**\n\nnpm publish sequence after login: [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n**Copy from upstream (ingest from public without consuming in CI):**\n\ncopy-package-versions ingest command: [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n**Package version immutability:** once a package version is published,\nit CANNOT be overwritten. A new version number is required for updates.\nThis is a supply-chain integrity guarantee.\n\n## Step 7 — Cross-account repository policy\n\nRepository policies grant cross-account access to specific repositories.\nThe domain owner account sets the policy; the consumer account uses the\ntoken to access.\n\nput-repository-permissions-policy cross-account policy command: [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n**Consumer account access flow:**\n\nConsumer-account login command (uses the DOMAIN OWNER's --domain-owner): [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n**Key distinction:** domain permissions policy controls who can\nadminister the domain (create\u002Fdelete repos). Repository policy controls\nwho can read\u002Fwrite packages in a specific repository. These are\nseparate scopes.\n\n## Step 8 — VPC interface endpoint (private access)\n\nBy default, CodeArtifact is accessed over the public internet. For\nnetwork isolation, a VPC interface endpoint routes traffic through\nAWS PrivateLink.\n\nVPC interface-endpoint creation commands (both endpoints, --private-dns-enabled required): [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n**Critical:** `--private-dns-enabled` is REQUIRED for the endpoint to\nintercept the default CodeArtifact hostname. Without it, the package\nmanager resolves to the public IP. Two endpoints are needed: one for\nthe API (codeartifact.api) and one for repositories\n(codeartifact.repositories).\n\n## Step 9 — KMS encryption\n\nCodeArtifact encrypts all data at rest. The encryption key is set at\nDOMAIN CREATION and is IMMUTABLE.\n\n| Option | Description | When to use |\n|---|---|---|\n| Default (AWS-managed) | CodeArtifact uses an AWS-managed KMS key | Simple setups, no key rotation control needed |\n| Customer-managed key (CMK) | Domain created with a specific KMS CMK ARN | Enterprise compliance, key rotation control, cross-account key access |\n\nCMK creation and CMK-encrypted domain creation commands (immutable at creation): [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n**Key policy for the CMK** must allow CodeArtifact service to use the\nkey (kms:Encrypt, kms:Decrypt, kms:ReEncrypt, kms:GenerateDataKey,\nkms:DescribeKey).\n\n## Step 10 — Lifecycle policy and immutability\n\nLifecycle policies automate package version retention. Package versions\nare immutable once published — lifecycle policies are the only way to\nremove old versions.\n\nput-lifecycle-configuration command (retain last 50 versions): [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n**Immutability guarantee:** published package versions CANNOT be\noverwritten, modified, or selectively deleted (only lifecycle policies\nremove them based on rules). This prevents supply-chain tampering.\n\n## Step 11 — CloudWatch metrics\n\nCodeArtifact emits CloudWatch metrics for monitoring:\n\n| Metric | Description |\n|---|---|\n| `DownloadPackageVersion` | Number of package version downloads |\n| `PublishPackageVersion` | Number of package version publishes |\n| `AssetSizeBytes` | Storage consumed by assets |\n\nCloudWatch get-metric-statistics monitoring command: [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\nSet CloudWatch alarms for abnormal publish\u002Fdownload patterns (security\nmonitoring for supply-chain anomalies).\n\n## Step 12 — Recent features\n\nSwift\u002FCargo support, lifecycle GA, cross-region replication, VPC endpoint private DNS, package origin controls, Terraform maturity: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## NEVER do these things\n\n1. **NEVER create a domain without deciding on KMS encryption first.**\n   The encryption key is IMMUTABLE at domain creation. If you start\n   with the default AWS-managed key, you CANNOT switch to a CMK later\n   without recreating the domain and all repositories.\n\n2. **NEVER assume the authorization token is permanent.** The token\n   from `aws codeartifact login` expires after 12 hours. CI\u002FCD\n   pipelines MUST regenerate it on every build. Caching the token\n   causes silent auth failures after expiry.\n\n3. **NEVER put external connections before internal upstreams in the\n   cascade.** The cascade order is a supply-chain security control.\n   Internal repos must come before public registries to prevent\n   dependency confusion attacks.\n\n4. **NEVER confuse domain permissions policy with repository policy.**\n   Domain permissions policy controls who can administer the domain\n   (create\u002Fdelete repos). Repository policy controls who can read\u002Fwrite\n   packages in a specific repo. These are separate scopes and must be\n   configured independently.\n\n5. **NEVER create a VPC endpoint without private DNS enabled.** Without\n   `--private-dns-enabled`, the endpoint does NOT intercept the default\n   CodeArtifact hostname. Package managers will resolve to the public\n   IP, bypassing the endpoint.\n\n6. **NEVER forget that TWO VPC endpoints are needed.** CodeArtifact\n   requires separate endpoints for the API (codeartifact.api) and\n   repositories (codeartifact.repositories). Creating only one breaks\n   either login or package download.\n\n7. **NEVER assume package versions can be overwritten.** Published\n   versions are IMMUTABLE. A new version number is required for every\n   change. Use lifecycle policies to clean up old versions — manual\n   deletion of specific versions is not supported (only lifecycle\n   rules remove them).\n\n8. **NEVER assume the domain owner and repository admin are the same\n   account.** The domain owner account pays for ALL storage. Repository\n   admins (potentially different accounts) do not pay. Plan cost\n   allocation and billing alerts on the domain owner account.\n\n9. **NEVER create multiple external connections for the same public\n   registry in one domain.** Only ONE external connection per public\n   source per domain is allowed. Duplicate attempts fail.\n\n10. **NEVER assume lifecycle policies apply retroactively.** Lifecycle\n    rules apply to FUTURE package versions. Existing versions are NOT\n    affected until the policy evaluates them. Plan the transition\n    carefully.\n\n## Output format\n\n```text\nCODEARTIFACT_DOMAIN: \u003Cdomain-name> (\u003Cdomain-owner-account>)\nVERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING\nCHECKLIST:\n  [✓|✗] Domain: \u003Cdomain-name> — encryption: \u003Caws-managed | CMK \u003Ckey-arn>>\n  [✓|✗] Repository: \u003Crepo-name> (format: \u003Cnpm|pip|maven|nuget>)\n  [✓|✗] Upstream cascade: \u003Crepo-1> → \u003Crepo-2> → \u003Cexternal-connection>\n  [✓|✗] External connection: \u003Cnpmjs|pypi|mavencentral|nuget-org> (domain-scoped)\n  [✓|✗] Authorization token: aws codeartifact login (12-hour expiry — CI refresh required)\n  [✓|✗] Package ingest: \u003Cpublish | copy-package> — immutability enforced\n  [✓|✗] Cross-account repository policy: \u003Caccount-id> (read | read+write)\n  [✓|✗] VPC endpoint: \u003Cvpce-id> (api + repositories, private DNS enabled)\n  [✓|✗] KMS encryption: \u003Caws-managed | CMK> — immutable at domain creation\n  [✓|✗] Lifecycle policy: \u003Cretain N versions | delete after N days>\n  [✓|✗] Package immutability: enforced (published versions cannot be overwritten)\n  [✓|✗] CloudWatch metrics: DownloadPackageVersion, PublishPackageVersion\n  [✓|✗] Tags: \u003Ckey=value list>\nVERIFICATION_COMMANDS:\n  aws codeartifact describe-domain --domain \u003Cdomain-name> --region \u003Cregion>\n  aws codeartifact describe-repository --domain \u003Cdomain-name> --repository \u003Crepo-name> --region \u003Cregion>\n  aws codeartifact list-repositories-in-domain --domain \u003Cdomain-name> --region \u003Cregion>\n```\n\n### Worked example — npm domain with external connection and cross-account access\n\n```text\nCODEARTIFACT_DOMAIN: my-domain (123456789012)\nVERDICT: READY_TO_DEPLOY\nCHECKLIST:\n  [✓] Domain: my-domain — encryption: CMK arn:aws:kms:us-east-1:123456789012:key\u002Fabcd1234\n  [✓] Repository: my-team-packages (format: npm)\n  [✓] Upstream cascade: my-team-packages → shared-team-packages → ext:npmjs\n  [✓] External connection: npmjs (domain-scoped)\n  [✓] Authorization token: aws codeartifact login (12-hour expiry — CI refresh required)\n  [✓] Package ingest: npm publish — immutability enforced\n  [✓] Cross-account repository policy: 999999999999 (read)\n  [✓] VPC endpoint: vpce-aaa111 (api + repositories, private DNS enabled)\n  [✓] KMS encryption: CMK — immutable at domain creation\n  [✓] Lifecycle policy: retain last 50 versions\n  [✓] Package immutability: enforced (published versions cannot be overwritten)\n  [✓] CloudWatch metrics: DownloadPackageVersion, PublishPackageVersion\n  [✓] Tags: Environment=production, Team=platform\nVERIFICATION_COMMANDS:\n  aws codeartifact describe-domain --domain my-domain --region us-east-1\n  aws codeartifact describe-repository --domain my-domain --repository my-team-packages --region us-east-1\n  aws codeartifact list-repositories-in-domain --domain my-domain --region us-east-1\n```\n\n## Error handling\n\nDeep dives (domain-creation encryption-key error, CI\u002FCD token expiry, cross-account access denied, package not found despite upstream, VPC endpoint not intercepting): [Error handling](references\u002Ferror-handling.md).\n\n## References (load on demand)\n\n- [Diagnostic commands](references\u002Fdiagnostic-commands.md) — per-step provisioning commands (Steps 1-11)\n- [Error handling](references\u002Ferror-handling.md) — error-handling deep dives\n- [Advanced patterns](references\u002Fadvanced-patterns.md) — mindset misconceptions, domain-owner vs repository-admin heuristic, recent AWS features\n- [Upstream cascade and auth tokens](references\u002Fupstream-cascade-and-auth-tokens.md) — full upstream\u002Ftoken reference, plus the cascade and token heuristics moved from this SKILL.md\n- [Encryption, VPC endpoint, and metrics](references\u002Fencryption-vpc-endpoint-and-metrics.md) — KMS, VPC endpoint, lifecycle, and metrics detail\n\n## Domain\n\nAWS CloudOps \u002F AWS CodeArtifact Domain Provisioning & Package Registry\nGovernance.\n\n## AWS documentation\n\n- **CodeArtifact domains** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodeartifact\u002Flatest\u002Fug\u002Fdomains.html\n- **Domain creation** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodeartifact\u002Flatest\u002Fug\u002Fcreate-domain.html\n- **Upstream repositories** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodeartifact\u002Flatest\u002Fug\u002Frepo-upstream.html\n- **External connections** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodeartifact\u002Flatest\u002Fug\u002Fexternal-connection.html\n- **Auth tokens and login** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodeartifact\u002Flatest\u002Fug\u002Fusing-private-npm-repo.html\n- **Repository policies** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodeartifact\u002Flatest\u002Fug\u002Frepo-policies.html\n- **VPC endpoints** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodeartifact\u002Flatest\u002Fug\u002Fvpc-endpoints.html\n- **Lifecycle policies** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodeartifact\u002Flatest\u002Fug\u002Flifecycle-policies.html\n- **CloudWatch metrics** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodeartifact\u002Flatest\u002Fug\u002Fmetrics.html\n- **Package origin controls** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodeartifact\u002Flatest\u002Fug\u002Fpackage-origin-controls.html\n","# CodeArtifact Domain Deployer\n\nAn AWS CloudOps agent skill that provisions AWS CodeArtifact domains\nwith correct production defaults. The skill walks the domain-as-IAM-\nboundary model, the upstream and external-connection cascade for\ndependency resolution, authorization token lifecycle (12-hour expiry\nvia `aws codeartifact login`), cross-account repository policy,\nVPC interface endpoint for private access, KMS encryption, lifecycle\npolicy, and package version immutability, captures governance and\ndependency-resolution decisions, explains why each default matters,\nand emits a READY_TO_DEPLOY checklist with copy-pasteable verification\ncommands.\n\n## Activation keywords\n\ncodeartifact domain, codeartifact external connection, codeartifact\nupstream cascade, codeartifact login, codeartifact authorization token,\ncodeartifact VPC endpoint, codeartifact KMS encryption, codeartifact\nrepository policy, codeartifact lifecycle policy, codeartifact package\nimmutability, codeartifact cross-account.\n\n## STRICT output contract\n\nWhen this skill is invoked with a CodeArtifact-domain-provisioning\nrequest (create a domain, configure upstream\u002Fexternal-connection cascade,\nset up auth tokens, share cross-account, enable VPC endpoint, configure\nKMS, set lifecycle, enforce immutability, or a partial configuration),\nthe agent MUST respond with the READY_TO_DEPLOY checklist defined in\nthe \"Output format\" section using the literal all-caps labels\n`CODEARTIFACT_DOMAIN:`, `VERDICT:`, `CHECKLIST:`, and\n`VERIFICATION_COMMANDS:`. Do NOT preface the checklist with prose,\nheadings, or disclaimers — emit the block as the first lines of the\nresponse. This contract is what assertion-based evals and downstream\nprovisioning pipelines rely on; deviating from the literal labels\nbreaks 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 — Domain as IAM boundary | Core domain model |\n| Step 2 — Repository creation within domain | Repository setup |\n| Step 3 — Upstream repository cascade | Dependency resolution chain |\n| Step 4 — External connection (public registry) | npmjs.com, pypi.org, etc. |\n| Step 5 — Authorization token (aws codeartifact login) | Package consumption auth |\n| Step 6 — Package ingest (publish \u002F copy-package) | Publishing packages |\n| Step 7 — Cross-account repository policy | Sharing repositories |\n| Step 8 — VPC interface endpoint (private access) | Network isolation |\n| Step 9 — KMS encryption | Encryption at rest |\n| Step 10 — Lifecycle policy and immutability | Retention governance |\n| Step 11 — CloudWatch metrics | Monitoring |\n| Step 12 — Recent features | Latest |\n| NEVER do these things | Review before signing off |\n| Output format | The literal checklist template |\n| references\u002Fupstream-cascade-and-auth-tokens.md | Upstream + auth detail |\n| references\u002Fencryption-vpc-endpoint-and-metrics.md | KMS + VPCe + metrics |\n\n## Mindset\n\n**One-line takeaway:** The CodeArtifact domain is the IAM and\nencryption boundary. Every repository lives inside a domain. The\nupstream and external-connection cascade determines how package\ndependencies are resolved — a package not found locally cascades\nthrough the upstream chain to public registries. The authorization\ntoken from `aws codeartifact login` expires every 12 hours and MUST\nbe refreshed by CI\u002FCD pipelines.\n\nThe three-misconception deep-dive (repository-is-NOT-the-boundary, upstream vs external connection, token permanence): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## Configuration dependency graph (novel heuristic)\n\nCodeArtifact domain configurations are NOT independent. The domain\nmust exist before repositories. External connections are domain-level\nresources. Upstream chains must form a valid cascade. VPC endpoints\nrequire DNS private hostnames. Use this graph to sequence provisioning.\n\n| Configuration | Hard dependencies (API error without) | Silent failure \u002F immutability | Enables downstream |\n|---|---|---|---|\n| Domain | KMS key (if encryption-key arn specified); caller has codeartifact:CreateDomain | domain encryption CANNOT be changed after creation — the KMS key is immutable | repository creation, external connections |\n| Repository | Parent domain exists; caller has codeartifact:CreateRepository | repository domain association CANNOT be changed — a repo cannot move domains | upstream configuration, package publish\u002Fconsume |\n| Upstream repository | Repository exists; upstream repository exists in same domain or shared domain | upstream order matters — cascade traverses in list order | internal dependency resolution |\n| External connection | Domain exists; only ONE external connection per external source per domain | external connection connects to public registry — cannot be scoped or filtered | public package resolution (npmjs.com, pypi.org, etc.) |\n| Authorization token | Domain or repository exists; caller has codeartifact:GetAuthorizationToken | token expires after 12 hours — MUST be refreshed | package consumption (npm install, pip install, etc.) |\n| Repository policy (cross-account) | Repository exists; target account ID known; caller has codeartifact:PutRepositoryPermissionsPolicy | policy CANNOT be set at domain level for repository access — must be per-repository | cross-account read\u002Fwrite to specific repositories |\n| VPC interface endpoint | VPC exists; private DNS enabled for codeartifact.\u003Cregion>.amazonaws.com | without private DNS, the endpoint does NOT intercept the default CodeArtifact hostname | private package access without internet gateway |\n| KMS encryption | KMS CMK exists; domain being created (NOT updateable post-creation) | encryption CANNOT be changed after domain creation — default AWS-managed key vs CMK is a create-time decision | encryption-at-rest governance |\n| Lifecycle policy | Repository exists; caller has codeartifact:PutLifecyclePolicy | lifecycle rules apply to future package versions — existing versions are NOT retroactively affected | automated package retention\u002Fcleanup |\n| Package immutability | Domain exists; immutability enforced at domain level | published package versions CANNOT be overwritten or deleted (unless lifecycle policy removes them) | supply-chain integrity |\n\n**The domain-is-the-boundary row is the one a baseline model misses.**\nA model that treats the repository as the primary entity will try to\nchange encryption at the repo level (impossible), set domain-wide access\nat the repo level (wrong scope), or forget that the domain owner pays\nfor all storage. The procedure below forces an explicit decision on\nthe domain boundary first.\n\n**Cross-dependency gotchas:**\n- The domain KMS key is immutable. If you create the domain with the\n  default AWS-managed key, you CANNOT switch to a CMK later without\n  recreating the domain and all repositories.\n- External connections are domain-scoped, not repository-scoped. One\n  external connection to npmjs.com serves ALL repositories in the\n  domain that reference it as an upstream.\n- Upstream cascade order determines resolution. If repo-A has upstreams\n  [repo-B, ext:npmjs], a package not in repo-A is searched in repo-B\n  first, then npmjs. Reversing the order changes behavior.\n- The auth token is scoped to a domain (or a specific repository). A\n  domain-scoped token grants access to ALL repositories in the domain.\n  A repository-scoped token is more restrictive.\n\n## Expert heuristic: the upstream and external-connection cascade\n\nFull cascade heuristic with the package-resolution walk and the supply-chain-security implication: [Upstream cascade and auth tokens](references\u002Fupstream-cascade-and-auth-tokens.md).\n\n## Expert heuristic: the 12-hour authorization token\n\nToken lifecycle, CI\u002FCD implication, and domain- vs repository-scoped tokens: [Upstream cascade and auth tokens](references\u002Fupstream-cascade-and-auth-tokens.md).\n\n## Expert heuristic: domain owner vs repository admin\n\nAccount topology and cross-account sharing flow (the domain owner pays for all storage): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## Prerequisites (verify before provisioning)\n\nBefore emitting provisioning commands, verify these prerequisites. If\nany are missing, the verdict is **PREREQUISITES_MISSING**.\n\n| Prerequisite | Why it matters | How to verify |\n|---|---|---|\n| Domain name decided | Domain names are immutable identifiers | Confirm domain name (unique per account per region) |\n| KMS key ARN (if custom encryption) | Encryption key is immutable at domain creation | `aws kms describe-key --key-id \u003Ckey-id>` |\n| Package format identified (npm, pip, maven, nuget) | Determines external connection and login tool | Confirm format(s) needed |\n| External connection source (if consuming public packages) | External connection must exist in the domain | `aws codeartifact list-external-connections` |\n| Target account ID (if cross-account repository policy) | Repository policy needs the consumer account ID | `aws sts get-caller-identity` (consumer account) |\n| VPC ID and subnet (if VPC interface endpoint) | VPC endpoint needs a VPC and subnet | `aws ec2 describe-vpcs --vpc-ids \u003Cvpc-id>` |\n| IAM permissions (codeartifact:CreateDomain, CreateRepository) | Caller must have permissions | `aws iam get-user` + check attached policies |\n| CI\u002FCD token refresh strategy | Auth token expires every 12 hours | Confirm pipeline can run login per build |\n\nIf any prerequisite is missing, output `VERDICT: PREREQUISITES_MISSING`\nand cite the specific gap.\n\n## Step 1 — Domain as IAM boundary\n\nThe CodeArtifact domain is the top-level container. It owns the\nencryption key, the domain permissions policy, and all repositories\nwithin it. The domain cannot be renamed or moved — it is immutable.\n\n| Property | Domain-level | Repository-level |\n|---|---|---|\n| KMS encryption key | Owned by domain (immutable at creation) | Inherited from domain |\n| Permissions policy | Domain permissions policy (who can create\u002Fmanage repos) | Repository policy (who can read\u002Fwrite packages) |\n| Storage cost | Borne by domain owner account | N\u002FA (domain owner pays) |\n| External connections | Domain-scoped (one per public registry) | Referenced as upstream |\n| Lifecycle policy | N\u002FA | Per-repository |\n| Deletion | Deletes ALL repositories and packages | Deletes one repo and its packages |\n\n**Create a domain:**\n\nCreate-domain commands (AWS-managed key and custom CMK — encryption is immutable at creation): [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n**Domain permissions policy (controls who can administer the domain):**\n\nput-domain-permissions-policy command: [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\nWhere `domain-policy.json` grants domain administration to specific\nprincipals.\n\n## Step 2 — Repository creation within domain\n\nRepositories are created within a domain. Each repository has a\npackage format (npm, pip, maven, nuget, etc.) and can have upstreams.\n\ncreate-repository command: [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n**Repository description** is mutable. **Repository name** is immutable.\n\n## Step 3 — Upstream repository cascade\n\nUpstream repositories form the dependency resolution chain. When a\npackage is requested from a repository, CodeArtifact searches the\nlocal repository first, then traverses upstreams in order.\n\nupdate-repository upstreams command (order matters — first match wins): [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n**Cascade order is a security control.** Internal repositories should\ncome before external connections to prevent dependency confusion\nattacks.\n\n## Step 4 — External connection (public registry)\n\nExternal connections link the domain to a PUBLIC package registry.\nThey are created at the DOMAIN level and referenced by repositories\nas upstreams.\n\nlist-external-connections command and the common external connections: [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\nExternal connections do NOT require creation — they are pre-provisioned\nby AWS. You reference them as an upstream:\n\nupdate-repository with external-connection upstream (LAST in the cascade): [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n**Key rule:** only ONE external connection per public source per\ndomain. You cannot have two npmjs connections in the same domain.\n\n## Step 5 — Authorization token (aws codeartifact login)\n\nPackage consumption requires an authorization token. The `aws\ncodeartifact login` command generates a token (valid for 12 hours)\nand configures the package manager.\n\nLogin commands (npm, pip) and the get-authorization-token CI\u002FCD pattern (12-hour expiry): [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n**Critical:** the token expires after 12 hours. CI\u002FCD pipelines MUST\nrun `aws codeartifact login` (or call `get-authorization-token`) on\nevery build. Caching the token across runs causes silent auth failures.\n\n## Step 6 — Package ingest (publish \u002F copy-package)\n\nPackages can be published directly (npm publish, twine upload) or\ncopied from upstream repositories.\n\n**Direct publish (npm):**\n\nnpm publish sequence after login: [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n**Copy from upstream (ingest from public without consuming in CI):**\n\ncopy-package-versions ingest command: [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n**Package version immutability:** once a package version is published,\nit CANNOT be overwritten. A new version number is required for updates.\nThis is a supply-chain integrity guarantee.\n\n## Step 7 — Cross-account repository policy\n\nRepository policies grant cross-account access to specific repositories.\nThe domain owner account sets the policy; the consumer account uses the\ntoken to access.\n\nput-repository-permissions-policy cross-account policy command: [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n**Consumer account access flow:**\n\nConsumer-account login command (uses the DOMAIN OWNER's --domain-owner): [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n**Key distinction:** domain permissions policy controls who can\nadminister the domain (create\u002Fdelete repos). Repository policy controls\nwho can read\u002Fwrite packages in a specific repository. These are\nseparate scopes.\n\n## Step 8 — VPC interface endpoint (private access)\n\nBy default, CodeArtifact is accessed over the public internet. For\nnetwork isolation, a VPC interface endpoint routes traffic through\nAWS PrivateLink.\n\nVPC interface-endpoint creation commands (both endpoints, --private-dns-enabled required): [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n**Critical:** `--private-dns-enabled` is REQUIRED for the endpoint to\nintercept the default CodeArtifact hostname. Without it, the package\nmanager resolves to the public IP. Two endpoints are needed: one for\nthe API (codeartifact.api) and one for repositories\n(codeartifact.repositories).\n\n## Step 9 — KMS encryption\n\nCodeArtifact encrypts all data at rest. The encryption key is set at\nDOMAIN CREATION and is IMMUTABLE.\n\n| Option | Description | When to use |\n|---|---|---|\n| Default (AWS-managed) | CodeArtifact uses an AWS-managed KMS key | Simple setups, no key rotation control needed |\n| Customer-managed key (CMK) | Domain created with a specific KMS CMK ARN | Enterprise compliance, key rotation control, cross-account key access |\n\nCMK creation and CMK-encrypted domain creation commands (immutable at creation): [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n**Key policy for the CMK** must allow CodeArtifact service to use the\nkey (kms:Encrypt, kms:Decrypt, kms:ReEncrypt, kms:GenerateDataKey,\nkms:DescribeKey).\n\n## Step 10 — Lifecycle policy and immutability\n\nLifecycle policies automate package version retention. Package versions\nare immutable once published — lifecycle policies are the only way to\nremove old versions.\n\nput-lifecycle-configuration command (retain last 50 versions): [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n**Immutability guarantee:** published package versions CANNOT be\noverwritten, modified, or selectively deleted (only lifecycle policies\nremove them based on rules). This prevents supply-chain tampering.\n\n## Step 11 — CloudWatch metrics\n\nCodeArtifact emits CloudWatch metrics for monitoring:\n\n| Metric | Description |\n|---|---|\n| `DownloadPackageVersion` | Number of package version downloads |\n| `PublishPackageVersion` | Number of package version publishes |\n| `AssetSizeBytes` | Storage consumed by assets |\n\nCloudWatch get-metric-statistics monitoring command: [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\nSet CloudWatch alarms for abnormal publish\u002Fdownload patterns (security\nmonitoring for supply-chain anomalies).\n\n## Step 12 — Recent features\n\nSwift\u002FCargo support, lifecycle GA, cross-region replication, VPC endpoint private DNS, package origin controls, Terraform maturity: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## NEVER do these things\n\n1. **NEVER create a domain without deciding on KMS encryption first.**\n   The encryption key is IMMUTABLE at domain creation. If you start\n   with the default AWS-managed key, you CANNOT switch to a CMK later\n   without recreating the domain and all repositories.\n\n2. **NEVER assume the authorization token is permanent.** The token\n   from `aws codeartifact login` expires after 12 hours. CI\u002FCD\n   pipelines MUST regenerate it on every build. Caching the token\n   causes silent auth failures after expiry.\n\n3. **NEVER put external connections before internal upstreams in the\n   cascade.** The cascade order is a supply-chain security control.\n   Internal repos must come before public registries to prevent\n   dependency confusion attacks.\n\n4. **NEVER confuse domain permissions policy with repository policy.**\n   Domain permissions policy controls who can administer the domain\n   (create\u002Fdelete repos). Repository policy controls who can read\u002Fwrite\n   packages in a specific repo. These are separate scopes and must be\n   configured independently.\n\n5. **NEVER create a VPC endpoint without private DNS enabled.** Without\n   `--private-dns-enabled`, the endpoint does NOT intercept the default\n   CodeArtifact hostname. Package managers will resolve to the public\n   IP, bypassing the endpoint.\n\n6. **NEVER forget that TWO VPC endpoints are needed.** CodeArtifact\n   requires separate endpoints for the API (codeartifact.api) and\n   repositories (codeartifact.repositories). Creating only one breaks\n   either login or package download.\n\n7. **NEVER assume package versions can be overwritten.** Published\n   versions are IMMUTABLE. A new version number is required for every\n   change. Use lifecycle policies to clean up old versions — manual\n   deletion of specific versions is not supported (only lifecycle\n   rules remove them).\n\n8. **NEVER assume the domain owner and repository admin are the same\n   account.** The domain owner account pays for ALL storage. Repository\n   admins (potentially different accounts) do not pay. Plan cost\n   allocation and billing alerts on the domain owner account.\n\n9. **NEVER create multiple external connections for the same public\n   registry in one domain.** Only ONE external connection per public\n   source per domain is allowed. Duplicate attempts fail.\n\n10. **NEVER assume lifecycle policies apply retroactively.** Lifecycle\n    rules apply to FUTURE package versions. Existing versions are NOT\n    affected until the policy evaluates them. Plan the transition\n    carefully.\n\n## Output format\n\n```text\nCODEARTIFACT_DOMAIN: \u003Cdomain-name> (\u003Cdomain-owner-account>)\nVERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING\nCHECKLIST:\n  [✓|✗] Domain: \u003Cdomain-name> — encryption: \u003Caws-managed | CMK \u003Ckey-arn>>\n  [✓|✗] Repository: \u003Crepo-name> (format: \u003Cnpm|pip|maven|nuget>)\n  [✓|✗] Upstream cascade: \u003Crepo-1> → \u003Crepo-2> → \u003Cexternal-connection>\n  [✓|✗] External connection: \u003Cnpmjs|pypi|mavencentral|nuget-org> (domain-scoped)\n  [✓|✗] Authorization token: aws codeartifact login (12-hour expiry — CI refresh required)\n  [✓|✗] Package ingest: \u003Cpublish | copy-package> — immutability enforced\n  [✓|✗] Cross-account repository policy: \u003Caccount-id> (read | read+write)\n  [✓|✗] VPC endpoint: \u003Cvpce-id> (api + repositories, private DNS enabled)\n  [✓|✗] KMS encryption: \u003Caws-managed | CMK> — immutable at domain creation\n  [✓|✗] Lifecycle policy: \u003Cretain N versions | delete after N days>\n  [✓|✗] Package immutability: enforced (published versions cannot be overwritten)\n  [✓|✗] CloudWatch metrics: DownloadPackageVersion, PublishPackageVersion\n  [✓|✗] Tags: \u003Ckey=value list>\nVERIFICATION_COMMANDS:\n  aws codeartifact describe-domain --domain \u003Cdomain-name> --region \u003Cregion>\n  aws codeartifact describe-repository --domain \u003Cdomain-name> --repository \u003Crepo-name> --region \u003Cregion>\n  aws codeartifact list-repositories-in-domain --domain \u003Cdomain-name> --region \u003Cregion>\n```\n\n### Worked example — npm domain with external connection and cross-account access\n\n```text\nCODEARTIFACT_DOMAIN: my-domain (123456789012)\nVERDICT: READY_TO_DEPLOY\nCHECKLIST:\n  [✓] Domain: my-domain — encryption: CMK arn:aws:kms:us-east-1:123456789012:key\u002Fabcd1234\n  [✓] Repository: my-team-packages (format: npm)\n  [✓] Upstream cascade: my-team-packages → shared-team-packages → ext:npmjs\n  [✓] External connection: npmjs (domain-scoped)\n  [✓] Authorization token: aws codeartifact login (12-hour expiry — CI refresh required)\n  [✓] Package ingest: npm publish — immutability enforced\n  [✓] Cross-account repository policy: 999999999999 (read)\n  [✓] VPC endpoint: vpce-aaa111 (api + repositories, private DNS enabled)\n  [✓] KMS encryption: CMK — immutable at domain creation\n  [✓] Lifecycle policy: retain last 50 versions\n  [✓] Package immutability: enforced (published versions cannot be overwritten)\n  [✓] CloudWatch metrics: DownloadPackageVersion, PublishPackageVersion\n  [✓] Tags: Environment=production, Team=platform\nVERIFICATION_COMMANDS:\n  aws codeartifact describe-domain --domain my-domain --region us-east-1\n  aws codeartifact describe-repository --domain my-domain --repository my-team-packages --region us-east-1\n  aws codeartifact list-repositories-in-domain --domain my-domain --region us-east-1\n```\n\n## Error handling\n\nDeep dives (domain-creation encryption-key error, CI\u002FCD token expiry, cross-account access denied, package not found despite upstream, VPC endpoint not intercepting): [Error handling](references\u002Ferror-handling.md).\n\n## References (load on demand)\n\n- [Diagnostic commands](references\u002Fdiagnostic-commands.md) — per-step provisioning commands (Steps 1-11)\n- [Error handling](references\u002Ferror-handling.md) — error-handling deep dives\n- [Advanced patterns](references\u002Fadvanced-patterns.md) — mindset misconceptions, domain-owner vs repository-admin heuristic, recent AWS features\n- [Upstream cascade and auth tokens](references\u002Fupstream-cascade-and-auth-tokens.md) — full upstream\u002Ftoken reference, plus the cascade and token heuristics moved from this SKILL.md\n- [Encryption, VPC endpoint, and metrics](references\u002Fencryption-vpc-endpoint-and-metrics.md) — KMS, VPC endpoint, lifecycle, and metrics detail\n\n## Domain\n\nAWS CloudOps \u002F AWS CodeArtifact Domain Provisioning & Package Registry\nGovernance.\n\n## AWS documentation\n\n- **CodeArtifact domains** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodeartifact\u002Flatest\u002Fug\u002Fdomains.html\n- **Domain creation** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodeartifact\u002Flatest\u002Fug\u002Fcreate-domain.html\n- **Upstream repositories** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodeartifact\u002Flatest\u002Fug\u002Frepo-upstream.html\n- **External connections** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodeartifact\u002Flatest\u002Fug\u002Fexternal-connection.html\n- **Auth tokens and login** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodeartifact\u002Flatest\u002Fug\u002Fusing-private-npm-repo.html\n- **Repository policies** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodeartifact\u002Flatest\u002Fug\u002Frepo-policies.html\n- **VPC endpoints** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodeartifact\u002Flatest\u002Fug\u002Fvpc-endpoints.html\n- **Lifecycle policies** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodeartifact\u002Flatest\u002Fug\u002Flifecycle-policies.html\n- **CloudWatch metrics** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodeartifact\u002Flatest\u002Fug\u002Fmetrics.html\n- **Package origin controls** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodeartifact\u002Flatest\u002Fug\u002Fpackage-origin-controls.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, codeartifact, domain, devtools, cloudops, deploy, provisioning, upstream, external-connection, kms, vpc-endpoint, lifecycle, cross-account","1","Jacky Chan — AWS Community Builder","aws-cloudops","DevTools","0.1.0","aws, codeartifact, domain, devtools, cloudops, deploy, provisioning, upstream, external-connection, authorization-token, kms, vpc-endpoint, lifecycle, immutability, cross-account, repository-policy, package-registry","deploy","high","false","capability","Invoke when the user wants to create a CodeArtifact domain, configure the upstream and external-connection cascade for dependency resolution, set up package consumption authorization tokens (aws codeartifact login), share repositories cross-account via repository policy, enable private access via VPC interface endpoint, configure KMS encryption, set lifecycle\u002Fretention policies, or enforce package version immutability. Do NOT invoke for CodeArtifact repository-only operations without domain context (use codeartifact-repository-deployer), plain S3-backed package storage, or GitHub Packages (separate service).","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 codeartifact, iam, kms, ec2 (VPC endpoint), and sts access. Works with Terraform aws_codeartifact_domain \u002F aws_codeartifact_repository \u002F aws_codeartifact_domain_permissions_policy resources, CloudFormation AWS::CodeArtifact::Domain \u002F AWS::CodeArtifact::Repository templates, and the CodeArtifact login CLI for npm \u002F pip \u002F maven \u002F nuget.","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fcodeartifact-domain-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 codeartifact-domain-deployer",{"tool":56,"command":57},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill codeartifact-domain-deployer",{"tool":59,"command":60},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill codeartifact-domain-deployer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodeartifact-domain-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","参考文档",5701,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodeartifact-domain-deployer\u002Feval\u002Ftest-cases.yaml",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"evals\u002Fbaselines\u002Fcross-account-repository-policy.md",825,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodeartifact-domain-deployer\u002Fevals\u002Fbaselines\u002Fcross-account-repository-policy.md",{"path":75,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":76,"sourceHtmlUrl":77},"evals\u002Fbaselines\u002Fkms-encryption-custom-key.md",778,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodeartifact-domain-deployer\u002Fevals\u002Fbaselines\u002Fkms-encryption-custom-key.md",{"path":79,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":80,"sourceHtmlUrl":81},"evals\u002Fbaselines\u002Fmissing-domain-prerequisite.md",546,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodeartifact-domain-deployer\u002Fevals\u002Fbaselines\u002Fmissing-domain-prerequisite.md",{"path":83,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":84,"sourceHtmlUrl":85},"evals\u002Fbaselines\u002Fnpm-domain-with-external-connection.md",883,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodeartifact-domain-deployer\u002Fevals\u002Fbaselines\u002Fnpm-domain-with-external-connection.md",{"path":87,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":88,"sourceHtmlUrl":89},"evals\u002Fbaselines\u002Fvpc-endpoint-private-access.md",870,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodeartifact-domain-deployer\u002Fevals\u002Fbaselines\u002Fvpc-endpoint-private-access.md",{"path":91,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":92,"sourceHtmlUrl":93},"evals\u002Feval_config.yaml",1864,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodeartifact-domain-deployer\u002Fevals\u002Feval_config.yaml",{"path":95,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":96,"sourceHtmlUrl":97},"evals\u002Fevals.json",9896,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodeartifact-domain-deployer\u002Fevals\u002Fevals.json",{"path":99,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":100,"sourceHtmlUrl":101},"evals\u002Fprompts\u002Fcross-account-repository-policy.md",541,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodeartifact-domain-deployer\u002Fevals\u002Fprompts\u002Fcross-account-repository-policy.md",{"path":103,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":104,"sourceHtmlUrl":105},"evals\u002Fprompts\u002Fkms-encryption-custom-key.md",488,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodeartifact-domain-deployer\u002Fevals\u002Fprompts\u002Fkms-encryption-custom-key.md",{"path":107,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":108,"sourceHtmlUrl":109},"evals\u002Fprompts\u002Fmissing-domain-prerequisite.md",332,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodeartifact-domain-deployer\u002Fevals\u002Fprompts\u002Fmissing-domain-prerequisite.md",{"path":111,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":112,"sourceHtmlUrl":113},"evals\u002Fprompts\u002Fnpm-domain-with-external-connection.md",563,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodeartifact-domain-deployer\u002Fevals\u002Fprompts\u002Fnpm-domain-with-external-connection.md",{"path":115,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":116,"sourceHtmlUrl":117},"evals\u002Fprompts\u002Fvpc-endpoint-private-access.md",516,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodeartifact-domain-deployer\u002Fevals\u002Fprompts\u002Fvpc-endpoint-private-access.md",{"path":119,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":120,"sourceHtmlUrl":121},"examples\u002FREADME.md",6453,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodeartifact-domain-deployer\u002Fexamples\u002FREADME.md",{"path":123,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":124,"sourceHtmlUrl":125},"references\u002Fadvanced-patterns.md",4239,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodeartifact-domain-deployer\u002Freferences\u002Fadvanced-patterns.md",{"path":127,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":128,"sourceHtmlUrl":129},"references\u002Fdiagnostic-commands.md",6571,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodeartifact-domain-deployer\u002Freferences\u002Fdiagnostic-commands.md",{"path":131,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":132,"sourceHtmlUrl":133},"references\u002Fencryption-vpc-endpoint-and-metrics.md",11161,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodeartifact-domain-deployer\u002Freferences\u002Fencryption-vpc-endpoint-and-metrics.md",{"path":135,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":136,"sourceHtmlUrl":137},"references\u002Ferror-handling.md",1708,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodeartifact-domain-deployer\u002Freferences\u002Ferror-handling.md",{"path":139,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":140,"sourceHtmlUrl":141},"references\u002Fupstream-cascade-and-auth-tokens.md",12262,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodeartifact-domain-deployer\u002Freferences\u002Fupstream-cascade-and-auth-tokens.md",{"path":143,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":144,"sourceHtmlUrl":145},"skill.usf.yaml",4564,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodeartifact-domain-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",[],[]]