[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A4CZRVT0K4A8MN5VF0FPD2":3,"skill-same:01M7A4CZRVT0K4A8MN5VF0FPD2":147},{"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":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M7A4CZRVT0K4A8MN5VF0FPD2","cicd-pipeline-automator",null,"Designs and implements AWS-native CI\u002FCD pipelines end-to-end using CodePipeline, CodeBuild, CodeDeploy, CloudFormation, CDK, and Terraform. Generates working pipeline-as-code templates (CloudFormation AWS::CodePipeline::Pipeline, CDK Pipeline module, Terraform aws_codepipeline) wired with source (CodeCommit \u002F GitHub \u002F CodeStar Connection), build (buildspec.yml, VPC-aware CodeBuild), test (unit, integration, CodeGuru Reviewer security scans), and deploy (CloudFormation change-set, CodeDeploy in-place \u002F blue-green, ECS rolling, S3, Service Catalog) stages. Handles cross-account deployment (IAM roles, KMS artifact key, resource-based policy), blue\u002Fgreen (Lambda traffic shifting 10\u002F90, ECS circuit breaker, Route53 weighted), pipeline monitoring (CloudWatch Events on state changes, SNS failure notifications, manual approval), and CodePipeline V2 event-driven triggers. Emits a verdict (AUTOMATED with pipeline template | MANUAL_STEP_REQUIRED with specific gap). Use when building a CI\u002FCD pipeline, designing.","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\u002Fcicd-pipeline-automator\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: cicd-pipeline-automator\ndescription: Designs and implements AWS-native CI\u002FCD pipelines end-to-end using CodePipeline, CodeBuild, CodeDeploy, CloudFormation, CDK, and Terraform. Generates working pipeline-as-code templates (CloudFormation AWS::CodePipeline::Pipeline, CDK Pipeline module, Terraform aws_codepipeline) wired with source (CodeCommit \u002F GitHub \u002F CodeStar Connection), build (buildspec.yml, VPC-aware CodeBuild), test (unit, integration, CodeGuru Reviewer security scans), and deploy (CloudFormation change-set, CodeDeploy in-place \u002F blue-green, ECS rolling, S3, Service Catalog) stages. Handles cross-account deployment (IAM roles, KMS artifact key, resource-based policy), blue\u002Fgreen (Lambda traffic shifting 10\u002F90, ECS circuit breaker, Route53 weighted), pipeline monitoring (CloudWatch Events on state changes, SNS failure notifications, manual approval), and CodePipeline V2 event-driven triggers. Emits a verdict (AUTOMATED with pipeline template | MANUAL_STEP_REQUIRED with specific gap). Use when building a CI\u002FCD pipeline, designing.\nlicense: Apache-2.0\ncompatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline plan classification. Live-account operations use aws codepipeline create-pipeline, update-pipeline, get-pipeline, get-pipeline-state, start-pipeline- execution, list-pipelines, aws codebuild create-project, batch-get- projects, aws codedeploy create-application, aws cloudformation create-change-set, execute-change-set, aws codestar-connections create-connection (AWS CLI v2, SSO...\nmetadata:\n  domain: aws-cloudops\n  complexity: high\n  requires_llm: 'true'\n  phase: '4'\n  supports_pipeline: 'true'\n  entry_point: 'false'\n  family: DevTools\n  task_type: automate\n  skill_class: capability\n  lifecycle_status: active\n  verdict_shape: AUTOMATED | MANUAL_STEP_REQUIRED\n  when_to_use: Designing or implementing a CI\u002FCD pipeline using CodePipeline, CodeBuild, CodeDeploy, CloudFormation, CDK, or Terraform. Setting up source (CodeCommit, GitHub, CodeStar Connection), build (buildspec.yml, VPC-aware CodeBuild), test (unit, integration, CodeGuru), or deploy (CloudFormation change-set, CodeDeploy in-place or blue\u002Fgreen, ECS rolling, S3, Service Catalog) stages. Wiring cross-account deployment (IAM roles, KMS key, bucket policy). Implementing blue\u002Fgreen (Lambda traffic shifting, ECS circuit breaker, Route53 weighted). Adding pipeline monitoring (CloudWatch Events, SNS, manual approval). Migrating to CodePipeline V2 or troubleshooting pipeline failures.\n  activation_triggers: build CI\u002FCD pipeline, create CodePipeline, design deployment pipeline, blue\u002Fgreen deployment, Lambda canary deploy, ECS rolling deploy, cross-account deployment, CodeStar Connection, buildspec.yml, pipeline as code, CloudFormation deploy pipeline, CDK pipelines, Terraform aws_codepipeline, CodePipeline V2 migration, pipeline not triggering, CodeBuild timeout, manual approval gate, SNS pipeline failure notification\n  invocation_schema: 'Input: either (a) a deployment scenario describing app, source, build, test, deploy targets, and constraints (language, environment, cross-account, blue\u002Fgreen), OR (b) an existing pipeline definition + the operation (create, update, troubleshoot, migrate V2). Output: deterministic OPERATION\u002FVERDICT\u002FREQUIREMENTS\u002FPIPELINE_TEMPLATE\u002F MANUAL_GAPS block per operation, where VERDICT is AUTOMATED (full template generated) or MANUAL_STEP_REQUIRED (specific gap blocks automation).'\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  keywords: CodePipeline, CodeBuild, CodeDeploy, CI\u002FCD, pipeline as code, CloudFormation, CDK, Terraform, blue\u002Fgreen, canary, cross-account deployment, CodeStar Connection, CodeCommit, GitHub, buildspec, change-set, manual approval, pipeline monitoring, CodePipeline V2, CodeCatalyst\n  tags: codepipeline, codebuild, codedeploy, ci-cd, devtools, automate, cloudformation, cdk, terraform\n---\n\n# CI\u002FCD Pipeline Automator\n\n## What this skill does\n\nCapability overview moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand for the full capability summary (the Quick navigation table covers the essentials).\n\n## Quick navigation\n\n| Section | What it covers | When to read it |\n|---|---|---|\n| **§ Quick reference** | Verdict thresholds + requirement checklist + stage matrix | Before any build |\n| **§ Mindset** | Why pipeline-as-code, the source-credential trap, cross-account KMS | Understanding the design model |\n| **§ Pre-flight** | Requirement gate — source, build env, deploy target, IAM, KMS | Before emitting any template |\n| **§ Process** | Per-stage design: source, build, test, deploy, monitoring | When designing each stage |\n| **§ Patterns** | Pipeline templates: CloudFormation, CDK, Terraform | Boilerplate lookup |\n| **§ Output format** | Structured output template with VERDICT, PIPELINE_TEMPLATE, MANUAL_GAPS | Formatting the response |\n| **§ Anti-Patterns** | NEVER list — common mistakes that break pipelines silently | Review before emitting |\n| **§ Pre-flight safety** | Additional checks before any create\u002Fupdate CLI | Defense-in-depth |\n\n## Quick reference — verdict thresholds\n\n| Verdict | Trigger condition | Action |\n|---|---|---|\n| `AUTOMATED` | All requirements satisfied (source cred, build env, deploy role, KMS key, artifact bucket, action IAM policies). Template generated. | Emit complete pipeline-as-code template, ready to apply |\n| `MANUAL_STEP_REQUIRED` | One or more requirements missing (no CodeStar Connection, no cross-account role, no KMS key, environment mismatch). | Emit the specific gap and the exact CLI \u002F IaC snippet to close it. Hold the partial template as a draft. |\n\n**Requirement checklist (all must be satisfied for AUTOMATED):**\n\n1. **Source provider credential** — CodeCommit (no extra cred), GitHub\n   via CodeStar Connection (connection ARN in `Pending` or `Available`\n   state), S3 (bucket exists with versioning).\n2. **Build environment** — CodeBuild image supports the language\n   runtime (check `aws codebuild list-curated-environment-images`).\n3. **Build VPC (if private resources)** — VPC config with private\n   subnets + security groups for CodeBuild if it needs to reach\n   private VPC resources (RDS, internal ALB).\n4. **Deploy role(s)** — IAM role with trust policy for the deploy\n   provider (`cloudformation.amazonaws.com`, `codedeploy.amazonaws.com`,\n   `ecs-tasks.amazonaws.com`) and the deploy-action permissions.\n5. **KMS key** — customer-managed CMK for artifact encryption, with\n   key policy granting the pipeline role + cross-account deploy roles\n   `kms:Encrypt\u002FDecrypt\u002FGenerateDataKey`.\n6. **Artifact bucket** — S3 bucket with versioning, bucket policy\n   granting the pipeline role, KMS-compatible SSE config.\n7. **Cross-account (if applicable)** — deploy role in target account\n   with `Principal: codepipeline.amazonaws.com` + source-account\n   condition; artifact bucket policy grants target account.\n8. **Manual approval (if requested)** — SNS topic for approval\n   notifications + NotificationArn in the approval action config.\n9. **Monitoring** — EventBridge rule on `codepipeline` source\n   matching `codepipeline-pipeline-pipeline-execution-failed`, target\n   SNS topic for failure pages.\n\n**Stage matrix** moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when choosing providers per stage (source\u002Fbuild\u002Ftest\u002Fdeploy\u002Fapproval\u002Finvoke + pitfalls).\n\n## Mindset\n\n**One-line takeaway:** pipeline-as-code is the only sustainable way\nto manage CI\u002FCD at scale. Hand-built pipelines in the console have no\nreview trail, no rollback, no diff. Driven by three CodePipeline\nrealities:\n\nThe three CodePipeline realities moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand for design rationale (source-credential trap, cross-account KMS, V2 triggers vs V1 polling).\n\n## Pre-flight: requirement gate\n\nRun before emitting any template. Missing requirements produce\nMANUAL_STEP_REQUIRED with the exact gap.\n\n**Live-account pre-flight (skip if offline plan audit):**\nFull command list moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad on demand for live pre-flight (pipelines, connections, build images, deploy roles, KMS key, artifact bucket, STS).\n\n**Malformed input:** rule moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nIf the scenario is missing required fields, emit `VERDICT: MANUAL_STEP_REQUIRED` with `GAP: Scenario missing required field \u003Cfield>. Provide \u003Cfield> to proceed.`\n\n| Requirement | Effect on automation |\n|---|---|\n| CodeStar Connection in `Pending` state | MANUAL_STEP_REQUIRED — operator must complete OAuth handshake (cannot be automated); template emitted in draft with connection ARN placeholder. |\n| No CodeStar Connection at all | MANUAL_STEP_REQUIRED — emit `aws codestar-connections create-connection` snippet, then complete the handshake. |\n| Build image does not support runtime | MANUAL_STEP_REQUIRED — emit alternative image or custom-image buildspec. |\n| Deploy role missing | MANUAL_STEP_REQUIRED — emit the IAM role CloudFormation snippet (trust + policy). |\n| KMS key missing or no cross-account grant | MANUAL_STEP_REQUIRED — emit `aws kms create-key` + key policy grant snippet. |\n| Artifact bucket missing | MANUAL_STEP_REQUIRED — emit S3 bucket CloudFormation snippet with versioning + KMS SSE. |\n| Manual approval requested without SNS topic | MANUAL_STEP_REQUIRED — emit `aws sns create-topic` snippet. |\n| EventBridge rule missing for failure notifications | AUTOMATED (the rule is part of the emitted template). |\n\n## Process — pipeline design (apply in order)\n\n### Step 0: Expert knowledge — non-obvious CodePipeline behaviors\n\nAll Step 0 behaviors moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when a design depends on a non-obvious CodePipeline behavior (pipeline vs action roles, encryptionKey, triggers, cross-account, execution modes).\n\n### Step 1: Source stage design\n\n| Source | Provider | Credential | Trigger |\n|---|---|---|---|\n| CodeCommit | `CodeCommit` (AWS) | None (IAM-native) | EventBridge on `referenceUpdated` |\n| GitHub | `CodeStarConnection` (AWS) | CodeStar Connection ARN | V2 trigger OR EventBridge rule |\n| GitHub (legacy) | `GitHub` (ThirdParty) | OAuth token (DEPRECATED) | Polling or webhook (deprecated) |\n| S3 | `S3` (AWS) | Pipeline role on bucket | EventBridge on `ObjectCreated` |\n| ECR | `ECR` (AWS) | Pipeline role on ECR | EventBridge on `ImagePushed` |\n\n**V2 trigger example** moved verbatim to [references\u002Fpipeline-templates-and-deployment-strategies.md](references\u002Fpipeline-templates-and-deployment-strategies.md).\nLoad on demand when wiring V2 Git triggers (Triggers → GitConfiguration → Push → Branches \u002F FilePathIncludes).\n\n### Step 2: Build stage design (CodeBuild)\n\n**Key decisions:**\n- **Managed image vs custom image.** Managed images\n  (`aws\u002Fcodebuild\u002Fstandard:7.0`) cover common runtimes. Custom images\n  (ECR-hosted) for proprietary runtimes or pre-installed dependencies.\n- **VPC config.** If the build needs to reach private VPC resources\n  (RDS, internal ALB, private ECR), set `VpcConfig` with private\n  subnets + security groups. Add VPC endpoints or NAT for internet\n  access.\n- **Cache.** `LOCAL` cache (source, layers, custom) or `S3` cache.\n  S3 cache is shared across build hosts and is faster for large\n  dependency trees.\n- **Artifacts.** `Type: CODEPIPELINE` for pipeline-managed artifacts.\n  Secondary artifacts for separate build outputs.\n- **Environment variables.** Plain text or Secrets Manager \u002F Parameter\n  Store references. Never hardcode secrets in buildspec.\n\n**buildspec.yml minimum** moved verbatim to [references\u002Fpipeline-templates-and-deployment-strategies.md](references\u002Fpipeline-templates-and-deployment-strategies.md).\nLoad on demand when emitting the build stage.\n\n### Step 3: Test stage design\n\n| Test type | Implementation | Quality gate |\n|---|---|---|\n| Unit tests | CodeBuild `build` phase | Non-zero exit code fails the build |\n| Integration tests | CodeBuild `post_build` phase | Non-zero exit code fails the build |\n| Code coverage | CodeBuild + CodeGuru Profiler | Threshold gate in buildspec |\n| CodeGuru Reviewer | CodePipeline action (separate stage) | Findings published to the PR; fail on critical |\n| Security scans | Third-party action (Snyk, Checkov, Trivy) | Buildspec exit code on critical findings |\n| Load tests | CodeBuild + Locust \u002F k6 | Threshold gate on p99 latency |\n\n### Step 4: Deploy stage design\n\nAll deploy-strategy blocks (CloudFormation change-set, CodeDeploy in-place and blue\u002Fgreen, ECS circuit breaker, Route 53 weighted) moved verbatim to [references\u002Fpipeline-templates-and-deployment-strategies.md](references\u002Fpipeline-templates-and-deployment-strategies.md).\nLoad on demand when designing the Deploy stage.\n\n### Step 5: Cross-account deployment design\n\nThe three IAM pieces + trust-policy JSON + KMS\u002Fbucket policy grants moved verbatim to [references\u002Fpipeline-templates-and-deployment-strategies.md](references\u002Fpipeline-templates-and-deployment-strategies.md).\nLoad on demand for cross-account wiring (source-account role, target trust with aws:SourceAccount, artifact KMS decrypt).\n\n### Step 6: Pipeline monitoring design\n\nEventBridge failure-rule and manual-approval blocks moved verbatim to [references\u002Fpipeline-templates-and-deployment-strategies.md](references\u002Fpipeline-templates-and-deployment-strategies.md).\nLoad on demand for monitoring\u002Fapproval wiring (missing NotificationArn = silent gate).\n\n### Step 7: Emit template (AUTOMATED) or gap (MANUAL_STEP_REQUIRED)\n\nIf all pre-flight requirements pass, emit the complete pipeline-as-code\ntemplate (CloudFormation \u002F CDK \u002F Terraform, per the operator's\npreference). The template includes:\nThe includes list (CodePipeline \u002F CodeBuild \u002F IAM \u002F KMS \u002F S3 \u002F Events \u002F SNS resources) moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nLoad on demand when emitting the AUTOMATED template.\n\nIf any requirement is missing, emit `MANUAL_STEP_REQUIRED` with the\nspecific gap and the exact CLI \u002F IaC snippet to close it.\n\n## Patterns — pipeline-as-code templates\n\nAll three full templates (CloudFormation, CDK, Terraform) moved verbatim to [references\u002Fpipeline-templates-and-deployment-strategies.md](references\u002Fpipeline-templates-and-deployment-strategies.md).\nLoad on demand for boilerplate lookup.\n\n## Diagnostic flows\n\nAll five flows (pipeline not triggering, CodeBuild timeout, empty change-set, IAM AccessDenied, KMS cross-account) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad on demand when troubleshooting a running pipeline.\n\n## Output format (per operation)\n\nTemplate block moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nThe same literal labels are enforced below under \"STRICT output contract\"; the primary worked example follows below.\n\n### Worked example — AUTOMATED (greenfield pipeline)\n\n```text\nOPERATION: create\nVERDICT: AUTOMATED\nTARGET: prod-checkout-pipeline\nREQUIREMENTS:\n  - [PASS] CodeStar Connection arn:aws:codestar-connections:us-east-1:111111111111:connection\u002Fabc-123\n    in Available state\n  - [PASS] Build image aws\u002Fcodebuild\u002Fstandard:7.0 supports Node 18\n  - [PASS] Deploy role arn:aws:iam::111111111111:role\u002Fprod-deploy exists\n    with trust policy for cloudformation.amazonaws.com\n  - [PASS] Artifact KMS key arn:aws:kms:us-east-1:111111111111:key\u002Fabc exists\n    with policy granting the pipeline role\n  - [PASS] Artifact bucket prod-checkout-artifacts exists with versioning\n    and KMS SSE\n  - [PASS] Approval SNS topic arn:aws:sns:us-east-1:111111111111:pipeline-approval\n    exists with 2 subscriptions\nPIPELINE_TEMPLATE:\n  # CloudFormation AWS::CodePipeline::Pipeline (V2) — see inline template below\n  Resources:\n    Pipeline:\n      Type: AWS::CodePipeline::Pipeline\n      Properties:\n        PipelineType: V2\n        # ... full template populated with Source (CodeStar Connection),\n        # Build (CodeBuild), Approval, Deploy (CloudFormation change-set)\n        # stages wired with the verified IAM roles, KMS key, S3 bucket.\nMANUAL_GAPS: (none)\nNOTES:\n  - Pipeline is V2 (event-driven). No PollForSourceChanges needed.\n  - Trigger: Git push to main branch via CodeStar Connection.\n  - Detection lag: ~30-60s from push to Source action firing.\n  - Manual approval gate before Deploy stage; approvers notified via SNS.\n  - Deploy uses CHANGE_SET_REPLACE + CHANGE_SET_EXECUTE (safe; change-set\n    can be inspected before execution).\n  - EventBridge rule emits SNS on FAILED\u002FCANCELED state for on-call alerting.\n```\n\n### Worked example — MANUAL_STEP_REQUIRED (cross-account KMS gap)\nFull block moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nLoad on demand when a requirement is [FAIL] (cross-account KMS gap).\n\n## STRICT output contract\n\nThe rules below are hard constraints. Violating any one produces a\npipeline template that fails silently on first run or a gap report\nthat leaves the operator stuck. Self-check EVERY emitted block against\nthese rules before returning.\n\n### Required output structure\n\nEvery response MUST be a single block using these literal labels, in\nthis order. Do NOT substitute markdown headings or camelCase variants.\n\n```text\nOPERATION: \u003Ccreate | update | troubleshoot | migrate-v2>\nVERDICT: AUTOMATED | MANUAL_STEP_REQUIRED\nTARGET: \u003Cpipeline-name>\nREQUIREMENTS:\n  - [PASS] \u003Crequirement description>\n  - [FAIL] \u003Crequirement description> — \u003Cgap>\nPIPELINE_TEMPLATE: \u003Cinline CloudFormation \u002F CDK \u002F Terraform, or \"(held in draft)\">\nMANUAL_GAPS:\n  - GAP: \u003Cgap description>\n    REMEDIATION: \u003Cexact CLI or IaC snippet to close the gap>\n    REASON: \u003Cwhy this cannot be automated>\nNOTES: \u003Ctrigger model, detection lag, cross-account caveats>\n```\n\n### FORBIDDEN output patterns\n\n1. **NEVER emit `VERDICT: AUTOMATED` when any requirement is `[FAIL]`.**\n   A single `[FAIL]` MUST produce `VERDICT: MANUAL_STEP_REQUIRED`. The\n   AUTOMATED verdict certifies that the template is apply-ready — any\n   unresolved gap invalidates that certification.\n\n2. **NEVER emit a `[FAIL]` requirement without a corresponding\n   `MANUAL_GAPS` entry.** Every `[FAIL]` line in REQUIREMENTS MUST have\n   a matching GAP\u002FREMEDIATION\u002FREASON block in MANUAL_GAPS with the\n   exact CLI or IaC snippet that closes the gap. A `[FAIL]` with no\n   remediation leaves the operator stuck.\n\n3. **NEVER emit a pipeline using GitHub v1 (`ThirdParty\u002FGitHub`).** The\n   v1 OAuth integration is DEPRECATED and uses a persistent token. All\n   GitHub\u002FGitLab\u002FBitbucket sources MUST use CodeStar Connection\n   (`AWS\u002FCodeStarConnection`). If the operator provides a v1 source,\n   emit `MANUAL_STEP_REQUIRED` with the CodeStar Connection migration.\n\n4. **NEVER emit a cross-account deploy role without the\n   `aws:SourceAccount` condition on the trust policy.** A\n   `Principal: {\"Service\": \"codepipeline.amazonaws.com\"}` without a\n   source-account condition allows ANY pipeline in ANY account to\n   assume the role. The REMEDIATION snippet MUST include the condition.\n\n5. **NEVER emit a manual approval gate without `NotificationArn`.** An\n   approval action without NotificationArn is a silent gate — approvers\n   are never alerted and the pipeline sits in `InProgress` indefinitely.\n   If no SNS topic exists, emit `MANUAL_STEP_REQUIRED` with the\n   `aws sns create-topic` snippet.\n\n6. **NEVER emit `VERDICT: AUTOMATED` without an EventBridge\n   failure-notification rule in the PIPELINE_TEMPLATE.** A pipeline\n   that fails silently leaves stale code in production. The template\n   MUST include the `AWS::Events::Rule` matching `FAILED` and\n   `CANCELED` states targeting an SNS topic.\n\n7. **NEVER emit a V1 pipeline with `PollForSourceChanges: false`\n   without the corresponding EventBridge trigger rule in the template.**\n   Setting false without the rule means the pipeline never auto-triggers.\n   Either set `PollForSourceChanges: true` (with a warning about polling\n   cost) or emit V2 with triggers.\n\n8. **NEVER emit `PIPELINE_TEMPLATE: (held in draft)` without listing\n   which specific `[FAIL]` items blocked it.** The MANUAL_GAPS block\n   MUST enumerate every gap. A draft hold with no gap list forces the\n   operator to diff the requirements manually.\n\n### Perfect example output — AUTOMATED\n\nEvery requirement is [PASS]. The template is complete. Copy this shape.\nFull example moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nThe primary worked example above — \"Worked example — AUTOMATED (greenfield pipeline)\" — stays in this file.\n\n### Perfect example output — MANUAL_STEP_REQUIRED\nFull example moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nLoad on demand for the MANUAL_STEP_REQUIRED exemplar.\n\n**Self-check before emit:**\n- [ ] Any `[FAIL]` in REQUIREMENTS → VERDICT is MANUAL_STEP_REQUIRED?\n- [ ] Every `[FAIL]` has a matching GAP\u002FREMEDIATION\u002FREASON block?\n- [ ] No GitHub v1 (`ThirdParty\u002FGitHub`) in the template?\n- [ ] Cross-account role has `aws:SourceAccount` condition?\n- [ ] Approval gate has `NotificationArn`?\n- [ ] AUTOMATED template includes EventBridge failure rule?\n- [ ] No `PollForSourceChanges: false` without EventBridge rule (V1)?\n\n## Anti-Patterns — NEVER do these things\n\n- NEVER emit a pipeline using GitHub v1 (`ThirdParty\u002FGitHub`). The v1\n  integration uses a persistent OAuth token granting access to every\n  repo under the authorizing user. It is DEPRECATED. Always use\n  CodeStar Connection (`AWS\u002FCodeStarConnection`).\n\n- NEVER emit a pipeline without a customer-managed KMS key on the\n  artifact store. The default (no `encryptionKey`) writes artifacts\n  to S3 without KMS-managed access control — anyone with `s3:GetObject`\n  can read every artifact (source archives, build outputs, templates).\n\n- NEVER emit a pipeline role (`pipeline.roleArn`) with\n  `AdministratorAccess`. The pipeline role orchestrates stages; it\n  does not need broad service permissions. Grant least-privilege:\n  `codepipeline:StartPipelineExecution`, `s3:GetObject` on artifact\n  bucket, `codebuild:StartBuild`, etc.\n\n- NEVER emit the same IAM role for the pipeline service principal and\n  the action deploy principal. The pipeline role is assumed by\n  `codepipeline.amazonaws.com`; the deploy role by\n  `cloudformation.amazonaws.com` \u002F `codedeploy.amazonaws.com` \u002F\n  `ecs-tasks.amazonaws.com`. Combining them widens the blast radius\n  and creates a trust-policy conflict.\n\n- NEVER emit a cross-account deploy role with\n  `Principal: {\"Service\": \"codepipeline.amazonaws.com\"}` without a\n  source-account `Condition`. Without the condition, ANY pipeline in\n  ANY account can assume the role.\n\n- NEVER emit a manual approval gate without `NotificationArn`. The\n  gate exists on paper but approvers are never alerted — the pipeline\n  sits in `InProgress` indefinitely until someone manually checks the\n  console.\n\n- NEVER emit a V1 pipeline with `PollForSourceChanges: false` without\n  also emitting the EventBridge rule for source change detection. V1\n  pipelines need EITHER polling OR an event rule — setting false\n  without the rule means the pipeline never auto-triggers.\n\n- NEVER emit a CodeBuild project in a public subnet when it needs to\n  reach private VPC resources. CodeBuild in a public subnet cannot\n  reach private subnets without VPC peering. Use private subnets +\n  NAT or VPC endpoints.\n\n- NEVER emit a deploy stage without a quality gate. A pipeline that\n  deploys on every commit without tests is a continuous-deployment\n  footgun — a faulty commit causes an outage. Add unit, integration,\n  and (optionally) security scan stages before Deploy.\n\n- NEVER emit `ActionMode: CREATE_UPDATE` for CloudFormation in a\n  production pipeline. Use `CHANGE_SET_REPLACE` + `CHANGE_SET_EXECUTE`\n  — the change-set can be inspected before execution, and an empty\n  change-set can be handled gracefully.\n\n- NEVER emit a CodeDeploy blue\u002Fgreen for Lambda without\n  PreTrafficHook \u002F PostTrafficHook. The hooks are the only programmatic\n  way to fail the deployment if smoke tests fail during the canary\n  window. Without hooks, a broken version ships to 100% after the\n  canary interval elapses.\n\n- NEVER emit a V1 pipeline when V2 is available. V2 pipelines use\n  triggers (event-driven), support pipeline-level variables, and have\n  stage-level execution modes (QUEUED, SUPERSEDED). V1 defaults to\n  polling.\n\n- NEVER auto-execute `create-pipeline` or `update-pipeline` without\n  the CONFIRM gate. `UpdatePipeline` replaces the entire definition\n  atomically with no diff and no rollback — always snapshot via\n  `get-pipeline --output json` first.\n\n- NEVER emit a pipeline without an EventBridge rule for failure\n  notifications. A pipeline that fails silently leaves stale code in\n  production. Add a rule matching `FAILED` and `CANCELED` states\n  targeting an SNS topic.\n\n- NEVER emit a cross-account pipeline without verifying the artifact\n  bucket policy grants the target account `s3:GetObject`. The deploy\n  role assumes the target role, which needs to read the artifact —\n  without the bucket policy grant, the deploy fails with\n  `AccessDenied` on the S3 GetObject call.\n\n- NEVER emit a V2 pipeline trigger with a wildcard branch filter\n  (`*`). This triggers on every branch push, including feature\n  branches. Scope triggers to `main`, `release\u002F*`, or specific\n  branch patterns.\n\n- NEVER recommend deleting a pipeline as remediation without verifying\n  no workloads depend on it. `DeletePipeline` is irreversible.\n\n## Pre-flight safety checks (run before any remediation CLI)\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing operation\n  (`create-pipeline`, `update-pipeline`, `delete-pipeline`,\n  `start-pipeline-execution`, `disable-stage-transition`,\n  `enable-stage-transition`), emit: `CONFIRM: About to \u003Coperation> on\n  pipeline \u003Cname> in account \u003Caccount> region \u003Cregion>. This affects\n  \u003Cconsequence>. Proceed? (yes\u002Fno)`. Do NOT execute until the operator\n  confirms.\n\n- **Snapshot the pipeline before update.**\n  `aws codepipeline get-pipeline --name \u003Cname> --output json >\n  \u002Ftmp\u002F\u003Cname>-backup-$(date +%s).json`. `UpdatePipeline` replaces the\n  entire definition atomically with no diff and no rollback.\n\n- **Verify the pipeline exists before update.**\n  `aws codepipeline get-pipeline --name \u003Cname>` — fail closed if it\n  returns an error.\n\n- **Before emitting a cross-account deploy role**, verify the target\n  account ID and the trust policy condition. A misconfigured condition\n  can allow any account to assume the role.\n\n- **Before emitting a CodeStar Connection**, verify the connection\n  state. A `Pending` connection requires the operator to complete the\n  OAuth handshake in the console — this cannot be automated. Emit the\n  connection ARN as a placeholder.\n\n- **Before emitting a V2 migration**, verify the pipeline is eligible.\n  V1 pipelines using deprecated features (e.g., GitHub v1 OAuth) must\n  migrate the source first, then upgrade to V2.\n\n- Prefer additive changes (add a stage, add an approval gate) over\n  destructive changes (remove a stage, delete a pipeline) — additive\n  changes are reversible and do not risk breaking existing deployment\n  workflows.\n\n## Recent AWS features (2024-2026)\n\nMoved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand for 2024-2026 CodePipeline \u002F CodeBuild \u002F CodeDeploy \u002F CodeCatalyst feature coverage.\n\n## Error handling — procedure-level pipeline failures\n\nAll five failure branches (CodeBuild VPC errors, empty change-set, cross-account AssumeRole, CodeConnections revision, approval timeout) moved verbatim to [references\u002Ferror-handling.md](references\u002Ferror-handling.md).\nLoad on demand when a pipeline-build or deploy step fails.\n\n## Edge cases\n\nAll three edge cases (approval auto-reject timeout, cross-partition source, DeletionPolicy: Retain) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand for these rare cases.\n\n## References (load on demand)\n\n- [references\u002Fpipeline-templates-and-deployment-strategies.md](references\u002Fpipeline-templates-and-deployment-strategies.md) — full CloudFormation\u002FCDK\u002FTerraform templates; deploy strategies (Step 4); cross-account IAM (Step 5); monitoring\u002Fapproval wiring (Step 6); buildspec and V2 triggers.\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — output-format template, MANUAL_STEP_REQUIRED example, perfect AUTOMATED\u002FMANUAL exemplars, template includes list.\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — live pre-flight commands, malformed-input rule, troubleshooting flows.\n- [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — procedure-level pipeline failure branches.\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — capability overview, stage matrix, design rationale, Step 0 expert knowledge, edge cases, 2024-2026 features.\n\n## Domain\n\nAWS CloudOps \u002F CodePipeline CI\u002FCD Automation & Pipeline Engineering.\n\n## AWS documentation\n\n- **AWS CodePipeline User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodepipeline\u002Flatest\u002Fuserguide\u002Fwelcome.html\n- **CodePipeline V2 type** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodepipeline\u002Flatest\u002Fuserguide\u002Fpipeline-types.html\n- **CodePipeline API Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodepipeline\u002Flatest\u002FAPIReference\u002F\n- **AWS CodeBuild User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodebuild\u002Flatest\u002Fuserguide\u002Fwelcome.html\n- **CodeBuild buildspec reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodebuild\u002Flatest\u002Fuserguide\u002Fbuild-spec-ref.html\n- **AWS CodeDeploy User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodedeploy\u002Flatest\u002Fuserguide\u002Fwelcome.html\n- **CodeDeploy blue\u002Fgreen for Lambda** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodedeploy\u002Flatest\u002Fuserguide\u002Fdeployment-steps.html\n- **CDK Pipelines module** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcdk\u002Fapi\u002Fv2\u002Fdocs\u002Faws-cdk-lib.pipelines-readme.html\n- **CodeStar Connections** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fdtconsole\u002Flatest\u002Fuserguide\u002Fwelcome.html\n- **CodeCatalyst** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodecatalyst\u002Flatest\u002Fuserguide\u002Fwelcome.html\n- **AWS CLI CodePipeline reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fcodepipeline\u002F\n","# CI\u002FCD Pipeline Automator\n\n## What this skill does\n\nCapability overview moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand for the full capability summary (the Quick navigation table covers the essentials).\n\n## Quick navigation\n\n| Section | What it covers | When to read it |\n|---|---|---|\n| **§ Quick reference** | Verdict thresholds + requirement checklist + stage matrix | Before any build |\n| **§ Mindset** | Why pipeline-as-code, the source-credential trap, cross-account KMS | Understanding the design model |\n| **§ Pre-flight** | Requirement gate — source, build env, deploy target, IAM, KMS | Before emitting any template |\n| **§ Process** | Per-stage design: source, build, test, deploy, monitoring | When designing each stage |\n| **§ Patterns** | Pipeline templates: CloudFormation, CDK, Terraform | Boilerplate lookup |\n| **§ Output format** | Structured output template with VERDICT, PIPELINE_TEMPLATE, MANUAL_GAPS | Formatting the response |\n| **§ Anti-Patterns** | NEVER list — common mistakes that break pipelines silently | Review before emitting |\n| **§ Pre-flight safety** | Additional checks before any create\u002Fupdate CLI | Defense-in-depth |\n\n## Quick reference — verdict thresholds\n\n| Verdict | Trigger condition | Action |\n|---|---|---|\n| `AUTOMATED` | All requirements satisfied (source cred, build env, deploy role, KMS key, artifact bucket, action IAM policies). Template generated. | Emit complete pipeline-as-code template, ready to apply |\n| `MANUAL_STEP_REQUIRED` | One or more requirements missing (no CodeStar Connection, no cross-account role, no KMS key, environment mismatch). | Emit the specific gap and the exact CLI \u002F IaC snippet to close it. Hold the partial template as a draft. |\n\n**Requirement checklist (all must be satisfied for AUTOMATED):**\n\n1. **Source provider credential** — CodeCommit (no extra cred), GitHub\n   via CodeStar Connection (connection ARN in `Pending` or `Available`\n   state), S3 (bucket exists with versioning).\n2. **Build environment** — CodeBuild image supports the language\n   runtime (check `aws codebuild list-curated-environment-images`).\n3. **Build VPC (if private resources)** — VPC config with private\n   subnets + security groups for CodeBuild if it needs to reach\n   private VPC resources (RDS, internal ALB).\n4. **Deploy role(s)** — IAM role with trust policy for the deploy\n   provider (`cloudformation.amazonaws.com`, `codedeploy.amazonaws.com`,\n   `ecs-tasks.amazonaws.com`) and the deploy-action permissions.\n5. **KMS key** — customer-managed CMK for artifact encryption, with\n   key policy granting the pipeline role + cross-account deploy roles\n   `kms:Encrypt\u002FDecrypt\u002FGenerateDataKey`.\n6. **Artifact bucket** — S3 bucket with versioning, bucket policy\n   granting the pipeline role, KMS-compatible SSE config.\n7. **Cross-account (if applicable)** — deploy role in target account\n   with `Principal: codepipeline.amazonaws.com` + source-account\n   condition; artifact bucket policy grants target account.\n8. **Manual approval (if requested)** — SNS topic for approval\n   notifications + NotificationArn in the approval action config.\n9. **Monitoring** — EventBridge rule on `codepipeline` source\n   matching `codepipeline-pipeline-pipeline-execution-failed`, target\n   SNS topic for failure pages.\n\n**Stage matrix** moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when choosing providers per stage (source\u002Fbuild\u002Ftest\u002Fdeploy\u002Fapproval\u002Finvoke + pitfalls).\n\n## Mindset\n\n**One-line takeaway:** pipeline-as-code is the only sustainable way\nto manage CI\u002FCD at scale. Hand-built pipelines in the console have no\nreview trail, no rollback, no diff. Driven by three CodePipeline\nrealities:\n\nThe three CodePipeline realities moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand for design rationale (source-credential trap, cross-account KMS, V2 triggers vs V1 polling).\n\n## Pre-flight: requirement gate\n\nRun before emitting any template. Missing requirements produce\nMANUAL_STEP_REQUIRED with the exact gap.\n\n**Live-account pre-flight (skip if offline plan audit):**\nFull command list moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad on demand for live pre-flight (pipelines, connections, build images, deploy roles, KMS key, artifact bucket, STS).\n\n**Malformed input:** rule moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nIf the scenario is missing required fields, emit `VERDICT: MANUAL_STEP_REQUIRED` with `GAP: Scenario missing required field \u003Cfield>. Provide \u003Cfield> to proceed.`\n\n| Requirement | Effect on automation |\n|---|---|\n| CodeStar Connection in `Pending` state | MANUAL_STEP_REQUIRED — operator must complete OAuth handshake (cannot be automated); template emitted in draft with connection ARN placeholder. |\n| No CodeStar Connection at all | MANUAL_STEP_REQUIRED — emit `aws codestar-connections create-connection` snippet, then complete the handshake. |\n| Build image does not support runtime | MANUAL_STEP_REQUIRED — emit alternative image or custom-image buildspec. |\n| Deploy role missing | MANUAL_STEP_REQUIRED — emit the IAM role CloudFormation snippet (trust + policy). |\n| KMS key missing or no cross-account grant | MANUAL_STEP_REQUIRED — emit `aws kms create-key` + key policy grant snippet. |\n| Artifact bucket missing | MANUAL_STEP_REQUIRED — emit S3 bucket CloudFormation snippet with versioning + KMS SSE. |\n| Manual approval requested without SNS topic | MANUAL_STEP_REQUIRED — emit `aws sns create-topic` snippet. |\n| EventBridge rule missing for failure notifications | AUTOMATED (the rule is part of the emitted template). |\n\n## Process — pipeline design (apply in order)\n\n### Step 0: Expert knowledge — non-obvious CodePipeline behaviors\n\nAll Step 0 behaviors moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when a design depends on a non-obvious CodePipeline behavior (pipeline vs action roles, encryptionKey, triggers, cross-account, execution modes).\n\n### Step 1: Source stage design\n\n| Source | Provider | Credential | Trigger |\n|---|---|---|---|\n| CodeCommit | `CodeCommit` (AWS) | None (IAM-native) | EventBridge on `referenceUpdated` |\n| GitHub | `CodeStarConnection` (AWS) | CodeStar Connection ARN | V2 trigger OR EventBridge rule |\n| GitHub (legacy) | `GitHub` (ThirdParty) | OAuth token (DEPRECATED) | Polling or webhook (deprecated) |\n| S3 | `S3` (AWS) | Pipeline role on bucket | EventBridge on `ObjectCreated` |\n| ECR | `ECR` (AWS) | Pipeline role on ECR | EventBridge on `ImagePushed` |\n\n**V2 trigger example** moved verbatim to [references\u002Fpipeline-templates-and-deployment-strategies.md](references\u002Fpipeline-templates-and-deployment-strategies.md).\nLoad on demand when wiring V2 Git triggers (Triggers → GitConfiguration → Push → Branches \u002F FilePathIncludes).\n\n### Step 2: Build stage design (CodeBuild)\n\n**Key decisions:**\n- **Managed image vs custom image.** Managed images\n  (`aws\u002Fcodebuild\u002Fstandard:7.0`) cover common runtimes. Custom images\n  (ECR-hosted) for proprietary runtimes or pre-installed dependencies.\n- **VPC config.** If the build needs to reach private VPC resources\n  (RDS, internal ALB, private ECR), set `VpcConfig` with private\n  subnets + security groups. Add VPC endpoints or NAT for internet\n  access.\n- **Cache.** `LOCAL` cache (source, layers, custom) or `S3` cache.\n  S3 cache is shared across build hosts and is faster for large\n  dependency trees.\n- **Artifacts.** `Type: CODEPIPELINE` for pipeline-managed artifacts.\n  Secondary artifacts for separate build outputs.\n- **Environment variables.** Plain text or Secrets Manager \u002F Parameter\n  Store references. Never hardcode secrets in buildspec.\n\n**buildspec.yml minimum** moved verbatim to [references\u002Fpipeline-templates-and-deployment-strategies.md](references\u002Fpipeline-templates-and-deployment-strategies.md).\nLoad on demand when emitting the build stage.\n\n### Step 3: Test stage design\n\n| Test type | Implementation | Quality gate |\n|---|---|---|\n| Unit tests | CodeBuild `build` phase | Non-zero exit code fails the build |\n| Integration tests | CodeBuild `post_build` phase | Non-zero exit code fails the build |\n| Code coverage | CodeBuild + CodeGuru Profiler | Threshold gate in buildspec |\n| CodeGuru Reviewer | CodePipeline action (separate stage) | Findings published to the PR; fail on critical |\n| Security scans | Third-party action (Snyk, Checkov, Trivy) | Buildspec exit code on critical findings |\n| Load tests | CodeBuild + Locust \u002F k6 | Threshold gate on p99 latency |\n\n### Step 4: Deploy stage design\n\nAll deploy-strategy blocks (CloudFormation change-set, CodeDeploy in-place and blue\u002Fgreen, ECS circuit breaker, Route 53 weighted) moved verbatim to [references\u002Fpipeline-templates-and-deployment-strategies.md](references\u002Fpipeline-templates-and-deployment-strategies.md).\nLoad on demand when designing the Deploy stage.\n\n### Step 5: Cross-account deployment design\n\nThe three IAM pieces + trust-policy JSON + KMS\u002Fbucket policy grants moved verbatim to [references\u002Fpipeline-templates-and-deployment-strategies.md](references\u002Fpipeline-templates-and-deployment-strategies.md).\nLoad on demand for cross-account wiring (source-account role, target trust with aws:SourceAccount, artifact KMS decrypt).\n\n### Step 6: Pipeline monitoring design\n\nEventBridge failure-rule and manual-approval blocks moved verbatim to [references\u002Fpipeline-templates-and-deployment-strategies.md](references\u002Fpipeline-templates-and-deployment-strategies.md).\nLoad on demand for monitoring\u002Fapproval wiring (missing NotificationArn = silent gate).\n\n### Step 7: Emit template (AUTOMATED) or gap (MANUAL_STEP_REQUIRED)\n\nIf all pre-flight requirements pass, emit the complete pipeline-as-code\ntemplate (CloudFormation \u002F CDK \u002F Terraform, per the operator's\npreference). The template includes:\nThe includes list (CodePipeline \u002F CodeBuild \u002F IAM \u002F KMS \u002F S3 \u002F Events \u002F SNS resources) moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nLoad on demand when emitting the AUTOMATED template.\n\nIf any requirement is missing, emit `MANUAL_STEP_REQUIRED` with the\nspecific gap and the exact CLI \u002F IaC snippet to close it.\n\n## Patterns — pipeline-as-code templates\n\nAll three full templates (CloudFormation, CDK, Terraform) moved verbatim to [references\u002Fpipeline-templates-and-deployment-strategies.md](references\u002Fpipeline-templates-and-deployment-strategies.md).\nLoad on demand for boilerplate lookup.\n\n## Diagnostic flows\n\nAll five flows (pipeline not triggering, CodeBuild timeout, empty change-set, IAM AccessDenied, KMS cross-account) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad on demand when troubleshooting a running pipeline.\n\n## Output format (per operation)\n\nTemplate block moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nThe same literal labels are enforced below under \"STRICT output contract\"; the primary worked example follows below.\n\n### Worked example — AUTOMATED (greenfield pipeline)\n\n```text\nOPERATION: create\nVERDICT: AUTOMATED\nTARGET: prod-checkout-pipeline\nREQUIREMENTS:\n  - [PASS] CodeStar Connection arn:aws:codestar-connections:us-east-1:111111111111:connection\u002Fabc-123\n    in Available state\n  - [PASS] Build image aws\u002Fcodebuild\u002Fstandard:7.0 supports Node 18\n  - [PASS] Deploy role arn:aws:iam::111111111111:role\u002Fprod-deploy exists\n    with trust policy for cloudformation.amazonaws.com\n  - [PASS] Artifact KMS key arn:aws:kms:us-east-1:111111111111:key\u002Fabc exists\n    with policy granting the pipeline role\n  - [PASS] Artifact bucket prod-checkout-artifacts exists with versioning\n    and KMS SSE\n  - [PASS] Approval SNS topic arn:aws:sns:us-east-1:111111111111:pipeline-approval\n    exists with 2 subscriptions\nPIPELINE_TEMPLATE:\n  # CloudFormation AWS::CodePipeline::Pipeline (V2) — see inline template below\n  Resources:\n    Pipeline:\n      Type: AWS::CodePipeline::Pipeline\n      Properties:\n        PipelineType: V2\n        # ... full template populated with Source (CodeStar Connection),\n        # Build (CodeBuild), Approval, Deploy (CloudFormation change-set)\n        # stages wired with the verified IAM roles, KMS key, S3 bucket.\nMANUAL_GAPS: (none)\nNOTES:\n  - Pipeline is V2 (event-driven). No PollForSourceChanges needed.\n  - Trigger: Git push to main branch via CodeStar Connection.\n  - Detection lag: ~30-60s from push to Source action firing.\n  - Manual approval gate before Deploy stage; approvers notified via SNS.\n  - Deploy uses CHANGE_SET_REPLACE + CHANGE_SET_EXECUTE (safe; change-set\n    can be inspected before execution).\n  - EventBridge rule emits SNS on FAILED\u002FCANCELED state for on-call alerting.\n```\n\n### Worked example — MANUAL_STEP_REQUIRED (cross-account KMS gap)\nFull block moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nLoad on demand when a requirement is [FAIL] (cross-account KMS gap).\n\n## STRICT output contract\n\nThe rules below are hard constraints. Violating any one produces a\npipeline template that fails silently on first run or a gap report\nthat leaves the operator stuck. Self-check EVERY emitted block against\nthese rules before returning.\n\n### Required output structure\n\nEvery response MUST be a single block using these literal labels, in\nthis order. Do NOT substitute markdown headings or camelCase variants.\n\n```text\nOPERATION: \u003Ccreate | update | troubleshoot | migrate-v2>\nVERDICT: AUTOMATED | MANUAL_STEP_REQUIRED\nTARGET: \u003Cpipeline-name>\nREQUIREMENTS:\n  - [PASS] \u003Crequirement description>\n  - [FAIL] \u003Crequirement description> — \u003Cgap>\nPIPELINE_TEMPLATE: \u003Cinline CloudFormation \u002F CDK \u002F Terraform, or \"(held in draft)\">\nMANUAL_GAPS:\n  - GAP: \u003Cgap description>\n    REMEDIATION: \u003Cexact CLI or IaC snippet to close the gap>\n    REASON: \u003Cwhy this cannot be automated>\nNOTES: \u003Ctrigger model, detection lag, cross-account caveats>\n```\n\n### FORBIDDEN output patterns\n\n1. **NEVER emit `VERDICT: AUTOMATED` when any requirement is `[FAIL]`.**\n   A single `[FAIL]` MUST produce `VERDICT: MANUAL_STEP_REQUIRED`. The\n   AUTOMATED verdict certifies that the template is apply-ready — any\n   unresolved gap invalidates that certification.\n\n2. **NEVER emit a `[FAIL]` requirement without a corresponding\n   `MANUAL_GAPS` entry.** Every `[FAIL]` line in REQUIREMENTS MUST have\n   a matching GAP\u002FREMEDIATION\u002FREASON block in MANUAL_GAPS with the\n   exact CLI or IaC snippet that closes the gap. A `[FAIL]` with no\n   remediation leaves the operator stuck.\n\n3. **NEVER emit a pipeline using GitHub v1 (`ThirdParty\u002FGitHub`).** The\n   v1 OAuth integration is DEPRECATED and uses a persistent token. All\n   GitHub\u002FGitLab\u002FBitbucket sources MUST use CodeStar Connection\n   (`AWS\u002FCodeStarConnection`). If the operator provides a v1 source,\n   emit `MANUAL_STEP_REQUIRED` with the CodeStar Connection migration.\n\n4. **NEVER emit a cross-account deploy role without the\n   `aws:SourceAccount` condition on the trust policy.** A\n   `Principal: {\"Service\": \"codepipeline.amazonaws.com\"}` without a\n   source-account condition allows ANY pipeline in ANY account to\n   assume the role. The REMEDIATION snippet MUST include the condition.\n\n5. **NEVER emit a manual approval gate without `NotificationArn`.** An\n   approval action without NotificationArn is a silent gate — approvers\n   are never alerted and the pipeline sits in `InProgress` indefinitely.\n   If no SNS topic exists, emit `MANUAL_STEP_REQUIRED` with the\n   `aws sns create-topic` snippet.\n\n6. **NEVER emit `VERDICT: AUTOMATED` without an EventBridge\n   failure-notification rule in the PIPELINE_TEMPLATE.** A pipeline\n   that fails silently leaves stale code in production. The template\n   MUST include the `AWS::Events::Rule` matching `FAILED` and\n   `CANCELED` states targeting an SNS topic.\n\n7. **NEVER emit a V1 pipeline with `PollForSourceChanges: false`\n   without the corresponding EventBridge trigger rule in the template.**\n   Setting false without the rule means the pipeline never auto-triggers.\n   Either set `PollForSourceChanges: true` (with a warning about polling\n   cost) or emit V2 with triggers.\n\n8. **NEVER emit `PIPELINE_TEMPLATE: (held in draft)` without listing\n   which specific `[FAIL]` items blocked it.** The MANUAL_GAPS block\n   MUST enumerate every gap. A draft hold with no gap list forces the\n   operator to diff the requirements manually.\n\n### Perfect example output — AUTOMATED\n\nEvery requirement is [PASS]. The template is complete. Copy this shape.\nFull example moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nThe primary worked example above — \"Worked example — AUTOMATED (greenfield pipeline)\" — stays in this file.\n\n### Perfect example output — MANUAL_STEP_REQUIRED\nFull example moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nLoad on demand for the MANUAL_STEP_REQUIRED exemplar.\n\n**Self-check before emit:**\n- [ ] Any `[FAIL]` in REQUIREMENTS → VERDICT is MANUAL_STEP_REQUIRED?\n- [ ] Every `[FAIL]` has a matching GAP\u002FREMEDIATION\u002FREASON block?\n- [ ] No GitHub v1 (`ThirdParty\u002FGitHub`) in the template?\n- [ ] Cross-account role has `aws:SourceAccount` condition?\n- [ ] Approval gate has `NotificationArn`?\n- [ ] AUTOMATED template includes EventBridge failure rule?\n- [ ] No `PollForSourceChanges: false` without EventBridge rule (V1)?\n\n## Anti-Patterns — NEVER do these things\n\n- NEVER emit a pipeline using GitHub v1 (`ThirdParty\u002FGitHub`). The v1\n  integration uses a persistent OAuth token granting access to every\n  repo under the authorizing user. It is DEPRECATED. Always use\n  CodeStar Connection (`AWS\u002FCodeStarConnection`).\n\n- NEVER emit a pipeline without a customer-managed KMS key on the\n  artifact store. The default (no `encryptionKey`) writes artifacts\n  to S3 without KMS-managed access control — anyone with `s3:GetObject`\n  can read every artifact (source archives, build outputs, templates).\n\n- NEVER emit a pipeline role (`pipeline.roleArn`) with\n  `AdministratorAccess`. The pipeline role orchestrates stages; it\n  does not need broad service permissions. Grant least-privilege:\n  `codepipeline:StartPipelineExecution`, `s3:GetObject` on artifact\n  bucket, `codebuild:StartBuild`, etc.\n\n- NEVER emit the same IAM role for the pipeline service principal and\n  the action deploy principal. The pipeline role is assumed by\n  `codepipeline.amazonaws.com`; the deploy role by\n  `cloudformation.amazonaws.com` \u002F `codedeploy.amazonaws.com` \u002F\n  `ecs-tasks.amazonaws.com`. Combining them widens the blast radius\n  and creates a trust-policy conflict.\n\n- NEVER emit a cross-account deploy role with\n  `Principal: {\"Service\": \"codepipeline.amazonaws.com\"}` without a\n  source-account `Condition`. Without the condition, ANY pipeline in\n  ANY account can assume the role.\n\n- NEVER emit a manual approval gate without `NotificationArn`. The\n  gate exists on paper but approvers are never alerted — the pipeline\n  sits in `InProgress` indefinitely until someone manually checks the\n  console.\n\n- NEVER emit a V1 pipeline with `PollForSourceChanges: false` without\n  also emitting the EventBridge rule for source change detection. V1\n  pipelines need EITHER polling OR an event rule — setting false\n  without the rule means the pipeline never auto-triggers.\n\n- NEVER emit a CodeBuild project in a public subnet when it needs to\n  reach private VPC resources. CodeBuild in a public subnet cannot\n  reach private subnets without VPC peering. Use private subnets +\n  NAT or VPC endpoints.\n\n- NEVER emit a deploy stage without a quality gate. A pipeline that\n  deploys on every commit without tests is a continuous-deployment\n  footgun — a faulty commit causes an outage. Add unit, integration,\n  and (optionally) security scan stages before Deploy.\n\n- NEVER emit `ActionMode: CREATE_UPDATE` for CloudFormation in a\n  production pipeline. Use `CHANGE_SET_REPLACE` + `CHANGE_SET_EXECUTE`\n  — the change-set can be inspected before execution, and an empty\n  change-set can be handled gracefully.\n\n- NEVER emit a CodeDeploy blue\u002Fgreen for Lambda without\n  PreTrafficHook \u002F PostTrafficHook. The hooks are the only programmatic\n  way to fail the deployment if smoke tests fail during the canary\n  window. Without hooks, a broken version ships to 100% after the\n  canary interval elapses.\n\n- NEVER emit a V1 pipeline when V2 is available. V2 pipelines use\n  triggers (event-driven), support pipeline-level variables, and have\n  stage-level execution modes (QUEUED, SUPERSEDED). V1 defaults to\n  polling.\n\n- NEVER auto-execute `create-pipeline` or `update-pipeline` without\n  the CONFIRM gate. `UpdatePipeline` replaces the entire definition\n  atomically with no diff and no rollback — always snapshot via\n  `get-pipeline --output json` first.\n\n- NEVER emit a pipeline without an EventBridge rule for failure\n  notifications. A pipeline that fails silently leaves stale code in\n  production. Add a rule matching `FAILED` and `CANCELED` states\n  targeting an SNS topic.\n\n- NEVER emit a cross-account pipeline without verifying the artifact\n  bucket policy grants the target account `s3:GetObject`. The deploy\n  role assumes the target role, which needs to read the artifact —\n  without the bucket policy grant, the deploy fails with\n  `AccessDenied` on the S3 GetObject call.\n\n- NEVER emit a V2 pipeline trigger with a wildcard branch filter\n  (`*`). This triggers on every branch push, including feature\n  branches. Scope triggers to `main`, `release\u002F*`, or specific\n  branch patterns.\n\n- NEVER recommend deleting a pipeline as remediation without verifying\n  no workloads depend on it. `DeletePipeline` is irreversible.\n\n## Pre-flight safety checks (run before any remediation CLI)\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing operation\n  (`create-pipeline`, `update-pipeline`, `delete-pipeline`,\n  `start-pipeline-execution`, `disable-stage-transition`,\n  `enable-stage-transition`), emit: `CONFIRM: About to \u003Coperation> on\n  pipeline \u003Cname> in account \u003Caccount> region \u003Cregion>. This affects\n  \u003Cconsequence>. Proceed? (yes\u002Fno)`. Do NOT execute until the operator\n  confirms.\n\n- **Snapshot the pipeline before update.**\n  `aws codepipeline get-pipeline --name \u003Cname> --output json >\n  \u002Ftmp\u002F\u003Cname>-backup-$(date +%s).json`. `UpdatePipeline` replaces the\n  entire definition atomically with no diff and no rollback.\n\n- **Verify the pipeline exists before update.**\n  `aws codepipeline get-pipeline --name \u003Cname>` — fail closed if it\n  returns an error.\n\n- **Before emitting a cross-account deploy role**, verify the target\n  account ID and the trust policy condition. A misconfigured condition\n  can allow any account to assume the role.\n\n- **Before emitting a CodeStar Connection**, verify the connection\n  state. A `Pending` connection requires the operator to complete the\n  OAuth handshake in the console — this cannot be automated. Emit the\n  connection ARN as a placeholder.\n\n- **Before emitting a V2 migration**, verify the pipeline is eligible.\n  V1 pipelines using deprecated features (e.g., GitHub v1 OAuth) must\n  migrate the source first, then upgrade to V2.\n\n- Prefer additive changes (add a stage, add an approval gate) over\n  destructive changes (remove a stage, delete a pipeline) — additive\n  changes are reversible and do not risk breaking existing deployment\n  workflows.\n\n## Recent AWS features (2024-2026)\n\nMoved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand for 2024-2026 CodePipeline \u002F CodeBuild \u002F CodeDeploy \u002F CodeCatalyst feature coverage.\n\n## Error handling — procedure-level pipeline failures\n\nAll five failure branches (CodeBuild VPC errors, empty change-set, cross-account AssumeRole, CodeConnections revision, approval timeout) moved verbatim to [references\u002Ferror-handling.md](references\u002Ferror-handling.md).\nLoad on demand when a pipeline-build or deploy step fails.\n\n## Edge cases\n\nAll three edge cases (approval auto-reject timeout, cross-partition source, DeletionPolicy: Retain) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand for these rare cases.\n\n## References (load on demand)\n\n- [references\u002Fpipeline-templates-and-deployment-strategies.md](references\u002Fpipeline-templates-and-deployment-strategies.md) — full CloudFormation\u002FCDK\u002FTerraform templates; deploy strategies (Step 4); cross-account IAM (Step 5); monitoring\u002Fapproval wiring (Step 6); buildspec and V2 triggers.\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — output-format template, MANUAL_STEP_REQUIRED example, perfect AUTOMATED\u002FMANUAL exemplars, template includes list.\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — live pre-flight commands, malformed-input rule, troubleshooting flows.\n- [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — procedure-level pipeline failure branches.\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — capability overview, stage matrix, design rationale, Step 0 expert knowledge, edge cases, 2024-2026 features.\n\n## Domain\n\nAWS CloudOps \u002F CodePipeline CI\u002FCD Automation & Pipeline Engineering.\n\n## AWS documentation\n\n- **AWS CodePipeline User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodepipeline\u002Flatest\u002Fuserguide\u002Fwelcome.html\n- **CodePipeline V2 type** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodepipeline\u002Flatest\u002Fuserguide\u002Fpipeline-types.html\n- **CodePipeline API Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodepipeline\u002Flatest\u002FAPIReference\u002F\n- **AWS CodeBuild User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodebuild\u002Flatest\u002Fuserguide\u002Fwelcome.html\n- **CodeBuild buildspec reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodebuild\u002Flatest\u002Fuserguide\u002Fbuild-spec-ref.html\n- **AWS CodeDeploy User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodedeploy\u002Flatest\u002Fuserguide\u002Fwelcome.html\n- **CodeDeploy blue\u002Fgreen for Lambda** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodedeploy\u002Flatest\u002Fuserguide\u002Fdeployment-steps.html\n- **CDK Pipelines module** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcdk\u002Fapi\u002Fv2\u002Fdocs\u002Faws-cdk-lib.pipelines-readme.html\n- **CodeStar Connections** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fdtconsole\u002Flatest\u002Fuserguide\u002Fwelcome.html\n- **CodeCatalyst** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcodecatalyst\u002Flatest\u002Fuserguide\u002Fwelcome.html\n- **AWS CLI CodePipeline reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fcodepipeline\u002F\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":42},{"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,"requires_llm":37,"verdict_shape":38,"lifecycle_status":39,"invocation_schema":40,"supports_pipeline":37,"activation_triggers":41},"codepipeline, codebuild, codedeploy, ci-cd, devtools, automate, cloudformation, cdk, terraform","4","Jacky Chan — AWS Community Builder","aws-cloudops","DevTools","0.1.0","CodePipeline, CodeBuild, CodeDeploy, CI\u002FCD, pipeline as code, CloudFormation, CDK, Terraform, blue\u002Fgreen, canary, cross-account deployment, CodeStar Connection, CodeCommit, GitHub, buildspec, change-set, manual approval, pipeline monitoring, CodePipeline V2, CodeCatalyst","automate","high","false","capability","Designing or implementing a CI\u002FCD pipeline using CodePipeline, CodeBuild, CodeDeploy, CloudFormation, CDK, or Terraform. Setting up source (CodeCommit, GitHub, CodeStar Connection), build (buildspec.yml, VPC-aware CodeBuild), test (unit, integration, CodeGuru), or deploy (CloudFormation change-set, CodeDeploy in-place or blue\u002Fgreen, ECS rolling, S3, Service Catalog) stages. Wiring cross-account deployment (IAM roles, KMS key, bucket policy). Implementing blue\u002Fgreen (Lambda traffic shifting, ECS circuit breaker, Route53 weighted). Adding pipeline monitoring (CloudWatch Events, SNS, manual approval). Migrating to CodePipeline V2 or troubleshooting pipeline failures.","true","AUTOMATED | MANUAL_STEP_REQUIRED","active","Input: either (a) a deployment scenario describing app, source, build, test, deploy targets, and constraints (language, environment, cross-account, blue\u002Fgreen), OR (b) an existing pipeline definition + the operation (create, update, troubleshoot, migrate V2). Output: deterministic OPERATION\u002FVERDICT\u002FREQUIREMENTS\u002FPIPELINE_TEMPLATE\u002F MANUAL_GAPS block per operation, where VERDICT is AUTOMATED (full template generated) or MANUAL_STEP_REQUIRED (specific gap blocks automation).","build CI\u002FCD pipeline, create CodePipeline, design deployment pipeline, blue\u002Fgreen deployment, Lambda canary deploy, ECS rolling deploy, cross-account deployment, CodeStar Connection, buildspec.yml, pipeline as code, CloudFormation deploy pipeline, CDK pipelines, Terraform aws_codepipeline, CodePipeline V2 migration, pipeline not triggering, CodeBuild timeout, manual approval gate, SNS pipeline failure notification","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline plan classification. Live-account operations use aws codepipeline create-pipeline, update-pipeline, get-pipeline, get-pipeline-state, start-pipeline- execution, list-pipelines, aws codebuild create-project, batch-get- projects, aws codedeploy create-application, aws cloudformation create-change-set, execute-change-set, aws codestar-connections create-connection (AWS CLI v2, SSO...","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fcicd-pipeline-automator",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":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill cicd-pipeline-automator",{"tool":57,"command":58},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill cicd-pipeline-automator",{"tool":60,"command":61},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill cicd-pipeline-automator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcicd-pipeline-automator\u002FSKILL.md",true,[65,71,75,79,83,87,91,95,99,103,107,111,115,119,123,127,131,135,139,143],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",9754,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcicd-pipeline-automator\u002Feval\u002Ftest-cases.yaml",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"evals\u002Fbaselines\u002Fcdk-pipeline-with-blue-green-lambda-automated.md",867,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcicd-pipeline-automator\u002Fevals\u002Fbaselines\u002Fcdk-pipeline-with-blue-green-lambda-automated.md",{"path":76,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":77,"sourceHtmlUrl":78},"evals\u002Fbaselines\u002Fcross-account-kms-gap-manual.md",745,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcicd-pipeline-automator\u002Fevals\u002Fbaselines\u002Fcross-account-kms-gap-manual.md",{"path":80,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":81,"sourceHtmlUrl":82},"evals\u002Fbaselines\u002Fecs-rolling-circuit-breaker-automated.md",1369,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcicd-pipeline-automator\u002Fevals\u002Fbaselines\u002Fecs-rolling-circuit-breaker-automated.md",{"path":84,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":85,"sourceHtmlUrl":86},"evals\u002Fbaselines\u002Fgreenfield-cfn-pipeline-automated.md",1649,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcicd-pipeline-automator\u002Fevals\u002Fbaselines\u002Fgreenfield-cfn-pipeline-automated.md",{"path":88,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":89,"sourceHtmlUrl":90},"evals\u002Fbaselines\u002Fv1-pipeline-migration-manual.md",756,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcicd-pipeline-automator\u002Fevals\u002Fbaselines\u002Fv1-pipeline-migration-manual.md",{"path":92,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":93,"sourceHtmlUrl":94},"evals\u002Feval_config.yaml",1998,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcicd-pipeline-automator\u002Fevals\u002Feval_config.yaml",{"path":96,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":97,"sourceHtmlUrl":98},"evals\u002Fevals.json",4523,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcicd-pipeline-automator\u002Fevals\u002Fevals.json",{"path":100,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":101,"sourceHtmlUrl":102},"evals\u002Fprompts\u002Fcdk-pipeline-with-blue-green-lambda-automated.md",1437,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcicd-pipeline-automator\u002Fevals\u002Fprompts\u002Fcdk-pipeline-with-blue-green-lambda-automated.md",{"path":104,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":105,"sourceHtmlUrl":106},"evals\u002Fprompts\u002Fcross-account-kms-gap-manual.md",1390,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcicd-pipeline-automator\u002Fevals\u002Fprompts\u002Fcross-account-kms-gap-manual.md",{"path":108,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":109,"sourceHtmlUrl":110},"evals\u002Fprompts\u002Fecs-rolling-circuit-breaker-automated.md",1197,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcicd-pipeline-automator\u002Fevals\u002Fprompts\u002Fecs-rolling-circuit-breaker-automated.md",{"path":112,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":113,"sourceHtmlUrl":114},"evals\u002Fprompts\u002Fgreenfield-cfn-pipeline-automated.md",1155,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcicd-pipeline-automator\u002Fevals\u002Fprompts\u002Fgreenfield-cfn-pipeline-automated.md",{"path":116,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":117,"sourceHtmlUrl":118},"evals\u002Fprompts\u002Fv1-pipeline-migration-manual.md",931,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcicd-pipeline-automator\u002Fevals\u002Fprompts\u002Fv1-pipeline-migration-manual.md",{"path":120,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":121,"sourceHtmlUrl":122},"examples\u002FREADME.md",13358,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcicd-pipeline-automator\u002Fexamples\u002FREADME.md",{"path":124,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":125,"sourceHtmlUrl":126},"references\u002Fadvanced-patterns.md",11364,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcicd-pipeline-automator\u002Freferences\u002Fadvanced-patterns.md",{"path":128,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":129,"sourceHtmlUrl":130},"references\u002Fdiagnostic-commands.md",4204,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcicd-pipeline-automator\u002Freferences\u002Fdiagnostic-commands.md",{"path":132,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":133,"sourceHtmlUrl":134},"references\u002Ferror-handling.md",4526,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcicd-pipeline-automator\u002Freferences\u002Ferror-handling.md",{"path":136,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":137,"sourceHtmlUrl":138},"references\u002Fpipeline-templates-and-deployment-strategies.md",23518,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcicd-pipeline-automator\u002Freferences\u002Fpipeline-templates-and-deployment-strategies.md",{"path":140,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":141,"sourceHtmlUrl":142},"references\u002Fworked-examples.md",8606,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcicd-pipeline-automator\u002Freferences\u002Fworked-examples.md",{"path":144,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":145,"sourceHtmlUrl":146},"skill.usf.yaml",4672,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcicd-pipeline-automator\u002Fskill.usf.yaml",[148,155,162,169,176,183],{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":154,"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":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":161,"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":163,"name":164,"nameZh":6,"description":165,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":166,"categories":167,"keywords":168,"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":170,"name":171,"nameZh":6,"description":172,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":173,"categories":174,"keywords":175,"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":177,"name":178,"nameZh":6,"description":179,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":180,"categories":181,"keywords":182,"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":184,"name":185,"nameZh":6,"description":186,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":187,"categories":188,"keywords":189,"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",[],[]]