[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ACYFT4WH3NZN1WGD8WJH1Q":3,"skill-same:01M7ACYFT4WH3NZN1WGD8WJH1Q":144},{"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":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":6,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":50,"updatedAt":51,"install":52,"resources":65},"01M7ACYFT4WH3NZN1WGD8WJH1Q","ssm-patch-baseline-deployer",null,"Provisions SSM Patch Baselines with secure patch-management defaults — baseline creation (OS, product, classification, severity), approval rules (auto-approve after N days, compliance level), patch groups (tag-based targeting), default vs custom baseline selection, maintenance window integration, and custom repositories for Amazon Linux 2023, RHEL, Ubuntu, Windows, macOS. Runs pre-checks (OS validity, product-OS matching, Patch Group tag key, instance role AmazonSSMManagedInstanceCore, IAM permissions, maintenance window task document), emits create-patch-baseline, register-patch-baseline -for-patch-group, register-task-with-maintenance-window CLIs behind a CONFIRM gate, verifies via describe-patch-baseline. Emits READY_TO_DEPLOY | PREREQUISITES_MISSING. Use when creating patch baselines, configuring approval rules, targeting patch groups, or integrating with maintenance windows.","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\u002Fssm-patch-baseline-deployer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: ssm-patch-baseline-deployer\ndescription: Provisions SSM Patch Baselines with secure patch-management defaults — baseline creation (OS, product, classification, severity), approval rules (auto-approve after N days, compliance level), patch groups (tag-based targeting), default vs custom baseline selection, maintenance window integration, and custom repositories for Amazon Linux 2023, RHEL, Ubuntu, Windows, macOS. Runs pre-checks (OS validity, product-OS matching, Patch Group tag key, instance role AmazonSSMManagedInstanceCore, IAM permissions, maintenance window task document), emits create-patch-baseline, register-patch-baseline -for-patch-group, register-task-with-maintenance-window CLIs behind a CONFIRM gate, verifies via describe-patch-baseline. Emits READY_TO_DEPLOY | PREREQUISITES_MISSING. Use when creating patch baselines, configuring approval rules, targeting patch groups, or integrating with maintenance windows.\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 ssm create-patch-baseline, update-patch-baseline, register-patch-baseline-for-patch-group, describe-patch-baseline, describe-instance-patch-states, register-target-with-maintenance-window, register-task-with-maintenance-window (AWS CLI v2, SSO or key-based credentials).\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: Management\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: ssm, patch-baseline, management, patch-manager, maintenance-window, deploy, compliance, os-patching\n  dependencies: aws-orchestrator\n  keywords: SSM Patch Manager, Patch Baseline, patch baseline, approval rule, auto-approve, compliance level, patch group, tag-based targeting, maintenance window, operating system, Amazon Linux 2023, macOS patching, Windows Server, Ubuntu, RHEL, custom repository, SSM, Systems Manager, patch compliance, AmazonSSMManagedInstanceCore\n  when_to_use: Creating or updating an SSM Patch Baseline (approval rules, operating system, classification, severity), registering a patch group for tag-based targeting, setting default vs custom baseline selection, integrating a patch baseline with a maintenance window (register targets and tasks), or configuring custom repositories for Amazon Linux 2023, RHEL, Ubuntu, Windows, or macOS patching.\n  activation_triggers: create patch baseline, provision SSM patch baseline, deploy patch baseline, approval rule patching, auto-approve patches, patch group, register patch baseline, maintenance window patching, Amazon Linux 2023 patches, macOS patching SSM, Windows Server patch baseline, Ubuntu patch baseline, RHEL patch baseline, custom repository patching, patch compliance severity, ssm create-patch-baseline, register-patch-baseline-for-patch-group, default patch baseline\n  invocation_schema: 'Input: either (a) a patch baseline deployment intent (create or update) with target operating system, approval rules (classification, severity, auto-approve days, compliance level), patch group, and optional maintenance window integration; OR (b) a baseline ID for live-account update or validation. Output: deterministic BASELINE\u002FVERDICT\u002FPRE_CHECKS\u002FSTEPS\u002FPOST_VERIFY block per operation, where VERDICT is one of READY_TO_DEPLOY, PREREQUISITES_MISSING.'\n---\n\n# SSM Patch Baseline Deployer\n\n## What this skill does\n\nProvisions SSM Patch Baselines with secure patch-management defaults —\ncorrect operating system selection, approval rules with compliance\nseverity, tag-based patch group targeting, and maintenance window\nintegration. Enforces approval rules that auto-approve critical and\nsecurity patches within a documented window, compliance severity levels\nthat surface unpatched instances in the compliance dashboard, patch\ngroups keyed by `Patch Group` tag, and maintenance window tasks that\nreference the correct document (`AWS-RunPatchBaseline`) with the correct\nparameters. Runs deterministic pre-checks before any state-changing\nCLI, emits the exact `create-patch-baseline`,\n`register-patch-baseline-for-patch-group`, and maintenance window\nregistration CLIs behind a CONFIRM gate, and verifies the deployment via\n`describe-patch-baseline` and `describe-instance-patch-states`. Every\nbaseline plan surfaces the operating system, approval rule matrix, patch\ngroup tag key, and the default-vs-custom baseline selection.\n\n## Quick navigation\n\n| Section | What it covers | When to read it |\n|---|---|---|\n| **Quick reference** | Verdict thresholds + pre-check priority order + baseline config matrix | Before any operation |\n| **Mindset** | Why defaults matter; Patch Manager silent-failure modes; overwrite traps | Understanding the deployment model |\n| **Pre-flight** | Baseline metadata gate — OS, approval rules, patch group tags, instance roles | Before executing any CLI |\n| **Process** | Per-operation planning: create baseline, register patch group, maintenance window | When choosing which operation |\n| **Common patterns** | Amazon Linux 2023 \u002F Windows auto-approve \u002F macOS \u002F maintenance window boilerplate | Boilerplate lookup |\n| **STRICT output contract** | Required BASELINE\u002FVERDICT\u002FPRE_CHECKS\u002FSTEPS\u002FPOST_VERIFY block | Formatting the response |\n| **NEVER (top 5)** | Hard rules that prevent common insecure patterns | Review before deploy |\n| **Expert heuristic** | Choosing auto-approve delay (0 vs N days) per environment | Choosing approval strategy |\n\n## Quick reference — verdict thresholds\n\n| Verdict | Trigger condition | Action |\n|---|---|---|\n| `PREREQUISITES_MISSING` | Any pre-check failed (unsupported OS, approval rule missing required fields, patch group tag key not `Patch Group`, instance profile missing AmazonSSMManagedInstanceCore, maintenance window not found, IAM permission missing, baseline name collision on create) | List failures, do NOT execute |\n| `READY_TO_DEPLOY` | All pre-checks passed; awaiting CONFIRM gate | Emit exact CLI sequence with full baseline config, wait for operator yes |\n\n**Priority order for pre-checks (apply in this sequence, all must pass for\nREADY_TO_DEPLOY):**\n\n1. **Baseline name uniqueness** — `describe-patch-baselines` returns no\n   custom baseline with the target name (for create) or matches exactly\n   one (for update).\n2. **Operating system support** — the `OperatingSystem` is one of\n   `AMAZON_LINUX_2023`, `AMAZON_LINUX_2`, `AMAZON_LINUX`, `UBUNTU_22.04`,\n   `UBUNTU_20.04`, `DEBIAN_11`, `DEBIAN_12`, `REDHAT_ENTERPRISE_LINUX_8`,\n   `REDHAT_ENTERPRISE_LINUX_9`, `WINDOWS_SERVER`, `MACOS`, `SUSE`,\n   `CENTOS_7`, `ORACLE_LINUX_8`, `ROCKY_LINUX_9`, `ALMA_LINUX_9`,\n   `RASPBIAN`.\n3. **Approval rule completeness** — each approval rule has\n   `ApproveAfterDays` (0-100), `ComplianceLevel` (`CRITICAL`, `HIGH`,\n   `MEDIUM`, `LOW`, `INFORMATIONAL`, `UNSPECIFIED`), and at least one\n   `PatchFilter` (product, classification, severity).\n4. **Approval rule product** — the product matches the OS (e.g.,\n   `Amazon Linux 2023` for `AMAZON_LINUX_2023`, `Ubuntu2204` for\n   `UBUNTU_22.04`). Mismatched product = zero patches matched.\n5. **Patch filter classification** — classification values are valid for\n   the OS (e.g., `Security`, `Bugfix`, `Enhancement`, `Recommended`,\n   `Newpackage`). Invalid classifications silently match nothing.\n6. **Patch filter severity** — severity values are valid for the OS\n  (e.g., `Critical`, `Important`, `Medium`, `Low`). Windows uses\n  Microsoft severity; Linux uses distro severity.\n7. **Patch group tag key** — the tag key used for registration is\n   exactly `Patch Group` (case-sensitive). AWS Patch Manager looks up\n   instances by this tag key only.\n8. **Patch group tag value format** — the tag value matches\n   `[A-Za-z0-9:_-]{1,255}` and does not contain spaces or special\n   characters.\n9. **Instance role** — the SSM instance profile attached to target\n   EC2\u002FmacOS instances includes `AmazonSSMManagedInstanceCore`\n   (and `AmazonSSMPatchAssociation` for association execution).\n10. **Maintenance window existence** — if maintenance window integration\n    is requested, the window ID exists and is in the same account\u002Fregion.\n11. **Maintenance window task document** — the task document is\n    `AWS-RunPatchBaseline` (or `AWS-ApplyPatchBaseline` for Windows\n    offline patching). The `Operation` parameter is `Scan` or `Install`.\n12. **Compliance level consistency** — the `ComplianceLevel` on approval\n    rules is not `UNSPECIFIED` for production baselines (UNSPECIFIED =\n    no compliance reporting).\n13. **Rejected patches** — if `RejectedPatches` are listed, the\n    `RejectedPatchesAction` is `BLOCK_AS_PENDING` (default) or\n    `ALLOW_AS_DEPENDENCY`.\n14. **IAM permissions** — the operator principal holds\n    `ssm:CreatePatchBaseline`, `ssm:RegisterPatchBaselineForPatchGroup`,\n    `ssm:RegisterTargetWithMaintenanceWindow`, and\n    `ssm:RegisterTaskWithMaintenanceWindow` (as applicable).\n\n**SSM Patch Manager limits (2026):**\n\n- Patch baselines per account (default): 1000 (soft limit).\n- Patch groups per account: 10000 (soft limit).\n- Approval rules per baseline: 1 (operating-system level) — can contain\n  multiple `PatchFilters` entries.\n- Patch filters per approval rule: 1-100.\n- Rejected patches per baseline: 1-1000.\n- One patch group registration per baseline (default baseline per OS\n  per account).\n- Maintenance windows per account: 1000 (soft).\n\n## Mindset\n\n**One-line takeaway:** SSM Patch Manager silently matches zero patches\nwhen approval rules are misconfigured. A baseline for `AMAZON_LINUX_2023`\nwith a product filter of `Amazon Linux 2` will deploy cleanly — but no\npatches will ever be approved, and the compliance dashboard will show\nevery instance as compliant (zero missing patches). The skill enforces\nproduct-OS matching at the pre-check gate.\n\nDriven by three Patch Manager realities:\n\n- **Approval rules match patches by product, classification, and\n  severity.** If the product does not match the OS, zero patches match.\n  If the classification is misspelled (`Security` vs `security`), zero\n  patches match. The pre-flight gate verifies product-OS alignment and\n  classification casing.\n\n- **Patch groups are looked up by the `Patch Group` tag key.** The tag\n  key is case-sensitive (`Patch Group`, not `patch-group`). Instances\n  without the tag are never patched regardless of baseline registration.\n\n- **Maintenance window tasks must use `AWS-RunPatchBaseline`.** Using\n  `AWS-RunShellScript` or a custom document with patch parameters does\n  not update the compliance dashboard. The skill verifies the document\n  name on every maintenance window task.\n\n## Pre-flight: patch baseline metadata gate\n\nRun before classification. Misclassifying these produces wrong plans.\n\n**Pagination:** `describe-patch-baselines` returns at most 50 per page\n(via `--max-results`). Use `--next-token` to drain.\n\n**Live-account pre-flight (skip if offline plan audit):**\n1. `aws ssm describe-patch-baselines --operating-system \u003Cos>\n   --max-results 50` — confirm the baseline name does not collide (for\n   create) or matches (for update).\n2. `aws ssm describe-patch-baselines --operating-system \u003Cos>\n   --filters Key=OWNER,Values=AWS` — check the default AWS baseline for\n   the OS (to decide default-vs-custom).\n3. `aws ec2 describe-instances --filters \"Name=tag:Patch\n   Group,Values=\u003Cpatch-group>\"` — confirm instances exist with the tag.\n4. `aws iam list-instance-profiles` — confirm the target instance\n   profile includes `AmazonSSMManagedInstanceCore`.\n5. `aws ssm describe-maintenance-windows --window-id \u003Cid>` — for\n   maintenance window integration, confirm the window exists.\n6. `aws ssm describe-instance-patch-states --instance-ids \u003Cids>` —\n   baseline snapshot of current patch compliance.\n\n**Malformed input:** if the baseline spec is missing required fields\n(`Name`, `OperatingSystem`, or `ApprovalRules`), emit `VERDICT:\nPREREQUISITES_MISSING` with `REASON: Baseline spec missing required\nfield — Name, OperatingSystem, or ApprovalRules. Cannot plan.` and\n`REMEDIATION: Provide the full baseline configuration per\nhttps:\u002F\u002Fdocs.aws.amazon.com\u002Fsystems-manager\u002Flatest\u002Fuserguide\u002Fpatch-manager-create-baseline.html.`\n\n| Attribute | Effect on operation |\n|---|---|\n| OS not in supported list | API rejects. PREREQUISITES_MISSING. |\n| Product mismatched to OS | Zero patches matched. PREREQUISITES_MISSING. |\n| Classification case-sensitive error | Zero patches matched. PREREQUISITES_MISSING. |\n| Patch Group tag key not exact `Patch Group` | Instances never patched. PREREQUISITES_MISSING. |\n| Instance role missing AmazonSSMManagedInstanceCore | SSM agent cannot register. PREREQUISITES_MISSING. |\n| ComplianceLevel UNSPECIFIED | No compliance reporting. Flag in NOTES. |\n| Maintenance window task not AWS-RunPatchBaseline | Compliance not updated. PREREQUISITES_MISSING. |\n| ApproveAfterDays > 100 | API rejects. PREREQUISITES_MISSING. |\n\n## Process — operation planning (apply in order)\n\n### Step 0: Expert knowledge — non-obvious Patch Manager behaviors\n\nStep-0 expert behaviors moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) —\nload when a plan hinges on default-baseline, approval-rule, or product-filter semantics.\n\n### Step 1: Pre-check gate — PREREQUISITES_MISSING if any check fails\n\nRun ALL of the following pre-checks. If ANY fails, the verdict is\nPREREQUISITES_MISSING with the failed checks enumerated in PRE_CHECKS.\nDo NOT execute.\n\n**For ALL operations:**\n1. Baseline name is set, \u003C= 128 chars, matches `[a-zA-Z0-9_.-]+`.\n2. `OperatingSystem` is in the supported list.\n3. IAM principal holds the relevant `ssm:` permission.\n\n**For create-patch-baseline:**\n4. Baseline name does not collide with an existing custom baseline.\n5. `ApprovalRules` contains at least one `PatchRule`.\n6. Each `PatchRule` has `ApproveAfterDays` in range 0-100.\n7. Each `PatchRule` has `ComplianceLevel` set to a non-UNSPECIFIED value\n   for production baselines.\n8. Each `PatchRule.PatchFilterGroup` has product matching the OS.\n9. Classification values are valid and correctly cased for the OS.\n10. Severity values are valid for the OS.\n11. `RejectedPatchesAction` is `BLOCK_AS_PENDING` or\n    `ALLOW_AS_DEPENDENCY` (if rejected patches are listed).\n\n**For register-patch-baseline-for-patch-group:**\n12. The `Patch Group` tag key is used (case-sensitive).\n13. The patch group value matches `[A-Za-z0-9:_-]{1,255}`.\n14. The baseline ID exists and is for the correct OS.\n15. At least one instance exists with the `Patch Group` tag value\n    (checked via `ec2:describe-instances` if live).\n\n**For register-target-with-maintenance-window:**\n16. The maintenance window ID exists.\n17. The `Targets` use the `Patch Group` tag or resource groups.\n18. The `OwnerInformation` (if set) does not contain secrets.\n\n**For register-task-with-maintenance-window:**\n19. The task document is `AWS-RunPatchBaseline` (or\n    `AWS-ApplyPatchBaseline` for Windows offline).\n20. The `TaskParameters` include `Operation: Scan` or\n    `Operation: Install`.\n21. `MaxConcurrency` and `MaxErrors` are set (not omitted — defaults\n    may be too aggressive for production).\n22. The `CloudWatchOutputConfig` is enabled for audit logging.\n\n### Step 2: READY_TO_DEPLOY — emit deployment plan\n\nIf all pre-checks pass, emit `VERDICT: READY_TO_DEPLOY` with the exact\nCLI sequence and the CONFIRM gate. The plan includes:\n\n- The exact `aws ssm create-patch-baseline` CLI with the full config\n  (OperatingSystem, ApprovalRules, GlobalFilters, RejectedPatches,\n  Sources, Description, Tags).\n- The follow-up `register-patch-baseline-for-patch-group` CLI for each\n  patch group.\n- The follow-up `register-target-with-maintenance-window` CLI for\n  maintenance window integration.\n- The follow-up `register-task-with-maintenance-window` CLI with the\n  `AWS-RunPatchBaseline` document.\n- The CONFIRM gate prompt.\n\n### Step 3: Execute behind CONFIRM gate\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing CLI\n  (`create-patch-baseline`, `register-patch-baseline-for-patch-group`,\n  `register-task-with-maintenance-window`), emit:\n  `CONFIRM: About to \u003Coperation> \u003Cresource> in account \u003Caccount>\n  region \u003Cregion>. This will \u003Cconsequence>. Proceed? (yes\u002Fno)`. Do NOT\n  execute until the operator confirms.\n- Snapshot the current baseline config before modification:\n  `aws ssm describe-patch-baseline --baseline-id \u003Cid> --output json\n  > \u002Ftmp\u002F\u003Cbaseline-name>-backup-$(date +%s).json`.\n- Execute the CLI with the full baseline config.\n\n### Step 4: Post-verification\n\nAfter the operation finishes, run post-verification:\n\n1. `describe-patch-baseline --baseline-id \u003Cid>` returns the expected\n   config (OperatingSystem, ApprovalRules, ComplianceLevel).\n2. `describe-patch-groups --operating-system \u003Cos>` returns the patch\n   group registered to this baseline.\n3. For maintenance window: `describe-maintenance-window-tasks --window-id\n   \u003Cid>` returns the `AWS-RunPatchBaseline` task with correct parameters.\n4. Trigger a `Scan` operation on one target instance:\n   `aws ssm send-command --document-name AWS-RunPatchBaseline\n   --parameters '{\"Operation\":[\"Scan\"]}' --targets \u003Ctargets>`.\n5. After scan completes: `describe-instance-patch-states --instance-ids\n   \u003Cid>` returns the expected patch count and compliance status.\n\n## Common baseline patterns (boilerplate)\n\nBoilerplate patterns moved to [references\u002Fworked-examples.md](references\u002Fworked-examples.md):\nAL2023, Windows, macOS baselines; maintenance-window Install task; air-gapped custom repository.\n\n## STRICT output contract\n\n### Required output structure\n\nEvery response MUST begin with this block — no preamble, no conversational\nopening:\n\n```text\nBASELINE: \u003Cbaseline-name>\nVERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING\nTARGET: \u003Cbaseline-name> (baseline-id: \u003Cid> for updates)\nPRE_CHECKS:\n  - [PASS] \u003Ccheck description>\n  - [FAIL] \u003Ccheck description> — \u003Creason>\nSTEPS:\n  1. CONFIRM: About to \u003Coperation> \u003Cresource> in account \u003Caccount> region \u003Cregion>. This will \u003Cconsequence>. Proceed? (yes\u002Fno)\n  2. \u003Cexact CLI command — no placeholders>\nPOST_VERIFY:\n  - [PASS] \u003Cverification description>\n  - [FAIL] \u003Cverification description> — \u003Creason>\nOPERATING_SYSTEM: AMAZON_LINUX_2023 | WINDOWS_SERVER | MACOS | UBUNTU_22.04 | ...\nAPPROVAL_RULES: \u003Ccount> rule(s) (classifications: \u003Clist>, auto-approve: \u003CN> days)\nCOMPLIANCE_LEVEL: CRITICAL | HIGH | MEDIUM | LOW\nPATCH_GROUPS: \u003Ccount> registered (values: \u003Clist>)\nMAINTENANCE_WINDOW: \u003Cwindow-id> | NONE\nINSTANCE_ROLE: AmazonSSMManagedInstanceCore | MISSING\nNOTES: \u003Cpatching posture, approval strategy, compliance caveats>\n```\n\n### FORBIDDEN output patterns\n\n- NEVER start with \"Let me analyze…\" or \"I'll create…\" — the VERDICT\n  block is the FIRST line, always. No conversational preamble.\n- NEVER use lowercase verdict values — emit `READY_TO_DEPLOY` or\n  `PREREQUISITES_MISSING`.\n- NEVER omit PRE_CHECKS — every pre-check run must appear with `[PASS]`\n  or `[FAIL]` and a specific reason for each failure.\n- NEVER emit a plan with placeholder values in a READY_TO_DEPLOY plan —\n  every field must be populated with actual values from the input.\n- NEVER omit the CONFIRM gate as the first STEPS entry for any\n  state-changing operation.\n- NEVER claim success without verifying that the baseline was created\n  (via `describe-patch-baseline`).\n- NEVER put-update a baseline without snapshotting the existing config\n  first — updates to `ApprovalRules` overwrite silently.\n- NEVER silently allow a maintenance window task with a non-\n  `AWS-RunPatchBaseline` document — block it with a [FAIL] pre-check row.\n\n### Perfect example output\n\n```text\nBASELINE: al2023-prod-security\nVERDICT: READY_TO_DEPLOY\nTARGET: al2023-prod-security\nPRE_CHECKS:\n  - [PASS] Baseline name unique (no collision in describe-patch-baselines)\n  - [PASS] Operating System: AMAZON_LINUX_2023 is supported\n  - [PASS] Product filter Amazon Linux 2023 matches OS\n  - [PASS] Classification Security, Bugfix are valid for AL2023\n  - [PASS] Severity Critical, Important are valid\n  - [PASS] ApproveAfterDays: 7 (in range 0-100)\n  - [PASS] ComplianceLevel: CRITICAL (non-UNSPECIFIED)\n  - [PASS] Patch Group tag key is \"Patch Group\" (case-sensitive)\n  - [PASS] Instance role includes AmazonSSMManagedInstanceCore\n  - [PASS] IAM principal holds ssm:CreatePatchBaseline\nSTEPS:\n  1. CONFIRM: About to create-patch-baseline al2023-prod-security in account 111111111111 region us-east-1. This will CREATE a new baseline for AMAZON_LINUX_2023 with 7-day auto-approve on Security and Bugfix patches. Proceed? (yes\u002Fno)\n  2. aws ssm create-patch-baseline --name al2023-prod-security --operating-system AMAZON_LINUX_2023 --approval-rules '{\"PatchRules\":[{\"PatchFilterGroup\":{\"OperatingSystem\":\"AMAZON_LINUX_2023\",\"PatchFilters\":[{\"Key\":\"PRODUCT\",\"Values\":[\"Amazon Linux 2023\"]},{\"Key\":\"CLASSIFICATION\",\"Values\":[\"Security\",\"Bugfix\"]},{\"Key\":\"SEVERITY\",\"Values\":[\"Critical\",\"Important\"]}]},\"ApproveAfterDays\":7,\"ComplianceLevel\":\"CRITICAL\",\"EnableNonSecurity\":true}]}' --tags '[{\"Key\":\"Environment\",\"Value\":\"prod\"}]'\n  3. aws ssm register-patch-baseline-for-patch-group --baseline-id \u003Creturned-id> --patch-group al2023-prod-web\nPOST_VERIFY:\n  - (pending execution)\n  - describe-patch-baseline returns OperatingSystem=AMAZON_LINUX_2023, ApproveAfterDays=7\n  - describe-patch-groups returns al2023-prod-web registered to this baseline\nOPERATING_SYSTEM: AMAZON_LINUX_2023\nAPPROVAL_RULES: 1 rule (classifications: Security, Bugfix; auto-approve: 7 days)\nCOMPLIANCE_LEVEL: CRITICAL\nPATCH_GROUPS: 1 (al2023-prod-web)\nMAINTENANCE_WINDOW: NONE\nINSTANCE_ROLE: AmazonSSMManagedInstanceCore\nNOTES:\n  - ApproveAfterDays 7 means patches are approved 7 days after vendor release — balances freshness with soak time.\n  - EnableNonSecurity true also approves non-security updates matching the product filter.\n  - Register a maintenance window task (AWS-RunPatchBaseline Operation=Install) to actually install patches.\n```\n\n## NEVER (top 5)\n\nThese are the highest-impact, most-frequent failure modes in SSM Patch\nBaseline deployments. Violating any one of these is a security or\noperational regression.\n\n1. **NEVER create a baseline with a product filter that does not match\n   the operating system.** An `AMAZON_LINUX_2023` baseline with a\n   product of `Amazon Linux 2` matches zero patches — the compliance\n   dashboard shows all instances as compliant when they are not. The\n   pre-check gate verifies product-OS alignment.\n\n2. **NEVER register a patch group without verifying the instance role\n   includes `AmazonSSMManagedInstanceCore`.** Instances without the role\n   cannot register with SSM, cannot be patched, and will silently appear\n   as non-compliant with no actionable error. The pre-check gate\n   verifies the role on at least one instance in the patch group.\n\n3. **NEVER set `ComplianceLevel: UNSPECIFIED` on a production baseline.**\n   UNSPECIFIED means missing patches do not appear in the compliance\n   dashboard — you lose visibility into unpatched instances. Always use\n   CRITICAL, HIGH, or MEDIUM for production.\n\n4. **NEVER create a maintenance window task with a document other than\n   `AWS-RunPatchBaseline` for patching.** Using `AWS-RunShellScript` to\n   run `yum update` or `apt upgrade` does not report to the compliance\n   dashboard. The skill verifies the document name on every patch task.\n\n5. **NEVER register a custom baseline as the default for an OS without\n   understanding it replaces the AWS baseline for ALL instances.** The\n   default baseline applies to every instance of that OS in the account,\n   not just tagged ones. Only set a custom baseline as default when you\n   intend a fleet-wide override. Otherwise, register via patch groups.\n\n## Expert heuristic: choosing auto-approve delay\n\nThe right `ApproveAfterDays` is a function of environment, risk\ntolerance, and operational maturity — not a one-size-fits-all. The\nheuristic below resolves the trade-off deterministically.\n\n```\nEnvironment \u002F risk posture\n   ├─ Production, regulated (PCI\u002FHIPAA\u002FSOC2)?\n   │    └─ ApproveAfterDays: 3-7. Security patches soak 3-7 days in\n   │         pre-prod before auto-approving in prod. Pair with a\n   │         maintenance window for controlled installation windows.\n   │\n   ├─ Production, non-regulated?\n   │    └─ ApproveAfterDays: 7-14. Longer soak time for stability.\n   │         Critical security patches may need a separate rule with\n   │         ApproveAfterDays: 0 for emergency response.\n   │\n   ├─ Staging \u002F pre-prod?\n   │    └─ ApproveAfterDays: 1-3. Short soak time — catch breakages\n   │         before promoting to production.\n   │\n   └─ Development?\n        └─ ApproveAfterDays: 0. Immediate approval — keep dev instances\n             on the latest patches for testing compatibility.\n```\n\n**Decision rules:**\n- Default to `ApproveAfterDays: 7` for production. It is the safest\n  default that balances security urgency with operational stability.\n- For critical security patches, consider a separate approval rule with\n  `ApproveAfterDays: 0` and `ComplianceLevel: CRITICAL` — these are\n  emergency patches that should not wait.\n- Always pair `ApproveAfterDays` with a maintenance window. Without a\n  maintenance window, patches are approved but never installed.\n- `ComplianceLevel` should reflect operational urgency: CRITICAL for\n  production security patches, HIGH for important patches, MEDIUM for\n  the rest.\n- For air-gapped environments, set `ApproveAfterDays: 0` (the mirror\n  controls timing) and use custom `Sources` for the local repository.\n\nALWAYS emit `ComplianceLevel` as a non-UNSPECIFIED value for production\nbaselines. Without it, the compliance dashboard is blind to missing\npatches.\n\n## Recent AWS features (2024-2026)\n\n2024-2026 feature notes (macOS Patch Manager, AL2023 dnf, Sources,\ndashboard enhancements) moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## AWS documentation\n\n- **SSM Patch Manager Developer Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fsystems-manager\u002Flatest\u002Fuserguide\u002Fsystems-manager-patch.html\n- **Create a patch baseline** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fsystems-manager\u002Flatest\u002Fuserguide\u002Fpatch-manager-create-baseline.html\n- **About patch groups** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fsystems-manager\u002Flatest\u002Fuserguide\u002Fsysman-patch-patchgroups.html\n- **Maintenance windows** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fsystems-manager\u002Flatest\u002Fuserguide\u002Fsystems-manager-maintenance.html\n- **AWS-RunPatchBaseline document** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fsystems-manager\u002Flatest\u002Fuserguide\u002Fpatch-manager-ssm-documents.html\n- **SSM CLI reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fssm\u002F\n\n## References (load on demand)\n\n- [references\u002Fbaseline-config-and-approval-rules.md](references\u002Fbaseline-config-and-approval-rules.md) — Canonical per-OS baseline configurations and approval-rule patterns.\n- [references\u002Fpatch-groups-and-maintenance-windows.md](references\u002Fpatch-groups-and-maintenance-windows.md) — Patch group registration and maintenance-window integration detail.\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — Full CLI boilerplate for each OS archetype (moved from Common baseline patterns).\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — Step-0 expert Patch Manager behaviors and 2024-2026 feature notes (moved from SKILL.md).\n\n## Domain\n\nAWS CloudOps \u002F Management & Governance — SSM Patch Baseline Provisioning.\n","# SSM Patch Baseline Deployer\n\n## What this skill does\n\nProvisions SSM Patch Baselines with secure patch-management defaults —\ncorrect operating system selection, approval rules with compliance\nseverity, tag-based patch group targeting, and maintenance window\nintegration. Enforces approval rules that auto-approve critical and\nsecurity patches within a documented window, compliance severity levels\nthat surface unpatched instances in the compliance dashboard, patch\ngroups keyed by `Patch Group` tag, and maintenance window tasks that\nreference the correct document (`AWS-RunPatchBaseline`) with the correct\nparameters. Runs deterministic pre-checks before any state-changing\nCLI, emits the exact `create-patch-baseline`,\n`register-patch-baseline-for-patch-group`, and maintenance window\nregistration CLIs behind a CONFIRM gate, and verifies the deployment via\n`describe-patch-baseline` and `describe-instance-patch-states`. Every\nbaseline plan surfaces the operating system, approval rule matrix, patch\ngroup tag key, and the default-vs-custom baseline selection.\n\n## Quick navigation\n\n| Section | What it covers | When to read it |\n|---|---|---|\n| **Quick reference** | Verdict thresholds + pre-check priority order + baseline config matrix | Before any operation |\n| **Mindset** | Why defaults matter; Patch Manager silent-failure modes; overwrite traps | Understanding the deployment model |\n| **Pre-flight** | Baseline metadata gate — OS, approval rules, patch group tags, instance roles | Before executing any CLI |\n| **Process** | Per-operation planning: create baseline, register patch group, maintenance window | When choosing which operation |\n| **Common patterns** | Amazon Linux 2023 \u002F Windows auto-approve \u002F macOS \u002F maintenance window boilerplate | Boilerplate lookup |\n| **STRICT output contract** | Required BASELINE\u002FVERDICT\u002FPRE_CHECKS\u002FSTEPS\u002FPOST_VERIFY block | Formatting the response |\n| **NEVER (top 5)** | Hard rules that prevent common insecure patterns | Review before deploy |\n| **Expert heuristic** | Choosing auto-approve delay (0 vs N days) per environment | Choosing approval strategy |\n\n## Quick reference — verdict thresholds\n\n| Verdict | Trigger condition | Action |\n|---|---|---|\n| `PREREQUISITES_MISSING` | Any pre-check failed (unsupported OS, approval rule missing required fields, patch group tag key not `Patch Group`, instance profile missing AmazonSSMManagedInstanceCore, maintenance window not found, IAM permission missing, baseline name collision on create) | List failures, do NOT execute |\n| `READY_TO_DEPLOY` | All pre-checks passed; awaiting CONFIRM gate | Emit exact CLI sequence with full baseline config, wait for operator yes |\n\n**Priority order for pre-checks (apply in this sequence, all must pass for\nREADY_TO_DEPLOY):**\n\n1. **Baseline name uniqueness** — `describe-patch-baselines` returns no\n   custom baseline with the target name (for create) or matches exactly\n   one (for update).\n2. **Operating system support** — the `OperatingSystem` is one of\n   `AMAZON_LINUX_2023`, `AMAZON_LINUX_2`, `AMAZON_LINUX`, `UBUNTU_22.04`,\n   `UBUNTU_20.04`, `DEBIAN_11`, `DEBIAN_12`, `REDHAT_ENTERPRISE_LINUX_8`,\n   `REDHAT_ENTERPRISE_LINUX_9`, `WINDOWS_SERVER`, `MACOS`, `SUSE`,\n   `CENTOS_7`, `ORACLE_LINUX_8`, `ROCKY_LINUX_9`, `ALMA_LINUX_9`,\n   `RASPBIAN`.\n3. **Approval rule completeness** — each approval rule has\n   `ApproveAfterDays` (0-100), `ComplianceLevel` (`CRITICAL`, `HIGH`,\n   `MEDIUM`, `LOW`, `INFORMATIONAL`, `UNSPECIFIED`), and at least one\n   `PatchFilter` (product, classification, severity).\n4. **Approval rule product** — the product matches the OS (e.g.,\n   `Amazon Linux 2023` for `AMAZON_LINUX_2023`, `Ubuntu2204` for\n   `UBUNTU_22.04`). Mismatched product = zero patches matched.\n5. **Patch filter classification** — classification values are valid for\n   the OS (e.g., `Security`, `Bugfix`, `Enhancement`, `Recommended`,\n   `Newpackage`). Invalid classifications silently match nothing.\n6. **Patch filter severity** — severity values are valid for the OS\n  (e.g., `Critical`, `Important`, `Medium`, `Low`). Windows uses\n  Microsoft severity; Linux uses distro severity.\n7. **Patch group tag key** — the tag key used for registration is\n   exactly `Patch Group` (case-sensitive). AWS Patch Manager looks up\n   instances by this tag key only.\n8. **Patch group tag value format** — the tag value matches\n   `[A-Za-z0-9:_-]{1,255}` and does not contain spaces or special\n   characters.\n9. **Instance role** — the SSM instance profile attached to target\n   EC2\u002FmacOS instances includes `AmazonSSMManagedInstanceCore`\n   (and `AmazonSSMPatchAssociation` for association execution).\n10. **Maintenance window existence** — if maintenance window integration\n    is requested, the window ID exists and is in the same account\u002Fregion.\n11. **Maintenance window task document** — the task document is\n    `AWS-RunPatchBaseline` (or `AWS-ApplyPatchBaseline` for Windows\n    offline patching). The `Operation` parameter is `Scan` or `Install`.\n12. **Compliance level consistency** — the `ComplianceLevel` on approval\n    rules is not `UNSPECIFIED` for production baselines (UNSPECIFIED =\n    no compliance reporting).\n13. **Rejected patches** — if `RejectedPatches` are listed, the\n    `RejectedPatchesAction` is `BLOCK_AS_PENDING` (default) or\n    `ALLOW_AS_DEPENDENCY`.\n14. **IAM permissions** — the operator principal holds\n    `ssm:CreatePatchBaseline`, `ssm:RegisterPatchBaselineForPatchGroup`,\n    `ssm:RegisterTargetWithMaintenanceWindow`, and\n    `ssm:RegisterTaskWithMaintenanceWindow` (as applicable).\n\n**SSM Patch Manager limits (2026):**\n\n- Patch baselines per account (default): 1000 (soft limit).\n- Patch groups per account: 10000 (soft limit).\n- Approval rules per baseline: 1 (operating-system level) — can contain\n  multiple `PatchFilters` entries.\n- Patch filters per approval rule: 1-100.\n- Rejected patches per baseline: 1-1000.\n- One patch group registration per baseline (default baseline per OS\n  per account).\n- Maintenance windows per account: 1000 (soft).\n\n## Mindset\n\n**One-line takeaway:** SSM Patch Manager silently matches zero patches\nwhen approval rules are misconfigured. A baseline for `AMAZON_LINUX_2023`\nwith a product filter of `Amazon Linux 2` will deploy cleanly — but no\npatches will ever be approved, and the compliance dashboard will show\nevery instance as compliant (zero missing patches). The skill enforces\nproduct-OS matching at the pre-check gate.\n\nDriven by three Patch Manager realities:\n\n- **Approval rules match patches by product, classification, and\n  severity.** If the product does not match the OS, zero patches match.\n  If the classification is misspelled (`Security` vs `security`), zero\n  patches match. The pre-flight gate verifies product-OS alignment and\n  classification casing.\n\n- **Patch groups are looked up by the `Patch Group` tag key.** The tag\n  key is case-sensitive (`Patch Group`, not `patch-group`). Instances\n  without the tag are never patched regardless of baseline registration.\n\n- **Maintenance window tasks must use `AWS-RunPatchBaseline`.** Using\n  `AWS-RunShellScript` or a custom document with patch parameters does\n  not update the compliance dashboard. The skill verifies the document\n  name on every maintenance window task.\n\n## Pre-flight: patch baseline metadata gate\n\nRun before classification. Misclassifying these produces wrong plans.\n\n**Pagination:** `describe-patch-baselines` returns at most 50 per page\n(via `--max-results`). Use `--next-token` to drain.\n\n**Live-account pre-flight (skip if offline plan audit):**\n1. `aws ssm describe-patch-baselines --operating-system \u003Cos>\n   --max-results 50` — confirm the baseline name does not collide (for\n   create) or matches (for update).\n2. `aws ssm describe-patch-baselines --operating-system \u003Cos>\n   --filters Key=OWNER,Values=AWS` — check the default AWS baseline for\n   the OS (to decide default-vs-custom).\n3. `aws ec2 describe-instances --filters \"Name=tag:Patch\n   Group,Values=\u003Cpatch-group>\"` — confirm instances exist with the tag.\n4. `aws iam list-instance-profiles` — confirm the target instance\n   profile includes `AmazonSSMManagedInstanceCore`.\n5. `aws ssm describe-maintenance-windows --window-id \u003Cid>` — for\n   maintenance window integration, confirm the window exists.\n6. `aws ssm describe-instance-patch-states --instance-ids \u003Cids>` —\n   baseline snapshot of current patch compliance.\n\n**Malformed input:** if the baseline spec is missing required fields\n(`Name`, `OperatingSystem`, or `ApprovalRules`), emit `VERDICT:\nPREREQUISITES_MISSING` with `REASON: Baseline spec missing required\nfield — Name, OperatingSystem, or ApprovalRules. Cannot plan.` and\n`REMEDIATION: Provide the full baseline configuration per\nhttps:\u002F\u002Fdocs.aws.amazon.com\u002Fsystems-manager\u002Flatest\u002Fuserguide\u002Fpatch-manager-create-baseline.html.`\n\n| Attribute | Effect on operation |\n|---|---|\n| OS not in supported list | API rejects. PREREQUISITES_MISSING. |\n| Product mismatched to OS | Zero patches matched. PREREQUISITES_MISSING. |\n| Classification case-sensitive error | Zero patches matched. PREREQUISITES_MISSING. |\n| Patch Group tag key not exact `Patch Group` | Instances never patched. PREREQUISITES_MISSING. |\n| Instance role missing AmazonSSMManagedInstanceCore | SSM agent cannot register. PREREQUISITES_MISSING. |\n| ComplianceLevel UNSPECIFIED | No compliance reporting. Flag in NOTES. |\n| Maintenance window task not AWS-RunPatchBaseline | Compliance not updated. PREREQUISITES_MISSING. |\n| ApproveAfterDays > 100 | API rejects. PREREQUISITES_MISSING. |\n\n## Process — operation planning (apply in order)\n\n### Step 0: Expert knowledge — non-obvious Patch Manager behaviors\n\nStep-0 expert behaviors moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) —\nload when a plan hinges on default-baseline, approval-rule, or product-filter semantics.\n\n### Step 1: Pre-check gate — PREREQUISITES_MISSING if any check fails\n\nRun ALL of the following pre-checks. If ANY fails, the verdict is\nPREREQUISITES_MISSING with the failed checks enumerated in PRE_CHECKS.\nDo NOT execute.\n\n**For ALL operations:**\n1. Baseline name is set, \u003C= 128 chars, matches `[a-zA-Z0-9_.-]+`.\n2. `OperatingSystem` is in the supported list.\n3. IAM principal holds the relevant `ssm:` permission.\n\n**For create-patch-baseline:**\n4. Baseline name does not collide with an existing custom baseline.\n5. `ApprovalRules` contains at least one `PatchRule`.\n6. Each `PatchRule` has `ApproveAfterDays` in range 0-100.\n7. Each `PatchRule` has `ComplianceLevel` set to a non-UNSPECIFIED value\n   for production baselines.\n8. Each `PatchRule.PatchFilterGroup` has product matching the OS.\n9. Classification values are valid and correctly cased for the OS.\n10. Severity values are valid for the OS.\n11. `RejectedPatchesAction` is `BLOCK_AS_PENDING` or\n    `ALLOW_AS_DEPENDENCY` (if rejected patches are listed).\n\n**For register-patch-baseline-for-patch-group:**\n12. The `Patch Group` tag key is used (case-sensitive).\n13. The patch group value matches `[A-Za-z0-9:_-]{1,255}`.\n14. The baseline ID exists and is for the correct OS.\n15. At least one instance exists with the `Patch Group` tag value\n    (checked via `ec2:describe-instances` if live).\n\n**For register-target-with-maintenance-window:**\n16. The maintenance window ID exists.\n17. The `Targets` use the `Patch Group` tag or resource groups.\n18. The `OwnerInformation` (if set) does not contain secrets.\n\n**For register-task-with-maintenance-window:**\n19. The task document is `AWS-RunPatchBaseline` (or\n    `AWS-ApplyPatchBaseline` for Windows offline).\n20. The `TaskParameters` include `Operation: Scan` or\n    `Operation: Install`.\n21. `MaxConcurrency` and `MaxErrors` are set (not omitted — defaults\n    may be too aggressive for production).\n22. The `CloudWatchOutputConfig` is enabled for audit logging.\n\n### Step 2: READY_TO_DEPLOY — emit deployment plan\n\nIf all pre-checks pass, emit `VERDICT: READY_TO_DEPLOY` with the exact\nCLI sequence and the CONFIRM gate. The plan includes:\n\n- The exact `aws ssm create-patch-baseline` CLI with the full config\n  (OperatingSystem, ApprovalRules, GlobalFilters, RejectedPatches,\n  Sources, Description, Tags).\n- The follow-up `register-patch-baseline-for-patch-group` CLI for each\n  patch group.\n- The follow-up `register-target-with-maintenance-window` CLI for\n  maintenance window integration.\n- The follow-up `register-task-with-maintenance-window` CLI with the\n  `AWS-RunPatchBaseline` document.\n- The CONFIRM gate prompt.\n\n### Step 3: Execute behind CONFIRM gate\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing CLI\n  (`create-patch-baseline`, `register-patch-baseline-for-patch-group`,\n  `register-task-with-maintenance-window`), emit:\n  `CONFIRM: About to \u003Coperation> \u003Cresource> in account \u003Caccount>\n  region \u003Cregion>. This will \u003Cconsequence>. Proceed? (yes\u002Fno)`. Do NOT\n  execute until the operator confirms.\n- Snapshot the current baseline config before modification:\n  `aws ssm describe-patch-baseline --baseline-id \u003Cid> --output json\n  > \u002Ftmp\u002F\u003Cbaseline-name>-backup-$(date +%s).json`.\n- Execute the CLI with the full baseline config.\n\n### Step 4: Post-verification\n\nAfter the operation finishes, run post-verification:\n\n1. `describe-patch-baseline --baseline-id \u003Cid>` returns the expected\n   config (OperatingSystem, ApprovalRules, ComplianceLevel).\n2. `describe-patch-groups --operating-system \u003Cos>` returns the patch\n   group registered to this baseline.\n3. For maintenance window: `describe-maintenance-window-tasks --window-id\n   \u003Cid>` returns the `AWS-RunPatchBaseline` task with correct parameters.\n4. Trigger a `Scan` operation on one target instance:\n   `aws ssm send-command --document-name AWS-RunPatchBaseline\n   --parameters '{\"Operation\":[\"Scan\"]}' --targets \u003Ctargets>`.\n5. After scan completes: `describe-instance-patch-states --instance-ids\n   \u003Cid>` returns the expected patch count and compliance status.\n\n## Common baseline patterns (boilerplate)\n\nBoilerplate patterns moved to [references\u002Fworked-examples.md](references\u002Fworked-examples.md):\nAL2023, Windows, macOS baselines; maintenance-window Install task; air-gapped custom repository.\n\n## STRICT output contract\n\n### Required output structure\n\nEvery response MUST begin with this block — no preamble, no conversational\nopening:\n\n```text\nBASELINE: \u003Cbaseline-name>\nVERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING\nTARGET: \u003Cbaseline-name> (baseline-id: \u003Cid> for updates)\nPRE_CHECKS:\n  - [PASS] \u003Ccheck description>\n  - [FAIL] \u003Ccheck description> — \u003Creason>\nSTEPS:\n  1. CONFIRM: About to \u003Coperation> \u003Cresource> in account \u003Caccount> region \u003Cregion>. This will \u003Cconsequence>. Proceed? (yes\u002Fno)\n  2. \u003Cexact CLI command — no placeholders>\nPOST_VERIFY:\n  - [PASS] \u003Cverification description>\n  - [FAIL] \u003Cverification description> — \u003Creason>\nOPERATING_SYSTEM: AMAZON_LINUX_2023 | WINDOWS_SERVER | MACOS | UBUNTU_22.04 | ...\nAPPROVAL_RULES: \u003Ccount> rule(s) (classifications: \u003Clist>, auto-approve: \u003CN> days)\nCOMPLIANCE_LEVEL: CRITICAL | HIGH | MEDIUM | LOW\nPATCH_GROUPS: \u003Ccount> registered (values: \u003Clist>)\nMAINTENANCE_WINDOW: \u003Cwindow-id> | NONE\nINSTANCE_ROLE: AmazonSSMManagedInstanceCore | MISSING\nNOTES: \u003Cpatching posture, approval strategy, compliance caveats>\n```\n\n### FORBIDDEN output patterns\n\n- NEVER start with \"Let me analyze…\" or \"I'll create…\" — the VERDICT\n  block is the FIRST line, always. No conversational preamble.\n- NEVER use lowercase verdict values — emit `READY_TO_DEPLOY` or\n  `PREREQUISITES_MISSING`.\n- NEVER omit PRE_CHECKS — every pre-check run must appear with `[PASS]`\n  or `[FAIL]` and a specific reason for each failure.\n- NEVER emit a plan with placeholder values in a READY_TO_DEPLOY plan —\n  every field must be populated with actual values from the input.\n- NEVER omit the CONFIRM gate as the first STEPS entry for any\n  state-changing operation.\n- NEVER claim success without verifying that the baseline was created\n  (via `describe-patch-baseline`).\n- NEVER put-update a baseline without snapshotting the existing config\n  first — updates to `ApprovalRules` overwrite silently.\n- NEVER silently allow a maintenance window task with a non-\n  `AWS-RunPatchBaseline` document — block it with a [FAIL] pre-check row.\n\n### Perfect example output\n\n```text\nBASELINE: al2023-prod-security\nVERDICT: READY_TO_DEPLOY\nTARGET: al2023-prod-security\nPRE_CHECKS:\n  - [PASS] Baseline name unique (no collision in describe-patch-baselines)\n  - [PASS] Operating System: AMAZON_LINUX_2023 is supported\n  - [PASS] Product filter Amazon Linux 2023 matches OS\n  - [PASS] Classification Security, Bugfix are valid for AL2023\n  - [PASS] Severity Critical, Important are valid\n  - [PASS] ApproveAfterDays: 7 (in range 0-100)\n  - [PASS] ComplianceLevel: CRITICAL (non-UNSPECIFIED)\n  - [PASS] Patch Group tag key is \"Patch Group\" (case-sensitive)\n  - [PASS] Instance role includes AmazonSSMManagedInstanceCore\n  - [PASS] IAM principal holds ssm:CreatePatchBaseline\nSTEPS:\n  1. CONFIRM: About to create-patch-baseline al2023-prod-security in account 111111111111 region us-east-1. This will CREATE a new baseline for AMAZON_LINUX_2023 with 7-day auto-approve on Security and Bugfix patches. Proceed? (yes\u002Fno)\n  2. aws ssm create-patch-baseline --name al2023-prod-security --operating-system AMAZON_LINUX_2023 --approval-rules '{\"PatchRules\":[{\"PatchFilterGroup\":{\"OperatingSystem\":\"AMAZON_LINUX_2023\",\"PatchFilters\":[{\"Key\":\"PRODUCT\",\"Values\":[\"Amazon Linux 2023\"]},{\"Key\":\"CLASSIFICATION\",\"Values\":[\"Security\",\"Bugfix\"]},{\"Key\":\"SEVERITY\",\"Values\":[\"Critical\",\"Important\"]}]},\"ApproveAfterDays\":7,\"ComplianceLevel\":\"CRITICAL\",\"EnableNonSecurity\":true}]}' --tags '[{\"Key\":\"Environment\",\"Value\":\"prod\"}]'\n  3. aws ssm register-patch-baseline-for-patch-group --baseline-id \u003Creturned-id> --patch-group al2023-prod-web\nPOST_VERIFY:\n  - (pending execution)\n  - describe-patch-baseline returns OperatingSystem=AMAZON_LINUX_2023, ApproveAfterDays=7\n  - describe-patch-groups returns al2023-prod-web registered to this baseline\nOPERATING_SYSTEM: AMAZON_LINUX_2023\nAPPROVAL_RULES: 1 rule (classifications: Security, Bugfix; auto-approve: 7 days)\nCOMPLIANCE_LEVEL: CRITICAL\nPATCH_GROUPS: 1 (al2023-prod-web)\nMAINTENANCE_WINDOW: NONE\nINSTANCE_ROLE: AmazonSSMManagedInstanceCore\nNOTES:\n  - ApproveAfterDays 7 means patches are approved 7 days after vendor release — balances freshness with soak time.\n  - EnableNonSecurity true also approves non-security updates matching the product filter.\n  - Register a maintenance window task (AWS-RunPatchBaseline Operation=Install) to actually install patches.\n```\n\n## NEVER (top 5)\n\nThese are the highest-impact, most-frequent failure modes in SSM Patch\nBaseline deployments. Violating any one of these is a security or\noperational regression.\n\n1. **NEVER create a baseline with a product filter that does not match\n   the operating system.** An `AMAZON_LINUX_2023` baseline with a\n   product of `Amazon Linux 2` matches zero patches — the compliance\n   dashboard shows all instances as compliant when they are not. The\n   pre-check gate verifies product-OS alignment.\n\n2. **NEVER register a patch group without verifying the instance role\n   includes `AmazonSSMManagedInstanceCore`.** Instances without the role\n   cannot register with SSM, cannot be patched, and will silently appear\n   as non-compliant with no actionable error. The pre-check gate\n   verifies the role on at least one instance in the patch group.\n\n3. **NEVER set `ComplianceLevel: UNSPECIFIED` on a production baseline.**\n   UNSPECIFIED means missing patches do not appear in the compliance\n   dashboard — you lose visibility into unpatched instances. Always use\n   CRITICAL, HIGH, or MEDIUM for production.\n\n4. **NEVER create a maintenance window task with a document other than\n   `AWS-RunPatchBaseline` for patching.** Using `AWS-RunShellScript` to\n   run `yum update` or `apt upgrade` does not report to the compliance\n   dashboard. The skill verifies the document name on every patch task.\n\n5. **NEVER register a custom baseline as the default for an OS without\n   understanding it replaces the AWS baseline for ALL instances.** The\n   default baseline applies to every instance of that OS in the account,\n   not just tagged ones. Only set a custom baseline as default when you\n   intend a fleet-wide override. Otherwise, register via patch groups.\n\n## Expert heuristic: choosing auto-approve delay\n\nThe right `ApproveAfterDays` is a function of environment, risk\ntolerance, and operational maturity — not a one-size-fits-all. The\nheuristic below resolves the trade-off deterministically.\n\n```\nEnvironment \u002F risk posture\n   ├─ Production, regulated (PCI\u002FHIPAA\u002FSOC2)?\n   │    └─ ApproveAfterDays: 3-7. Security patches soak 3-7 days in\n   │         pre-prod before auto-approving in prod. Pair with a\n   │         maintenance window for controlled installation windows.\n   │\n   ├─ Production, non-regulated?\n   │    └─ ApproveAfterDays: 7-14. Longer soak time for stability.\n   │         Critical security patches may need a separate rule with\n   │         ApproveAfterDays: 0 for emergency response.\n   │\n   ├─ Staging \u002F pre-prod?\n   │    └─ ApproveAfterDays: 1-3. Short soak time — catch breakages\n   │         before promoting to production.\n   │\n   └─ Development?\n        └─ ApproveAfterDays: 0. Immediate approval — keep dev instances\n             on the latest patches for testing compatibility.\n```\n\n**Decision rules:**\n- Default to `ApproveAfterDays: 7` for production. It is the safest\n  default that balances security urgency with operational stability.\n- For critical security patches, consider a separate approval rule with\n  `ApproveAfterDays: 0` and `ComplianceLevel: CRITICAL` — these are\n  emergency patches that should not wait.\n- Always pair `ApproveAfterDays` with a maintenance window. Without a\n  maintenance window, patches are approved but never installed.\n- `ComplianceLevel` should reflect operational urgency: CRITICAL for\n  production security patches, HIGH for important patches, MEDIUM for\n  the rest.\n- For air-gapped environments, set `ApproveAfterDays: 0` (the mirror\n  controls timing) and use custom `Sources` for the local repository.\n\nALWAYS emit `ComplianceLevel` as a non-UNSPECIFIED value for production\nbaselines. Without it, the compliance dashboard is blind to missing\npatches.\n\n## Recent AWS features (2024-2026)\n\n2024-2026 feature notes (macOS Patch Manager, AL2023 dnf, Sources,\ndashboard enhancements) moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## AWS documentation\n\n- **SSM Patch Manager Developer Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fsystems-manager\u002Flatest\u002Fuserguide\u002Fsystems-manager-patch.html\n- **Create a patch baseline** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fsystems-manager\u002Flatest\u002Fuserguide\u002Fpatch-manager-create-baseline.html\n- **About patch groups** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fsystems-manager\u002Flatest\u002Fuserguide\u002Fsysman-patch-patchgroups.html\n- **Maintenance windows** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fsystems-manager\u002Flatest\u002Fuserguide\u002Fsystems-manager-maintenance.html\n- **AWS-RunPatchBaseline document** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fsystems-manager\u002Flatest\u002Fuserguide\u002Fpatch-manager-ssm-documents.html\n- **SSM CLI reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fssm\u002F\n\n## References (load on demand)\n\n- [references\u002Fbaseline-config-and-approval-rules.md](references\u002Fbaseline-config-and-approval-rules.md) — Canonical per-OS baseline configurations and approval-rule patterns.\n- [references\u002Fpatch-groups-and-maintenance-windows.md](references\u002Fpatch-groups-and-maintenance-windows.md) — Patch group registration and maintenance-window integration detail.\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — Full CLI boilerplate for each OS archetype (moved from Common baseline patterns).\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — Step-0 expert Patch Manager behaviors and 2024-2026 feature notes (moved from SKILL.md).\n\n## Domain\n\nAWS CloudOps \u002F Management & Governance — SSM Patch Baseline Provisioning.\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":43},{"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,"invocation_schema":41,"supports_pipeline":38,"activation_triggers":42},"ssm, patch-baseline, management, patch-manager, maintenance-window, deploy, compliance, os-patching","1","Jacky Chan — AWS Community Builder","aws-cloudops","Management","0.1.0","SSM Patch Manager, Patch Baseline, patch baseline, approval rule, auto-approve, compliance level, patch group, tag-based targeting, maintenance window, operating system, Amazon Linux 2023, macOS patching, Windows Server, Ubuntu, RHEL, custom repository, SSM, Systems Manager, patch compliance, AmazonSSMManagedInstanceCore","deploy","high","false","capability","Creating or updating an SSM Patch Baseline (approval rules, operating system, classification, severity), registering a patch group for tag-based targeting, setting default vs custom baseline selection, integrating a patch baseline with a maintenance window (register targets and tasks), or configuring custom repositories for Amazon Linux 2023, RHEL, Ubuntu, Windows, or macOS patching.","aws-orchestrator","true","READY_TO_DEPLOY | PREREQUISITES_MISSING","active","Input: either (a) a patch baseline deployment intent (create or update) with target operating system, approval rules (classification, severity, auto-approve days, compliance level), patch group, and optional maintenance window integration; OR (b) a baseline ID for live-account update or validation. Output: deterministic BASELINE\u002FVERDICT\u002FPRE_CHECKS\u002FSTEPS\u002FPOST_VERIFY block per operation, where VERDICT is one of READY_TO_DEPLOY, PREREQUISITES_MISSING.","create patch baseline, provision SSM patch baseline, deploy patch baseline, approval rule patching, auto-approve patches, patch group, register patch baseline, maintenance window patching, Amazon Linux 2023 patches, macOS patching SSM, Windows Server patch baseline, Ubuntu patch baseline, RHEL patch baseline, custom repository patching, patch compliance severity, ssm create-patch-baseline, register-patch-baseline-for-patch-group, default patch baseline","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 ssm create-patch-baseline, update-patch-baseline, register-patch-baseline-for-patch-group, describe-patch-baseline, describe-instance-patch-states, register-target-with-maintenance-window, register-task-with-maintenance-window (AWS CLI v2, SSO or key-based credentials).","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fssm-patch-baseline-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":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill ssm-patch-baseline-deployer",{"tool":58,"command":59},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill ssm-patch-baseline-deployer",{"tool":61,"command":62},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill ssm-patch-baseline-deployer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fssm-patch-baseline-deployer\u002FSKILL.md",true,[66,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,140],{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",9423,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fssm-patch-baseline-deployer\u002Feval\u002Ftest-cases.yaml",{"path":73,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":74,"sourceHtmlUrl":75},"evals\u002Fbaselines\u002Fdeploy-al2023-baseline-ready.md",679,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fssm-patch-baseline-deployer\u002Fevals\u002Fbaselines\u002Fdeploy-al2023-baseline-ready.md",{"path":77,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":78,"sourceHtmlUrl":79},"evals\u002Fbaselines\u002Fdeploy-al2023-wrong-product-filter-blocked.md",713,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fssm-patch-baseline-deployer\u002Fevals\u002Fbaselines\u002Fdeploy-al2023-wrong-product-filter-blocked.md",{"path":81,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":82,"sourceHtmlUrl":83},"evals\u002Fbaselines\u002Fdeploy-macos-baseline-missing-instance-role.md",678,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fssm-patch-baseline-deployer\u002Fevals\u002Fbaselines\u002Fdeploy-macos-baseline-missing-instance-role.md",{"path":85,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":86,"sourceHtmlUrl":87},"evals\u002Fbaselines\u002Fdeploy-patch-group-maintenance-window-ready.md",734,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fssm-patch-baseline-deployer\u002Fevals\u002Fbaselines\u002Fdeploy-patch-group-maintenance-window-ready.md",{"path":89,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":90,"sourceHtmlUrl":91},"evals\u002Fbaselines\u002Fdeploy-windows-auto-approve-ready.md",647,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fssm-patch-baseline-deployer\u002Fevals\u002Fbaselines\u002Fdeploy-windows-auto-approve-ready.md",{"path":93,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":94,"sourceHtmlUrl":95},"evals\u002Feval_config.yaml",2085,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fssm-patch-baseline-deployer\u002Fevals\u002Feval_config.yaml",{"path":97,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":98,"sourceHtmlUrl":99},"evals\u002Fevals.json",4991,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fssm-patch-baseline-deployer\u002Fevals\u002Fevals.json",{"path":101,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":102,"sourceHtmlUrl":103},"evals\u002Fprompts\u002Fdeploy-al2023-baseline-ready.md",1113,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fssm-patch-baseline-deployer\u002Fevals\u002Fprompts\u002Fdeploy-al2023-baseline-ready.md",{"path":105,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":106,"sourceHtmlUrl":107},"evals\u002Fprompts\u002Fdeploy-al2023-wrong-product-filter-blocked.md",1023,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fssm-patch-baseline-deployer\u002Fevals\u002Fprompts\u002Fdeploy-al2023-wrong-product-filter-blocked.md",{"path":109,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":110,"sourceHtmlUrl":111},"evals\u002Fprompts\u002Fdeploy-macos-baseline-missing-instance-role.md",1011,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fssm-patch-baseline-deployer\u002Fevals\u002Fprompts\u002Fdeploy-macos-baseline-missing-instance-role.md",{"path":113,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":114,"sourceHtmlUrl":115},"evals\u002Fprompts\u002Fdeploy-patch-group-maintenance-window-ready.md",934,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fssm-patch-baseline-deployer\u002Fevals\u002Fprompts\u002Fdeploy-patch-group-maintenance-window-ready.md",{"path":117,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":118,"sourceHtmlUrl":119},"evals\u002Fprompts\u002Fdeploy-windows-auto-approve-ready.md",1190,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fssm-patch-baseline-deployer\u002Fevals\u002Fprompts\u002Fdeploy-windows-auto-approve-ready.md",{"path":121,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":122,"sourceHtmlUrl":123},"examples\u002FREADME.md",8254,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fssm-patch-baseline-deployer\u002Fexamples\u002FREADME.md",{"path":125,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":126,"sourceHtmlUrl":127},"references\u002Fadvanced-patterns.md",5227,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fssm-patch-baseline-deployer\u002Freferences\u002Fadvanced-patterns.md",{"path":129,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":130,"sourceHtmlUrl":131},"references\u002Fbaseline-config-and-approval-rules.md",6621,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fssm-patch-baseline-deployer\u002Freferences\u002Fbaseline-config-and-approval-rules.md",{"path":133,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":134,"sourceHtmlUrl":135},"references\u002Fpatch-groups-and-maintenance-windows.md",5801,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fssm-patch-baseline-deployer\u002Freferences\u002Fpatch-groups-and-maintenance-windows.md",{"path":137,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":138,"sourceHtmlUrl":139},"references\u002Fworked-examples.md",4482,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fssm-patch-baseline-deployer\u002Freferences\u002Fworked-examples.md",{"path":141,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":142,"sourceHtmlUrl":143},"skill.usf.yaml",4613,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fssm-patch-baseline-deployer\u002Fskill.usf.yaml",[145,152,159,166,173,180],{"skillNo":146,"name":147,"nameZh":6,"description":148,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":149,"categories":150,"keywords":151,"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":153,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":156,"categories":157,"keywords":158,"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":160,"name":161,"nameZh":6,"description":162,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":163,"categories":164,"keywords":165,"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":167,"name":168,"nameZh":6,"description":169,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":170,"categories":171,"keywords":172,"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":174,"name":175,"nameZh":6,"description":176,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":177,"categories":178,"keywords":179,"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":181,"name":182,"nameZh":6,"description":183,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":184,"categories":185,"keywords":186,"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",[],[]]