cdk-patterns

Provide AWS CDK patterns and best practices for TypeScript infrastructure as code.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/cooldaemon/dotfiles --skill cdk-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cdk-patterns
Source: https://github.com/cooldaemon/dotfiles/tree/main/.claude/skills/cdk-patterns
Command: npx skills add https://github.com/cooldaemon/dotfiles --skill cdk-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides best practices and reusable patterns for building AWS infrastructure as code using the AWS Cloud Development Kit (CDK) with TypeScript.

Core Features & Use Cases

  • Construct Separation: Guidance on when and how to break down infrastructure into reusable constructs.
  • Stack Design: Patterns for environment-based stacks and using stack properties for configuration.
  • Props Design: Best practices for defining construct properties, including required vs. optional and exposing resources.
  • Testing: Demonstrates how to use CDK assertions for snapshot and resource testing.
  • Use Case: When developing a new microservice on AWS, use these patterns to ensure your CDK code is modular, testable, and maintainable.

Quick Start

Use the cdk-patterns skill to understand how to separate constructs in AWS CDK.

Frequently Asked Questions about cdk-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I separate constructs in AWS CDK for TypeScript?

To separate constructs in AWS CDK, break down infrastructure into reusable components by grouping related resources logically. This pattern ensures your infrastructure as code remains modular, testable, and maintainable as your cloud architecture scales.

What are the best practices for AWS CDK stack design and props definition?

AWS CDK stack design best practices involve creating environment-based stacks and using stack properties for configuration. For props definition, distinguish between required and optional properties and explicitly expose underlying resources when needed for external references.

How do I test AWS CDK constructs using assertions?

You test AWS CDK constructs using CDK assertions to perform snapshot testing and resource testing. This validates that your synthesized infrastructure as code templates provision the correct AWS resources and configurations.

When should I use infrastructure as code patterns for AWS microservices?

Use infrastructure as code patterns when developing new microservices on AWS to ensure your CDK code is modular, testable, and maintainable. Applying these patterns during initial stack design prevents configuration drift and infrastructure sprawl.

Does this CDK patterns guidance apply to TypeScript specifically?

Yes, this CDK patterns guidance is tailored specifically for TypeScript infrastructure as code development. It covers TypeScript-based props definition, construct separation, and testing strategies using CDK assertions.