aws-cdk-patterns

Automate CDK pattern implementation and refactoring safety checks for reusable constructs.

3|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/Basilisk-Systems/claude-toolkit --skill aws-cdk-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aws-cdk-patterns
Source: https://github.com/Basilisk-Systems/claude-toolkit/tree/main/skills/aws-cdk-patterns
Command: npx skills add https://github.com/Basilisk-Systems/claude-toolkit --skill aws-cdk-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Designing and refactoring infrastructure patterns across CDK projects can become error-prone and duplicative. This Skill provides modular L3 constructs and best practices to promote reuse and safer refactors.

Core Features & Use Cases

  • Reusable L3 constructs for common CDK resources and architectures.
  • Guidance to refactor stacks without breaking deployments, including logical ID preservation.
  • Domain-driven organization for large CDK apps and better maintainability.

Quick Start

Instantiate a reusable CDK pattern by encapsulating common resources into a Construct and integrating it into a stack.

Frequently Asked Questions about aws-cdk-patterns

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

FAQPage Schema
How do I refactor AWS CDK stacks without breaking CloudFormation deployments?

To refactor AWS CDK stacks safely, you must preserve CloudFormation logical IDs when moving or restructuring resources. This prevents resource replacement and ensures deployment continuity during modular code reorganization across projects.

What are L3 constructs in AWS CDK and when should I use them?

L3 constructs in AWS CDK are reusable, high-level encapsulations of common architectural patterns and resources. Use them to promote code reuse, reduce duplication, and enforce domain-driven organization in large infrastructure-as-code applications.

How do I organize large AWS CDK applications using domain-driven structuring?

Organize large AWS CDK applications by grouping infrastructure code into modular L3 constructs based on business domains. This domain-driven structuring improves maintainability and enables safe refactoring across multiple projects and stacks.

Can I reuse CDK patterns across multiple infrastructure projects?

Yes, you can reuse CDK patterns across multiple projects by encapsulating common resources into modular L3 constructs. This promotes consistency, reduces duplicative code, and applies anti-pattern avoidance checks to your infrastructure-as-code.

What are common AWS CDK anti-patterns to avoid when building reusable constructs?

Common AWS CDK anti-patterns include breaking CloudFormation logical ID preservation and creating duplicative, non-modular stacks. Avoid these by using domain-driven structuring and reusable L3 constructs to ensure safe refactoring and maintainability.