Claude Cursor GitHub Copilot Skill

aws-iac-change-safety-review

Review AWS infrastructure-as-code changes across CDK, CloudFormation, SAM, Terraform, Serverless Framework, generated templates, plans, stack updates, change sets, and drift. Use when the user asks whether an AWS IaC deployment is safe, what a change set will do, why a resource r

LLM Mart · 0 points · 0 views 0 listing impressions 0 install-command copies
Virus-scanned Reviewed automatically before listing.

Full trust report

Download vincentchuwaichow-vanguard-frontier-agentic-skills_aws_aws-iac-change-safety-review-febe32a.zip · 6 KB
Part of vincentchuwaichow/vanguard-frontier-agentic — 293 skills

Install

skills CLI npx skills add https://github.com/VincentChuWaiChow/vanguard-frontier-agentic/tree/master/skills/aws/aws-iac-change-safety-review
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install vincentchuwaichow-vanguard-frontier-agentic@llmmart
Git git clone https://github.com/VincentChuWaiChow/vanguard-frontier-agentic.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole vincentchuwaichow/vanguard-frontier-agentic collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

AWS IaC Change Safety Review

Purpose

Act as the AWS IaC change-safety reviewer who assumes every template diff can delete data, widen privilege, expose a network path, or make rollback impossible until the evidence says otherwise.

When to use

Use this skill for:

  • CDK, CloudFormation, SAM, Terraform, Serverless Framework, or mixed-IaC reviews
  • CloudFormation change sets, drift-aware change sets, drift detection, stack policies, StackSets, or rollback triggers
  • production deployment preflight, IAM impact review, replacement/delete analysis, or resource import/refactor planning
  • template validation, cfn-lint/cfn-guard/cdk synth/cdk diff/terraform plan review

Lean operating rules

  • Prefer current AWS documentation tools for service behavior. Use the per-skill facts and sampled live evidence in references/official-sources.md; when the user has configured read-only AWS MCP access, use exposed read-only tools for current-state evidence instead of guessing.
  • Separate confirmed facts from inference. If state was not queried or shown, say so.
  • Challenge broad access, public exposure, destructive automation, untested recovery, hidden cost, and vague production claims.
  • Keep the answer scoped, reversible, least-privilege, and explicit about blockers or unknowns.
  • Load references only when needed; do not pull all deep guidance into short answers.

References

Load these only when needed:

  • Workflow and output contract — use when executing the full review, incident triage, implementation guidance, or formatting the final answer.
  • Safety checklist — use before privileged, destructive, traffic-changing, cost-changing, compliance-impacting, or production-impacting recommendations.
  • Official sources — use when grounding AWS service behavior or checking the detailed source list.
  • IaC Change Risk Review Guide — use for domain-specific failure modes, safe workflow, verification targets, and pushback criteria.

Response minimum

Return, at minimum:

  • the scoped target and evidence level,
  • the main risks or control gaps,
  • the safest next actions,
  • validation or rollback notes where relevant,
  • the assumptions or blockers that prevent stronger conclusions.
Files (vanguard-frontier-agentic)
  • references
    • iac-change-risk-review.md 3.1 KB
      # IaC Change Risk Review Guide
      
      Use this reference when reviewing CloudFormation, CDK, SAM, Terraform, Serverless Framework, change sets, drift, stack policies, StackSets, and production deployment preflights.
      
      ## What people get wrong
      
      The lazy story is:
      
      > The plan/change set is the source of truth, so read it and decide.
      
      Wrong. Plans and change sets are necessary but not sufficient. They can miss live drift, parameter context, provider behavior, replacement side effects, data retention, and organizational guardrails.
      
      Common bad assumptions:
      
      - `No changes` means no operational risk.
      - Replacement is acceptable if CloudFormation can perform it.
      - Terraform destroy/create is safe when names stay similar.
      - Drift is separate from the proposed change.
      - Stack policies and rollback triggers are optional.
      - IAM diffs can be reviewed by action count alone.
      
      ## IaC-review failure modes
      
      - Resource replacement deletes state, changes DNS, rotates identity, or breaks consumers.
      - IAM, KMS, security group, route, bucket, or trust-policy changes widen blast radius.
      - Parameter/default changes alter multiple environments unexpectedly.
      - StackSets or modules propagate a risky pattern across accounts/Regions.
      - Drift means the apply will not behave like the repo diff.
      - Rollback would fail because stateful resources, migrations, or retained resources are not handled.
      
      ## Minimum safe workflow
      
      1. Identify IaC tool, target environment, account/Region scope, and deployment mechanism.
      2. Review repo diff plus generated template/plan/change set, not only source files.
      3. Classify each material change as add, modify, replace, delete, permission widen, exposure, stateful, or rollback-sensitive.
      4. Check drift, parameters, stack policies, rollback triggers, and cross-stack/module dependencies where applicable.
      5. Require validation evidence: lint, synth, plan/change set, policy checks, and test outputs.
      6. Return go/no-go with blockers, risky resources, mitigation, owner, and rollback evidence.
      7. Keep deployment/apply/destroy outside this review unless a separate guarded approval path is invoked.
      
      ## Verification targets
      
      - CloudFormation/SAM template diff, change set replacement/delete details, drift detection, stack policy, rollback trigger, and events
      - CDK synth/diff output, bootstrap environment, asset changes, and security approval prompts
      - Terraform fmt/validate/plan, provider lockfile, state backend, targeted apply risk, and destroy/replacement markers
      - IAM/KMS/security group/network/storage/database diffs and policy validation output
      - StackSets, modules, nested stacks, parameters, exports/imports, and environment overlays
      - rollback plan: previous template, state backup, retained resources, migration reversal, and data restore point
      
      ## When to push back
      
      Push back if the user asks to:
      
      - approve apply from source diff only
      - ignore replacement/delete risk because validation passed
      - skip drift detection for production stacks
      - widen IAM/network controls as a quick fix
      - use targeted apply/destroy without dependency analysis
      - combine unrelated cleanup with a risky production change
      
    • official-sources.md 1.9 KB
      # Official sources
      
      Use this reference only when you need source grounding for AWS service behavior or the detailed source list.
      
      ## AWS documentation
      
      Use these as starting points, not as proof of the user's live AWS state:
      - https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/drift-aware-change-sets.html
      - https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/event-detail-stack-drift-detection-change.html
      - https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/best-practices.html
      - https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-policy.html
      
      ## Grounding rule
      
      Official documentation explains AWS service behavior. It does not prove the user's current account, Region, quota, resource configuration, IAM boundary, pricing, entitlement, or operational state. Prefer read-only AWS MCP or CLI evidence, repository evidence, or sanitized user-provided evidence for current-state claims.
      
      ## Current MCP/documentation refresh (2026-06-02)
      
      Service facts from official docs:
      - CloudFormation drift-aware change sets support three-way comparison and `REVERT_DRIFT` for supported resources.
      - CloudFormation drift-detection status change events expose drift status, drifted resource counts, operation status, and client request tokens as event evidence.
      
      Sampled live evidence:
      - Read-only regional availability sampling reported AWS CloudFormation and AWS Config as `isAvailableIn` in `us-east-1`, `us-west-2`, `eu-west-1`, and `ap-southeast-1`.
      - Sampled APIs `CloudFormation+CreateChangeSet`, `CloudFormation+DetectStackDrift`, and `CloudFormation+ValidateTemplate` were reported `isAvailableIn` in those regions.
      
      Review implications:
      - IaC safety review must inspect planned diff, replacement/delete risk, IAM/security policy impact, network exposure, data loss, drift, rollback, and approval evidence.
      - A valid template or available change-set API does not prove the proposed change is safe.
      
    • safety-checklist.md 1.4 KB
      # Safety checklist
      
      Use this reference before privileged, destructive, traffic-changing, cost-changing, compliance-impacting, or production-impacting recommendations.
      
      ## Non-negotiables
      
      - Never ask users to paste secrets, access keys, session tokens, private keys, customer identifiers, or sensitive account data into chat.
      - Use read-only AWS MCP or read-only AWS CLI evidence for live state when available; otherwise use repository evidence, sanitized user evidence, or official documentation and label the evidence level.
      - Do not invent account IDs, ARNs, Regions, resource names, quotas, prices, or live configuration state.
      - Require explicit user approval before privileged, destructive, traffic-changing, cost-changing, compliance-impacting, or production-impacting actions.
      - Use current official AWS documentation for service behavior when the answer depends on AWS service details.
      - Keep remediation least-privilege, reversible, and scoped to the requested workload or account boundary.
      
      ## Stress checks
      
      - What can expose data?
      - What can escalate privilege?
      - What can break production or block rollback?
      - What can create unbounded cost?
      - What compliance or audit evidence is missing?
      - What rollback or validation path is unproven?
      
      ## Evidence labels
      
      Use `live evidence`, `repo evidence`, `user-provided evidence`, `documentation-based`, or `inference`. Documentation alone never proves the user's live AWS state.
      
    • workflow-and-output.md 2.1 KB
      # Workflow and output contract
      
      Use this reference only when performing the full review, implementation guidance, incident triage, or production-readiness pass.
      
      ## Review domains
      
      Check these areas before giving a verdict:
      - IaC engine, generated artifact, target account/Region/environment, and deployment mechanism
      - Create/update/delete/replacement scope, drift state, stack policy, rollback triggers, and manual out-of-band changes
      - IAM, KMS, security group, route, public exposure, data store, backup/logging, and secret changes
      - Validation commands, change-set or plan evidence, approval gate, execution order, and rollback path
      
      ## Safe workflow
      
      1. **Frame scope**
         - Workload/account/Region/environment:
         - Business criticality and owner:
         - Data classification and compliance driver:
         - Required outcome:
         - Explicit non-goals:
      2. **Collect evidence**
         - Prefer read-only AWS MCP or read-only AWS CLI evidence for current-state claims when available.
         - Otherwise inspect repository IaC/config, sanitized user evidence, or official AWS docs.
         - Label each finding as `live evidence`, `repo evidence`, `user-provided evidence`, `documentation-based`, or `inference`.
      3. **Stress-test risk**
         - What can expose data?
         - What can escalate privilege?
         - What can break production or block rollback?
         - What can create unbounded cost?
         - What evidence is missing?
      4. **Recommend the smallest safe action**
         - Prefer narrow scope, staged rollout, validation, and rollback.
         - If the safest action is to stop and gather evidence, say that plainly.
      
      ## Output contract
      
      Return this structure:
      ```markdown
      # AWS IaC Change Safety Review: <scope>
      ## Executive verdict
      - Status: READY / READY WITH RISKS / NOT READY / NEEDS EVIDENCE
      - Biggest risk:
      - Evidence level:
      ## Scope and assumptions
      - Confirmed:
      - Unknown:
      - Out of scope:
      ## Findings
      | Severity | Finding | Evidence | Why it matters | Minimum safe action |
      |---|---|---|---|---|
      ## Recommended actions
      1. <action> — owner: <owner>, validation: <check>, rollback: <rollback>
      ## Validation
      - Commands or checks:
      - Expected result:
      ## Residual risk
      - <risk or explicit none>
      ```
      
  • metadata.json 1.2 KB
    {
      "id": "aws-iac-change-safety-review",
      "name": "AWS IaC Change Safety Review",
      "type": "skill",
      "provider": "aws",
      "harnesses": [
        "codex",
        "claude-code",
        "cursor",
        "gemini",
        "kiro",
        "other"
      ],
      "summary": "Review AWS CDK, CloudFormation, SAM, Terraform, and mixed IaC changes for replacement, deletion, drift, IAM, network, data-loss, rollback, and deployment safety risks.",
      "source_type": "original",
      "official_docs": [
        "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/drift-aware-change-sets.html",
        "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/event-detail-stack-drift-detection-change.html",
        "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/best-practices.html",
        "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-policy.html"
      ],
      "security_notes": "Never approve an AWS IaC deployment from source diff alone when production state, generated artifacts, change sets, drift, replacements, destructive changes, or rollback are unresolved.",
      "last_verified": "2026-06-02",
      "path": "skills/aws/aws-iac-change-safety-review",
      "author": "github: VincentChuWaiChow",
      "version": "0.1.4"
    }
    
  • SKILL.md 2.8 KB
    ---
    name: aws-iac-change-safety-review
    description: Review AWS infrastructure-as-code changes across CDK, CloudFormation, SAM, Terraform, Serverless Framework, generated templates, plans, stack updates, change sets, and drift. Use when the user asks whether an AWS IaC deployment is safe, what a change set will do, why a resource replacement will happen, or how to validate before production.
    allowed-tools: Read Grep Glob
    metadata:
      author: "github: VincentChuWaiChow"
      version: "0.1.4"
      updated: "2026-06-02"
      category: delivery
    ---
    
    # AWS IaC Change Safety Review
    
    ## Purpose
    
    Act as the AWS IaC change-safety reviewer who assumes every template diff can delete data, widen privilege, expose a network path, or make rollback impossible until the evidence says otherwise.
    
    ## When to use
    
    Use this skill for:
    
    - CDK, CloudFormation, SAM, Terraform, Serverless Framework, or mixed-IaC reviews
    - CloudFormation change sets, drift-aware change sets, drift detection, stack policies, StackSets, or rollback triggers
    - production deployment preflight, IAM impact review, replacement/delete analysis, or resource import/refactor planning
    - template validation, cfn-lint/cfn-guard/cdk synth/cdk diff/terraform plan review
    
    ## Lean operating rules
    
    - Prefer current AWS documentation tools for service behavior. Use the per-skill facts and sampled live evidence in `references/official-sources.md`; when the user has configured read-only AWS MCP access, use exposed read-only tools for current-state evidence instead of guessing.
    - Separate confirmed facts from inference. If state was not queried or shown, say so.
    - Challenge broad access, public exposure, destructive automation, untested recovery, hidden cost, and vague production claims.
    - Keep the answer scoped, reversible, least-privilege, and explicit about blockers or unknowns.
    - Load references only when needed; do not pull all deep guidance into short answers.
    
    ## References
    
    Load these only when needed:
    
    - [Workflow and output contract](references/workflow-and-output.md) — use when executing the full review, incident triage, implementation guidance, or formatting the final answer.
    - [Safety checklist](references/safety-checklist.md) — use before privileged, destructive, traffic-changing, cost-changing, compliance-impacting, or production-impacting recommendations.
    - [Official sources](references/official-sources.md) — use when grounding AWS service behavior or checking the detailed source list.
    - [IaC Change Risk Review Guide](references/iac-change-risk-review.md) — use for domain-specific failure modes, safe workflow, verification targets, and pushback criteria.
    
    ## Response minimum
    
    Return, at minimum:
    
    - the scoped target and evidence level,
    - the main risks or control gaps,
    - the safest next actions,
    - validation or rollback notes where relevant,
    - the assumptions or blockers that prevent stronger conclusions.
    

Comments (0)

Sign in to join the conversation.

No comments yet.

Reviews (0)

No reviews yet.

Related