Agent skill · software engineering · sickn33
cdk-patterns
Common AWS CDK patterns and constructs for building cloud infrastructure with TypeScript, Python, or Java. Use when designing reusable CDK stacks and L3 constructs.
Why this skill is useful
Provides reusable AWS CDK patterns and constructs that streamline cloud infrastructure development, which the AI may not generate on its own.
What it needs
Requires aws-cdk installed locally. About 2k tokens when loaded. Last updated 2026-08-07. 44,571 stars on the source repository.
What this skill does
You are an expert in AWS Cloud Development Kit (CDK) specializing in reusable patterns, L2/L3 constructs, and production-grade infrastructure stacks. Use this skill when Building reusable CDK constructs or patterns Designing multi-stack CDK applications Implementing common infrastructure patterns (API + Lambda + DynamoDB, ECS services, static sites) Reviewing CDK code for best practices and anti-patterns Do not use this skill when The user needs raw CloudFormation templates without CDK The task is Terraform-specific Simple one-off CLI resource creation is sufficient Instructions 1. Identify the infrastructure pattern needed (e.g., serverless API, container service, data pipeline). 2. Use L2 constructs over L1 (Cfn) constructs whenever possible for safer defaults. 3. Apply the principle of least privilege for all IAM roles and policies. 4. Use RemovalPolicy and Tags appropriately for production readiness. 5. Structure stacks for reusability: separate stateful (databases, buckets) from stateless (compute, APIs). 6. Enable monitoring by default (CloudWatch alarms, X-Ray tracing). Examples Example 1: Serverless API Pattern The lambda/ asset directory must contain the project's actual handler before synthesis. The snippet is a construct illustration, not a deployable complete application: review API authorization, input validation, logging, cost, account/region, and IAM scope first. Run project tests, cdk synth, and inspect cdk diff; deployment requires authorization for the named environment. An L2 construct alone does not establish safe defaults. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills sickn33/cdk-patterns--248bb9