What problem does it solve? Writing and operating AWS CDK infrastructure involves many failure modes that are hard to diagnose: cross-stack reference deadlocks, accidental resource replacement from construct ID changes, stuck UPDATE_ROLLBACK_FAILED stacks, synth-time module errors, and drift caused by hotswap deployments. This Skill provides the operational knowledge to author constructs correctly, deploy safely, and recover from CDK and CloudFormation errors without data loss. ## Core Features & Use Cases - Safe Deployment Workflows: Enforces the synth → diff → deploy discipline, covers bootstrap setup, cdk-nag compliance checks, drift detection, and explains why hotswap and express mode must never reach production. - Troubleshooting Guides: Maps concrete error classes (DeployFailed, NoCredentials, CannotFindAsset, DependencyCycle, deadly embrace, UPDATE_ROLLBACK_FAILED) to root causes and step-by-step fixes. - Construct Patterns & Refactoring: Covers L1/L2/L3 selection, Mixins and escape hatches, cross-stack references, cdk import/migrate for existing resources, and cdk refactor to rename constructs without triggering resource replacement. - Use Case: A deployment fails with "Export cannot be deleted as it is in use". The Skill walks you through the three-deploy ReferenceStrength migration (BOTH → WEAK → remove) to break the deadlock safely. ## Quick Start Ask the assistant to help you write a CDK stack, run cdk diff before deploying, or diagnose a specific CDK or CloudFormation error message you are seeing.