This is your go-to when you're working with AWS CDK in TypeScript or Python. It knows the sharp edges that actually matter: construct ID changes cause resource replacement, removing cross-stack references creates deployment deadlocks, and S3 buckets need both removalPolicy and autoDeleteObjects to actually delete. The troubleshooting guide maps CDK errors to their real CloudFormation causes, which saves hours of confusion. It covers the full workflow from bootstrapping through cdk-nag compliance checks, drift detection, importing existing resources, and safe refactoring. Honestly, the critical warnings section alone is worth having this loaded if you deploy CDK stacks to production.

skills.sh installs
10.1K
GitHub stars
3.4K
last updated
Aug 21, 2026

Install

$ npx -y skills add aws/agent-toolkit-for-aws --skill aws-cdk --agent claude-code

Installs into .claude/skills of the current project.

Files

AWS CDK

Overview

Domain expertise for CDK construct authoring, deployment workflows, compliance, drift, importing resources, safe refactoring, and troubleshooting CDK CLI / CloudFormation errors.

When NOT to use: Raw CloudFormation YAML/JSON. SAM. Terraform/Pulumi. CI/CD beyond CDK Pipelines. Use builtin knowledge or specialized skills for these.

Critical Warnings

Deadly embrace: Removing a cross-stack reference deadlocks deployment (Export ... cannot be deleted as it is in use by ...). Preferred fix: weaken the reference first — CrossStackReferences.of($RESOURCE).produce(ReferenceStrength.BOTH) then WEAK, then remove (three deploys). Legacy fallback: two-deploy this.exportValue() recipe. See troubleshooting-deployment.

Construct ID changes cause replacement: Renaming/moving a construct changes its logical ID → CloudFormation replaces the resource (data loss for stateful resources). Always cdk diff before deploy. See refactor-and-prevent-replacement.

Sponsors

Details

Repository
github.com/aws/agent-toolkit-for-aws
Categories
DevOps & CI/CD, Git & Pull Requests, Documentation, Code Review & Quality, AI & Agent Building, Release Management, Productivity & Planning, Python, Cloud & Infrastructure
First seen
May 16, 2026

More from aws/agent-toolkit-for-aws

All 56
1langchain-ai avatarlanggraph-clilangchain-ai/langchain-skillsINVOKE THIS SKILL when using the langgraph CLI to scaffold, develop, build, or deploy LangGraph applications. Covers langgraph new, dev, build, up, deploy, and 9.7Kskills.sh installs
2railwayapp avataruse-railwayrailwayapp/railway-skillsOperate Railway infrastructure: sign up for or sign in to a Railway account, create projects, provision services and databases, manage object storage buckets, d9.4Kskills.sh installs
3agents365-ai avatardrawio-skillagents365-ai/365-skillsUse when the user requests diagrams, flowcharts, architecture diagrams, ER diagrams, UML / sequence / class diagrams, SysML / MBSE diagrams (block definition, i9Kskills.sh installs
4github avatarazure-static-web-appsgithub/awesome-copilotHelps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development, configu8.9Kskills.sh installs
5affaan-m avatarvideo-editingaffaan-m/eccAI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, E8.6Kskills.sh installs
6imbad0202 avatardeep-researchimbad0202/academic-research-skillsUniversal deep research agent team. 13-agent pipeline for rigorous academic research on any topic. 8 modes: full research, quick brief, paper review, lit-review8Kskills.sh installs