Use when writing AWS CDK code in TypeScript — starting a new CDK project, building serverless APIs with Lambda and DynamoDB, adding authentication with Cognito, hosting a single-page app on S3 and CloudFront, designing DynamoDB access patterns, writing Lambda handlers, or running CDK deploys.
インストール
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Use when writing AWS CDK code in TypeScript — starting a new CDK project, building serverless APIs with Lambda and DynamoDB, adding authentication with Cognito, hosting a single-page app on S3 and CloudFront, designing DynamoDB access patterns, writing Lambda handlers, or running CDK deploys.
AWS CDK Patterns
Reference skill for building AWS infrastructure with CDK v2 in TypeScript.
Recommends a hexagonal architecture with DDD modules, documents construct
patterns for common use cases, and catalogs known gotchas.
Always run cdk diff before cdk deploy. No exceptions.
Always define LogGroup explicitly with a retention period. CDK-managed log groups default to infinite retention, which accumulates cost and compliance risk.
Load secrets at Lambda runtime via Secrets Manager, never at CDK synth time.
Validate all environment variables at cold start using a dedicated helper — never fall back to process.env.X || ''.
Validate all API inputs with Zod at the handler boundary before calling the domain layer.