AWS CDK Skills

AWS CDK Skills

AWS development with CDK best practices, infrastructure patterns, and deployment workflows.

Claude / Claude Code
GitHub Copilot
Cursor
VS Code
OpenAI Codex
Gemini CLI
DevOpsDeveloperDevOps Engineer

What it does

Claude generates CDK code that looks like CloudFormation written in TypeScript — raw L1 constructs, manually specified resource properties that CDK's L2 constructs handle automatically, missing IAM permissions that are only discovered at deploy time, and infrastructure patterns that work in isolation but violate AWS security baselines. This skill loads CDK best practices: correct L2 construct usage, least-privilege IAM generation, VPC and networking patterns, environment-aware stacks, and the specific CDK idioms that differ from what CloudFormation experience suggests.

Use case

Building AWS infrastructure with CDK. The failure mode this prevents most often: Claude generating IAM policies that are too permissive or CDK code that deploys but fails at runtime because permissions are incorrect. Made by zxkane.

The Prompt

Copy and use immediately
"Build a CDK stack for a serverless API: API Gateway, Lambda, and DynamoDB with correct IAM."
"Create a VPC with public and private subnets, a NAT gateway, and security groups."
"Add an S3 bucket with versioning, lifecycle rules, and a CloudFront distribution."
"Build an ECS Fargate service with auto-scaling and a load balancer."
"Review this CDK stack for security issues — specifically IAM and network exposure."

How to use

  1. 1

    Describe the infrastructure you need at a high level. Claude generates L2 constructs, not L1 raw properties.

  2. 2

    For IAM: describe what each resource needs to do. Claude generates least-privilege policies rather than wildcards.

  3. 3

    Claude generates CDK in TypeScript by default — specify Python if preferred.

Input / Output

Input

A description of the infrastructure you need — services, connectivity requirements, security constraints, and scale characteristics.

Output

CDK TypeScript code using correct L2 constructs, least-privilege IAM policies generated from actual usage requirements, and infrastructure patterns that follow AWS security baselines.

Added 15 Mar 2026Submitted by zxkane👁 55📋 0

Details

Platforms
Claude / Claude CodeGitHub CopilotCursorVS CodeOpenAI CodexGemini CLI
Category
DevOps
License
apache-2.0
Author
zxkane

Stats

📋 Copies0
👁 Views55
👍 Upvotes0

Install with skills.sh

npx skillsadd zxkane/skills/aws-cdk-skills

Requires skills.sh CLI

Community Notes

Sign in with GitHub to leave a note.

No notes yet. Be the first to contribute.