[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A3WZXAC2A1QAE8M2M3E93D":3,"skill-same:01M7A3WZXAC2A1QAE8M2M3E93D":148},{"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},"01M7A3WZXAC2A1QAE8M2M3E93D","backup-compliance-automator",null,"Designs AWS Backup compliance automation across the four pillars: AWS Backup Audit Manager (audit framework, audit template, manual and automated controls), backup reporting (job summary report, compliance report, coverage report), legal hold automation (litigation hold via EventBridge on s3:ObjectSent to evidence locker, BackupLegalHold resource for immutable recovery points), cross-account \u002F cross-region backup auditing via AWS Organizations backup vault, latest: AWS Backup Search (search across backups), Backup cost allocation tags. Includes AWS Backup Report Stream, Backup Audit Manager control library, and EventBridge Scheduler for periodic audit runs. Emits AUTOMATED with the compliance playbook or MANUAL_STEP_REQUIRED with the gap. Use when designing backup compliance, legal hold workflows, or cross-account backup audit.","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-compliance-automator\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: backup-compliance-automator\ndescription: 'Designs AWS Backup compliance automation across the four pillars: AWS Backup Audit Manager (audit framework, audit template, manual and automated controls), backup reporting (job summary report, compliance report, coverage report), legal hold automation (litigation hold via EventBridge on s3:ObjectSent to evidence locker, BackupLegalHold resource for immutable recovery points), cross-account \u002F cross-region backup auditing via AWS Organizations backup vault, latest: AWS Backup Search (search across backups), Backup cost allocation tags. Includes AWS Backup Report Stream, Backup Audit Manager control library, and EventBridge Scheduler for periodic audit runs. Emits AUTOMATED with the compliance playbook or MANUAL_STEP_REQUIRED with the gap. Use when designing backup compliance, legal hold workflows, or cross-account backup audit.'\nlicense: Apache-2.0\ncompatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline plan authoring. Live deployment uses aws backup audit-manager create-framework \u002F create-report-plan, aws backup start-backup-job \u002F start-restore-job, aws backup create-legal-hold \u002F start-legal-hold, aws backup create-backup-vault (cross-account), aws backup-gateway list-hypervisors (VMware), aws backup list-tags \u002F tag-resource (cost allocation), aws backup search (Backup Search)...\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: automate\n  skill_class: capability\n  lifecycle_status: active\n  verdict_shape: AUTOMATED | MANUAL_STEP_REQUIRED\n  when_to_use: Designing backup compliance automation, configuring AWS Backup Audit Manager frameworks and templates, building legal hold workflows, centralizing cross-account backup auditing, deploying Backup Search, configuring backup cost allocation tags, or automating compliance report generation on a schedule.\n  when_not_to_use: Designing the backup plan itself (use backup-plan-auditor or operate-backup-vault — this skill audits compliance, not the plan)., Executing a restore (use rds-backup-restore-operator \u002F ec2-backup-operator — this skill does not perform restores)., General storage cost optimization (use ebs-volume-optimizer or s3-storage-lens — Backup is one input)., Disaster recovery failover design (use dr-failover-automator — Backup is one DR input, not the strategy).\n  activation_triggers: Backup compliance automation, Backup Audit Manager, audit framework, audit template, legal hold, litigation hold, Backup Vault Lock, compliance report, job summary report, cross-account backup audit, Backup Search, cost allocation tags backup, Backup Report Stream, EventBridge legal hold, Organizations backup vault\n  invocation_schema: 'Input: either (a) a backup compliance requirement (\"build a Backup Audit Manager framework for SOC2 with daily compliance reports and legal hold on demand\"), OR (b) an existing Backup Audit Manager configuration \u002F legal hold workflow \u002F cross-account vault setup to audit and harden. Output: deterministic Backup compliance block per requirement — FRAMEWORK\u002FREPORTING\u002FLEGAL_HOLD\u002FCROSS_ACCOUNT\u002FSEARCH\u002F VERIFICATION\u002FVERDICT — where VERDICT is AUTOMATED (compliance playbook complete with all gates passing) or MANUAL_STEP_REQUIRED (specific gap cited, e.g., no legal hold tested, audit framework missing control, cross-account vault not configured).'\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  keywords: AWS Backup, Backup Audit Manager, audit framework, audit template, compliance report, job summary report, coverage report, legal hold, litigation hold, immutability, Backup Vault Lock, cross-account backup, cross-region backup, AWS Organizations, Backup Search, cost allocation tags, backup reporting, Backup Report Stream, EventBridge Scheduler, control library\n  tags: aws-backup, audit-manager, legal-hold, backup-vault, automate\n---\n\n# Backup Compliance Automator\n\n## What this skill does\n\nDesigns automated AWS Backup compliance across the four pillars —\n**Backup Audit Manager** (audit frameworks, audit templates, control\nlibrary with manual and automated controls), **backup reporting** (job\nsummary report, compliance report, coverage report, Backup Report Stream),\n**legal hold automation** (BackupLegalHold resource for immutable recovery\npoints, EventBridge-triggered litigation hold), and **cross-account \u002F\ncross-region backup auditing** (AWS Organizations backup vault, delegated\nadministrator) — and the latest features: **AWS Backup Search** (search\nacross backups without restoring) and **Backup cost allocation tags**\n(allocated spend per resource \u002F vault \u002F job).\n\nThe verdict is binary: **AUTOMATED** when the playbook covers a chosen\ncompliance framework with mapped controls, scheduled reporting, legal hold\ntested (if applicable), cross-account centralization (for orgs), and\nverification step; **MANUAL_STEP_REQUIRED** when any component is missing\n(e.g., audit framework missing a control, no scheduled compliance report,\nlegal hold never tested, single-account-only vault in an org).\n\n## Quick navigation\n\n| # | Section | Jump when |\n|---|---|---|\n| 1 | [Pre-flight gate](#pre-flight-backup-compliance-spec-gate) | Starting any design — blocks unsafe specs |\n| 2 | [Pillars overview](#backup-compliance-pillars) | The four pillars at a glance |\n| 3 | [Backup Audit Manager](#backup-audit-manager-frameworks) | Framework, template, controls |\n| 4 | [Backup reporting](#backup-reporting) | Job summary, compliance, coverage, Report Stream |\n| 5 | [Legal hold](#legal-hold-automation) | BackupLegalHold, Vault Lock, EventBridge trigger |\n| 6 | [Cross-account audit](#cross-account--cross-region-audit) | Organizations backup vault, delegated admin |\n| 7 | [Backup Search](#aws-backup-search) | Search across backups without restore |\n| 8 | [Cost allocation tags](#cost-allocation-tags) | Allocate spend per resource \u002F vault |\n| 9 | [EventBridge Scheduler](#eventbridge-scheduler-for-periodic-audits) | Periodic audit \u002F report runs |\n| 10 | [Step Functions orchestrator](#step-functions-compliance-orchestration) | Multi-step compliance state machine |\n| 11 | [STRICT output contract](#output-format-strict-output-contract) | The exact Backup compliance block |\n| 12 | [NEVER anti-patterns](#never-these-things) | The hardcoded list of Backup taboos |\n| 13 | [Expert heuristic](#expert-heuristic-callouts) | Non-obvious behaviors that change the design |\n| 14 | [Recent AWS features](#recent-aws-features-2024-2026) | Backup Search, cost tags, Report Stream |\n| 15 | [Edge cases](#edge-case-handling) | Vault Lock, control gaps, report freshness |\n\n## Mindset\n\n**One-line takeaway:** backup compliance is **auditable evidence that the\nbackup plan actually ran, the recovery points are immutable for the\nrequired retention, and the legal hold chain of custody is intact**. A\nbackup plan that runs but produces no auditable evidence is, for\ncompliance purposes, no backup at all.\n\nMindset deep dives (Audit Manager evidence, legal hold vs Vault Lock, cross-account centralization) moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it when designing the compliance evidence chain.\n\n## Pre-flight: Backup compliance spec gate (run before generation)\n\n| Attribute | Required | Effect on plan |\n|---|---|---|\n| `compliance_framework` | YES | SOC2 \u002F HIPAA \u002F PCI \u002F FedRAMP \u002F custom — drives control selection |\n| `resources_in_scope` | YES | Resource types (EC2, RDS, DynamoDB, EFS, S3, VMware, etc.) |\n| `accounts_scope` | YES | Single-account OR organizational (delegated admin) |\n| `retention_policy` | YES | Days\u002Fweeks\u002Fmonths\u002Fyears, immutability requirement |\n| `legal_hold_required` | Recommended | Yes \u002F No — drives BackupLegalHold design |\n| `existing_workflow` | For audit mode | When provided, run the layer gates |\n\n**If the spec is incomplete**, output:\n\n```text\nFRAMEWORK: \u003Cunknown>\nREPORTING: \u003Cunknown>\nLEGAL_HOLD: \u003Cunknown>\nCROSS_ACCOUNT: \u003Cunknown>\nSEARCH: \u003Cunknown>\nVERIFICATION: \u003Cunknown>\nVERDICT: MANUAL_STEP_REQUIRED\nREASON: Spec is missing required fields (\u003Clist>).\nREQUIRED:\n  - compliance_framework (SOC2 | HIPAA | PCI | FedRAMP | custom:\u003Cid>)\n  - resources_in_scope (subset of [EC2, RDS, DynamoDB, EFS, FSx, S3, VMware, Storage Gateway])\n  - accounts_scope (single | org)\n  - retention_policy (e.g., 35d daily, 12m monthly, immutability yes\u002Fno)\nREMEDIATION: Provide all required fields. Example: \"build a SOC2 backup\naudit framework for EC2 and RDS in our 30-account org with 35-day daily\nretention and legal hold on demand\" maps to compliance_framework=SOC2,\nresources_in_scope=[EC2, RDS], accounts_scope=org, retention_policy=35d\ndaily immutable, legal_hold_required=yes.\n```\n\nLive-account pre-flight command listing moved to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nRun these before generating any compliance playbook.\n\n## Backup compliance pillars\n\n| Pillar | Purpose | Primary mechanism |\n|---|---|---|\n| Backup Audit Manager | Continuous control evaluation against a framework | Audit framework + controls + audit template |\n| Backup reporting | Periodic evidence export for auditors | Report plan (job summary, compliance, coverage) |\n| Legal hold | Litigation-driven recovery point freeze | BackupLegalHold resource, Vault Lock |\n| Cross-account \u002F cross-region | Org-wide centralization | Organizations backup vault + delegated admin |\n\n## Backup Audit Manager frameworks\n\n```bash\n# Use a managed framework as a starting point\naws backup audit-manager list-frameworks --query 'frameworks[*].[frameworkName,frameworkArn]'\n\n# Create a custom framework\naws backup audit-manager create-framework \\\n  --framework-name soc2-backup-compliance \\\n  --framework-controls '[\n    {\"ControlName\":\"BACKUP_PLAN_EXISTENCE\",\"ControlInputParameters\":[]},\n    {\"ControlName\":\"BACKUP_REPORT_LAST_BACKUP_AGE\",\"ControlInputParameters\":[{\"Name\":\"maxAgeInDays\",\"Value\":\"1\"}]},\n    {\"ControlName\":\"BACKUP_RECOVERY_POINT_MANUAL_DELETION_DISABLED\",\"ControlInputParameters\":[]},\n    {\"ControlName\":\"BACKUP_RESOURCES_PROTECTED_BY_BACKUP_PLAN\",\"ControlInputParameters\":[]}\n  ]' \\\n  --framework-description \"SOC2-aligned backup controls\"\n```\n\n**Control categories (subset of the control library):**\n| Control | What it checks |\n|---|---|\n| `BACKUP_PLAN_EXISTENCE` | Every resource type in scope has a backup plan |\n| `BACKUP_RESOURCES_PROTECTED_BY_BACKUP_PLAN` | All resources in scope are tagged to a plan |\n| `BACKUP_RECOVERY_POINT_MANUAL_DELETION_DISABLED` | Vault Lock prevents manual deletes |\n| `BACKUP_RECOVERY_POINT_MINIMUM_RETENTION` | Retention meets the policy minimum |\n| `BACKUP_REPORT_LAST_BACKUP_AGE` | Most recent recovery point is within maxAgeInDays |\n| `BACKUP_REPORT_LAST_RESTORE_AGE` | Most recent restore is within maxAgeInDays (restore drill) |\n| `BACKUP_RECOVERY_POINT_ENCRYPTED` | Recovery points are encrypted |\n| `BACKUP_VARIANT_WITH_REGION_ISOLATION` | Cross-region copy exists for DR |\n\nGotcha detail (controls evaluate actual state; fixed control library) moved to [references\u002Faudit-manager-controls.md](references\u002Faudit-manager-controls.md).\nLoad it when a control fails despite a configured plan.\n\n### Audit template\nAudit template report-plan CLI moved to [references\u002Faudit-manager-controls.md](references\u002Faudit-manager-controls.md).\nLoad it when scheduling the framework compliance report.\n\n## Backup reporting\n\n| Report type | Report template | Purpose |\n|---|---|---|\n| Job summary | `JOB_SUMMARY` | Backup job success\u002Ffailure counts over the period |\n| Compliance | `COMPLIANCE` | Control evaluation results against a framework |\n| Coverage | `COVERAGE` | Resources protected vs unprotected |\n\n```bash\n# Schedule a monthly compliance report\naws backup audit-manager create-report-plan \\\n  --report-plan-name monthly-compliance-report \\\n  --report-setting '{\"ReportTemplate\":\"COMPLIANCE\",\"Frameworks\":[\"arn:aws:backup:us-east-1:111111111111:framework:soc2-backup-compliance\"]}' \\\n  --reportDeliveryConfig={\"S3BucketName\":\"backup-reports\"} \\\n  --idempotencyToken \"$(uuidgen)\"\n```\n\nBackup Report Stream detail and reporting gotchas moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it when near-real-time compliance detection is required.\n\n## Legal hold automation\n\n### BackupLegalHold resource (freezes specific recovery points)\n\n```bash\naws backup create-legal-hold \\\n  --title \"Acme v. Example - 2026-08-05\" \\\n  --description \"Litigation hold on EBS volumes for case #2026-CV-1234\" \\\n  --legal-hold-status ACTIVE \\\n  --recovery-point-selection '{\n    \"ResourceIdentifiers\":[\"arn:aws:ec2:us-east-1::volume\u002Fvol-0abc\"],\n    \"DateRange\":{\"FromDate\":\"2026-08-01\",\"ToDate\":\"2026-08-05\"}\n  }'\n```\n\n### Vault Lock (vault-wide retention immutability)\n\n```bash\naws backup put-backup-vault-lock-configuration \\\n  --backup-vault-name production-vault \\\n  --min-retention-days 7 \\\n  --max-retention-days 365 \\\n  --changeable-for-days 3 \\\n  --mode LOCK_MODE\n```\n\n**Difference:** Vault Lock applies to ALL recovery points in the vault\nforever (governance or compliance mode). Legal hold applies to specific\nrecovery points for the duration of the hold. Use Vault Lock for policy\nimmutability; use Legal Hold for litigation-driven freezes.\n\n### EventBridge-triggered litigation hold\nEventBridge rule + Lambda responder moved to [references\u002Flegal-hold-and-vault-lock.md](references\u002Flegal-hold-and-vault-lock.md).\nLoad it when automating litigation hold from a legal-team event.\n\n## Cross-account \u002F cross-region audit\n\nFor AWS Organizations, enable cross-account backup so a delegated\nadministrator account sees backups across all member accounts:\n\n```bash\n# In the management account: enable cross-account backup\naws organizations enable-aws-service-access \\\n  --service-principal backup.amazonaws.com\n\naws backup update-global-settings \\\n  --global-settings isCrossAccountBackupEnabled=true \\\n  --profile management-profile\n\n# Delegate admin to a central audit account\naws organizations register-delegated-administrator \\\n  --account-id 222222222222 \\\n  --service-principal backup.amazonaws.com \\\n  --profile management-profile\n\n# In the delegated admin: create the org-wide backup vault\naws backup create-backup-vault \\\n  --backup-vault-name org-compliance-vault \\\n  --profile delegated-admin-profile\n```\n\nMember-account COPY_ACTION plan moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it when wiring member accounts to the org vault.\n\n**Gotchas:** The org vault account must grant member accounts\n`backup:CopyIntoBackupVault` via a vault access policy. Cross-region copy\nadds to the per-job cost. The delegated admin can audit but cannot\nrestore from member-account recovery points without a role assumption.\n\n## AWS Backup Search\nBackup Search CLI and gotchas moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it for eDiscovery or incident-response search.\n\n## Cost allocation tags\nCost-tag CLI and gotchas moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it when allocating backup spend per project.\n\n## EventBridge Scheduler for periodic audits\nScheduler + Lambda CLI moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it when scheduling periodic Audit Manager runs.\n\n## Step Functions compliance orchestration\nFull Step Functions state machine moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it when orchestrating multi-step compliance automation.\n\n## Output format (STRICT output contract)\n\nWhen this skill concludes a compliance design or audit, the agent MUST\nrespond with the block below using the literal all-caps labels `VAULT:`,\n`VERDICT:`, `CHECKLIST:`, `FINDINGS:`, and `REMEDIATION:`. Do NOT\npreface with prose, headings, or disclaimers — emit the block as the\nfirst lines of the response. This contract is what assertion-based evals\nand downstream compliance pipelines rely on; deviating from the literal\nlabels breaks automation silently.\n\n### Decision tree — backup compliance evaluation\n\n```text\nBackup compliance request?\n├── Designing a new compliance framework?\n│     ├── Choose framework: CIS | NIST | SOC2 | HIPAA | PCI | FedRAMP | custom\n│     ├── Map required controls from framework spec\n│     ├── Configure Audit Manager framework with controls\n│     ├── Set up reporting (compliance, job summary, coverage)\n│     ├── Legal hold? → YES: BackupLegalHold + Vault Lock (LOCK_MODE)\n│     ├── Cross-account? → YES: Organizations delegated admin + org vault\n│     └── Verify: restore drill, cost tags, report freshness\n├── Auditing existing backup compliance?\n│     ├── Check framework exists and controls mapped\n│     ├── Check backup frequency meets policy (last backup age)\n│     ├── Check encryption on all recovery points\n│     ├── Check retention meets minimum (Vault Lock)\n│     ├── Check cross-region replication (DR requirement)\n│     ├── Check legal hold tested (create + release cycle)\n│     └── Check restore drill within required window\n└── Gap found?\n      ├── Missing control? → Add control to framework\n      ├── Unencrypted recovery point? → CRITICAL — enable encryption\n      ├── Vault Lock in GOVERNANCE mode? → Promote to LOCK_MODE\n      ├── No restore drill? → Run drill, document RTO\n      └── Stale report? → Re-run report plan, alarm on failures\n```\n\n### Output template\n\n```text\nVAULT: \u003Cvault-name> (\u003Cregion>)\nVERDICT: AUTOMATED | MANUAL_STEP_REQUIRED\nCHECKLIST:\n  [PASS|FAIL|N\u002FA] Compliance framework: \u003CCIS|NIST|SOC2|HIPAA|PCI|FedRAMP|custom> — \u003Cn> controls mapped, last evaluation \u003Cdate>\n  [PASS|FAIL|N\u002FA] Backup frequency audit: last backup age \u003CXd>, max allowed \u003CXd> (\u003Ccompliant|non-compliant>)\n  [PASS|FAIL|N\u002FA] Encryption verification: \u003Cn>\u002F\u003Cn> recovery points encrypted\n  [PASS|FAIL|N\u002FA] Retention compliance: Vault Lock \u003CLOCK_MODE|GOVERNANCE|none>, min \u003Cd>d max \u003Cd>d\n  [PASS|FAIL|N\u002FA] Cross-region replication: \u003Cconfigured|not configured>, destination \u003Cregion>\n  [PASS|FAIL|N\u002FA] Legal hold: \u003Ctested|untested>, Vault Lock \u003Cmode>\n  [PASS|FAIL|N\u002FA] Restore drill: last \u003Cdate>, RTO \u003Cduration> (within \u003Crequired> window)\n  [PASS|FAIL|N\u002FA] Reporting: compliance report \u003Cfreshness>, coverage report \u003Cconfigured|missing>\n  [PASS|FAIL|N\u002FA] Cost allocation tags: \u003Cactive|inactive> in Cost Explorer\nFINDINGS:\n  - [INFO|WARN|HIGH|CRITICAL] \u003Cobservation>\nREMEDIATION:\n  1. \u003Cstep 1>\n  2. \u003Cstep 2>\n```\n\n### FORBIDDEN NEVER patterns (output contract)\n\n1. **NEVER emit `VERDICT: AUTOMATED` when any `[FAIL]` is present in the\n   checklist.** A single `[FAIL]` on any compliance pillar means the\n   playbook has a gap. The verdict MUST be `MANUAL_STEP_REQUIRED` with\n   the specific gap cited in FINDINGS and REMEDIATION.\n\n2. **NEVER mark Encryption as `[PASS]` without confirming\n   `BACKUP_RECOVERY_POINT_ENCRYPTED` control is in the framework AND all\n   recovery points are encrypted.** An unencrypted recovery point is a\n   compliance failure even if the backup ran successfully.\n\n3. **NEVER mark Retention compliance as `[PASS]` when Vault Lock is in\n   `GOVERNANCE` mode for a framework that requires immutability (HIPAA,\n   NIST, PCI, FedRAMP).** GOVERNANCE mode allows root to override\n   retention — only `LOCK_MODE` (compliance mode) satisfies immutability\n   requirements.\n\n4. **NEVER mark Restore drill as `[PASS]` without a documented restore\n   within the required window (typically 90 days for NIST, 365 days for\n   HIPAA).** A backup plan that never tested restores is unverified\n   recovery capability.\n\n5. **NEVER omit the FINDINGS section.** Even when\n   `VERDICT: AUTOMATED`, informational findings (e.g., cost observations,\n   minor warnings) MUST appear. An empty FINDINGS section implies the\n   audit was not thorough.\n\n6. **NEVER mark Legal hold as `[PASS]` if the create + release cycle has\n   not been tested.** The team's first legal hold operation should not\n   be under court deadline pressure. An untested legal hold is `[FAIL]`.\n\n7. **NEVER list remediation steps without a corresponding FINDING.**\n   Every REMEDIATION item MUST trace to a specific finding. Orphan\n   remediation steps create confusion about what was actually broken.\n\n### Perfect worked example — NIST compliance report with 3 non-compliant resources\n\n```text\nVAULT: nist-production-vault (us-east-1)\nVERDICT: MANUAL_STEP_REQUIRED\nCHECKLIST:\n  [PASS] Compliance framework: NIST — 6 controls mapped (PLAN_EXISTENCE, RESOURCES_PROTECTED, MANUAL_DELETION_DISABLED, LAST_BACKUP_AGE 1d, RECOVERY_POINT_ENCRYPTED, VARIANT_WITH_REGION_ISOLATION), last evaluation 2026-08-11 02:00 UTC\n  [FAIL] Backup frequency audit: 3 of 47 resources have last backup age > 24h (max allowed 1d) — non-compliant\n  [PASS] Encryption verification: 47\u002F47 recovery points encrypted (KMS key arn:aws:kms:us-east-1:123456789012:key\u002Fabc-123)\n  [FAIL] Retention compliance: Vault Lock in GOVERNANCE mode — NIST requires LOCK_MODE (compliance mode) for immutability; min 7d max 365d\n  [PASS] Cross-region replication: configured, destination us-west-2 (CopyAction in all backup plan rules)\n  [PASS] Legal hold: tested 2026-07-22 (create + release on non-production recovery point, documented in runbook)\n  [FAIL] Restore drill: last restore 2026-04-15 (> 90-day NIST window) — RTO unverified for current infrastructure\n  [PASS] Reporting: compliance report 2026-08-11 (within 24h SLA), coverage report weekly, job summary weekly\n  [PASS] Cost allocation tags: active in Cost Explorer (Project, Environment, Compliance, Workload)\nFINDINGS:\n  - [CRITICAL] Vault Lock in GOVERNANCE mode: root account can override retention.\n    NIST SP 800-34 requires compliance mode (LOCK_MODE) where even root cannot\n    bypass the lock. Affected: all 47 recovery points in nist-production-vault.\n  - [HIGH] 3 resources have stale backups (> 24h since last recovery point):\n    - i-0abc123def456 (EC2 instance, orders-api-prod-1): last backup 2026-08-09\n    - db-def456ghi789 (RDS instance, payments-db): last backup 2026-08-10\n    - vol-ghi789abc012 (EBS volume, cache-volume-prod): last backup 2026-08-08\n    These resources are tagged for the backup plan but the plan has not produced\n    a recovery point within the NIST-required daily window.\n  - [HIGH] Restore drill overdue: last drill was 2026-04-15 (118 days ago).\n    NIST SP 800-34 requires annual testing; internal policy requires 90-day\n    cadence. RTO for current infrastructure is unverified.\nREMEDIATION:\n  1. Promote Vault Lock from GOVERNANCE to LOCK_MODE (irreversible — test on\n     non-production vault first):\n     aws backup put-backup-vault-lock-configuration \\\n       --backup-vault-name nist-production-vault \\\n       --min-retention-days 7 --max-retention-days 365 \\\n       --mode LOCK_MODE --changeable-for-days 3\n  2. Investigate the 3 stale backup resources:\n     aws backup list-recovery-points-by-resource --resource-arn arn:aws:ec2:us-east-1:123456789012:instance\u002Fi-0abc123def456\n     aws backup list-recovery-points-by-resource --resource-arn arn:aws:rds:us-east-1:123456789012:db:payments-db\n     Verify the backup plan is active and on-demand backup job succeeds:\n     aws backup start-backup-job --backup-vault-name nist-production-vault \\\n       --resource-arn arn:aws:ec2:us-east-1:123456789012:instance\u002Fi-0abc123def456 \\\n       --iam-role-arn arn:aws:iam::123456789012:role\u002FAWSBackupDefaultServiceRole \\\n       --start-window-minutes 60 --complete-window-minutes 1440\n  3. Run a restore drill on a tier-1 resource (e.g., payments-db) to a\n     non-production VPC; document RTO and RPO. Target completion: 2026-08-19.\n  4. Re-run the compliance report after remediation:\n     aws backup start-report-job --report-plan-name nist-monthly-compliance\n```\n\nKey-details annotation moved to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nLoad it to see why each NIST finding maps to its remediation.\n\n### Worked example — AUTOMATED (all gates passing)\nFull example moved to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nLoad it when all gates pass and the verdict is AUTOMATED.\n\n**Self-check before emit:**\n- [ ] VAULT name and region present?\n- [ ] All 9 checklist rows present with [PASS|FAIL|N\u002FA]?\n- [ ] Any [FAIL] → VERDICT is MANUAL_STEP_REQUIRED (never AUTOMATED)?\n- [ ] Every [FAIL] has a corresponding finding with severity?\n- [ ] Every finding traces to a remediation step with CLI command?\n- [ ] Encryption and Retention rows cite the specific control\u002Fmode?\n- [ ] FINDINGS section is non-empty (at least one INFO)?\n\n## NEVER (these things)\n\n- NEVER run Vault Lock in GOVERNANCE mode when a compliance framework\n  requires immutability. GOVERNANCE mode allows the root account to\n  override retention — that defeats the purpose. Compliance frameworks\n  (HIPAA, SOC2, PCI) require LOCK_MODE (compliance mode) where even root\n  cannot bypass the lock.\n\n- NEVER ship an Audit Manager framework without encryption controls. An\n  unencrypted recovery point is a compliance failure even if the backup\n  ran successfully. Always include\n  `BACKUP_RECOVERY_POINT_ENCRYPTED` for any framework touching regulated\n  data.\n\n- NEVER skip the legal hold test. The team's first legal hold should not\n  be under court deadline pressure. Run a create + release cycle on a\n  non-production recovery point quarterly; document the runbook with the\n  case-ID convention.\n\n- NEVER assume per-account backup plans satisfy an org-wide compliance\n  requirement. Without cross-account centralization, the auditor has no\n  single view; member-account drift (stale recovery points, missing tags)\n  goes undetected. The Organizations delegated admin + org vault is the\n  canonical centralization pattern.\n\n- NEVER auto-remediate by deleting recovery points. A \"stale\" recovery\n  point may be subject to a legal hold the auto-remediation logic does not\n  know about. Auto-remediation should be additive (back up the forgotten\n  resource) — destructive actions need human approval.\n\n## Expert heuristic callouts\nAll ten expert-heuristic callouts moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it for the non-obvious behaviors that change a design.\n\n## Pre-flight safety checks\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing legal hold\n  operation (`create-legal-hold`, `delete-legal-hold`,\n  `put-backup-vault-lock-configuration` in LOCK_MODE), emit: `CONFIRM:\n  About to \u003Caction> for \u003Ccase \u002F vault>. LOCK_MODE is irreversible.\n  Proceed? (yes\u002Fno)` and wait for explicit `yes`.\n- **LOCK_MODE is irreversible.** Once Vault Lock is in LOCK_MODE past the\n  `changeable-for-days` window, it cannot be removed. Test in GOVERNANCE\n  mode first, then promote.\n- **Verify the legal hold case-ID convention.** Every hold title must\n  include the case ID for traceability.\n- **Verify cross-account vault access policy.** Member accounts must have\n  `backup:CopyIntoBackupVault` before their plans can copy.\n- **Verify cost tag activation.** `aws ce get-cost-and-usage` should show\n  the tag as a dimension.\n\n## Edge-case handling\nEdge-case catalog moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it on GOVERNANCE-to-LOCK_MODE migration, control gaps, or report drift.\n\n## Recent AWS features (2024-2026)\nFeature detail moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it when scoping Backup Search, cost tags, or Report Stream.\n\n## References (load on demand)\n\n- [Audit Manager controls](references\u002Faudit-manager-controls.md) — control library detail, audit-template report-plan CLI, controls-evaluate-actual-state gotcha\n- [Legal hold and Vault Lock](references\u002Flegal-hold-and-vault-lock.md) — BackupLegalHold lifecycle, LOCK_MODE configuration, end-to-end litigation hold incl. EventBridge rule + Lambda responder\n- [Worked examples](references\u002Fworked-examples.md) — AUTOMATED (all gates passing) example + key-details annotation of the NIST example\n- [Diagnostic commands](references\u002Fdiagnostic-commands.md) — live-account pre-flight checks\n- [Advanced patterns](references\u002Fadvanced-patterns.md) — mindset deep dives, Report Stream, member-account copy plan, Backup Search, cost tags, EventBridge Scheduler, Step Functions orchestration, expert heuristics, edge cases, recent AWS features\n\n## Domain\n\nAWS CloudOps \u002F Backup Compliance Automation.\n\n## AWS documentation\n\n- **AWS Backup** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002F\n- **AWS Backup Audit Manager** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Faudit-manager.html\n- **AWS Backup legal hold** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Flegal-holds.html\n- **AWS Backup Vault Lock** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Fvaults.html#vault-lock\n- **AWS Backup cross-account \u002F cross-region** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Fcross-account-backup.html\n- **AWS Backup Search** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Fsearch.html\n- **AWS Backup reporting** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Fbackup-reporting.html\n- **AWS Organizations delegated administrator** — https:\u002F\u002Fdocs.aws.amazon.com\u002Forganizations\u002Flatest\u002Fuserguide\u002Forgs_integrate_services.html\n- **AWS Backup cost allocation tags** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Ftagging.html\n\n","# Backup Compliance Automator\n\n## What this skill does\n\nDesigns automated AWS Backup compliance across the four pillars —\n**Backup Audit Manager** (audit frameworks, audit templates, control\nlibrary with manual and automated controls), **backup reporting** (job\nsummary report, compliance report, coverage report, Backup Report Stream),\n**legal hold automation** (BackupLegalHold resource for immutable recovery\npoints, EventBridge-triggered litigation hold), and **cross-account \u002F\ncross-region backup auditing** (AWS Organizations backup vault, delegated\nadministrator) — and the latest features: **AWS Backup Search** (search\nacross backups without restoring) and **Backup cost allocation tags**\n(allocated spend per resource \u002F vault \u002F job).\n\nThe verdict is binary: **AUTOMATED** when the playbook covers a chosen\ncompliance framework with mapped controls, scheduled reporting, legal hold\ntested (if applicable), cross-account centralization (for orgs), and\nverification step; **MANUAL_STEP_REQUIRED** when any component is missing\n(e.g., audit framework missing a control, no scheduled compliance report,\nlegal hold never tested, single-account-only vault in an org).\n\n## Quick navigation\n\n| # | Section | Jump when |\n|---|---|---|\n| 1 | [Pre-flight gate](#pre-flight-backup-compliance-spec-gate) | Starting any design — blocks unsafe specs |\n| 2 | [Pillars overview](#backup-compliance-pillars) | The four pillars at a glance |\n| 3 | [Backup Audit Manager](#backup-audit-manager-frameworks) | Framework, template, controls |\n| 4 | [Backup reporting](#backup-reporting) | Job summary, compliance, coverage, Report Stream |\n| 5 | [Legal hold](#legal-hold-automation) | BackupLegalHold, Vault Lock, EventBridge trigger |\n| 6 | [Cross-account audit](#cross-account--cross-region-audit) | Organizations backup vault, delegated admin |\n| 7 | [Backup Search](#aws-backup-search) | Search across backups without restore |\n| 8 | [Cost allocation tags](#cost-allocation-tags) | Allocate spend per resource \u002F vault |\n| 9 | [EventBridge Scheduler](#eventbridge-scheduler-for-periodic-audits) | Periodic audit \u002F report runs |\n| 10 | [Step Functions orchestrator](#step-functions-compliance-orchestration) | Multi-step compliance state machine |\n| 11 | [STRICT output contract](#output-format-strict-output-contract) | The exact Backup compliance block |\n| 12 | [NEVER anti-patterns](#never-these-things) | The hardcoded list of Backup taboos |\n| 13 | [Expert heuristic](#expert-heuristic-callouts) | Non-obvious behaviors that change the design |\n| 14 | [Recent AWS features](#recent-aws-features-2024-2026) | Backup Search, cost tags, Report Stream |\n| 15 | [Edge cases](#edge-case-handling) | Vault Lock, control gaps, report freshness |\n\n## Mindset\n\n**One-line takeaway:** backup compliance is **auditable evidence that the\nbackup plan actually ran, the recovery points are immutable for the\nrequired retention, and the legal hold chain of custody is intact**. A\nbackup plan that runs but produces no auditable evidence is, for\ncompliance purposes, no backup at all.\n\nMindset deep dives (Audit Manager evidence, legal hold vs Vault Lock, cross-account centralization) moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it when designing the compliance evidence chain.\n\n## Pre-flight: Backup compliance spec gate (run before generation)\n\n| Attribute | Required | Effect on plan |\n|---|---|---|\n| `compliance_framework` | YES | SOC2 \u002F HIPAA \u002F PCI \u002F FedRAMP \u002F custom — drives control selection |\n| `resources_in_scope` | YES | Resource types (EC2, RDS, DynamoDB, EFS, S3, VMware, etc.) |\n| `accounts_scope` | YES | Single-account OR organizational (delegated admin) |\n| `retention_policy` | YES | Days\u002Fweeks\u002Fmonths\u002Fyears, immutability requirement |\n| `legal_hold_required` | Recommended | Yes \u002F No — drives BackupLegalHold design |\n| `existing_workflow` | For audit mode | When provided, run the layer gates |\n\n**If the spec is incomplete**, output:\n\n```text\nFRAMEWORK: \u003Cunknown>\nREPORTING: \u003Cunknown>\nLEGAL_HOLD: \u003Cunknown>\nCROSS_ACCOUNT: \u003Cunknown>\nSEARCH: \u003Cunknown>\nVERIFICATION: \u003Cunknown>\nVERDICT: MANUAL_STEP_REQUIRED\nREASON: Spec is missing required fields (\u003Clist>).\nREQUIRED:\n  - compliance_framework (SOC2 | HIPAA | PCI | FedRAMP | custom:\u003Cid>)\n  - resources_in_scope (subset of [EC2, RDS, DynamoDB, EFS, FSx, S3, VMware, Storage Gateway])\n  - accounts_scope (single | org)\n  - retention_policy (e.g., 35d daily, 12m monthly, immutability yes\u002Fno)\nREMEDIATION: Provide all required fields. Example: \"build a SOC2 backup\naudit framework for EC2 and RDS in our 30-account org with 35-day daily\nretention and legal hold on demand\" maps to compliance_framework=SOC2,\nresources_in_scope=[EC2, RDS], accounts_scope=org, retention_policy=35d\ndaily immutable, legal_hold_required=yes.\n```\n\nLive-account pre-flight command listing moved to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nRun these before generating any compliance playbook.\n\n## Backup compliance pillars\n\n| Pillar | Purpose | Primary mechanism |\n|---|---|---|\n| Backup Audit Manager | Continuous control evaluation against a framework | Audit framework + controls + audit template |\n| Backup reporting | Periodic evidence export for auditors | Report plan (job summary, compliance, coverage) |\n| Legal hold | Litigation-driven recovery point freeze | BackupLegalHold resource, Vault Lock |\n| Cross-account \u002F cross-region | Org-wide centralization | Organizations backup vault + delegated admin |\n\n## Backup Audit Manager frameworks\n\n```bash\n# Use a managed framework as a starting point\naws backup audit-manager list-frameworks --query 'frameworks[*].[frameworkName,frameworkArn]'\n\n# Create a custom framework\naws backup audit-manager create-framework \\\n  --framework-name soc2-backup-compliance \\\n  --framework-controls '[\n    {\"ControlName\":\"BACKUP_PLAN_EXISTENCE\",\"ControlInputParameters\":[]},\n    {\"ControlName\":\"BACKUP_REPORT_LAST_BACKUP_AGE\",\"ControlInputParameters\":[{\"Name\":\"maxAgeInDays\",\"Value\":\"1\"}]},\n    {\"ControlName\":\"BACKUP_RECOVERY_POINT_MANUAL_DELETION_DISABLED\",\"ControlInputParameters\":[]},\n    {\"ControlName\":\"BACKUP_RESOURCES_PROTECTED_BY_BACKUP_PLAN\",\"ControlInputParameters\":[]}\n  ]' \\\n  --framework-description \"SOC2-aligned backup controls\"\n```\n\n**Control categories (subset of the control library):**\n| Control | What it checks |\n|---|---|\n| `BACKUP_PLAN_EXISTENCE` | Every resource type in scope has a backup plan |\n| `BACKUP_RESOURCES_PROTECTED_BY_BACKUP_PLAN` | All resources in scope are tagged to a plan |\n| `BACKUP_RECOVERY_POINT_MANUAL_DELETION_DISABLED` | Vault Lock prevents manual deletes |\n| `BACKUP_RECOVERY_POINT_MINIMUM_RETENTION` | Retention meets the policy minimum |\n| `BACKUP_REPORT_LAST_BACKUP_AGE` | Most recent recovery point is within maxAgeInDays |\n| `BACKUP_REPORT_LAST_RESTORE_AGE` | Most recent restore is within maxAgeInDays (restore drill) |\n| `BACKUP_RECOVERY_POINT_ENCRYPTED` | Recovery points are encrypted |\n| `BACKUP_VARIANT_WITH_REGION_ISOLATION` | Cross-region copy exists for DR |\n\nGotcha detail (controls evaluate actual state; fixed control library) moved to [references\u002Faudit-manager-controls.md](references\u002Faudit-manager-controls.md).\nLoad it when a control fails despite a configured plan.\n\n### Audit template\nAudit template report-plan CLI moved to [references\u002Faudit-manager-controls.md](references\u002Faudit-manager-controls.md).\nLoad it when scheduling the framework compliance report.\n\n## Backup reporting\n\n| Report type | Report template | Purpose |\n|---|---|---|\n| Job summary | `JOB_SUMMARY` | Backup job success\u002Ffailure counts over the period |\n| Compliance | `COMPLIANCE` | Control evaluation results against a framework |\n| Coverage | `COVERAGE` | Resources protected vs unprotected |\n\n```bash\n# Schedule a monthly compliance report\naws backup audit-manager create-report-plan \\\n  --report-plan-name monthly-compliance-report \\\n  --report-setting '{\"ReportTemplate\":\"COMPLIANCE\",\"Frameworks\":[\"arn:aws:backup:us-east-1:111111111111:framework:soc2-backup-compliance\"]}' \\\n  --reportDeliveryConfig={\"S3BucketName\":\"backup-reports\"} \\\n  --idempotencyToken \"$(uuidgen)\"\n```\n\nBackup Report Stream detail and reporting gotchas moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it when near-real-time compliance detection is required.\n\n## Legal hold automation\n\n### BackupLegalHold resource (freezes specific recovery points)\n\n```bash\naws backup create-legal-hold \\\n  --title \"Acme v. Example - 2026-08-05\" \\\n  --description \"Litigation hold on EBS volumes for case #2026-CV-1234\" \\\n  --legal-hold-status ACTIVE \\\n  --recovery-point-selection '{\n    \"ResourceIdentifiers\":[\"arn:aws:ec2:us-east-1::volume\u002Fvol-0abc\"],\n    \"DateRange\":{\"FromDate\":\"2026-08-01\",\"ToDate\":\"2026-08-05\"}\n  }'\n```\n\n### Vault Lock (vault-wide retention immutability)\n\n```bash\naws backup put-backup-vault-lock-configuration \\\n  --backup-vault-name production-vault \\\n  --min-retention-days 7 \\\n  --max-retention-days 365 \\\n  --changeable-for-days 3 \\\n  --mode LOCK_MODE\n```\n\n**Difference:** Vault Lock applies to ALL recovery points in the vault\nforever (governance or compliance mode). Legal hold applies to specific\nrecovery points for the duration of the hold. Use Vault Lock for policy\nimmutability; use Legal Hold for litigation-driven freezes.\n\n### EventBridge-triggered litigation hold\nEventBridge rule + Lambda responder moved to [references\u002Flegal-hold-and-vault-lock.md](references\u002Flegal-hold-and-vault-lock.md).\nLoad it when automating litigation hold from a legal-team event.\n\n## Cross-account \u002F cross-region audit\n\nFor AWS Organizations, enable cross-account backup so a delegated\nadministrator account sees backups across all member accounts:\n\n```bash\n# In the management account: enable cross-account backup\naws organizations enable-aws-service-access \\\n  --service-principal backup.amazonaws.com\n\naws backup update-global-settings \\\n  --global-settings isCrossAccountBackupEnabled=true \\\n  --profile management-profile\n\n# Delegate admin to a central audit account\naws organizations register-delegated-administrator \\\n  --account-id 222222222222 \\\n  --service-principal backup.amazonaws.com \\\n  --profile management-profile\n\n# In the delegated admin: create the org-wide backup vault\naws backup create-backup-vault \\\n  --backup-vault-name org-compliance-vault \\\n  --profile delegated-admin-profile\n```\n\nMember-account COPY_ACTION plan moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it when wiring member accounts to the org vault.\n\n**Gotchas:** The org vault account must grant member accounts\n`backup:CopyIntoBackupVault` via a vault access policy. Cross-region copy\nadds to the per-job cost. The delegated admin can audit but cannot\nrestore from member-account recovery points without a role assumption.\n\n## AWS Backup Search\nBackup Search CLI and gotchas moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it for eDiscovery or incident-response search.\n\n## Cost allocation tags\nCost-tag CLI and gotchas moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it when allocating backup spend per project.\n\n## EventBridge Scheduler for periodic audits\nScheduler + Lambda CLI moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it when scheduling periodic Audit Manager runs.\n\n## Step Functions compliance orchestration\nFull Step Functions state machine moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it when orchestrating multi-step compliance automation.\n\n## Output format (STRICT output contract)\n\nWhen this skill concludes a compliance design or audit, the agent MUST\nrespond with the block below using the literal all-caps labels `VAULT:`,\n`VERDICT:`, `CHECKLIST:`, `FINDINGS:`, and `REMEDIATION:`. Do NOT\npreface with prose, headings, or disclaimers — emit the block as the\nfirst lines of the response. This contract is what assertion-based evals\nand downstream compliance pipelines rely on; deviating from the literal\nlabels breaks automation silently.\n\n### Decision tree — backup compliance evaluation\n\n```text\nBackup compliance request?\n├── Designing a new compliance framework?\n│     ├── Choose framework: CIS | NIST | SOC2 | HIPAA | PCI | FedRAMP | custom\n│     ├── Map required controls from framework spec\n│     ├── Configure Audit Manager framework with controls\n│     ├── Set up reporting (compliance, job summary, coverage)\n│     ├── Legal hold? → YES: BackupLegalHold + Vault Lock (LOCK_MODE)\n│     ├── Cross-account? → YES: Organizations delegated admin + org vault\n│     └── Verify: restore drill, cost tags, report freshness\n├── Auditing existing backup compliance?\n│     ├── Check framework exists and controls mapped\n│     ├── Check backup frequency meets policy (last backup age)\n│     ├── Check encryption on all recovery points\n│     ├── Check retention meets minimum (Vault Lock)\n│     ├── Check cross-region replication (DR requirement)\n│     ├── Check legal hold tested (create + release cycle)\n│     └── Check restore drill within required window\n└── Gap found?\n      ├── Missing control? → Add control to framework\n      ├── Unencrypted recovery point? → CRITICAL — enable encryption\n      ├── Vault Lock in GOVERNANCE mode? → Promote to LOCK_MODE\n      ├── No restore drill? → Run drill, document RTO\n      └── Stale report? → Re-run report plan, alarm on failures\n```\n\n### Output template\n\n```text\nVAULT: \u003Cvault-name> (\u003Cregion>)\nVERDICT: AUTOMATED | MANUAL_STEP_REQUIRED\nCHECKLIST:\n  [PASS|FAIL|N\u002FA] Compliance framework: \u003CCIS|NIST|SOC2|HIPAA|PCI|FedRAMP|custom> — \u003Cn> controls mapped, last evaluation \u003Cdate>\n  [PASS|FAIL|N\u002FA] Backup frequency audit: last backup age \u003CXd>, max allowed \u003CXd> (\u003Ccompliant|non-compliant>)\n  [PASS|FAIL|N\u002FA] Encryption verification: \u003Cn>\u002F\u003Cn> recovery points encrypted\n  [PASS|FAIL|N\u002FA] Retention compliance: Vault Lock \u003CLOCK_MODE|GOVERNANCE|none>, min \u003Cd>d max \u003Cd>d\n  [PASS|FAIL|N\u002FA] Cross-region replication: \u003Cconfigured|not configured>, destination \u003Cregion>\n  [PASS|FAIL|N\u002FA] Legal hold: \u003Ctested|untested>, Vault Lock \u003Cmode>\n  [PASS|FAIL|N\u002FA] Restore drill: last \u003Cdate>, RTO \u003Cduration> (within \u003Crequired> window)\n  [PASS|FAIL|N\u002FA] Reporting: compliance report \u003Cfreshness>, coverage report \u003Cconfigured|missing>\n  [PASS|FAIL|N\u002FA] Cost allocation tags: \u003Cactive|inactive> in Cost Explorer\nFINDINGS:\n  - [INFO|WARN|HIGH|CRITICAL] \u003Cobservation>\nREMEDIATION:\n  1. \u003Cstep 1>\n  2. \u003Cstep 2>\n```\n\n### FORBIDDEN NEVER patterns (output contract)\n\n1. **NEVER emit `VERDICT: AUTOMATED` when any `[FAIL]` is present in the\n   checklist.** A single `[FAIL]` on any compliance pillar means the\n   playbook has a gap. The verdict MUST be `MANUAL_STEP_REQUIRED` with\n   the specific gap cited in FINDINGS and REMEDIATION.\n\n2. **NEVER mark Encryption as `[PASS]` without confirming\n   `BACKUP_RECOVERY_POINT_ENCRYPTED` control is in the framework AND all\n   recovery points are encrypted.** An unencrypted recovery point is a\n   compliance failure even if the backup ran successfully.\n\n3. **NEVER mark Retention compliance as `[PASS]` when Vault Lock is in\n   `GOVERNANCE` mode for a framework that requires immutability (HIPAA,\n   NIST, PCI, FedRAMP).** GOVERNANCE mode allows root to override\n   retention — only `LOCK_MODE` (compliance mode) satisfies immutability\n   requirements.\n\n4. **NEVER mark Restore drill as `[PASS]` without a documented restore\n   within the required window (typically 90 days for NIST, 365 days for\n   HIPAA).** A backup plan that never tested restores is unverified\n   recovery capability.\n\n5. **NEVER omit the FINDINGS section.** Even when\n   `VERDICT: AUTOMATED`, informational findings (e.g., cost observations,\n   minor warnings) MUST appear. An empty FINDINGS section implies the\n   audit was not thorough.\n\n6. **NEVER mark Legal hold as `[PASS]` if the create + release cycle has\n   not been tested.** The team's first legal hold operation should not\n   be under court deadline pressure. An untested legal hold is `[FAIL]`.\n\n7. **NEVER list remediation steps without a corresponding FINDING.**\n   Every REMEDIATION item MUST trace to a specific finding. Orphan\n   remediation steps create confusion about what was actually broken.\n\n### Perfect worked example — NIST compliance report with 3 non-compliant resources\n\n```text\nVAULT: nist-production-vault (us-east-1)\nVERDICT: MANUAL_STEP_REQUIRED\nCHECKLIST:\n  [PASS] Compliance framework: NIST — 6 controls mapped (PLAN_EXISTENCE, RESOURCES_PROTECTED, MANUAL_DELETION_DISABLED, LAST_BACKUP_AGE 1d, RECOVERY_POINT_ENCRYPTED, VARIANT_WITH_REGION_ISOLATION), last evaluation 2026-08-11 02:00 UTC\n  [FAIL] Backup frequency audit: 3 of 47 resources have last backup age > 24h (max allowed 1d) — non-compliant\n  [PASS] Encryption verification: 47\u002F47 recovery points encrypted (KMS key arn:aws:kms:us-east-1:123456789012:key\u002Fabc-123)\n  [FAIL] Retention compliance: Vault Lock in GOVERNANCE mode — NIST requires LOCK_MODE (compliance mode) for immutability; min 7d max 365d\n  [PASS] Cross-region replication: configured, destination us-west-2 (CopyAction in all backup plan rules)\n  [PASS] Legal hold: tested 2026-07-22 (create + release on non-production recovery point, documented in runbook)\n  [FAIL] Restore drill: last restore 2026-04-15 (> 90-day NIST window) — RTO unverified for current infrastructure\n  [PASS] Reporting: compliance report 2026-08-11 (within 24h SLA), coverage report weekly, job summary weekly\n  [PASS] Cost allocation tags: active in Cost Explorer (Project, Environment, Compliance, Workload)\nFINDINGS:\n  - [CRITICAL] Vault Lock in GOVERNANCE mode: root account can override retention.\n    NIST SP 800-34 requires compliance mode (LOCK_MODE) where even root cannot\n    bypass the lock. Affected: all 47 recovery points in nist-production-vault.\n  - [HIGH] 3 resources have stale backups (> 24h since last recovery point):\n    - i-0abc123def456 (EC2 instance, orders-api-prod-1): last backup 2026-08-09\n    - db-def456ghi789 (RDS instance, payments-db): last backup 2026-08-10\n    - vol-ghi789abc012 (EBS volume, cache-volume-prod): last backup 2026-08-08\n    These resources are tagged for the backup plan but the plan has not produced\n    a recovery point within the NIST-required daily window.\n  - [HIGH] Restore drill overdue: last drill was 2026-04-15 (118 days ago).\n    NIST SP 800-34 requires annual testing; internal policy requires 90-day\n    cadence. RTO for current infrastructure is unverified.\nREMEDIATION:\n  1. Promote Vault Lock from GOVERNANCE to LOCK_MODE (irreversible — test on\n     non-production vault first):\n     aws backup put-backup-vault-lock-configuration \\\n       --backup-vault-name nist-production-vault \\\n       --min-retention-days 7 --max-retention-days 365 \\\n       --mode LOCK_MODE --changeable-for-days 3\n  2. Investigate the 3 stale backup resources:\n     aws backup list-recovery-points-by-resource --resource-arn arn:aws:ec2:us-east-1:123456789012:instance\u002Fi-0abc123def456\n     aws backup list-recovery-points-by-resource --resource-arn arn:aws:rds:us-east-1:123456789012:db:payments-db\n     Verify the backup plan is active and on-demand backup job succeeds:\n     aws backup start-backup-job --backup-vault-name nist-production-vault \\\n       --resource-arn arn:aws:ec2:us-east-1:123456789012:instance\u002Fi-0abc123def456 \\\n       --iam-role-arn arn:aws:iam::123456789012:role\u002FAWSBackupDefaultServiceRole \\\n       --start-window-minutes 60 --complete-window-minutes 1440\n  3. Run a restore drill on a tier-1 resource (e.g., payments-db) to a\n     non-production VPC; document RTO and RPO. Target completion: 2026-08-19.\n  4. Re-run the compliance report after remediation:\n     aws backup start-report-job --report-plan-name nist-monthly-compliance\n```\n\nKey-details annotation moved to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nLoad it to see why each NIST finding maps to its remediation.\n\n### Worked example — AUTOMATED (all gates passing)\nFull example moved to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\nLoad it when all gates pass and the verdict is AUTOMATED.\n\n**Self-check before emit:**\n- [ ] VAULT name and region present?\n- [ ] All 9 checklist rows present with [PASS|FAIL|N\u002FA]?\n- [ ] Any [FAIL] → VERDICT is MANUAL_STEP_REQUIRED (never AUTOMATED)?\n- [ ] Every [FAIL] has a corresponding finding with severity?\n- [ ] Every finding traces to a remediation step with CLI command?\n- [ ] Encryption and Retention rows cite the specific control\u002Fmode?\n- [ ] FINDINGS section is non-empty (at least one INFO)?\n\n## NEVER (these things)\n\n- NEVER run Vault Lock in GOVERNANCE mode when a compliance framework\n  requires immutability. GOVERNANCE mode allows the root account to\n  override retention — that defeats the purpose. Compliance frameworks\n  (HIPAA, SOC2, PCI) require LOCK_MODE (compliance mode) where even root\n  cannot bypass the lock.\n\n- NEVER ship an Audit Manager framework without encryption controls. An\n  unencrypted recovery point is a compliance failure even if the backup\n  ran successfully. Always include\n  `BACKUP_RECOVERY_POINT_ENCRYPTED` for any framework touching regulated\n  data.\n\n- NEVER skip the legal hold test. The team's first legal hold should not\n  be under court deadline pressure. Run a create + release cycle on a\n  non-production recovery point quarterly; document the runbook with the\n  case-ID convention.\n\n- NEVER assume per-account backup plans satisfy an org-wide compliance\n  requirement. Without cross-account centralization, the auditor has no\n  single view; member-account drift (stale recovery points, missing tags)\n  goes undetected. The Organizations delegated admin + org vault is the\n  canonical centralization pattern.\n\n- NEVER auto-remediate by deleting recovery points. A \"stale\" recovery\n  point may be subject to a legal hold the auto-remediation logic does not\n  know about. Auto-remediation should be additive (back up the forgotten\n  resource) — destructive actions need human approval.\n\n## Expert heuristic callouts\nAll ten expert-heuristic callouts moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it for the non-obvious behaviors that change a design.\n\n## Pre-flight safety checks\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing legal hold\n  operation (`create-legal-hold`, `delete-legal-hold`,\n  `put-backup-vault-lock-configuration` in LOCK_MODE), emit: `CONFIRM:\n  About to \u003Caction> for \u003Ccase \u002F vault>. LOCK_MODE is irreversible.\n  Proceed? (yes\u002Fno)` and wait for explicit `yes`.\n- **LOCK_MODE is irreversible.** Once Vault Lock is in LOCK_MODE past the\n  `changeable-for-days` window, it cannot be removed. Test in GOVERNANCE\n  mode first, then promote.\n- **Verify the legal hold case-ID convention.** Every hold title must\n  include the case ID for traceability.\n- **Verify cross-account vault access policy.** Member accounts must have\n  `backup:CopyIntoBackupVault` before their plans can copy.\n- **Verify cost tag activation.** `aws ce get-cost-and-usage` should show\n  the tag as a dimension.\n\n## Edge-case handling\nEdge-case catalog moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it on GOVERNANCE-to-LOCK_MODE migration, control gaps, or report drift.\n\n## Recent AWS features (2024-2026)\nFeature detail moved to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad it when scoping Backup Search, cost tags, or Report Stream.\n\n## References (load on demand)\n\n- [Audit Manager controls](references\u002Faudit-manager-controls.md) — control library detail, audit-template report-plan CLI, controls-evaluate-actual-state gotcha\n- [Legal hold and Vault Lock](references\u002Flegal-hold-and-vault-lock.md) — BackupLegalHold lifecycle, LOCK_MODE configuration, end-to-end litigation hold incl. EventBridge rule + Lambda responder\n- [Worked examples](references\u002Fworked-examples.md) — AUTOMATED (all gates passing) example + key-details annotation of the NIST example\n- [Diagnostic commands](references\u002Fdiagnostic-commands.md) — live-account pre-flight checks\n- [Advanced patterns](references\u002Fadvanced-patterns.md) — mindset deep dives, Report Stream, member-account copy plan, Backup Search, cost tags, EventBridge Scheduler, Step Functions orchestration, expert heuristics, edge cases, recent AWS features\n\n## Domain\n\nAWS CloudOps \u002F Backup Compliance Automation.\n\n## AWS documentation\n\n- **AWS Backup** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002F\n- **AWS Backup Audit Manager** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Faudit-manager.html\n- **AWS Backup legal hold** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Flegal-holds.html\n- **AWS Backup Vault Lock** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Fvaults.html#vault-lock\n- **AWS Backup cross-account \u002F cross-region** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Fcross-account-backup.html\n- **AWS Backup Search** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Fsearch.html\n- **AWS Backup reporting** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Fbackup-reporting.html\n- **AWS Organizations delegated administrator** — https:\u002F\u002Fdocs.aws.amazon.com\u002Forganizations\u002Flatest\u002Fuserguide\u002Forgs_integrate_services.html\n- **AWS Backup cost allocation tags** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faws-backup\u002Flatest\u002Fdevguide\u002Ftagging.html\n\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,"requires_llm":37,"verdict_shape":38,"when_not_to_use":39,"lifecycle_status":40,"invocation_schema":41,"supports_pipeline":37,"activation_triggers":42},"aws-backup, audit-manager, legal-hold, backup-vault, automate","4","Jacky Chan — AWS Community Builder","aws-cloudops","Storage","0.1.0","AWS Backup, Backup Audit Manager, audit framework, audit template, compliance report, job summary report, coverage report, legal hold, litigation hold, immutability, Backup Vault Lock, cross-account backup, cross-region backup, AWS Organizations, Backup Search, cost allocation tags, backup reporting, Backup Report Stream, EventBridge Scheduler, control library","automate","high","false","capability","Designing backup compliance automation, configuring AWS Backup Audit Manager frameworks and templates, building legal hold workflows, centralizing cross-account backup auditing, deploying Backup Search, configuring backup cost allocation tags, or automating compliance report generation on a schedule.","true","AUTOMATED | MANUAL_STEP_REQUIRED","Designing the backup plan itself (use backup-plan-auditor or operate-backup-vault — this skill audits compliance, not the plan)., Executing a restore (use rds-backup-restore-operator \u002F ec2-backup-operator — this skill does not perform restores)., General storage cost optimization (use ebs-volume-optimizer or s3-storage-lens — Backup is one input)., Disaster recovery failover design (use dr-failover-automator — Backup is one DR input, not the strategy).","active","Input: either (a) a backup compliance requirement (\"build a Backup Audit Manager framework for SOC2 with daily compliance reports and legal hold on demand\"), OR (b) an existing Backup Audit Manager configuration \u002F legal hold workflow \u002F cross-account vault setup to audit and harden. Output: deterministic Backup compliance block per requirement — FRAMEWORK\u002FREPORTING\u002FLEGAL_HOLD\u002FCROSS_ACCOUNT\u002FSEARCH\u002F VERIFICATION\u002FVERDICT — where VERDICT is AUTOMATED (compliance playbook complete with all gates passing) or MANUAL_STEP_REQUIRED (specific gap cited, e.g., no legal hold tested, audit framework missing control, cross-account vault not configured).","Backup compliance automation, Backup Audit Manager, audit framework, audit template, legal hold, litigation hold, Backup Vault Lock, compliance report, job summary report, cross-account backup audit, Backup Search, cost allocation tags backup, Backup Report Stream, EventBridge legal hold, Organizations backup vault","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline plan authoring. Live deployment uses aws backup audit-manager create-framework \u002F create-report-plan, aws backup start-backup-job \u002F start-restore-job, aws backup create-legal-hold \u002F start-legal-hold, aws backup create-backup-vault (cross-account), aws backup-gateway list-hypervisors (VMware), aws backup list-tags \u002F tag-resource (cost allocation), aws backup search (Backup Search)...","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fbackup-compliance-automator",0,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills","https:\u002F\u002Fgithub.com\u002Fjhkchan","CTO & Co-Founder @Beever-AI  & @votee. CAISP. AWS Community Builder. Organizer@GDGCloudHK. MongoDB Champion. Technopreneur + Infornographer.","2026-09-24 08:54:10",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill backup-compliance-automator",{"tool":58,"command":59},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill backup-compliance-automator",{"tool":61,"command":62},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill backup-compliance-automator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-compliance-automator\u002FSKILL.md",true,[66,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,140,144],{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",10105,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-compliance-automator\u002Feval\u002Ftest-cases.yaml",{"path":73,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":74,"sourceHtmlUrl":75},"evals\u002Fbaselines\u002Fcross-region-pitr-search.md",1178,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-compliance-automator\u002Fevals\u002Fbaselines\u002Fcross-region-pitr-search.md",{"path":77,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":78,"sourceHtmlUrl":79},"evals\u002Fbaselines\u002Fgovernance-mode-no-test.md",1370,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-compliance-automator\u002Fevals\u002Fbaselines\u002Fgovernance-mode-no-test.md",{"path":81,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":82,"sourceHtmlUrl":83},"evals\u002Fbaselines\u002Fhipaa-vault-lock-test.md",1162,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-compliance-automator\u002Fevals\u002Fbaselines\u002Fhipaa-vault-lock-test.md",{"path":85,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":86,"sourceHtmlUrl":87},"evals\u002Fbaselines\u002Fno-org-vault-drift.md",1464,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-compliance-automator\u002Fevals\u002Fbaselines\u002Fno-org-vault-drift.md",{"path":89,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":90,"sourceHtmlUrl":91},"evals\u002Fbaselines\u002Fsoc2-cross-account-legal-hold.md",1624,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-compliance-automator\u002Fevals\u002Fbaselines\u002Fsoc2-cross-account-legal-hold.md",{"path":93,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":94,"sourceHtmlUrl":95},"evals\u002Feval_config.yaml",1712,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-compliance-automator\u002Fevals\u002Feval_config.yaml",{"path":97,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":98,"sourceHtmlUrl":99},"evals\u002Fevals.json",4658,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-compliance-automator\u002Fevals\u002Fevals.json",{"path":101,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":102,"sourceHtmlUrl":103},"evals\u002Fprompts\u002Fcross-region-pitr-search.md",1600,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-compliance-automator\u002Fevals\u002Fprompts\u002Fcross-region-pitr-search.md",{"path":105,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":106,"sourceHtmlUrl":107},"evals\u002Fprompts\u002Fgovernance-mode-no-test.md",2309,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-compliance-automator\u002Fevals\u002Fprompts\u002Fgovernance-mode-no-test.md",{"path":109,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":110,"sourceHtmlUrl":111},"evals\u002Fprompts\u002Fhipaa-vault-lock-test.md",1560,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-compliance-automator\u002Fevals\u002Fprompts\u002Fhipaa-vault-lock-test.md",{"path":113,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":114,"sourceHtmlUrl":115},"evals\u002Fprompts\u002Fno-org-vault-drift.md",2013,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-compliance-automator\u002Fevals\u002Fprompts\u002Fno-org-vault-drift.md",{"path":117,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":118,"sourceHtmlUrl":119},"evals\u002Fprompts\u002Fsoc2-cross-account-legal-hold.md",2130,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-compliance-automator\u002Fevals\u002Fprompts\u002Fsoc2-cross-account-legal-hold.md",{"path":121,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":122,"sourceHtmlUrl":123},"example\u002FREADME.md",5590,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-compliance-automator\u002Fexample\u002FREADME.md",{"path":125,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":126,"sourceHtmlUrl":127},"references\u002Fadvanced-patterns.md",10378,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-compliance-automator\u002Freferences\u002Fadvanced-patterns.md",{"path":129,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":130,"sourceHtmlUrl":131},"references\u002Faudit-manager-controls.md",8055,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-compliance-automator\u002Freferences\u002Faudit-manager-controls.md",{"path":133,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":134,"sourceHtmlUrl":135},"references\u002Fdiagnostic-commands.md",604,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-compliance-automator\u002Freferences\u002Fdiagnostic-commands.md",{"path":137,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":138,"sourceHtmlUrl":139},"references\u002Flegal-hold-and-vault-lock.md",8442,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-compliance-automator\u002Freferences\u002Flegal-hold-and-vault-lock.md",{"path":141,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":142,"sourceHtmlUrl":143},"references\u002Fworked-examples.md",1661,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-compliance-automator\u002Freferences\u002Fworked-examples.md",{"path":145,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":146,"sourceHtmlUrl":147},"skill.usf.yaml",4615,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbackup-compliance-automator\u002Fskill.usf.yaml",[149,156,163,170,177,184],{"skillNo":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"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":157,"name":158,"nameZh":6,"description":159,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":160,"categories":161,"keywords":162,"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":164,"name":165,"nameZh":6,"description":166,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":167,"categories":168,"keywords":169,"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":171,"name":172,"nameZh":6,"description":173,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":174,"categories":175,"keywords":176,"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":178,"name":179,"nameZh":6,"description":180,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":181,"categories":182,"keywords":183,"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":185,"name":186,"nameZh":6,"description":187,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":188,"categories":189,"keywords":190,"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",[],[]]