[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A5X6GS1GCZBBDHGE9B84SF":3,"skill-same:01M7A5X6GS1GCZBBDHGE9B84SF":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},"01M7A5X6GS1GCZBBDHGE9B84SF","codecommit-repository-deployer",null,"Provisions AWS CodeCommit repositories with production defaults: repository creation (create-repository), default branch, KMS encryption with customer-managed key, approval rule templates and branch protection, notification rules, pull request templates, cross-account resource policy, repository triggers (Lambda\u002FSNS), migration from external Git, IAM git credentials vs SSH keys vs git-remote-codecommit, and CodeBuild\u002FCodePipeline connection. Emits a READY_TO_DEPLOY checklist with verification commands. Use when creating a CodeCommit repository, configuring approval rules, KMS encryption, cross-account access, or migrating from external Git. Triggers: create codecommit repository, codecommit approval rule, codecommit kms encryption, codecommit cross-account, codecommit trigger, git-remote-codecommit.","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\u002Fcodecommit-repository-deployer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: codecommit-repository-deployer\ndescription: 'Provisions AWS CodeCommit repositories with production defaults: repository creation (create-repository), default branch, KMS encryption with customer-managed key, approval rule templates and branch protection, notification rules, pull request templates, cross-account resource policy, repository triggers (Lambda\u002FSNS), migration from external Git, IAM git credentials vs SSH keys vs git-remote-codecommit, and CodeBuild\u002FCodePipeline connection. Emits a READY_TO_DEPLOY checklist with verification commands. Use when creating a CodeCommit repository, configuring approval rules, KMS encryption, cross-account access, or migrating from external Git. Triggers: create codecommit repository, codecommit approval rule, codecommit kms encryption, codecommit cross-account, codecommit trigger, git-remote-codecommit.'\nlicense: Apache-2.0\ncompatibility: 'Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). For live deployment: AWS CLI v2 with codecommit, kms, iam, sns, and lambda access (and cross-account STS assume-role if cross-account repository access). Works with Terraform aws_codecommit_repository \u002F aws_codecommit_approval_rule_template \u002F aws_codecommit_trigger resources and CloudFormation AWS::CodeCommit::Repository 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: 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, codecommit, git, cloudops, deploy, dev-tools, provisioning, approval-rule, branch-protection, kms, notification, cross-account, codebuild\n  dependencies: aws-orchestrator\n  keywords: aws, codecommit, repository, git, cloudops, deploy, provisioning, approval rule template, branch protection, kms encryption, notification rule, pull request template, cross-account, git-remote-codecommit, codebuild, codepipeline\n  when_to_use: Invoke when the user wants to create a CodeCommit repository, configure a default branch, set up an approval rule template for branch protection, enable KMS encryption with a customer-managed key, create notification rules for repository events, add a pull request template, configure cross-account access via resource policy, set up repository triggers (Lambda\u002FSNS), migrate from an external Git provider, connect the repository to CodeBuild or CodePipeline, or choose between IAM git credentials, SSH keys, and git-remote-codecommit (GRC) for authentication. Do NOT invoke for auditing existing repositories (use codecommit-repository-auditor), GitHub repository management, or CodeBuild\u002FCodePipeline pipeline configuration itself.\n---\n\n# CodeCommit Repository Deployer\n\nAn AWS CloudOps agent skill that provisions AWS CodeCommit repositories\nwith correct defaults. The skill walks the operator through repository\ncreation, default branch selection, KMS encryption with a customer-\nmanaged key, approval rule templates for branch protection, notification\nrules, pull request templates, cross-account access via resource policy,\nrepository triggers, authentication method selection (IAM git credentials\nvs SSH vs git-remote-codecommit), and migration from external Git,\ncaptures configuration decisions, explains why each default matters, and\nemits a READY_TO_DEPLOY checklist with copy-pasteable verification\ncommands.\n\n## Activation keywords\n\ncreate CodeCommit repository, CodeCommit default branch, CodeCommit\napproval rule template, CodeCommit branch protection, CodeCommit KMS\nencryption, CodeCommit notification rule, CodeCommit pull request\ntemplate, CodeCommit cross-account access, CodeCommit trigger,\ngit-remote-codecommit, CodeCommit migration.\n\n## STRICT output contract\n\nWhen this skill is invoked with a CodeCommit-provisioning request\n(create a repository, configure branch protection, set up approval rule\ntemplates, enable KMS encryption, configure cross-account access,\nmigrate from external Git, or a partial configuration), the agent MUST\nrespond with the READY_TO_DEPLOY checklist defined in the \"Output\nformat\" section using the literal all-caps labels `CODECOMMIT_REPO:`,\n`VERDICT:`, `CHECKLIST:`, and `VERIFICATION_COMMANDS:`. Do NOT preface\nthe checklist with prose, headings, or disclaimers — emit the block as\nthe first lines of the response. This contract is what assertion-based\nevals and downstream provisioning pipelines rely on; deviating from the\nliteral labels breaks automation silently.\n\nIf any prerequisite is missing, the verdict is `PREREQUISITES_MISSING`\nwith a specific gap citation in the checklist (marked `[✗]`), and\n`READY_TO_DEPLOY` MUST NOT also appear.\n\n### FORBIDDEN output patterns\n\n1. **NEVER emit `VERDICT: READY_TO_DEPLOY` when any CHECKLIST item is\n   `[✗]`.** If even one prerequisite is unmet, the verdict MUST be\n   `PREREQUISITES_MISSING`. A mixed-verdict block is a contract\n   violation.\n\n2. **NEVER show KMS encryption as configured without verifying the key\n   policy grants `codecommit.amazonaws.com`.** The repository creates\n   successfully without the key policy grant — push\u002Fpull fails silently\n   with AccessDenied at encryption time. The CHECKLIST MUST state \"key\n   policy grants codecommit.amazonaws.com\" explicitly.\n\n3. **NEVER show cross-account access as configured without verifying\n   BOTH the repository resource policy AND the KMS key policy.**\n   Granting only one results in AccessDenied. If the repository is\n   KMS-encrypted, the CHECKLIST MUST list both policy grants.\n\n4. **NEVER list an approval rule template without confirming it is\n   ASSOCIATED with the repository.** Creating a template alone does\n   nothing — it must be explicitly associated via\n   `associate-approval-rule-template-with-repository`. The CHECKLIST\n   MUST state \"associated\" or the item is `[✗]`.\n\n5. **NEVER confuse notification rules (CodeStar Notifications) with\n   repository triggers (Lambda\u002FSNS direct invocation) in the CHECKLIST.**\n   These are separate mechanisms. The CHECKLIST MUST list them as\n   distinct items, not collapse them into a single \"notifications\" line.\n\n6. **NEVER omit the git-remote-codecommit (GRC) URL from the output.**\n   The GRC clone URL (`codecommit:\u002F\u002F\u003Cregion>@\u003Crepo-name>`) is the\n   primary verification artifact for IAM-role-based authentication. The\n   CHECKLIST MUST include the auth method and URL.\n\n7. **NEVER substitute lowercase or camelCase labels.** The literal\n   all-caps labels (`CODECOMMIT_REPO:`, `VERDICT:`, `CHECKLIST:`,\n   `VERIFICATION_COMMANDS:`) are parsed by downstream automation.\n   Markdown headings or bold variants break the parser silently.\n\n## Quick navigation\n\n| Section | When to read |\n|---|---|\n| Prerequisites | Always — verify before provisioning |\n| Step 1 — Repository creation and default branch | Core creation |\n| Step 2 — KMS encryption (customer-managed key) | Encryption config |\n| Step 3 — Approval rule templates and branch protection | Governance |\n| Step 4 — Notification rules (SNS\u002FEventBridge) | Event routing |\n| Step 5 — Pull request templates | PR standardization |\n| Step 6 — Cross-account access via resource policy | Cross-account |\n| Step 7 — Repository triggers (Lambda\u002FSNS) | Automation hooks |\n| Step 8 — Authentication: git credentials vs SSH vs GRC | Auth selection |\n| Step 9 — Migration from external Git | Repository migration |\n| Step 10 — CodeBuild\u002FCodePipeline connection | CI\u002FCD wiring |\n| NEVER do these things | Review before signing off |\n| Output format | The literal checklist template |\n| references\u002Fapproval-rules-and-protection.md | Approval rule detail |\n| references\u002Fauth-and-cross-account.md | Auth + cross-account detail |\n\n## Mindset\n\n**One-line takeaway:** A CodeCommit repository is a managed Git\nrepository. The default branch must be explicitly created on first\npush (or via the console). KMS encryption with a customer-managed key\nrequires the key policy to grant CodeCommit (`kms:GenerateDataKey` and\n`kms:Encrypt\u002FDecrypt`). Approval rule templates enforce required\nreviewers on pull requests BEFORE merge — branch protection prevents\ndirect pushes to protected branches.\n\nThree misconceptions (default branch does not exist until first push; KMS key policy grant; GRC vs git credentials) — full text: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## Configuration dependency graph (novel heuristic)\n\nFull dependency table (repository, KMS encryption, default branch, approval rule template, notification rule, cross-account resource policy, repository trigger) with silent-failure modes: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## Expert heuristic: git-remote-codecommit for IAM auth\n\nAuth-method decision tree (GRC vs IAM git credentials vs SSH): [Auth and cross-account](references\u002Fauth-and-cross-account.md).\n\n## Expert heuristic: approval rule template scope\n\nApproval rule template lifecycle and the approval-rules vs branch-protection split: [Approval rules and protection](references\u002Fapproval-rules-and-protection.md).\n\n## Expert heuristic: KMS key policy cross-account grant\n\nCross-account resource policy + KMS key policy grant pair (missing either = AccessDenied): [Auth and cross-account](references\u002Fauth-and-cross-account.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| Repository name available | Must be unique within the account+region | `aws codecommit get-repository --repository-name \u003Cname>` (should fail) |\n| KMS key exists (if encryption) | Customer-managed key must exist | `aws kms describe-key --key-id \u003Ckey-id>` |\n| KMS key policy grants CodeCommit | Without it, push\u002Fpull fails silently | `aws kms get-key-policy --key-id \u003Ckey-id>` |\n| SNS topic exists (if notifications) | Notification rule target must exist | `aws sns get-topic-attributes --topic-arn \u003Carn>` |\n| SNS topic policy grants CodeStar | Without it, notifications never fire | Check topic attributes |\n| Cross-account principal identified | Resource policy + KMS key policy need it | `aws sts get-caller-identity` in cross-account |\n| Lambda function exists (if triggers) | Trigger target must exist | `aws lambda get-function --function-name \u003Cname>` |\n| IAM auth method decided | GRC vs git credentials vs SSH | Confirm auth model |\n\n## Step 1 — Repository creation and default branch\n\n```bash\nREPO_ARN=$(aws codecommit create-repository \\\n  --repository-name my-app-repo \\\n  --repository-description \"Microservice repository for my-app\" \\\n  --tags Environment=production,Team=platform \\\n  --query 'repositoryMetadata.Arn' --output text --region us-east-1)\n```\n\n**Default branch caveat:** `--default-branch main` sets the default\nbranch name in metadata, but the `main` branch does NOT exist until you\npush the first commit. The repository is empty at creation.\n\n```bash\ngit remote add origin codecommit:\u002F\u002Fus-east-1@my-app-repo\necho \"# my-app\" > README.md\ngit add . && git commit -m \"initial commit\"\ngit push -u origin main\n```\n\n**Common mistake:** configuring approval rules or branch protection on\n`main` before the first push. The protections have nothing to act on.\n\n## Step 2 — KMS encryption (customer-managed key)\n\nCodeCommit encrypts repositories at rest. By default, it uses an\nAWS-managed key. For customer-managed key encryption, the key must have\na policy granting CodeCommit.\n\nRequired KMS key policy statement:\n\n```json\n{\n  \"Sid\": \"AllowCodeCommitServiceAccess\",\n  \"Effect\": \"Allow\",\n  \"Principal\": { \"Service\": \"codecommit.amazonaws.com\" },\n  \"Action\": [\"kms:Encrypt\", \"kms:Decrypt\", \"kms:ReEncrypt*\",\n             \"kms:GenerateDataKey*\", \"kms:DescribeKey\"],\n  \"Resource\": \"*\"\n}\n```\n\n**Critical:** the KMS key policy grant to `codecommit.amazonaws.com` is\nthe most commonly forgotten configuration. Without it, the repository\ncreates successfully, but all push\u002Fpull operations fail with\nAccessDenied. Use CloudFormation\u002FTerraform for IaC to ensure the key\npolicy is correct.\n\n## Step 3 — Approval rule templates and branch protection\n\n```bash\n# Create an approval rule template\naws codecommit create-approval-rule-template \\\n  --approval-rule-template-name \"require-two-reviewers\" \\\n  --approval-rule-template-content '{\n    \"Version\": \"2018-02-08\",\n    \"Statements\": [{\n      \"Type\": \"Approvers\",\n      \"NumberOfApprovalsNeeded\": 2,\n      \"ApprovalPoolMembers\": [\n        \"arn:aws:iam::123456789012:user\u002Falice\",\n        \"arn:aws:iam::123456789012:user\u002Fbob\"\n      ]\n    }]\n  }' --region us-east-1\n\n# Associate the template with the repository (CRITICAL — template alone does nothing)\naws codecommit associate-approval-rule-template-with-repository \\\n  --approval-rule-template-name \"require-two-reviewers\" \\\n  --repository-name \"my-app-repo\" --region us-east-1\n```\n\n**Branch protection via IAM policy (deny direct push to main):**\n\n```json\n{\n  \"Sid\": \"DenyDirectPushToMain\",\n  \"Effect\": \"Deny\",\n  \"Action\": \"codecommit:GitPush\",\n  \"Resource\": \"arn:aws:codecommit:us-east-1:123456789012:my-app-repo\",\n  \"Condition\": {\n    \"StringEquals\": { \"codecommit:References\": [\"refs\u002Fheads\u002Fmain\"] }\n  }\n}\n```\n\nThis IAM policy, attached to developers, forces them to use pull\nrequests (which are then governed by the approval rule template).\n\n## Step 4 — Notification rules (SNS\u002FEventBridge)\n\nNotification rules route repository events to SNS topics. Notification\nrules use AWS CodeStar Notifications — NOT EventBridge directly.\n\n```bash\n# Create SNS topic and set policy granting CodeStar Notifications\nTOPIC_ARN=$(aws sns create-topic --name \"codecommit-notifications\" \\\n  --query 'TopicArn' --output text --region us-east-1)\n\naws sns set-topic-attributes --topic-arn \"$TOPIC_ARN\" \\\n  --attribute-name Policy \\\n  --attribute-value '{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"codestar-notifications.amazonaws.com\"},\"Action\":\"sns:Publish\",\"Resource\":\"'\"$TOPIC_ARN\"'\"}]}'\n\n# Create the notification rule\naws codestar-notifications create-notification-rule \\\n  --name \"my-app-pr-notifications\" \\\n  --resource \"arn:aws:codecommit:us-east-1:123456789012:my-app-repo\" \\\n  --event-type-ids pull-request-created pull-request-updated pull-request-merged \\\n  --targets '[{\"Id\":\"'\"$TOPIC_ARN\"'\"}]' --detail-type FULL --region us-east-1\n```\n\n**Critical:** the SNS topic policy grant to\n`codestar-notifications.amazonaws.com` is the #1 forgotten configuration\nfor notification rules. Without it, the rule creates but no\nnotifications fire.\n\n## Step 5 — Pull request templates\n\nA pull request template is a markdown file committed to the repository.\nWhen a developer creates a PR, the template pre-populates the\ndescription. Commit the file to a standard path\n(e.g., `.github\u002FPULL_REQUEST_TEMPLATE.md`). The template appears on new\nPRs after the file is committed.\n\n## Step 6 — Cross-account access via resource policy\n\nCross-account access requires the repository resource policy to grant\nthe cross-account principal CodeCommit permissions. If the repository\nis KMS-encrypted, the KMS key policy must ALSO grant the cross-account\nprincipal.\n\n```text\nRepository resource policy:\n  Principal: arn:aws:iam::999999999999:root\n  Actions: codecommit:GitPull, codecommit:GitPush, GetRepository\n\nKMS key policy (ALSO required):\n  Principal: arn:aws:iam::999999999999:root\n  Actions: kms:Decrypt, kms:Encrypt, kms:ReEncrypt*,\n           kms:GenerateDataKey*, kms:DescribeKey\n```\n\n**Critical:** BOTH the repository resource policy AND the KMS key policy\nmust grant the cross-account principal. Granting only one results in\nAccessDenied. This is the #1 cause of cross-account CodeCommit failures.\n\n## Step 7 — Repository triggers (Lambda\u002FSNS)\n\nRepository triggers are a LEGACY mechanism that invokes Lambda or SNS\ndirectly when repository events occur. Triggers are SEPARATE from\nnotification rules.\n\n```bash\naws codecommit put-repository-triggers \\\n  --repository-name \"my-app-repo\" \\\n  --trigger-name \"lambda-on-push\" \\\n  --trigger-target-arn \"arn:aws:lambda:us-east-1:123456789012:function:trigger-handler\" \\\n  --branches \"main\" \"develop\" --events \"all\" --region us-east-1\n```\n\n**The Lambda resource policy must allow CodeCommit to invoke:**\n\n```bash\naws lambda add-permission \\\n  --function-name \"trigger-handler\" \\\n  --statement-id \"AllowCodeCommitInvoke\" \\\n  --action \"lambda:InvokeFunction\" \\\n  --principal \"codecommit.amazonaws.com\" \\\n  --source-arn \"arn:aws:codecommit:us-east-1:123456789012:my-app-repo\" --region us-east-1\n```\n\n## Step 8 — Authentication: git credentials vs SSH vs GRC\n\n| Method | Best for | Credential type | Rotation |\n|---|---|---|---|\n| git-remote-codecommit (GRC) | SSO\u002Ffederated, IAM-role-based | Session token (auto) | Automatic |\n| IAM git credentials | CI\u002FCD pipelines with fixed identity | Static username + password | Manual |\n| SSH keys | Developers preferring key-based auth | Per-IAM-user SSH key | Manual |\n\nGRC and IAM git-credential setup commands: [Auth and cross-account](references\u002Fauth-and-cross-account.md).\n\n## Step 9 — Migration from external Git\n\nTo migrate from GitHub, GitLab, or Bitbucket to CodeCommit, mirror the\nrepository.\n\n```bash\n# 1. Create the target CodeCommit repository (empty)\n# 2. Clone the source repository as a mirror\ngit clone --mirror https:\u002F\u002Fgithub.com\u002Forg\u002Fsource-repo.git\ncd source-repo.git\n# 3. Push the mirror to CodeCommit (using GRC)\ngit push codecommit:\u002F\u002Fus-east-1@migrated-repo --all\ngit push codecommit:\u002F\u002Fus-east-1@migrated-repo --tags\n# 4. Verify all branches and tags are present\naws codecommit list-branches --repository-name \"migrated-repo\" --region us-east-1\n```\n\n**Migration checklist:** all branches mirrored; all tags pushed\nexplicitly (`--tags`); pull request history is NOT migrated (CodeCommit\ndoes not import PRs from external providers); webhooks\u002FCI must be\nreconfigured; developer access must be reconfigured.\n\n## Step 10 — CodeBuild\u002FCodePipeline connection\n\nThe pipeline service role needs CodeCommit permissions:\n\n```json\n{\n  \"Effect\": \"Allow\",\n  \"Action\": [\"codecommit:GetRepository\", \"codecommit:GitPull\",\n             \"codecommit:UploadArchive\", \"codecommit:GetUploadArchiveStatus\",\n             \"codecommit:CancelUploadArchive\"],\n  \"Resource\": \"arn:aws:codecommit:us-east-1:123456789012:my-app-repo\"\n}\n```\n\nPipeline source action: `SourceType: CODECOMMIT`,\n`SourceLocation: https:\u002F\u002Fcodecommit.us-east-1.amazonaws.com\u002Fv1\u002Frepos\u002Fmy-app-repo`,\n`Branch: main`. If the repository is KMS-encrypted, the pipeline service\nrole also needs `kms:Decrypt` on the key.\n\n## NEVER do these things\n\n1. **NEVER assume the default branch exists at creation.** The\n   `defaultBranchName` is metadata. The branch does NOT exist until the\n   first commit is pushed.\n\n2. **NEVER create a KMS-encrypted repository without verifying the key\n   policy grants CodeCommit.** The repository creates successfully, but\n   all push\u002Fpull operations fail with AccessDenied.\n\n3. **NEVER grant cross-account access via only the repository resource\n   policy.** If the repository is KMS-encrypted, the KMS key policy must\n   ALSO grant the cross-account principal.\n\n4. **NEVER confuse notification rules with repository triggers.**\n   Notification rules use CodeStar Notifications. Repository triggers\n   invoke Lambda\u002FSNS directly. They are separate mechanisms.\n\n5. **NEVER create a notification rule without verifying the SNS topic\n   policy.** The SNS topic policy must grant\n   `codestar-notifications.amazonaws.com` the `sns:Publish` action.\n\n6. **NEVER create a repository trigger without verifying the target\n   resource policy.** Lambda must grant `codecommit.amazonaws.com`\n   `lambda:InvokeFunction`. SNS must grant CodeCommit `sns:Publish`.\n\n7. **NEVER assume approval rule templates auto-apply to repositories.**\n   Templates must be explicitly ASSOCIATED via\n   `associate-approval-rule-template-with-repository`.\n\n8. **NEVER rely on approval rules alone for branch protection.**\n   Approval rules govern PR merges. Branch protection requires an IAM\n   policy denying `codecommit:GitPush` to specific branches.\n\n9. **NEVER use static git credentials for SSO\u002Ffederated environments.**\n   Use git-remote-codecommit (GRC) for federated\u002FIAM-role-based auth.\n\n10. **NEVER forget to migrate tags during external Git migration.**\n    `git push --mirror` does NOT always carry tags. Run `git push --tags`\n    explicitly.\n\n## Output format\n\n```text\nCODECOMMIT_REPO: \u003Crepository-name> (\u003Crepository-arn>)\nVERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING\nCHECKLIST:\n  [✓|✗] Repository name: \u003Cname> (unique in account+region)\n  [✓|✗] Default branch: \u003Cbranch> (created at first push)\n  [✓|✗] Description: \u003Cdescription>\n  [✓|✗] KMS encryption: customer-managed key \u003Ckey-id> (key policy grants CodeCommit) | AWS-managed\n  [✓|✗] KMS key policy cross-account: granted to \u003Ccross-acct> | N\u002FA\n  [✓|✗] Approval rule template: \u003Ctemplate-name> (associated, \u003CN> approvals needed)\n  [✓|✗] Branch protection: IAM policy denies direct push to \u003Cbranch> | Not configured\n  [✓|✗] Notification rule: \u003Crule-name> → SNS \u003Ctopic-arn> (topic policy grants CodeStar)\n  [✓|✗] Pull request template: \u003Cpath> (committed to repo)\n  [✓|✗] Cross-account access: resource policy grants \u003Ccross-acct-principal>\n  [✓|✗] Repository trigger: \u003Ctrigger-name> → \u003Ctarget-arn> | None\n  [✓|✗] Auth method: git-remote-codecommit (GRC) | IAM git credentials | SSH keys\n  [✓|✗] CodePipeline\u002FCodeBuild: service role has codecommit:GetRepository\n  [✓|✗] Tags: \u003Ckey=value list>\nVERIFICATION_COMMANDS:\n  aws codecommit get-repository --repository-name \u003Cname> --region \u003Cregion>\n  aws kms describe-key --key-id \u003Ckey-id> --region \u003Cregion>\n  aws codecommit list-approval-rule-templates --region \u003Cregion>\n  aws codestar-notifications list-notification-rules --region \u003Cregion>\n```\n\n### Worked example — repository with KMS encryption, approval rules, and cross-account resource policy\n\n```text\nCODECOMMIT_REPO: shared-platform-repo (arn:aws:codecommit:us-east-1:123456789012:shared-platform-repo)\nVERDICT: READY_TO_DEPLOY\nCHECKLIST:\n  [✓] Repository name: shared-platform-repo (unique in account 123456789012, us-east-1)\n  [✓] Default branch: main (created at first push)\n  [✓] Description: Cross-platform shared library repository\n  [✓] KMS encryption: customer-managed key arn:aws:kms:us-east-1:123456789012:key\u002Fa1b2c3d4-5678-90ef-1234-567890abcdef (key policy grants codecommit.amazonaws.com: kms:Encrypt, Decrypt, ReEncrypt*, GenerateDataKey*, DescribeKey)\n  [✓] KMS key policy cross-account: granted to arn:aws:iam::999999999999:root (kms:Decrypt, Encrypt, ReEncrypt*, GenerateDataKey*, DescribeKey)\n  [✓] Cross-account resource policy: grants arn:aws:iam::999999999999:root (codecommit:GitPull, GitPush, GetRepository, UploadArchive)\n  [✓] Approval rule template: require-two-reviewers (associated, 2 approvals needed, pool: arn:aws:iam::123456789012:user\u002Falice, arn:aws:iam::123456789012:user\u002Fbob)\n  [✓] Branch protection: IAM policy DenyDirectPushToMain denies codecommit:GitPush on refs\u002Fheads\u002Fmain\n  [✓] Notification rule: platform-pr-notifications → SNS arn:aws:sns:us-east-1:123456789012:codecommit-notifications (topic policy grants codestar-notifications.amazonaws.com sns:Publish)\n  [✓] Pull request template: .github\u002FPULL_REQUEST_TEMPLATE.md (committed to repo)\n  [✓] Repository trigger: lambda-on-push → arn:aws:lambda:us-east-1:123456789012:function:trigger-handler (Lambda policy grants codecommit.amazonaws.com lambda:InvokeFunction)\n  [✓] Auth method: git-remote-codecommit (GRC) — clone URL: codecommit:\u002F\u002Fus-east-1@shared-platform-repo\n  [✓] CodePipeline\u002FCodeBuild: service role has codecommit:GetRepository + GitPull on arn:aws:codecommit:us-east-1:123456789012:shared-platform-repo\n  [✓] Tags: Environment=production, Team=platform, CrossAccount=true\nVERIFICATION_COMMANDS:\n  aws codecommit get-repository --repository-name shared-platform-repo --region us-east-1\n  aws kms describe-key --key-id arn:aws:kms:us-east-1:123456789012:key\u002Fa1b2c3d4-5678-90ef-1234-567890abcdef --region us-east-1\n  aws kms get-key-policy --key-id arn:aws:kms:us-east-1:123456789012:key\u002Fa1b2c3d4-5678-90ef-1234-567890abcdef --policy-name default --region us-east-1\n  aws codecommit list-approval-rule-templates --region us-east-1\n  aws codestar-notifications list-notification-rules --region us-east-1\n  # Cross-account verification (run in account 999999999999):\n  git clone codecommit:\u002F\u002Fus-east-1@shared-platform-repo\n```\n\n### Worked example — PREREQUISITES_MISSING (KMS key policy not granted)\n\nFull checklist block: [Worked examples](references\u002Fworked-examples.md).\n\n## Error handling\n\nSymptom fixes (KMS AccessDenied, cross-account AccessDenied, silent notifications, trigger not firing, approval rule not enforced): [Error handling](references\u002Ferror-handling.md).\n\n## References (load on demand)\n\n- [Advanced patterns](references\u002Fadvanced-patterns.md) — three-misconception deep dive, configuration dependency graph\n- [Worked examples](references\u002Fworked-examples.md) — PREREQUISITES_MISSING (KMS key policy not granted) checklist\n- [Error handling](references\u002Ferror-handling.md) — provisioning failure symptom fixes\n- [Approval rules and protection](references\u002Fapproval-rules-and-protection.md) — approval rule template lifecycle and scope\n- [Auth and cross-account](references\u002Fauth-and-cross-account.md) — GRC heuristic, KMS cross-account grants, GRC\u002FSSH\u002Fcredential setup\n\n## Domain\n\nAWS CloudOps \u002F AWS CodeCommit Repository Provisioning & Developer Tools\nConfiguration.\n\n## AWS documentation\n\n- **CodeCommit User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodecommit\u002Flatest\u002Fuserguide\u002Fwelcome.html\n- **KMS encryption** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodecommit\u002Flatest\u002Fuserguide\u002Fencryption.html\n- **Approval rule templates** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodecommit\u002Flatest\u002Fuserguide\u002Fapproval-rule-templates.html\n- **Notification rules** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fdtconsole\u002Flatest\u002Fuserguide\u002Fnotifications.html\n- **Repository triggers** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodecommit\u002Flatest\u002Fuserguide\u002Fhow-to-notify.html\n- **git-remote-codecommit** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodecommit\u002Flatest\u002Fuserguide\u002Fsetting-up-git-remote-codecommit.html\n- **Cross-account access** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodecommit\u002Flatest\u002Fuserguide\u002Fcross-account.html\n","# CodeCommit Repository Deployer\n\nAn AWS CloudOps agent skill that provisions AWS CodeCommit repositories\nwith correct defaults. The skill walks the operator through repository\ncreation, default branch selection, KMS encryption with a customer-\nmanaged key, approval rule templates for branch protection, notification\nrules, pull request templates, cross-account access via resource policy,\nrepository triggers, authentication method selection (IAM git credentials\nvs SSH vs git-remote-codecommit), and migration from external Git,\ncaptures configuration decisions, explains why each default matters, and\nemits a READY_TO_DEPLOY checklist with copy-pasteable verification\ncommands.\n\n## Activation keywords\n\ncreate CodeCommit repository, CodeCommit default branch, CodeCommit\napproval rule template, CodeCommit branch protection, CodeCommit KMS\nencryption, CodeCommit notification rule, CodeCommit pull request\ntemplate, CodeCommit cross-account access, CodeCommit trigger,\ngit-remote-codecommit, CodeCommit migration.\n\n## STRICT output contract\n\nWhen this skill is invoked with a CodeCommit-provisioning request\n(create a repository, configure branch protection, set up approval rule\ntemplates, enable KMS encryption, configure cross-account access,\nmigrate from external Git, or a partial configuration), the agent MUST\nrespond with the READY_TO_DEPLOY checklist defined in the \"Output\nformat\" section using the literal all-caps labels `CODECOMMIT_REPO:`,\n`VERDICT:`, `CHECKLIST:`, and `VERIFICATION_COMMANDS:`. Do NOT preface\nthe checklist with prose, headings, or disclaimers — emit the block as\nthe first lines of the response. This contract is what assertion-based\nevals and downstream provisioning pipelines rely on; deviating from the\nliteral labels breaks automation silently.\n\nIf any prerequisite is missing, the verdict is `PREREQUISITES_MISSING`\nwith a specific gap citation in the checklist (marked `[✗]`), and\n`READY_TO_DEPLOY` MUST NOT also appear.\n\n### FORBIDDEN output patterns\n\n1. **NEVER emit `VERDICT: READY_TO_DEPLOY` when any CHECKLIST item is\n   `[✗]`.** If even one prerequisite is unmet, the verdict MUST be\n   `PREREQUISITES_MISSING`. A mixed-verdict block is a contract\n   violation.\n\n2. **NEVER show KMS encryption as configured without verifying the key\n   policy grants `codecommit.amazonaws.com`.** The repository creates\n   successfully without the key policy grant — push\u002Fpull fails silently\n   with AccessDenied at encryption time. The CHECKLIST MUST state \"key\n   policy grants codecommit.amazonaws.com\" explicitly.\n\n3. **NEVER show cross-account access as configured without verifying\n   BOTH the repository resource policy AND the KMS key policy.**\n   Granting only one results in AccessDenied. If the repository is\n   KMS-encrypted, the CHECKLIST MUST list both policy grants.\n\n4. **NEVER list an approval rule template without confirming it is\n   ASSOCIATED with the repository.** Creating a template alone does\n   nothing — it must be explicitly associated via\n   `associate-approval-rule-template-with-repository`. The CHECKLIST\n   MUST state \"associated\" or the item is `[✗]`.\n\n5. **NEVER confuse notification rules (CodeStar Notifications) with\n   repository triggers (Lambda\u002FSNS direct invocation) in the CHECKLIST.**\n   These are separate mechanisms. The CHECKLIST MUST list them as\n   distinct items, not collapse them into a single \"notifications\" line.\n\n6. **NEVER omit the git-remote-codecommit (GRC) URL from the output.**\n   The GRC clone URL (`codecommit:\u002F\u002F\u003Cregion>@\u003Crepo-name>`) is the\n   primary verification artifact for IAM-role-based authentication. The\n   CHECKLIST MUST include the auth method and URL.\n\n7. **NEVER substitute lowercase or camelCase labels.** The literal\n   all-caps labels (`CODECOMMIT_REPO:`, `VERDICT:`, `CHECKLIST:`,\n   `VERIFICATION_COMMANDS:`) are parsed by downstream automation.\n   Markdown headings or bold variants break the parser silently.\n\n## Quick navigation\n\n| Section | When to read |\n|---|---|\n| Prerequisites | Always — verify before provisioning |\n| Step 1 — Repository creation and default branch | Core creation |\n| Step 2 — KMS encryption (customer-managed key) | Encryption config |\n| Step 3 — Approval rule templates and branch protection | Governance |\n| Step 4 — Notification rules (SNS\u002FEventBridge) | Event routing |\n| Step 5 — Pull request templates | PR standardization |\n| Step 6 — Cross-account access via resource policy | Cross-account |\n| Step 7 — Repository triggers (Lambda\u002FSNS) | Automation hooks |\n| Step 8 — Authentication: git credentials vs SSH vs GRC | Auth selection |\n| Step 9 — Migration from external Git | Repository migration |\n| Step 10 — CodeBuild\u002FCodePipeline connection | CI\u002FCD wiring |\n| NEVER do these things | Review before signing off |\n| Output format | The literal checklist template |\n| references\u002Fapproval-rules-and-protection.md | Approval rule detail |\n| references\u002Fauth-and-cross-account.md | Auth + cross-account detail |\n\n## Mindset\n\n**One-line takeaway:** A CodeCommit repository is a managed Git\nrepository. The default branch must be explicitly created on first\npush (or via the console). KMS encryption with a customer-managed key\nrequires the key policy to grant CodeCommit (`kms:GenerateDataKey` and\n`kms:Encrypt\u002FDecrypt`). Approval rule templates enforce required\nreviewers on pull requests BEFORE merge — branch protection prevents\ndirect pushes to protected branches.\n\nThree misconceptions (default branch does not exist until first push; KMS key policy grant; GRC vs git credentials) — full text: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## Configuration dependency graph (novel heuristic)\n\nFull dependency table (repository, KMS encryption, default branch, approval rule template, notification rule, cross-account resource policy, repository trigger) with silent-failure modes: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## Expert heuristic: git-remote-codecommit for IAM auth\n\nAuth-method decision tree (GRC vs IAM git credentials vs SSH): [Auth and cross-account](references\u002Fauth-and-cross-account.md).\n\n## Expert heuristic: approval rule template scope\n\nApproval rule template lifecycle and the approval-rules vs branch-protection split: [Approval rules and protection](references\u002Fapproval-rules-and-protection.md).\n\n## Expert heuristic: KMS key policy cross-account grant\n\nCross-account resource policy + KMS key policy grant pair (missing either = AccessDenied): [Auth and cross-account](references\u002Fauth-and-cross-account.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| Repository name available | Must be unique within the account+region | `aws codecommit get-repository --repository-name \u003Cname>` (should fail) |\n| KMS key exists (if encryption) | Customer-managed key must exist | `aws kms describe-key --key-id \u003Ckey-id>` |\n| KMS key policy grants CodeCommit | Without it, push\u002Fpull fails silently | `aws kms get-key-policy --key-id \u003Ckey-id>` |\n| SNS topic exists (if notifications) | Notification rule target must exist | `aws sns get-topic-attributes --topic-arn \u003Carn>` |\n| SNS topic policy grants CodeStar | Without it, notifications never fire | Check topic attributes |\n| Cross-account principal identified | Resource policy + KMS key policy need it | `aws sts get-caller-identity` in cross-account |\n| Lambda function exists (if triggers) | Trigger target must exist | `aws lambda get-function --function-name \u003Cname>` |\n| IAM auth method decided | GRC vs git credentials vs SSH | Confirm auth model |\n\n## Step 1 — Repository creation and default branch\n\n```bash\nREPO_ARN=$(aws codecommit create-repository \\\n  --repository-name my-app-repo \\\n  --repository-description \"Microservice repository for my-app\" \\\n  --tags Environment=production,Team=platform \\\n  --query 'repositoryMetadata.Arn' --output text --region us-east-1)\n```\n\n**Default branch caveat:** `--default-branch main` sets the default\nbranch name in metadata, but the `main` branch does NOT exist until you\npush the first commit. The repository is empty at creation.\n\n```bash\ngit remote add origin codecommit:\u002F\u002Fus-east-1@my-app-repo\necho \"# my-app\" > README.md\ngit add . && git commit -m \"initial commit\"\ngit push -u origin main\n```\n\n**Common mistake:** configuring approval rules or branch protection on\n`main` before the first push. The protections have nothing to act on.\n\n## Step 2 — KMS encryption (customer-managed key)\n\nCodeCommit encrypts repositories at rest. By default, it uses an\nAWS-managed key. For customer-managed key encryption, the key must have\na policy granting CodeCommit.\n\nRequired KMS key policy statement:\n\n```json\n{\n  \"Sid\": \"AllowCodeCommitServiceAccess\",\n  \"Effect\": \"Allow\",\n  \"Principal\": { \"Service\": \"codecommit.amazonaws.com\" },\n  \"Action\": [\"kms:Encrypt\", \"kms:Decrypt\", \"kms:ReEncrypt*\",\n             \"kms:GenerateDataKey*\", \"kms:DescribeKey\"],\n  \"Resource\": \"*\"\n}\n```\n\n**Critical:** the KMS key policy grant to `codecommit.amazonaws.com` is\nthe most commonly forgotten configuration. Without it, the repository\ncreates successfully, but all push\u002Fpull operations fail with\nAccessDenied. Use CloudFormation\u002FTerraform for IaC to ensure the key\npolicy is correct.\n\n## Step 3 — Approval rule templates and branch protection\n\n```bash\n# Create an approval rule template\naws codecommit create-approval-rule-template \\\n  --approval-rule-template-name \"require-two-reviewers\" \\\n  --approval-rule-template-content '{\n    \"Version\": \"2018-02-08\",\n    \"Statements\": [{\n      \"Type\": \"Approvers\",\n      \"NumberOfApprovalsNeeded\": 2,\n      \"ApprovalPoolMembers\": [\n        \"arn:aws:iam::123456789012:user\u002Falice\",\n        \"arn:aws:iam::123456789012:user\u002Fbob\"\n      ]\n    }]\n  }' --region us-east-1\n\n# Associate the template with the repository (CRITICAL — template alone does nothing)\naws codecommit associate-approval-rule-template-with-repository \\\n  --approval-rule-template-name \"require-two-reviewers\" \\\n  --repository-name \"my-app-repo\" --region us-east-1\n```\n\n**Branch protection via IAM policy (deny direct push to main):**\n\n```json\n{\n  \"Sid\": \"DenyDirectPushToMain\",\n  \"Effect\": \"Deny\",\n  \"Action\": \"codecommit:GitPush\",\n  \"Resource\": \"arn:aws:codecommit:us-east-1:123456789012:my-app-repo\",\n  \"Condition\": {\n    \"StringEquals\": { \"codecommit:References\": [\"refs\u002Fheads\u002Fmain\"] }\n  }\n}\n```\n\nThis IAM policy, attached to developers, forces them to use pull\nrequests (which are then governed by the approval rule template).\n\n## Step 4 — Notification rules (SNS\u002FEventBridge)\n\nNotification rules route repository events to SNS topics. Notification\nrules use AWS CodeStar Notifications — NOT EventBridge directly.\n\n```bash\n# Create SNS topic and set policy granting CodeStar Notifications\nTOPIC_ARN=$(aws sns create-topic --name \"codecommit-notifications\" \\\n  --query 'TopicArn' --output text --region us-east-1)\n\naws sns set-topic-attributes --topic-arn \"$TOPIC_ARN\" \\\n  --attribute-name Policy \\\n  --attribute-value '{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"codestar-notifications.amazonaws.com\"},\"Action\":\"sns:Publish\",\"Resource\":\"'\"$TOPIC_ARN\"'\"}]}'\n\n# Create the notification rule\naws codestar-notifications create-notification-rule \\\n  --name \"my-app-pr-notifications\" \\\n  --resource \"arn:aws:codecommit:us-east-1:123456789012:my-app-repo\" \\\n  --event-type-ids pull-request-created pull-request-updated pull-request-merged \\\n  --targets '[{\"Id\":\"'\"$TOPIC_ARN\"'\"}]' --detail-type FULL --region us-east-1\n```\n\n**Critical:** the SNS topic policy grant to\n`codestar-notifications.amazonaws.com` is the #1 forgotten configuration\nfor notification rules. Without it, the rule creates but no\nnotifications fire.\n\n## Step 5 — Pull request templates\n\nA pull request template is a markdown file committed to the repository.\nWhen a developer creates a PR, the template pre-populates the\ndescription. Commit the file to a standard path\n(e.g., `.github\u002FPULL_REQUEST_TEMPLATE.md`). The template appears on new\nPRs after the file is committed.\n\n## Step 6 — Cross-account access via resource policy\n\nCross-account access requires the repository resource policy to grant\nthe cross-account principal CodeCommit permissions. If the repository\nis KMS-encrypted, the KMS key policy must ALSO grant the cross-account\nprincipal.\n\n```text\nRepository resource policy:\n  Principal: arn:aws:iam::999999999999:root\n  Actions: codecommit:GitPull, codecommit:GitPush, GetRepository\n\nKMS key policy (ALSO required):\n  Principal: arn:aws:iam::999999999999:root\n  Actions: kms:Decrypt, kms:Encrypt, kms:ReEncrypt*,\n           kms:GenerateDataKey*, kms:DescribeKey\n```\n\n**Critical:** BOTH the repository resource policy AND the KMS key policy\nmust grant the cross-account principal. Granting only one results in\nAccessDenied. This is the #1 cause of cross-account CodeCommit failures.\n\n## Step 7 — Repository triggers (Lambda\u002FSNS)\n\nRepository triggers are a LEGACY mechanism that invokes Lambda or SNS\ndirectly when repository events occur. Triggers are SEPARATE from\nnotification rules.\n\n```bash\naws codecommit put-repository-triggers \\\n  --repository-name \"my-app-repo\" \\\n  --trigger-name \"lambda-on-push\" \\\n  --trigger-target-arn \"arn:aws:lambda:us-east-1:123456789012:function:trigger-handler\" \\\n  --branches \"main\" \"develop\" --events \"all\" --region us-east-1\n```\n\n**The Lambda resource policy must allow CodeCommit to invoke:**\n\n```bash\naws lambda add-permission \\\n  --function-name \"trigger-handler\" \\\n  --statement-id \"AllowCodeCommitInvoke\" \\\n  --action \"lambda:InvokeFunction\" \\\n  --principal \"codecommit.amazonaws.com\" \\\n  --source-arn \"arn:aws:codecommit:us-east-1:123456789012:my-app-repo\" --region us-east-1\n```\n\n## Step 8 — Authentication: git credentials vs SSH vs GRC\n\n| Method | Best for | Credential type | Rotation |\n|---|---|---|---|\n| git-remote-codecommit (GRC) | SSO\u002Ffederated, IAM-role-based | Session token (auto) | Automatic |\n| IAM git credentials | CI\u002FCD pipelines with fixed identity | Static username + password | Manual |\n| SSH keys | Developers preferring key-based auth | Per-IAM-user SSH key | Manual |\n\nGRC and IAM git-credential setup commands: [Auth and cross-account](references\u002Fauth-and-cross-account.md).\n\n## Step 9 — Migration from external Git\n\nTo migrate from GitHub, GitLab, or Bitbucket to CodeCommit, mirror the\nrepository.\n\n```bash\n# 1. Create the target CodeCommit repository (empty)\n# 2. Clone the source repository as a mirror\ngit clone --mirror https:\u002F\u002Fgithub.com\u002Forg\u002Fsource-repo.git\ncd source-repo.git\n# 3. Push the mirror to CodeCommit (using GRC)\ngit push codecommit:\u002F\u002Fus-east-1@migrated-repo --all\ngit push codecommit:\u002F\u002Fus-east-1@migrated-repo --tags\n# 4. Verify all branches and tags are present\naws codecommit list-branches --repository-name \"migrated-repo\" --region us-east-1\n```\n\n**Migration checklist:** all branches mirrored; all tags pushed\nexplicitly (`--tags`); pull request history is NOT migrated (CodeCommit\ndoes not import PRs from external providers); webhooks\u002FCI must be\nreconfigured; developer access must be reconfigured.\n\n## Step 10 — CodeBuild\u002FCodePipeline connection\n\nThe pipeline service role needs CodeCommit permissions:\n\n```json\n{\n  \"Effect\": \"Allow\",\n  \"Action\": [\"codecommit:GetRepository\", \"codecommit:GitPull\",\n             \"codecommit:UploadArchive\", \"codecommit:GetUploadArchiveStatus\",\n             \"codecommit:CancelUploadArchive\"],\n  \"Resource\": \"arn:aws:codecommit:us-east-1:123456789012:my-app-repo\"\n}\n```\n\nPipeline source action: `SourceType: CODECOMMIT`,\n`SourceLocation: https:\u002F\u002Fcodecommit.us-east-1.amazonaws.com\u002Fv1\u002Frepos\u002Fmy-app-repo`,\n`Branch: main`. If the repository is KMS-encrypted, the pipeline service\nrole also needs `kms:Decrypt` on the key.\n\n## NEVER do these things\n\n1. **NEVER assume the default branch exists at creation.** The\n   `defaultBranchName` is metadata. The branch does NOT exist until the\n   first commit is pushed.\n\n2. **NEVER create a KMS-encrypted repository without verifying the key\n   policy grants CodeCommit.** The repository creates successfully, but\n   all push\u002Fpull operations fail with AccessDenied.\n\n3. **NEVER grant cross-account access via only the repository resource\n   policy.** If the repository is KMS-encrypted, the KMS key policy must\n   ALSO grant the cross-account principal.\n\n4. **NEVER confuse notification rules with repository triggers.**\n   Notification rules use CodeStar Notifications. Repository triggers\n   invoke Lambda\u002FSNS directly. They are separate mechanisms.\n\n5. **NEVER create a notification rule without verifying the SNS topic\n   policy.** The SNS topic policy must grant\n   `codestar-notifications.amazonaws.com` the `sns:Publish` action.\n\n6. **NEVER create a repository trigger without verifying the target\n   resource policy.** Lambda must grant `codecommit.amazonaws.com`\n   `lambda:InvokeFunction`. SNS must grant CodeCommit `sns:Publish`.\n\n7. **NEVER assume approval rule templates auto-apply to repositories.**\n   Templates must be explicitly ASSOCIATED via\n   `associate-approval-rule-template-with-repository`.\n\n8. **NEVER rely on approval rules alone for branch protection.**\n   Approval rules govern PR merges. Branch protection requires an IAM\n   policy denying `codecommit:GitPush` to specific branches.\n\n9. **NEVER use static git credentials for SSO\u002Ffederated environments.**\n   Use git-remote-codecommit (GRC) for federated\u002FIAM-role-based auth.\n\n10. **NEVER forget to migrate tags during external Git migration.**\n    `git push --mirror` does NOT always carry tags. Run `git push --tags`\n    explicitly.\n\n## Output format\n\n```text\nCODECOMMIT_REPO: \u003Crepository-name> (\u003Crepository-arn>)\nVERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING\nCHECKLIST:\n  [✓|✗] Repository name: \u003Cname> (unique in account+region)\n  [✓|✗] Default branch: \u003Cbranch> (created at first push)\n  [✓|✗] Description: \u003Cdescription>\n  [✓|✗] KMS encryption: customer-managed key \u003Ckey-id> (key policy grants CodeCommit) | AWS-managed\n  [✓|✗] KMS key policy cross-account: granted to \u003Ccross-acct> | N\u002FA\n  [✓|✗] Approval rule template: \u003Ctemplate-name> (associated, \u003CN> approvals needed)\n  [✓|✗] Branch protection: IAM policy denies direct push to \u003Cbranch> | Not configured\n  [✓|✗] Notification rule: \u003Crule-name> → SNS \u003Ctopic-arn> (topic policy grants CodeStar)\n  [✓|✗] Pull request template: \u003Cpath> (committed to repo)\n  [✓|✗] Cross-account access: resource policy grants \u003Ccross-acct-principal>\n  [✓|✗] Repository trigger: \u003Ctrigger-name> → \u003Ctarget-arn> | None\n  [✓|✗] Auth method: git-remote-codecommit (GRC) | IAM git credentials | SSH keys\n  [✓|✗] CodePipeline\u002FCodeBuild: service role has codecommit:GetRepository\n  [✓|✗] Tags: \u003Ckey=value list>\nVERIFICATION_COMMANDS:\n  aws codecommit get-repository --repository-name \u003Cname> --region \u003Cregion>\n  aws kms describe-key --key-id \u003Ckey-id> --region \u003Cregion>\n  aws codecommit list-approval-rule-templates --region \u003Cregion>\n  aws codestar-notifications list-notification-rules --region \u003Cregion>\n```\n\n### Worked example — repository with KMS encryption, approval rules, and cross-account resource policy\n\n```text\nCODECOMMIT_REPO: shared-platform-repo (arn:aws:codecommit:us-east-1:123456789012:shared-platform-repo)\nVERDICT: READY_TO_DEPLOY\nCHECKLIST:\n  [✓] Repository name: shared-platform-repo (unique in account 123456789012, us-east-1)\n  [✓] Default branch: main (created at first push)\n  [✓] Description: Cross-platform shared library repository\n  [✓] KMS encryption: customer-managed key arn:aws:kms:us-east-1:123456789012:key\u002Fa1b2c3d4-5678-90ef-1234-567890abcdef (key policy grants codecommit.amazonaws.com: kms:Encrypt, Decrypt, ReEncrypt*, GenerateDataKey*, DescribeKey)\n  [✓] KMS key policy cross-account: granted to arn:aws:iam::999999999999:root (kms:Decrypt, Encrypt, ReEncrypt*, GenerateDataKey*, DescribeKey)\n  [✓] Cross-account resource policy: grants arn:aws:iam::999999999999:root (codecommit:GitPull, GitPush, GetRepository, UploadArchive)\n  [✓] Approval rule template: require-two-reviewers (associated, 2 approvals needed, pool: arn:aws:iam::123456789012:user\u002Falice, arn:aws:iam::123456789012:user\u002Fbob)\n  [✓] Branch protection: IAM policy DenyDirectPushToMain denies codecommit:GitPush on refs\u002Fheads\u002Fmain\n  [✓] Notification rule: platform-pr-notifications → SNS arn:aws:sns:us-east-1:123456789012:codecommit-notifications (topic policy grants codestar-notifications.amazonaws.com sns:Publish)\n  [✓] Pull request template: .github\u002FPULL_REQUEST_TEMPLATE.md (committed to repo)\n  [✓] Repository trigger: lambda-on-push → arn:aws:lambda:us-east-1:123456789012:function:trigger-handler (Lambda policy grants codecommit.amazonaws.com lambda:InvokeFunction)\n  [✓] Auth method: git-remote-codecommit (GRC) — clone URL: codecommit:\u002F\u002Fus-east-1@shared-platform-repo\n  [✓] CodePipeline\u002FCodeBuild: service role has codecommit:GetRepository + GitPull on arn:aws:codecommit:us-east-1:123456789012:shared-platform-repo\n  [✓] Tags: Environment=production, Team=platform, CrossAccount=true\nVERIFICATION_COMMANDS:\n  aws codecommit get-repository --repository-name shared-platform-repo --region us-east-1\n  aws kms describe-key --key-id arn:aws:kms:us-east-1:123456789012:key\u002Fa1b2c3d4-5678-90ef-1234-567890abcdef --region us-east-1\n  aws kms get-key-policy --key-id arn:aws:kms:us-east-1:123456789012:key\u002Fa1b2c3d4-5678-90ef-1234-567890abcdef --policy-name default --region us-east-1\n  aws codecommit list-approval-rule-templates --region us-east-1\n  aws codestar-notifications list-notification-rules --region us-east-1\n  # Cross-account verification (run in account 999999999999):\n  git clone codecommit:\u002F\u002Fus-east-1@shared-platform-repo\n```\n\n### Worked example — PREREQUISITES_MISSING (KMS key policy not granted)\n\nFull checklist block: [Worked examples](references\u002Fworked-examples.md).\n\n## Error handling\n\nSymptom fixes (KMS AccessDenied, cross-account AccessDenied, silent notifications, trigger not firing, approval rule not enforced): [Error handling](references\u002Ferror-handling.md).\n\n## References (load on demand)\n\n- [Advanced patterns](references\u002Fadvanced-patterns.md) — three-misconception deep dive, configuration dependency graph\n- [Worked examples](references\u002Fworked-examples.md) — PREREQUISITES_MISSING (KMS key policy not granted) checklist\n- [Error handling](references\u002Ferror-handling.md) — provisioning failure symptom fixes\n- [Approval rules and protection](references\u002Fapproval-rules-and-protection.md) — approval rule template lifecycle and scope\n- [Auth and cross-account](references\u002Fauth-and-cross-account.md) — GRC heuristic, KMS cross-account grants, GRC\u002FSSH\u002Fcredential setup\n\n## Domain\n\nAWS CloudOps \u002F AWS CodeCommit Repository Provisioning & Developer Tools\nConfiguration.\n\n## AWS documentation\n\n- **CodeCommit User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodecommit\u002Flatest\u002Fuserguide\u002Fwelcome.html\n- **KMS encryption** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodecommit\u002Flatest\u002Fuserguide\u002Fencryption.html\n- **Approval rule templates** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodecommit\u002Flatest\u002Fuserguide\u002Fapproval-rule-templates.html\n- **Notification rules** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fdtconsole\u002Flatest\u002Fuserguide\u002Fnotifications.html\n- **Repository triggers** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodecommit\u002Flatest\u002Fuserguide\u002Fhow-to-notify.html\n- **git-remote-codecommit** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodecommit\u002Flatest\u002Fuserguide\u002Fsetting-up-git-remote-codecommit.html\n- **Cross-account access** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodecommit\u002Flatest\u002Fuserguide\u002Fcross-account.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, codecommit, git, cloudops, deploy, dev-tools, provisioning, approval-rule, branch-protection, kms, notification, cross-account, codebuild","1","Jacky Chan — AWS Community Builder","aws-cloudops","DevTools","0.1.0","aws, codecommit, repository, git, cloudops, deploy, provisioning, approval rule template, branch protection, kms encryption, notification rule, pull request template, cross-account, git-remote-codecommit, codebuild, codepipeline","deploy","high","false","capability","Invoke when the user wants to create a CodeCommit repository, configure a default branch, set up an approval rule template for branch protection, enable KMS encryption with a customer-managed key, create notification rules for repository events, add a pull request template, configure cross-account access via resource policy, set up repository triggers (Lambda\u002FSNS), migrate from an external Git provider, connect the repository to CodeBuild or CodePipeline, or choose between IAM git credentials, SSH keys, and git-remote-codecommit (GRC) for authentication. Do NOT invoke for auditing existing repositories (use codecommit-repository-auditor), GitHub repository management, or CodeBuild\u002FCodePipeline pipeline configuration itself.","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 codecommit, kms, iam, sns, and lambda access (and cross-account STS assume-role if cross-account repository access). Works with Terraform aws_codecommit_repository \u002F aws_codecommit_approval_rule_template \u002F aws_codecommit_trigger resources and CloudFormation AWS::CodeCommit::Repository templates.","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fcodecommit-repository-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 codecommit-repository-deployer",{"tool":56,"command":57},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill codecommit-repository-deployer",{"tool":59,"command":60},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill codecommit-repository-deployer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodecommit-repository-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","参考文档",6347,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodecommit-repository-deployer\u002Feval\u002Ftest-cases.yaml",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"evals\u002Fbaselines\u002Fbranch-protection-and-notification.md",741,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodecommit-repository-deployer\u002Fevals\u002Fbaselines\u002Fbranch-protection-and-notification.md",{"path":75,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":76,"sourceHtmlUrl":77},"evals\u002Fbaselines\u002Fcross-account-resource-policy.md",686,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodecommit-repository-deployer\u002Fevals\u002Fbaselines\u002Fcross-account-resource-policy.md",{"path":79,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":80,"sourceHtmlUrl":81},"evals\u002Fbaselines\u002Fgit-remote-codecommit-iam-auth.md",844,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodecommit-repository-deployer\u002Fevals\u002Fbaselines\u002Fgit-remote-codecommit-iam-auth.md",{"path":83,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":84,"sourceHtmlUrl":85},"evals\u002Fbaselines\u002Fmissing-kms-key-policy-cross-account.md",719,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodecommit-repository-deployer\u002Fevals\u002Fbaselines\u002Fmissing-kms-key-policy-cross-account.md",{"path":87,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":88,"sourceHtmlUrl":89},"evals\u002Fbaselines\u002Fstandard-repo-with-kms.md",710,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodecommit-repository-deployer\u002Fevals\u002Fbaselines\u002Fstandard-repo-with-kms.md",{"path":91,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":92,"sourceHtmlUrl":93},"evals\u002Feval_config.yaml",1886,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodecommit-repository-deployer\u002Fevals\u002Feval_config.yaml",{"path":95,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":96,"sourceHtmlUrl":97},"evals\u002Fevals.json",9710,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodecommit-repository-deployer\u002Fevals\u002Fevals.json",{"path":99,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":100,"sourceHtmlUrl":101},"evals\u002Fprompts\u002Fbranch-protection-and-notification.md",739,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodecommit-repository-deployer\u002Fevals\u002Fprompts\u002Fbranch-protection-and-notification.md",{"path":103,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":104,"sourceHtmlUrl":105},"evals\u002Fprompts\u002Fcross-account-resource-policy.md",578,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodecommit-repository-deployer\u002Fevals\u002Fprompts\u002Fcross-account-resource-policy.md",{"path":107,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":108,"sourceHtmlUrl":109},"evals\u002Fprompts\u002Fgit-remote-codecommit-iam-auth.md",524,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodecommit-repository-deployer\u002Fevals\u002Fprompts\u002Fgit-remote-codecommit-iam-auth.md",{"path":111,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":112,"sourceHtmlUrl":113},"evals\u002Fprompts\u002Fmissing-kms-key-policy-cross-account.md",579,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodecommit-repository-deployer\u002Fevals\u002Fprompts\u002Fmissing-kms-key-policy-cross-account.md",{"path":115,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":116,"sourceHtmlUrl":117},"evals\u002Fprompts\u002Fstandard-repo-with-kms.md",663,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodecommit-repository-deployer\u002Fevals\u002Fprompts\u002Fstandard-repo-with-kms.md",{"path":119,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":120,"sourceHtmlUrl":121},"examples\u002FREADME.md",7107,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodecommit-repository-deployer\u002Fexamples\u002FREADME.md",{"path":123,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":124,"sourceHtmlUrl":125},"references\u002Fadvanced-patterns.md",3091,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodecommit-repository-deployer\u002Freferences\u002Fadvanced-patterns.md",{"path":127,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":128,"sourceHtmlUrl":129},"references\u002Fapproval-rules-and-protection.md",6697,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodecommit-repository-deployer\u002Freferences\u002Fapproval-rules-and-protection.md",{"path":131,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":132,"sourceHtmlUrl":133},"references\u002Fauth-and-cross-account.md",9193,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodecommit-repository-deployer\u002Freferences\u002Fauth-and-cross-account.md",{"path":135,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":136,"sourceHtmlUrl":137},"references\u002Ferror-handling.md",1085,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodecommit-repository-deployer\u002Freferences\u002Ferror-handling.md",{"path":139,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":140,"sourceHtmlUrl":141},"references\u002Fworked-examples.md",1401,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodecommit-repository-deployer\u002Freferences\u002Fworked-examples.md",{"path":143,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":144,"sourceHtmlUrl":145},"skill.usf.yaml",4380,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcodecommit-repository-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",[],[]]