[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A42HCTFEXRTXMBWF2M1NZD":3,"skill-same:01M7A42HCTFEXRTXMBWF2M1NZD":154},{"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},"01M7A42HCTFEXRTXMBWF2M1NZD","backup-vault-operator",null,"Operates AWS Backup vault lifecycles — creates vaults with KMS encryption and tags, applies vault locks (compliance WORM vs governance soft lock with MinRetentionDays \u002F MaxRetentionDays \u002F ChangeableForDays), authors backup plans (schedule, cold-storage lifecycle, cross-region copy), manages selections (tag-based, resource-ARN, Conditions), starts restore jobs (PITR, cross-region, restore-to-new), and operates latest features (continuous backups for EC2 PITR, Backup Search, AWS Backup for FSx). Runs pre-checks (KMS key enabled, vault lock state, IAM permissions, recovery point COMPLETED), emits the exact backup:create-backup-vault \u002F put-backup-vault-lock-configuration \u002F create-backup-plan \u002F start-restore-job CLI behind a CONFIRM gate, and verifies state post-apply. Emits a verdict (READY | BLOCKED | COMPLETED). Use when creating a vault, locking for compliance (CIS 3.6, NIST CP-9), scheduling cross-region DR, running a PITR restore drill, diagnosing a failed job, or enabling continuous backups.","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\u002Fbackup-vault-operator\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: backup-vault-operator\ndescription: Operates AWS Backup vault lifecycles — creates vaults with KMS encryption and tags, applies vault locks (compliance WORM vs governance soft lock with MinRetentionDays \u002F MaxRetentionDays \u002F ChangeableForDays), authors backup plans (schedule, cold-storage lifecycle, cross-region copy), manages selections (tag-based, resource-ARN, Conditions), starts restore jobs (PITR, cross-region, restore-to-new), and operates latest features (continuous backups for EC2 PITR, Backup Search, AWS Backup for FSx). Runs pre-checks (KMS key enabled, vault lock state, IAM permissions, recovery point COMPLETED), emits the exact backup:create-backup-vault \u002F put-backup-vault-lock-configuration \u002F create-backup-plan \u002F start-restore-job CLI behind a CONFIRM gate, and verifies state post-apply. Emits a verdict (READY | BLOCKED | COMPLETED). Use when creating a vault, locking for compliance (CIS 3.6, NIST CP-9), scheduling cross-region DR, running a PITR restore drill, diagnosing a failed job, or enabling continuous backups.\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 backup create-backup-vault, put-backup-vault-lock-configuration, create-backup-plan, create-backup-selection, start-backup-job, start-restore-job, describe-backup-job, describe-restore-job, list-recovery-points-by-backup-vault, list-backup-plans, list-backup-selections, get-backup-plan-from-json, describe-backup-vault...\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: Storage\n  task_type: operate\n  skill_class: capability\n  lifecycle_status: active\n  verdict_shape: READY | BLOCKED | COMPLETED\n  when_to_use: Creating or locking a backup vault (compliance vs governance mode), authoring backup plans (schedule, lifecycle, cross-region copy), building backup selections (by tag, resource ID, conditions), starting point-in-time or cross-region restores, running restore drills, diagnosing failed backup jobs or stuck restore jobs, enabling continuous backups for EC2 PITR, deploying AWS Backup for FSx, or using Backup Search across recovery points.\n  activation_triggers: create AWS Backup vault, lock backup vault, compliance mode backup vault, governance mode backup vault, WORM backup vault, retention lock, create backup plan, backup policy, backup selection by tag, cross-region copy backup, point-in-time recovery, continuous backup EC2, restore from backup, cross-region restore, start restore job, diagnose failed backup job, Backup Search, AWS Backup for FSx\n  invocation_schema: 'Input: either (a) a backup operation intent (create-vault, lock-vault, create-plan, create-selection, start-backup, start-restore, enable-pitr, diagnose) with target vault name, KMS key ARN, schedule, retention window, and resource scope; OR (b) an existing vault name + recovery point ID for live-account restore or diagnosis. Output: deterministic OPERATION\u002FVERDICT\u002FPRE_CHECKS\u002FSTEPS\u002FPOST_VERIFY block per operation, where VERDICT is one of READY, BLOCKED, COMPLETED.'\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  keywords: AWS Backup, backup vault, vault lock, compliance mode, governance mode, WORM, retention lock, backup plan, backup policy, backup selection, tag-based backup, cross-region copy, lifecycle, cold storage, point-in-time recovery, PITR, continuous backup, EC2 PITR, Backup Search, Amazon FSx backup, recovery point, restore job, cross-region restore, backup reports, backup compliance, KMS encryption, backup vault KMS\n  tags: aws-backup, storage, operate, vault-lock, backup-plan, backup-selection, restore, pitr, compliance-mode, kms, cross-region-copy, fsx, backup-search\n---\n\n# Backup Vault Operator\n\n## What this skill does\n\nExecutes AWS Backup vault operations correctly and safely — vault\ncreation, vault lock (compliance vs governance), backup plans, backup\nselections, restore jobs, and report auditing. Runs deterministic\npre-checks before any state-changing CLI, emits the exact\n`backup:*` CLI sequence behind a CONFIRM gate, and verifies recovery\npoints and restore job state after apply. Every operation surfaces the\nmode (compliance vs governance), retention window, and the\nimmutability posture so the operator knows what is reversible.\n\n## Quick navigation\n\n| Section | What it covers | When to read it |\n|---|---|---|\n| **§ Quick reference** | Verdict thresholds + pre-check priority + recovery time baselines | Before any operation |\n| **§ Mindset** | Compliance-vs-governance lock, PITR vs snapshot, vault-region binding | Understanding the safety model |\n| **§ Pre-flight** | Vault\u002FKMS\u002FIAM metadata gate | Before executing any CLI |\n| **§ Process** | Per-operation planning: vault, lock, plan, selection, restore, PITR, diagnose | When choosing which operation |\n| **§ Common patterns** | Vault create, compliance lock, plan with cross-region copy, PITR enable, restore drill | Boilerplate lookup |\n| **§ Output format** | Structured output template with VERDICT, COMMANDS, POST_VERIFY | Formatting the response |\n| **§ Anti-Patterns** | NEVER list — common mistakes | Review before risky operations |\n\n## Quick reference — verdict thresholds\n\n| Verdict | Trigger condition | Action |\n|---|---|---|\n| `BLOCKED` | One or more pre-checks failed (KMS key disabled, vault already in compliance lock, IAM `backup:StartBackupJob` missing, no recovery point in target vault, region mismatch, overlapping backup selection) | List failures, do NOT execute |\n| `READY` | All pre-checks passed; awaiting CONFIRM gate | Emit exact CLI sequence, wait for operator yes |\n| `COMPLETED` | Operation applied and post-verification passed (recovery point generated, restore job COMPLETED, vault lock configuration reflected, backup plan ARN returned) | Emit describe output, lock state, retention window |\n\n**Priority order for pre-checks (all must pass for READY):**\n\n1. **Vault exists and is reachable** — `describe-backup-vault` returns\n   the vault in the same account+region as the operation.\n2. **KMS key state** — `kms describe-key` returns `Enabled` (not\n   `Disabled` \u002F `PendingDeletion`); key policy grants\n   `kms:GenerateDataKey` and `kms:Decrypt` to\n   `backup.\u003Cregion>.amazonaws.com`.\n3. **Vault lock state** — `describe-backup-vault` `VaultLock` shows\n   whether compliance mode is active. If `LockState: LOCKED` in\n   compliance mode, the retention window is immutable — pre-check must\n   flag any operation that would shorten retention or change the lock.\n4. **IAM permissions** — caller has `backup:CreateBackupVault`,\n   `PutBackupVaultLockConfiguration`, `CreateBackupPlan`,\n   `CreateBackupSelection`, `StartBackupJob`, `StartRestoreJob` as\n   appropriate.\n5. **Resource assignment scope** — `list-backup-selections` shows no\n   overlapping tag-based selections (overlap is allowed but generates\n   duplicate recovery points).\n6. **Region coverage** — for cross-region copy, the destination region\n   has a vault with KMS key.\n7. **Recovery point presence** — for restore, the recovery point ARN\n   exists in the target vault and is `COMPLETED` (not `DELETED` or\n   `EXPIRED`).\n\n**Recovery time baselines (2026):**\n- Snapshot backup: 5-30 min for EBS, 15-60 min for RDS, depending on\n  size.\n- Continuous backup (PITR) restore: seconds to minutes for EC2 within\n  the 35-day window.\n- Cross-region copy: minutes to hours depending on data size and\n  inter-region bandwidth.\n- Cold (GLACIER) restore: 3-5 hours (Standard), 1-5 min (Expedited),\n  5-12 hours (Bulk).\n\n## Mindset\n\nThree AWS Backup realities drive every operation:\n\n- **Compliance mode is irreversible.** Once `PutBackupVaultLockConfiguration`\n  is applied with `Mode: COMPLIANCE`, the vault cannot be deleted until\n  the retention window expires, and retention can only be lengthened.\n  Even the root account cannot bypass it. Treat compliance lock as a\n  one-way door — confirm the retention window before applying. The\n  `ChangeableForDays` parameter provides a grace window (max 72 hours\n  from initial lock) during which the lock can be removed; after that,\n  it is permanent.\n\n- **PITR requires continuous backups, not snapshots.** Point-in-time\n  recovery for EC2 and RDS requires the backup plan rule to set\n  `RecoveryPointTier: CONTINUOUS` (for EC2, via the\n  `aws:backup:request-continuous-backup` condition; for RDS, via\n  `BackupPlan.AdvancedBackupSettings`). Snapshot-only plans do NOT\n  support PITR. Operators frequently enable continuous backups via the\n  console without realizing the underlying rule type changed — verify\n  via `describe-backup-plan` `Rules[].ContinuousBackup`.\n\n- **Vaults are region-bound.** A backup vault exists in exactly one\n  region. Cross-region copy creates a separate recovery point in the\n  destination region's vault; it does NOT replicate the vault itself.\n  Restoring cross-region requires the destination vault, the\n  destination region's KMS key, and the destination IAM permissions.\n\n## Pre-flight: vault\u002FKMS\u002FIAM metadata gate\n> Moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — load on demand.\n\n\n## Process — operation planning (apply in order)\n\n### Step 0: Expert knowledge — non-obvious AWS Backup behaviors\n> Moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\n\n\n### Step 1: Pre-check gate — BLOCKED if any check fails\n\nRun ALL pre-checks. If ANY fails, verdict is BLOCKED with failures in\nPRE_CHECKS. Do NOT execute.\n\n> Moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — load on demand.\n\nCondensed per-operation gate — every branch, one line each (full verbatim listing:\n[references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md)):\n\n- ALL operations: vault name spelled correctly (case-sensitive); vault exists in the same account+region; IAM role holds the required `backup:*` permission.\n- create-vault: KMS key ARN exists and `Enabled`; key policy grants `kms:GenerateDataKey` + `kms:Decrypt` to `backup.\u003Cregion>.amazonaws.com`; vault name not already in use.\n- vault lock (COMPLIANCE): not already COMPLIANCE-locked (unless lengthening `MaxRetentionDays`); `MaxRetentionDays` >= longest retention of any plan writing to the vault; `MinRetentionDays` >= oldest recovery point age; `ChangeableForDays` \u003C= 3.\n- create-plan: `StartWindowMinutes`\u002F`CompletionWindowMinutes` within service limits; cross-region destination region has a vault with KMS key; `MoveToColdStorageAfterDays` \u003C `DeleteAfterDays`; CRON or `rate()` schedule, timezone UTC.\n- create-selection: plan exists; at least one of `ListOfTags`\u002F`Resources`\u002F`Conditions` populated; `RoleArn` exists and is trusted; overlapping tag-based selections = INFO warning, not BLOCKED.\n- start-backup (manual): resource ARN exists; backup vault exists and is reachable; IAM role for the selection exists.\n- start-restore: recovery point `Status: COMPLETED` and not expired; `Metadata` includes type-specific fields (EC2 `InstanceId`, RDS `NewDBInstanceIdentifier`); cross-region destination IAM verified; PITR continuous backup enabled.\n- diagnose: `describe-backup-job` returns the job; `describe-backup-vault` reflects current state; CloudTrail `StartBackupJob`\u002F`StartCopyJob`\u002F`StartRestoreJob` events within last 7 days.\n\n### Step 2: READY — emit operation plan\n\nEmit `VERDICT: READY` with exact CLI sequence + CONFIRM gate:\n- Exact AWS CLI command with all flags populated.\n- Expected duration (snapshot time, cold-storage restore time).\n- Expected side-effects (new recovery point, new restored resource,\n  locked vault).\n- CONFIRM gate prompt.\n\n### Step 3: Execute behind CONFIRM gate\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing CLI\n  (`create-backup-vault`,\n  `put-backup-vault-lock-configuration`,\n  `create-backup-plan`, `create-backup-selection`,\n  `start-backup-job`, `start-restore-job`,\n  `delete-backup-plan`, `delete-backup-selection`), emit CONFIRM prompt.\n  Do NOT execute until confirmed.\n- Snapshot current state: `describe-backup-vault --backup-vault-name\n  \u003Cname> --output json > \u002Ftmp\u002F\u003Cvault>-backup-$(date +%s).json` (for\n  lock changes); `list-recovery-points-by-backup-vault` for restore\n  inventory.\n- Execute the CLI.\n- For compliance-mode vault lock, validate the lock is in the grace\n  window (`ChangeableForDays`) if the operator wants the option to\n  reverse — after grace, the lock is irreversible.\n\n### Step 4: Post-verification — COMPLETED\n\nALL checks must pass for `COMPLETED`:\n1. For create-vault: `describe-backup-vault` returns the new vault\n   with `EncryptionKeyArn`, `NumberOfRecoveryPoints: 0`.\n2. For lock: `describe-backup-vault` returns `VaultLock.LockState:\n   LOCKED` with the expected `Mode`, `MinRetentionDays`,\n   `MaxRetentionDays`, `ChangeableForDays`.\n3. For plan: `describe-backup-plan` returns the plan with `Rules`\n   populated; `BackupPlanArn` returned.\n4. For selection: `list-backup-selections --backup-plan-id \u003Cid>`\n   returns the new selection with `SelectionId`.\n5. For start-backup: `describe-backup-job --backup-job-id \u003Cid>`\n   returns `State: COMPLETED` and `BackupSizeInBytes > 0`; recovery\n   point visible in `list-recovery-points-by-backup-vault`.\n6. For start-restore: `describe-restore-job --restore-job-id \u003Cid>`\n   returns `Status: COMPLETED` and `CreatedResourceArn` populated.\n7. For PITR enable: `describe-recovery-point` for the resource shows\n   `ContinuousBackup` set; verify `get-recovery-point-restore-metadata`\n   returns `PITR` enabled metadata.\n\nIf ANY verification fails, emit `VERDICT: ERROR` — do not claim COMPLETED.\n\n## Common patterns (boilerplate)\n\n### Create a backup vault with KMS encryption and tags\n> Moved verbatim to [references\u002Fcommon-patterns.md](references\u002Fcommon-patterns.md) — load on demand.\n\n\n### Apply vault lock in COMPLIANCE mode (WORM, immutable)\n> Moved verbatim to [references\u002Fvault-lock-and-compliance-guide.md](references\u002Fvault-lock-and-compliance-guide.md) — load on demand.\n\n\n### Apply vault lock in GOVERNANCE mode (soft, mutable by privileged)\n> Moved verbatim to [references\u002Fvault-lock-and-compliance-guide.md](references\u002Fvault-lock-and-compliance-guide.md) — load on demand.\n\n\n### Create a backup plan with schedule, lifecycle, cross-region copy\n> Moved verbatim to [references\u002Fcommon-patterns.md](references\u002Fcommon-patterns.md) — load on demand.\n\n\n### Create a backup selection by tag\n> Moved verbatim to [references\u002Fcommon-patterns.md](references\u002Fcommon-patterns.md) — load on demand.\n\n\n### Start a manual backup job\n> Moved verbatim to [references\u002Fcommon-patterns.md](references\u002Fcommon-patterns.md) — load on demand.\n\n\n### Start a point-in-time restore (PITR)\n> Moved verbatim to [references\u002Frestore-and-pitr-guide.md](references\u002Frestore-and-pitr-guide.md) — load on demand.\n\n\n### Enable continuous backup for EC2 PITR\n> Moved verbatim to [references\u002Frestore-and-pitr-guide.md](references\u002Frestore-and-pitr-guide.md) — load on demand.\n\n\n## Diagnostic flows\n> Moved verbatim to [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — load on demand.\n\n\n## Output format (per operation)\n\nThe response is a single block using the literal labels `OPERATION:`,\n`VAULT:`, `VERDICT:`, `PRE_CHECKS:`, `CHECKLIST:`, `STEPS:`,\n`POST_VERIFY:`, `STATE:`, and `NOTES:`. The CHECKLIST rows surface the\nbackup plan config (rule name, schedule, lifecycle, cross-region copy\naction) and the recovery point verification status so the operator\nsees the full posture in one read. See \"STRICT output contract\" below\nfor the enforced shape and worked examples.\n\n```text\nOPERATION: \u003Ccreate-vault | lock-vault | create-plan | create-selection | start-backup | start-restore | enable-pitr | diagnose>\nVAULT: \u003Cvault-name>\nVERDICT: READY | BLOCKED | COMPLETED\nPRE_CHECKS:\n  - [PASS|FAIL] \u003Ccheck description>\nCHECKLIST:\n  [✓|✗]  Vault lock mode        current: \u003CUNLOCKED | COMPLIANCE | GOVERNANCE>   recommended: \u003C...>\n  [✓|✗]  Backup plan rule       current: \u003Crule name, schedule CRON>             recommended: \u003C...>\n  [✓|✗]  Lifecycle              current: \u003CMoveToColdStorageAfterDays \u002F DeleteAfterDays>   recommended: \u003C...>\n  [✓|✗]  Cross-region copy      current: \u003Cnone | dest region + vault + lifecycle>         recommended: \u003C...>\n  [✓|✗]  KMS encryption         current: \u003Ckey ARN, KeyState>                                recommended: \u003C...>\n  [✓|✗]  Recovery points        current: \u003CN points, latest Status, latest CompletionDate>  recommended: \u003C...>\n  [✓|✗]  Selection scope        current: \u003Ctag-based | resource ARNs | conditions>           recommended: \u003C...>\nSTEPS:\n  1. CONFIRM: \u003Cprompt>\n  2. \u003CCLI command with flags populated>\nPOST_VERIFY:\n  - [PASS|FAIL] \u003Cverification description>\nSTATE: \u003Cvault lock state, recovery point status, restore job status after apply>\nNOTES: \u003Ccompliance vs governance rationale, retention window, recovery time estimate, cross-region copy caveats>\n```\n\n### Worked example — compliance vault with 7-year retention + cross-region DR copy (READY)\n\nThe canonical enterprise compliance pattern: a COMPLIANCE-mode locked\nvault with 7-year retention (2557 days) and a cross-region copy action\nto a DR vault in us-west-2. Copy the shape exactly.\n\n```text\nOPERATION: create-plan\nVAULT: prod-compliance-vault-7yr\nVERDICT: READY\nPRE_CHECKS:\n  - [PASS] Vault prod-compliance-vault-7yr exists in us-east-1 (NumberOfRecoveryPoints 0)\n  - [PASS] Vault currently UNLOCKED (VaultLock.LockState absent) — lock applied in prior step, see NOTES\n  - [PASS] Vault lock COMPLIANCE mode verified: MinRetentionDays 90, MaxRetentionDays 2557, ChangeableForDays 0 (past grace)\n  - [PASS] KMS key arn:aws:kms:us-east-1:111111111111:key\u002Fabcd1234-5678-90ef-1234-567890abcdef KeyState Enabled, KeyManager CUSTOMER\n  - [PASS] KMS key policy grants kms:GenerateDataKey, kms:Decrypt to backup.us-east-1.amazonaws.com\n  - [PASS] DR vault dr-compliance-vault exists in us-west-2 with KMS key arn:aws:kms:us-west-2:111111111111:key\u002Fefgh5678\n  - [PASS] Caller IAM role holds backup:CreateBackupPlan, backup:CreateBackupSelection\n  - [PASS] No overlapping tag-based selections for backup=compliance-daily\nCHECKLIST:\n  [✓]  Vault lock mode        current: COMPLIANCE (MinRetentionDays 90, MaxRetentionDays 2557)   recommended: keep (regulatory mandate CIS 3.6, SOX, HIPAA)\n  [✓]  Backup plan rule       current: ComplianceDailyRule, cron(0 5 ? * * *) UTC 05:00 daily    recommended: keep\n  [✓]  Lifecycle              current: MoveToColdStorageAfterDays 90, DeleteAfterDays 2557       recommended: keep (7-yr retention: 365.25 × 7 = 2557)\n  [✓]  Cross-region copy      current: dest us-west-2 \u002F dr-compliance-vault, DeleteAfterDays 2557   recommended: keep (DR + regulatory archive)\n  [✓]  KMS encryption         current: arn:aws:kms:us-east-1:111111111111:key\u002Fabcd1234, KeyState Enabled   recommended: keep\n  [✗]  Recovery points        current: 0 recovery points (vault newly created)                   recommended: confirm first recovery point COMPLETED within 24h\n  [✓]  Selection scope        current: tag-based backup=compliance-daily, env=prod               recommended: keep (auto-enrolls future tagged resources)\nSTEPS:\n  1. CONFIRM: About to create-backup-plan ComplianceDaily-7yr on vault\n     prod-compliance-vault-7yr in account 111111111111 region us-east-1.\n     This creates a daily backup plan with 90-day warm → cold storage\n     transition, 2557-day (7-year) delete, and a cross-region copy to\n     dr-compliance-vault in us-west-2 (also 2557-day retention). The\n     vault is COMPLIANCE-locked so retention can only lengthen. Proceed?\n     (yes\u002Fno)\n  2. aws backup create-backup-plan --backup-plan '{\n       \"BackupPlanName\": \"ComplianceDaily-7yr\",\n       \"Rules\": [\n         {\n           \"RuleName\": \"ComplianceDailyRule\",\n           \"TargetBackupVaultName\": \"prod-compliance-vault-7yr\",\n           \"ScheduleExpression\": \"cron(0 5 ? * * *)\",\n           \"StartWindowMinutes\": 480,\n           \"CompletionWindowMinutes\": 1440,\n           \"Lifecycle\": {\"MoveToColdStorageAfterDays\": 90, \"DeleteAfterDays\": 2557},\n           \"CopyActions\": [\n             {\n               \"DestinationBackupVaultArn\": \"arn:aws:backup:us-west-2:111111111111:backup-vault:dr-compliance-vault\",\n               \"Lifecycle\": {\"DeleteAfterDays\": 2557}\n             }\n           ]\n         }\n       ]\n     }'\n  3. aws backup create-backup-selection \\\n       --backup-plan-id \"$(aws backup list-backup-plans --query 'BackupPlansList[?BackupPlanName==`ComplianceDaily-7yr`].BackupPlanId' --output text)\" \\\n       --backup-selection '{\n         \"SelectionName\": \"compliance-tagged-daily\",\n         \"IamRoleArn\": \"arn:aws:iam::111111111111:role\u002FAWSBackupDefaultServiceRole\",\n         \"ListOfTags\": [{\"ConditionType\": \"STRINGEQUALS\", \"ConditionKey\": \"backup\", \"ConditionValue\": \"compliance-daily\"}],\n         \"Conditions\": {\"StringEquals\": {\"aws:ResourceTag\u002Fenv\": \"prod\"}}\n       }'\nPOST_VERIFY:\n  - (pending execution)\n  - aws backup describe-backup-plan --backup-plan-id \u003Cid> returns Rules[0].RuleName ComplianceDailyRule\n  - aws backup describe-backup-plan --backup-plan-id \u003Cid> returns Rules[0].CopyActions[0].DestinationBackupVaultArn referencing dr-compliance-vault in us-west-2\n  - aws backup list-backup-selections --backup-plan-id \u003Cid> returns selection compliance-tagged-daily\n  - After first run (~24h): aws backup list-recovery-points-by-backup-vault --backup-vault-name prod-compliance-vault-7yr returns Status COMPLETED, BackupSizeInBytes > 0\nSTATE: pending — plan and selection will be CREATED within ~30s; first recovery point within 24h (next cron tick)\nNOTES:\n  - Vault is COMPLIANCE-locked (MaxRetentionDays 2557). The 7-year\n    retention is irreversible past the 3-day grace window (already\n    expired, ChangeableForDays 0). Retention can only lengthen.\n  - Cross-region copy to us-west-2 provides DR; the copy lifecycle also\n    uses DeleteAfterDays 2557 so the DR copy honors the same 7-year\n    retention. Verify the us-west-2 vault has the same COMPLIANCE lock.\n  - Cold storage transition at 90 days: restores from cold take 3-5\n    hours (GLACIER Standard). Document the RTO\u002FRPO matrix — operators\n    frequently assume cold-storage restores are as fast as warm.\n  - Tag-based selection (backup=compliance-daily) auto-enrolls future\n    resources; verify weekly via list-protected-resources that the\n    expected resource set is enrolled.\n```\n\n### Worked example — create vault with KMS encryption (READY)\n> Moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — load on demand.\n\n\n### Worked example — diagnose failed backup job (BLOCKED)\n> Moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — load on demand.\n\n\n## STRICT output contract\n\n### Required output structure\n\nEvery response MUST begin with this block — no preamble, no\nconversational opening. The CHECKLIST rows surface the backup plan\nconfig (rule name, schedule, lifecycle, cross-region copy action) and\nrecovery point verification so the operator sees the full posture\nin one read.\n\n```text\nOPERATION: \u003Ccreate-vault | lock-vault | create-plan | create-selection | start-backup | start-restore | enable-pitr | diagnose>\nVAULT: \u003Cvault-name>\nVERDICT: READY | BLOCKED | COMPLETED\nPRE_CHECKS:\n  - [PASS] \u003Ccheck description>\n  - [FAIL] \u003Ccheck description> — \u003Creason>\nCHECKLIST:\n  [✓|✗]  Vault lock mode        current: \u003CUNLOCKED | COMPLIANCE | GOVERNANCE>   recommended: \u003C...>\n  [✓|✗]  Backup plan rule       current: \u003Crule name, schedule CRON>             recommended: \u003C...>\n  [✓|✗]  Lifecycle              current: \u003CMoveToColdStorageAfterDays \u002F DeleteAfterDays>   recommended: \u003C...>\n  [✓|✗]  Cross-region copy      current: \u003Cnone | dest region + vault + lifecycle>         recommended: \u003C...>\n  [✓|✗]  KMS encryption         current: \u003Ckey ARN, KeyState>                                recommended: \u003C...>\n  [✓|✗]  Recovery points        current: \u003CN points, latest Status, latest CompletionDate>  recommended: \u003C...>\n  [✓|✗]  Selection scope        current: \u003Ctag-based | resource ARNs | conditions>           recommended: \u003C...>\nSTEPS:\n  1. CONFIRM: About to \u003Coperation> on vault \u003Cname> in account \u003Caccount> region \u003Cregion>. This will \u003Cconsequence>. Proceed? (yes\u002Fno)\n  2. \u003Cexact CLI command with every flag populated — no placeholders>\nPOST_VERIFY:\n  - [PASS] \u003Cverification description>\n  - [FAIL] \u003Cverification description> — \u003Creason>\nSTATE: \u003Cvault lock state, recovery point status, restore job status after apply>\nNOTES: \u003Ccompliance-vs-governance rationale, retention window rationale, recovery time estimate, cross-region copy caveats>\n```\n\n### FORBIDDEN output patterns\n\n1. **NEVER start with conversational preamble** (\"Let me analyze…\",\n   \"Looking at your setup…\"). The `OPERATION:` line is the FIRST line,\n   always. Use uppercase verdict values only (`READY`, `BLOCKED`,\n   `COMPLETED`).\n\n2. **NEVER omit PRE_CHECKS.** Every pre-check must appear with `[PASS]`\n   or `[FAIL]` and a specific reason for each failure. A bare\n   \"PRE_CHECKS: passed\" with no per-check rows is a contract violation.\n\n3. **NEVER apply a COMPLIANCE-mode vault lock without surfacing\n   `ChangeableForDays` and the irreversibility caveat in NOTES.** The\n   CONFIRM gate MUST state the retention window and grace period. After\n   grace, the lock is irreversible even for root — the operator must\n   know before confirming.\n\n4. **NEVER list a CLI command with placeholder flags in a READY plan.**\n   Every flag must be populated with actual values from the input data.\n   `\u003Cvault-name>`, `\u003Ckey-arn>`, `\u003Caccount>` in a READY block is a\n   placeholder leak — resolve it or emit BLOCKED.\n\n5. **NEVER claim COMPLETED without every POST_VERIFY line showing\n   `[PASS]`.** If any verification fails, emit `VERDICT: ERROR` with the\n   failure reason; do not claim COMPLETED.\n\n6. **NEVER omit the CONFIRM gate as the first STEPS entry** for any\n   state-changing operation (create-vault, lock-vault, create-plan,\n   create-selection, start-backup, start-restore). Executing without\n   CONFIRM is a safety violation.\n\n7. **NEVER omit a CHECKLIST row.** All seven rows MUST appear — vault\n   lock mode, backup plan rule, lifecycle, cross-region copy, KMS\n   encryption, recovery points, selection scope. Use `[✗]` with a reason\n   if the item is not yet configured; do not silently drop rows.\n\n8. **NEVER collapse the COMPLIANCE vs GOVERNANCE distinction.** Always\n   state the exact `Mode` in CHECKLIST and NOTES. Governance mode does\n   NOT meet CIS 3.6, NIST CP-9, or FedRAMP — emitting GOVERNANCE as\n   \"compliant\" is a regulatory misclassification.\n\n## Anti-Patterns — NEVER do these things\n\n- NEVER apply a COMPLIANCE-mode vault lock without explicitly stating the retention window and the 72-hour grace period in the CONFIRM prompt. After grace, the lock is irreversible even for root.\n- NEVER confuse compliance mode with governance mode. Governance mode can be removed by a privileged principal — it does NOT meet regulatory requirements (CIS, NIST, FedRAMP). Always set `--mode COMPLIANCE` explicitly when regulatory posture is required.\n- NEVER create a backup plan with a lifecycle that deletes recovery points before the destination vault's MinRetentionDays. The plan will fail at delete time, leaving orphaned recovery points that cannot be deleted until the retention window expires.\n- NEVER start a restore without verifying the recovery point `Status: COMPLETED` and the destination region's IAM permissions. Restoring from an `EXPIRED` or `DELETED` recovery point fails silently.\n- NEVER assume a tag-based backup selection matches existing resources. Verify via `list-protected-resources` that the selection has matching resources; tag-based selections only enroll future resources as they are tagged.\n\n## Pre-flight safety checks\n\n- **MANDATORY CONFIRMATION GATE** before any state-changing CLI.\n- **Snapshot before lock change:** `describe-backup-vault --output json\n  > \u002Ftmp\u002F\u003Cvault>-backup-$(date +%s).json` — there is no rollback for\n  COMPLIANCE-mode locks applied in error (after grace).\n- **Verify KMS key accessibility** before any backup or restore\n  operation — the `backup.\u003Cregion>.amazonaws.com` service principal\n  must have `kms:GenerateDataKey` and `kms:Decrypt` in the key policy.\n- **Prefer tag-based selections** over resource-ARN lists — future\n  resources are auto-enrolled.\n- **Test restore quarterly** — backups that never test-restored are\n  not reliable. Use a non-production vault for restore drills.\n\n## Expert heuristic: COMPLIANCE vs GOVERNANCE vault lock\n> Moved verbatim to [references\u002Fvault-lock-and-compliance-guide.md](references\u002Fvault-lock-and-compliance-guide.md) — load on demand.\n\n\n## Recent AWS features (2024-2026)\n> Moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\n\n\n\n## References (load on demand)\n\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — expert-heuristic deep dives, Step-0 expert knowledge, recent AWS features\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — secondary worked examples\n- [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — diagnostic flows and failure remediation\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — pre-flight metadata gate and per-operation pre-check listings\n- [references\u002Fcommon-patterns.md](references\u002Fcommon-patterns.md) — boilerplate CLI patterns (vault create, plan, selection, manual backup)\n- [references\u002Frestore-and-pitr-guide.md](references\u002Frestore-and-pitr-guide.md) — restore and PITR operations (now includes PITR patterns)\n- [references\u002Fvault-lock-and-compliance-guide.md](references\u002Fvault-lock-and-compliance-guide.md) — vault lock and compliance (now includes lock patterns and heuristic)\n\n## Domain\n\nAWS CloudOps \u002F AWS Backup Vault, Plan, and Restore Operations.\n\n## AWS documentation\n\n- **AWS Backup Developer Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Fwhatisbackup.html\n- **Backup Vault Lock** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Fvaults.html#vault-lock\n- **Backup Plans** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Fabout-backup-plans.html\n- **Backup Selections** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Fassigning-resources.html\n- **Point-in-Time Recovery for EC2** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Fcontinuous-backups.html\n- **AWS Backup Search** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Fsearch.html\n- **AWS Backup for Amazon FSx** — https:\u002F\u002Fdocs.aws.amazon.com\u002Ffsx\u002Flatest\u002FAPIReference\u002FWelcome.html\n- **AWS Backup API Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Fapi-reference.html\n- **AWS CLI backup reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fbackup\u002F\n- **AWS Backup Compliance** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Fbackup-compliance.html\n","# Backup Vault Operator\n\n## What this skill does\n\nExecutes AWS Backup vault operations correctly and safely — vault\ncreation, vault lock (compliance vs governance), backup plans, backup\nselections, restore jobs, and report auditing. Runs deterministic\npre-checks before any state-changing CLI, emits the exact\n`backup:*` CLI sequence behind a CONFIRM gate, and verifies recovery\npoints and restore job state after apply. Every operation surfaces the\nmode (compliance vs governance), retention window, and the\nimmutability posture so the operator knows what is reversible.\n\n## Quick navigation\n\n| Section | What it covers | When to read it |\n|---|---|---|\n| **§ Quick reference** | Verdict thresholds + pre-check priority + recovery time baselines | Before any operation |\n| **§ Mindset** | Compliance-vs-governance lock, PITR vs snapshot, vault-region binding | Understanding the safety model |\n| **§ Pre-flight** | Vault\u002FKMS\u002FIAM metadata gate | Before executing any CLI |\n| **§ Process** | Per-operation planning: vault, lock, plan, selection, restore, PITR, diagnose | When choosing which operation |\n| **§ Common patterns** | Vault create, compliance lock, plan with cross-region copy, PITR enable, restore drill | Boilerplate lookup |\n| **§ Output format** | Structured output template with VERDICT, COMMANDS, POST_VERIFY | Formatting the response |\n| **§ Anti-Patterns** | NEVER list — common mistakes | Review before risky operations |\n\n## Quick reference — verdict thresholds\n\n| Verdict | Trigger condition | Action |\n|---|---|---|\n| `BLOCKED` | One or more pre-checks failed (KMS key disabled, vault already in compliance lock, IAM `backup:StartBackupJob` missing, no recovery point in target vault, region mismatch, overlapping backup selection) | List failures, do NOT execute |\n| `READY` | All pre-checks passed; awaiting CONFIRM gate | Emit exact CLI sequence, wait for operator yes |\n| `COMPLETED` | Operation applied and post-verification passed (recovery point generated, restore job COMPLETED, vault lock configuration reflected, backup plan ARN returned) | Emit describe output, lock state, retention window |\n\n**Priority order for pre-checks (all must pass for READY):**\n\n1. **Vault exists and is reachable** — `describe-backup-vault` returns\n   the vault in the same account+region as the operation.\n2. **KMS key state** — `kms describe-key` returns `Enabled` (not\n   `Disabled` \u002F `PendingDeletion`); key policy grants\n   `kms:GenerateDataKey` and `kms:Decrypt` to\n   `backup.\u003Cregion>.amazonaws.com`.\n3. **Vault lock state** — `describe-backup-vault` `VaultLock` shows\n   whether compliance mode is active. If `LockState: LOCKED` in\n   compliance mode, the retention window is immutable — pre-check must\n   flag any operation that would shorten retention or change the lock.\n4. **IAM permissions** — caller has `backup:CreateBackupVault`,\n   `PutBackupVaultLockConfiguration`, `CreateBackupPlan`,\n   `CreateBackupSelection`, `StartBackupJob`, `StartRestoreJob` as\n   appropriate.\n5. **Resource assignment scope** — `list-backup-selections` shows no\n   overlapping tag-based selections (overlap is allowed but generates\n   duplicate recovery points).\n6. **Region coverage** — for cross-region copy, the destination region\n   has a vault with KMS key.\n7. **Recovery point presence** — for restore, the recovery point ARN\n   exists in the target vault and is `COMPLETED` (not `DELETED` or\n   `EXPIRED`).\n\n**Recovery time baselines (2026):**\n- Snapshot backup: 5-30 min for EBS, 15-60 min for RDS, depending on\n  size.\n- Continuous backup (PITR) restore: seconds to minutes for EC2 within\n  the 35-day window.\n- Cross-region copy: minutes to hours depending on data size and\n  inter-region bandwidth.\n- Cold (GLACIER) restore: 3-5 hours (Standard), 1-5 min (Expedited),\n  5-12 hours (Bulk).\n\n## Mindset\n\nThree AWS Backup realities drive every operation:\n\n- **Compliance mode is irreversible.** Once `PutBackupVaultLockConfiguration`\n  is applied with `Mode: COMPLIANCE`, the vault cannot be deleted until\n  the retention window expires, and retention can only be lengthened.\n  Even the root account cannot bypass it. Treat compliance lock as a\n  one-way door — confirm the retention window before applying. The\n  `ChangeableForDays` parameter provides a grace window (max 72 hours\n  from initial lock) during which the lock can be removed; after that,\n  it is permanent.\n\n- **PITR requires continuous backups, not snapshots.** Point-in-time\n  recovery for EC2 and RDS requires the backup plan rule to set\n  `RecoveryPointTier: CONTINUOUS` (for EC2, via the\n  `aws:backup:request-continuous-backup` condition; for RDS, via\n  `BackupPlan.AdvancedBackupSettings`). Snapshot-only plans do NOT\n  support PITR. Operators frequently enable continuous backups via the\n  console without realizing the underlying rule type changed — verify\n  via `describe-backup-plan` `Rules[].ContinuousBackup`.\n\n- **Vaults are region-bound.** A backup vault exists in exactly one\n  region. Cross-region copy creates a separate recovery point in the\n  destination region's vault; it does NOT replicate the vault itself.\n  Restoring cross-region requires the destination vault, the\n  destination region's KMS key, and the destination IAM permissions.\n\n## Pre-flight: vault\u002FKMS\u002FIAM metadata gate\n> Moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — load on demand.\n\n\n## Process — operation planning (apply in order)\n\n### Step 0: Expert knowledge — non-obvious AWS Backup behaviors\n> Moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\n\n\n### Step 1: Pre-check gate — BLOCKED if any check fails\n\nRun ALL pre-checks. If ANY fails, verdict is BLOCKED with failures in\nPRE_CHECKS. Do NOT execute.\n\n> Moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — load on demand.\n\nCondensed per-operation gate — every branch, one line each (full verbatim listing:\n[references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md)):\n\n- ALL operations: vault name spelled correctly (case-sensitive); vault exists in the same account+region; IAM role holds the required `backup:*` permission.\n- create-vault: KMS key ARN exists and `Enabled`; key policy grants `kms:GenerateDataKey` + `kms:Decrypt` to `backup.\u003Cregion>.amazonaws.com`; vault name not already in use.\n- vault lock (COMPLIANCE): not already COMPLIANCE-locked (unless lengthening `MaxRetentionDays`); `MaxRetentionDays` >= longest retention of any plan writing to the vault; `MinRetentionDays` >= oldest recovery point age; `ChangeableForDays` \u003C= 3.\n- create-plan: `StartWindowMinutes`\u002F`CompletionWindowMinutes` within service limits; cross-region destination region has a vault with KMS key; `MoveToColdStorageAfterDays` \u003C `DeleteAfterDays`; CRON or `rate()` schedule, timezone UTC.\n- create-selection: plan exists; at least one of `ListOfTags`\u002F`Resources`\u002F`Conditions` populated; `RoleArn` exists and is trusted; overlapping tag-based selections = INFO warning, not BLOCKED.\n- start-backup (manual): resource ARN exists; backup vault exists and is reachable; IAM role for the selection exists.\n- start-restore: recovery point `Status: COMPLETED` and not expired; `Metadata` includes type-specific fields (EC2 `InstanceId`, RDS `NewDBInstanceIdentifier`); cross-region destination IAM verified; PITR continuous backup enabled.\n- diagnose: `describe-backup-job` returns the job; `describe-backup-vault` reflects current state; CloudTrail `StartBackupJob`\u002F`StartCopyJob`\u002F`StartRestoreJob` events within last 7 days.\n\n### Step 2: READY — emit operation plan\n\nEmit `VERDICT: READY` with exact CLI sequence + CONFIRM gate:\n- Exact AWS CLI command with all flags populated.\n- Expected duration (snapshot time, cold-storage restore time).\n- Expected side-effects (new recovery point, new restored resource,\n  locked vault).\n- CONFIRM gate prompt.\n\n### Step 3: Execute behind CONFIRM gate\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing CLI\n  (`create-backup-vault`,\n  `put-backup-vault-lock-configuration`,\n  `create-backup-plan`, `create-backup-selection`,\n  `start-backup-job`, `start-restore-job`,\n  `delete-backup-plan`, `delete-backup-selection`), emit CONFIRM prompt.\n  Do NOT execute until confirmed.\n- Snapshot current state: `describe-backup-vault --backup-vault-name\n  \u003Cname> --output json > \u002Ftmp\u002F\u003Cvault>-backup-$(date +%s).json` (for\n  lock changes); `list-recovery-points-by-backup-vault` for restore\n  inventory.\n- Execute the CLI.\n- For compliance-mode vault lock, validate the lock is in the grace\n  window (`ChangeableForDays`) if the operator wants the option to\n  reverse — after grace, the lock is irreversible.\n\n### Step 4: Post-verification — COMPLETED\n\nALL checks must pass for `COMPLETED`:\n1. For create-vault: `describe-backup-vault` returns the new vault\n   with `EncryptionKeyArn`, `NumberOfRecoveryPoints: 0`.\n2. For lock: `describe-backup-vault` returns `VaultLock.LockState:\n   LOCKED` with the expected `Mode`, `MinRetentionDays`,\n   `MaxRetentionDays`, `ChangeableForDays`.\n3. For plan: `describe-backup-plan` returns the plan with `Rules`\n   populated; `BackupPlanArn` returned.\n4. For selection: `list-backup-selections --backup-plan-id \u003Cid>`\n   returns the new selection with `SelectionId`.\n5. For start-backup: `describe-backup-job --backup-job-id \u003Cid>`\n   returns `State: COMPLETED` and `BackupSizeInBytes > 0`; recovery\n   point visible in `list-recovery-points-by-backup-vault`.\n6. For start-restore: `describe-restore-job --restore-job-id \u003Cid>`\n   returns `Status: COMPLETED` and `CreatedResourceArn` populated.\n7. For PITR enable: `describe-recovery-point` for the resource shows\n   `ContinuousBackup` set; verify `get-recovery-point-restore-metadata`\n   returns `PITR` enabled metadata.\n\nIf ANY verification fails, emit `VERDICT: ERROR` — do not claim COMPLETED.\n\n## Common patterns (boilerplate)\n\n### Create a backup vault with KMS encryption and tags\n> Moved verbatim to [references\u002Fcommon-patterns.md](references\u002Fcommon-patterns.md) — load on demand.\n\n\n### Apply vault lock in COMPLIANCE mode (WORM, immutable)\n> Moved verbatim to [references\u002Fvault-lock-and-compliance-guide.md](references\u002Fvault-lock-and-compliance-guide.md) — load on demand.\n\n\n### Apply vault lock in GOVERNANCE mode (soft, mutable by privileged)\n> Moved verbatim to [references\u002Fvault-lock-and-compliance-guide.md](references\u002Fvault-lock-and-compliance-guide.md) — load on demand.\n\n\n### Create a backup plan with schedule, lifecycle, cross-region copy\n> Moved verbatim to [references\u002Fcommon-patterns.md](references\u002Fcommon-patterns.md) — load on demand.\n\n\n### Create a backup selection by tag\n> Moved verbatim to [references\u002Fcommon-patterns.md](references\u002Fcommon-patterns.md) — load on demand.\n\n\n### Start a manual backup job\n> Moved verbatim to [references\u002Fcommon-patterns.md](references\u002Fcommon-patterns.md) — load on demand.\n\n\n### Start a point-in-time restore (PITR)\n> Moved verbatim to [references\u002Frestore-and-pitr-guide.md](references\u002Frestore-and-pitr-guide.md) — load on demand.\n\n\n### Enable continuous backup for EC2 PITR\n> Moved verbatim to [references\u002Frestore-and-pitr-guide.md](references\u002Frestore-and-pitr-guide.md) — load on demand.\n\n\n## Diagnostic flows\n> Moved verbatim to [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — load on demand.\n\n\n## Output format (per operation)\n\nThe response is a single block using the literal labels `OPERATION:`,\n`VAULT:`, `VERDICT:`, `PRE_CHECKS:`, `CHECKLIST:`, `STEPS:`,\n`POST_VERIFY:`, `STATE:`, and `NOTES:`. The CHECKLIST rows surface the\nbackup plan config (rule name, schedule, lifecycle, cross-region copy\naction) and the recovery point verification status so the operator\nsees the full posture in one read. See \"STRICT output contract\" below\nfor the enforced shape and worked examples.\n\n```text\nOPERATION: \u003Ccreate-vault | lock-vault | create-plan | create-selection | start-backup | start-restore | enable-pitr | diagnose>\nVAULT: \u003Cvault-name>\nVERDICT: READY | BLOCKED | COMPLETED\nPRE_CHECKS:\n  - [PASS|FAIL] \u003Ccheck description>\nCHECKLIST:\n  [✓|✗]  Vault lock mode        current: \u003CUNLOCKED | COMPLIANCE | GOVERNANCE>   recommended: \u003C...>\n  [✓|✗]  Backup plan rule       current: \u003Crule name, schedule CRON>             recommended: \u003C...>\n  [✓|✗]  Lifecycle              current: \u003CMoveToColdStorageAfterDays \u002F DeleteAfterDays>   recommended: \u003C...>\n  [✓|✗]  Cross-region copy      current: \u003Cnone | dest region + vault + lifecycle>         recommended: \u003C...>\n  [✓|✗]  KMS encryption         current: \u003Ckey ARN, KeyState>                                recommended: \u003C...>\n  [✓|✗]  Recovery points        current: \u003CN points, latest Status, latest CompletionDate>  recommended: \u003C...>\n  [✓|✗]  Selection scope        current: \u003Ctag-based | resource ARNs | conditions>           recommended: \u003C...>\nSTEPS:\n  1. CONFIRM: \u003Cprompt>\n  2. \u003CCLI command with flags populated>\nPOST_VERIFY:\n  - [PASS|FAIL] \u003Cverification description>\nSTATE: \u003Cvault lock state, recovery point status, restore job status after apply>\nNOTES: \u003Ccompliance vs governance rationale, retention window, recovery time estimate, cross-region copy caveats>\n```\n\n### Worked example — compliance vault with 7-year retention + cross-region DR copy (READY)\n\nThe canonical enterprise compliance pattern: a COMPLIANCE-mode locked\nvault with 7-year retention (2557 days) and a cross-region copy action\nto a DR vault in us-west-2. Copy the shape exactly.\n\n```text\nOPERATION: create-plan\nVAULT: prod-compliance-vault-7yr\nVERDICT: READY\nPRE_CHECKS:\n  - [PASS] Vault prod-compliance-vault-7yr exists in us-east-1 (NumberOfRecoveryPoints 0)\n  - [PASS] Vault currently UNLOCKED (VaultLock.LockState absent) — lock applied in prior step, see NOTES\n  - [PASS] Vault lock COMPLIANCE mode verified: MinRetentionDays 90, MaxRetentionDays 2557, ChangeableForDays 0 (past grace)\n  - [PASS] KMS key arn:aws:kms:us-east-1:111111111111:key\u002Fabcd1234-5678-90ef-1234-567890abcdef KeyState Enabled, KeyManager CUSTOMER\n  - [PASS] KMS key policy grants kms:GenerateDataKey, kms:Decrypt to backup.us-east-1.amazonaws.com\n  - [PASS] DR vault dr-compliance-vault exists in us-west-2 with KMS key arn:aws:kms:us-west-2:111111111111:key\u002Fefgh5678\n  - [PASS] Caller IAM role holds backup:CreateBackupPlan, backup:CreateBackupSelection\n  - [PASS] No overlapping tag-based selections for backup=compliance-daily\nCHECKLIST:\n  [✓]  Vault lock mode        current: COMPLIANCE (MinRetentionDays 90, MaxRetentionDays 2557)   recommended: keep (regulatory mandate CIS 3.6, SOX, HIPAA)\n  [✓]  Backup plan rule       current: ComplianceDailyRule, cron(0 5 ? * * *) UTC 05:00 daily    recommended: keep\n  [✓]  Lifecycle              current: MoveToColdStorageAfterDays 90, DeleteAfterDays 2557       recommended: keep (7-yr retention: 365.25 × 7 = 2557)\n  [✓]  Cross-region copy      current: dest us-west-2 \u002F dr-compliance-vault, DeleteAfterDays 2557   recommended: keep (DR + regulatory archive)\n  [✓]  KMS encryption         current: arn:aws:kms:us-east-1:111111111111:key\u002Fabcd1234, KeyState Enabled   recommended: keep\n  [✗]  Recovery points        current: 0 recovery points (vault newly created)                   recommended: confirm first recovery point COMPLETED within 24h\n  [✓]  Selection scope        current: tag-based backup=compliance-daily, env=prod               recommended: keep (auto-enrolls future tagged resources)\nSTEPS:\n  1. CONFIRM: About to create-backup-plan ComplianceDaily-7yr on vault\n     prod-compliance-vault-7yr in account 111111111111 region us-east-1.\n     This creates a daily backup plan with 90-day warm → cold storage\n     transition, 2557-day (7-year) delete, and a cross-region copy to\n     dr-compliance-vault in us-west-2 (also 2557-day retention). The\n     vault is COMPLIANCE-locked so retention can only lengthen. Proceed?\n     (yes\u002Fno)\n  2. aws backup create-backup-plan --backup-plan '{\n       \"BackupPlanName\": \"ComplianceDaily-7yr\",\n       \"Rules\": [\n         {\n           \"RuleName\": \"ComplianceDailyRule\",\n           \"TargetBackupVaultName\": \"prod-compliance-vault-7yr\",\n           \"ScheduleExpression\": \"cron(0 5 ? * * *)\",\n           \"StartWindowMinutes\": 480,\n           \"CompletionWindowMinutes\": 1440,\n           \"Lifecycle\": {\"MoveToColdStorageAfterDays\": 90, \"DeleteAfterDays\": 2557},\n           \"CopyActions\": [\n             {\n               \"DestinationBackupVaultArn\": \"arn:aws:backup:us-west-2:111111111111:backup-vault:dr-compliance-vault\",\n               \"Lifecycle\": {\"DeleteAfterDays\": 2557}\n             }\n           ]\n         }\n       ]\n     }'\n  3. aws backup create-backup-selection \\\n       --backup-plan-id \"$(aws backup list-backup-plans --query 'BackupPlansList[?BackupPlanName==`ComplianceDaily-7yr`].BackupPlanId' --output text)\" \\\n       --backup-selection '{\n         \"SelectionName\": \"compliance-tagged-daily\",\n         \"IamRoleArn\": \"arn:aws:iam::111111111111:role\u002FAWSBackupDefaultServiceRole\",\n         \"ListOfTags\": [{\"ConditionType\": \"STRINGEQUALS\", \"ConditionKey\": \"backup\", \"ConditionValue\": \"compliance-daily\"}],\n         \"Conditions\": {\"StringEquals\": {\"aws:ResourceTag\u002Fenv\": \"prod\"}}\n       }'\nPOST_VERIFY:\n  - (pending execution)\n  - aws backup describe-backup-plan --backup-plan-id \u003Cid> returns Rules[0].RuleName ComplianceDailyRule\n  - aws backup describe-backup-plan --backup-plan-id \u003Cid> returns Rules[0].CopyActions[0].DestinationBackupVaultArn referencing dr-compliance-vault in us-west-2\n  - aws backup list-backup-selections --backup-plan-id \u003Cid> returns selection compliance-tagged-daily\n  - After first run (~24h): aws backup list-recovery-points-by-backup-vault --backup-vault-name prod-compliance-vault-7yr returns Status COMPLETED, BackupSizeInBytes > 0\nSTATE: pending — plan and selection will be CREATED within ~30s; first recovery point within 24h (next cron tick)\nNOTES:\n  - Vault is COMPLIANCE-locked (MaxRetentionDays 2557). The 7-year\n    retention is irreversible past the 3-day grace window (already\n    expired, ChangeableForDays 0). Retention can only lengthen.\n  - Cross-region copy to us-west-2 provides DR; the copy lifecycle also\n    uses DeleteAfterDays 2557 so the DR copy honors the same 7-year\n    retention. Verify the us-west-2 vault has the same COMPLIANCE lock.\n  - Cold storage transition at 90 days: restores from cold take 3-5\n    hours (GLACIER Standard). Document the RTO\u002FRPO matrix — operators\n    frequently assume cold-storage restores are as fast as warm.\n  - Tag-based selection (backup=compliance-daily) auto-enrolls future\n    resources; verify weekly via list-protected-resources that the\n    expected resource set is enrolled.\n```\n\n### Worked example — create vault with KMS encryption (READY)\n> Moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — load on demand.\n\n\n### Worked example — diagnose failed backup job (BLOCKED)\n> Moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — load on demand.\n\n\n## STRICT output contract\n\n### Required output structure\n\nEvery response MUST begin with this block — no preamble, no\nconversational opening. The CHECKLIST rows surface the backup plan\nconfig (rule name, schedule, lifecycle, cross-region copy action) and\nrecovery point verification so the operator sees the full posture\nin one read.\n\n```text\nOPERATION: \u003Ccreate-vault | lock-vault | create-plan | create-selection | start-backup | start-restore | enable-pitr | diagnose>\nVAULT: \u003Cvault-name>\nVERDICT: READY | BLOCKED | COMPLETED\nPRE_CHECKS:\n  - [PASS] \u003Ccheck description>\n  - [FAIL] \u003Ccheck description> — \u003Creason>\nCHECKLIST:\n  [✓|✗]  Vault lock mode        current: \u003CUNLOCKED | COMPLIANCE | GOVERNANCE>   recommended: \u003C...>\n  [✓|✗]  Backup plan rule       current: \u003Crule name, schedule CRON>             recommended: \u003C...>\n  [✓|✗]  Lifecycle              current: \u003CMoveToColdStorageAfterDays \u002F DeleteAfterDays>   recommended: \u003C...>\n  [✓|✗]  Cross-region copy      current: \u003Cnone | dest region + vault + lifecycle>         recommended: \u003C...>\n  [✓|✗]  KMS encryption         current: \u003Ckey ARN, KeyState>                                recommended: \u003C...>\n  [✓|✗]  Recovery points        current: \u003CN points, latest Status, latest CompletionDate>  recommended: \u003C...>\n  [✓|✗]  Selection scope        current: \u003Ctag-based | resource ARNs | conditions>           recommended: \u003C...>\nSTEPS:\n  1. CONFIRM: About to \u003Coperation> on vault \u003Cname> in account \u003Caccount> region \u003Cregion>. This will \u003Cconsequence>. Proceed? (yes\u002Fno)\n  2. \u003Cexact CLI command with every flag populated — no placeholders>\nPOST_VERIFY:\n  - [PASS] \u003Cverification description>\n  - [FAIL] \u003Cverification description> — \u003Creason>\nSTATE: \u003Cvault lock state, recovery point status, restore job status after apply>\nNOTES: \u003Ccompliance-vs-governance rationale, retention window rationale, recovery time estimate, cross-region copy caveats>\n```\n\n### FORBIDDEN output patterns\n\n1. **NEVER start with conversational preamble** (\"Let me analyze…\",\n   \"Looking at your setup…\"). The `OPERATION:` line is the FIRST line,\n   always. Use uppercase verdict values only (`READY`, `BLOCKED`,\n   `COMPLETED`).\n\n2. **NEVER omit PRE_CHECKS.** Every pre-check must appear with `[PASS]`\n   or `[FAIL]` and a specific reason for each failure. A bare\n   \"PRE_CHECKS: passed\" with no per-check rows is a contract violation.\n\n3. **NEVER apply a COMPLIANCE-mode vault lock without surfacing\n   `ChangeableForDays` and the irreversibility caveat in NOTES.** The\n   CONFIRM gate MUST state the retention window and grace period. After\n   grace, the lock is irreversible even for root — the operator must\n   know before confirming.\n\n4. **NEVER list a CLI command with placeholder flags in a READY plan.**\n   Every flag must be populated with actual values from the input data.\n   `\u003Cvault-name>`, `\u003Ckey-arn>`, `\u003Caccount>` in a READY block is a\n   placeholder leak — resolve it or emit BLOCKED.\n\n5. **NEVER claim COMPLETED without every POST_VERIFY line showing\n   `[PASS]`.** If any verification fails, emit `VERDICT: ERROR` with the\n   failure reason; do not claim COMPLETED.\n\n6. **NEVER omit the CONFIRM gate as the first STEPS entry** for any\n   state-changing operation (create-vault, lock-vault, create-plan,\n   create-selection, start-backup, start-restore). Executing without\n   CONFIRM is a safety violation.\n\n7. **NEVER omit a CHECKLIST row.** All seven rows MUST appear — vault\n   lock mode, backup plan rule, lifecycle, cross-region copy, KMS\n   encryption, recovery points, selection scope. Use `[✗]` with a reason\n   if the item is not yet configured; do not silently drop rows.\n\n8. **NEVER collapse the COMPLIANCE vs GOVERNANCE distinction.** Always\n   state the exact `Mode` in CHECKLIST and NOTES. Governance mode does\n   NOT meet CIS 3.6, NIST CP-9, or FedRAMP — emitting GOVERNANCE as\n   \"compliant\" is a regulatory misclassification.\n\n## Anti-Patterns — NEVER do these things\n\n- NEVER apply a COMPLIANCE-mode vault lock without explicitly stating the retention window and the 72-hour grace period in the CONFIRM prompt. After grace, the lock is irreversible even for root.\n- NEVER confuse compliance mode with governance mode. Governance mode can be removed by a privileged principal — it does NOT meet regulatory requirements (CIS, NIST, FedRAMP). Always set `--mode COMPLIANCE` explicitly when regulatory posture is required.\n- NEVER create a backup plan with a lifecycle that deletes recovery points before the destination vault's MinRetentionDays. The plan will fail at delete time, leaving orphaned recovery points that cannot be deleted until the retention window expires.\n- NEVER start a restore without verifying the recovery point `Status: COMPLETED` and the destination region's IAM permissions. Restoring from an `EXPIRED` or `DELETED` recovery point fails silently.\n- NEVER assume a tag-based backup selection matches existing resources. Verify via `list-protected-resources` that the selection has matching resources; tag-based selections only enroll future resources as they are tagged.\n\n## Pre-flight safety checks\n\n- **MANDATORY CONFIRMATION GATE** before any state-changing CLI.\n- **Snapshot before lock change:** `describe-backup-vault --output json\n  > \u002Ftmp\u002F\u003Cvault>-backup-$(date +%s).json` — there is no rollback for\n  COMPLIANCE-mode locks applied in error (after grace).\n- **Verify KMS key accessibility** before any backup or restore\n  operation — the `backup.\u003Cregion>.amazonaws.com` service principal\n  must have `kms:GenerateDataKey` and `kms:Decrypt` in the key policy.\n- **Prefer tag-based selections** over resource-ARN lists — future\n  resources are auto-enrolled.\n- **Test restore quarterly** — backups that never test-restored are\n  not reliable. Use a non-production vault for restore drills.\n\n## Expert heuristic: COMPLIANCE vs GOVERNANCE vault lock\n> Moved verbatim to [references\u002Fvault-lock-and-compliance-guide.md](references\u002Fvault-lock-and-compliance-guide.md) — load on demand.\n\n\n## Recent AWS features (2024-2026)\n> Moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — load on demand.\n\n\n\n## References (load on demand)\n\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — expert-heuristic deep dives, Step-0 expert knowledge, recent AWS features\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — secondary worked examples\n- [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — diagnostic flows and failure remediation\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — pre-flight metadata gate and per-operation pre-check listings\n- [references\u002Fcommon-patterns.md](references\u002Fcommon-patterns.md) — boilerplate CLI patterns (vault create, plan, selection, manual backup)\n- [references\u002Frestore-and-pitr-guide.md](references\u002Frestore-and-pitr-guide.md) — restore and PITR operations (now includes PITR patterns)\n- [references\u002Fvault-lock-and-compliance-guide.md](references\u002Fvault-lock-and-compliance-guide.md) — vault lock and compliance (now includes lock patterns and heuristic)\n\n## Domain\n\nAWS CloudOps \u002F AWS Backup Vault, Plan, and Restore Operations.\n\n## AWS documentation\n\n- **AWS Backup Developer Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Fwhatisbackup.html\n- **Backup Vault Lock** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Fvaults.html#vault-lock\n- **Backup Plans** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Fabout-backup-plans.html\n- **Backup Selections** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Fassigning-resources.html\n- **Point-in-Time Recovery for EC2** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Fcontinuous-backups.html\n- **AWS Backup Search** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Fsearch.html\n- **AWS Backup for Amazon FSx** — https:\u002F\u002Fdocs.aws.amazon.com\u002Ffsx\u002Flatest\u002FAPIReference\u002FWelcome.html\n- **AWS Backup API Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Fapi-reference.html\n- **AWS CLI backup reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fbackup\u002F\n- **AWS Backup Compliance** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Fbackup-compliance.html\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},"aws-backup, storage, operate, vault-lock, backup-plan, backup-selection, restore, pitr, compliance-mode, kms, cross-region-copy, fsx, backup-search","4","Jacky Chan — AWS Community Builder","aws-cloudops","Storage","0.1.0","AWS Backup, backup vault, vault lock, compliance mode, governance mode, WORM, retention lock, backup plan, backup policy, backup selection, tag-based backup, cross-region copy, lifecycle, cold storage, point-in-time recovery, PITR, continuous backup, EC2 PITR, Backup Search, Amazon FSx backup, recovery point, restore job, cross-region restore, backup reports, backup compliance, KMS encryption, backup vault KMS","operate","high","false","capability","Creating or locking a backup vault (compliance vs governance mode), authoring backup plans (schedule, lifecycle, cross-region copy), building backup selections (by tag, resource ID, conditions), starting point-in-time or cross-region restores, running restore drills, diagnosing failed backup jobs or stuck restore jobs, enabling continuous backups for EC2 PITR, deploying AWS Backup for FSx, or using Backup Search across recovery points.","true","READY | BLOCKED | COMPLETED","active","Input: either (a) a backup operation intent (create-vault, lock-vault, create-plan, create-selection, start-backup, start-restore, enable-pitr, diagnose) with target vault name, KMS key ARN, schedule, retention window, and resource scope; OR (b) an existing vault name + recovery point ID for live-account restore or diagnosis. Output: deterministic OPERATION\u002FVERDICT\u002FPRE_CHECKS\u002FSTEPS\u002FPOST_VERIFY block per operation, where VERDICT is one of READY, BLOCKED, COMPLETED.","create AWS Backup vault, lock backup vault, compliance mode backup vault, governance mode backup vault, WORM backup vault, retention lock, create backup plan, backup policy, backup selection by tag, cross-region copy backup, point-in-time recovery, continuous backup EC2, restore from backup, cross-region restore, start restore job, diagnose failed backup job, Backup Search, AWS Backup for FSx","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 backup create-backup-vault, put-backup-vault-lock-configuration, create-backup-plan, create-backup-selection, start-backup-job, start-restore-job, describe-backup-job, describe-restore-job, list-recovery-points-by-backup-vault, list-backup-plans, list-backup-selections, get-backup-plan-from-json, describe-backup-vault...","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fbackup-vault-operator",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 backup-vault-operator",{"tool":57,"command":58},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill backup-vault-operator",{"tool":60,"command":61},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill backup-vault-operator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-operator\u002FSKILL.md",true,[65,71,75,79,83,87,90,94,98,102,106,110,114,118,122,126,130,134,138,142,146,150],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",8810,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-operator\u002Feval\u002Ftest-cases.yaml",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"evals\u002Fbaselines\u002Fcompliance-lock-ready.md",396,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-operator\u002Fevals\u002Fbaselines\u002Fcompliance-lock-ready.md",{"path":76,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":77,"sourceHtmlUrl":78},"evals\u002Fbaselines\u002Fcreate-vault-ready.md",409,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-operator\u002Fevals\u002Fbaselines\u002Fcreate-vault-ready.md",{"path":80,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":81,"sourceHtmlUrl":82},"evals\u002Fbaselines\u002Fcross-region-plan-ready.md",591,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-operator\u002Fevals\u002Fbaselines\u002Fcross-region-plan-ready.md",{"path":84,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":85,"sourceHtmlUrl":86},"evals\u002Fbaselines\u002Fgovernance-mode-misuse-blocked.md",529,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-operator\u002Fevals\u002Fbaselines\u002Fgovernance-mode-misuse-blocked.md",{"path":88,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":81,"sourceHtmlUrl":89},"evals\u002Fbaselines\u002Fpitr-restore-completed.md","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-operator\u002Fevals\u002Fbaselines\u002Fpitr-restore-completed.md",{"path":91,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":92,"sourceHtmlUrl":93},"evals\u002Feval_config.yaml",1791,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-operator\u002Fevals\u002Feval_config.yaml",{"path":95,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":96,"sourceHtmlUrl":97},"evals\u002Fevals.json",4328,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-operator\u002Fevals\u002Fevals.json",{"path":99,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":100,"sourceHtmlUrl":101},"evals\u002Fprompts\u002Fcompliance-lock-ready.md",896,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-operator\u002Fevals\u002Fprompts\u002Fcompliance-lock-ready.md",{"path":103,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":104,"sourceHtmlUrl":105},"evals\u002Fprompts\u002Fcreate-vault-ready.md",945,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-operator\u002Fevals\u002Fprompts\u002Fcreate-vault-ready.md",{"path":107,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":108,"sourceHtmlUrl":109},"evals\u002Fprompts\u002Fcross-region-plan-ready.md",1255,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-operator\u002Fevals\u002Fprompts\u002Fcross-region-plan-ready.md",{"path":111,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":112,"sourceHtmlUrl":113},"evals\u002Fprompts\u002Fgovernance-mode-misuse-blocked.md",866,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-operator\u002Fevals\u002Fprompts\u002Fgovernance-mode-misuse-blocked.md",{"path":115,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":116,"sourceHtmlUrl":117},"evals\u002Fprompts\u002Fpitr-restore-completed.md",1607,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-operator\u002Fevals\u002Fprompts\u002Fpitr-restore-completed.md",{"path":119,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":120,"sourceHtmlUrl":121},"examples\u002FREADME.md",9644,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-operator\u002Fexamples\u002FREADME.md",{"path":123,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":124,"sourceHtmlUrl":125},"references\u002Fadvanced-patterns.md",4938,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-operator\u002Freferences\u002Fadvanced-patterns.md",{"path":127,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":128,"sourceHtmlUrl":129},"references\u002Fcommon-patterns.md",3057,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-operator\u002Freferences\u002Fcommon-patterns.md",{"path":131,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":132,"sourceHtmlUrl":133},"references\u002Fdiagnostic-commands.md",5097,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-operator\u002Freferences\u002Fdiagnostic-commands.md",{"path":135,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":136,"sourceHtmlUrl":137},"references\u002Ferror-handling.md",2143,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-operator\u002Freferences\u002Ferror-handling.md",{"path":139,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":140,"sourceHtmlUrl":141},"references\u002Frestore-and-pitr-guide.md",9567,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-operator\u002Freferences\u002Frestore-and-pitr-guide.md",{"path":143,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":144,"sourceHtmlUrl":145},"references\u002Fvault-lock-and-compliance-guide.md",8967,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-operator\u002Freferences\u002Fvault-lock-and-compliance-guide.md",{"path":147,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":148,"sourceHtmlUrl":149},"references\u002Fworked-examples.md",5073,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-operator\u002Freferences\u002Fworked-examples.md",{"path":151,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":152,"sourceHtmlUrl":153},"skill.usf.yaml",4744,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-vault-operator\u002Fskill.usf.yaml",[155,162,169,176,183,190],{"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},"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":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},"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":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},"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":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},"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":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},"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":191,"name":192,"nameZh":6,"description":193,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":194,"categories":195,"keywords":196,"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",[],[]]