Agent skill

AWS Cdk Development

by zxkane in zxkane/aws-skills

AWS Cloud Development Kit (CDK) expert for building cloud infrastructure with TypeScript/Python.

MITAuto-check passedDevOps & Cloud

Install AWS Cdk Development

skills CLI
$ npx skills add zxkane/aws-skills --skill aws-cdk-development -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install zxkane/aws-skills aws-cdk-development --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/zxkane/aws-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/aws-iac/skills/aws-cdk-development .claude/skills/aws-cdk-development && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
aws-cdk-development
GitHub stars
367
Used in
2 other repos
Token cost
~2.5k tokens
SKILL.md length
882 words
Files
3 (incl. scripts, references)
Skills in repo
6
Repo updated
First seen
Licence
MIT

At a glance

AWS Cloud Development Kit (CDK) expert for building cloud infrastructure with TypeScript/Python.

  • Works in 2 steps: Synthesis with cdk-nag: Validate stack… → Suppress legitimate exceptions with…
  • Creating CDK stacks
  • SKILL.md covers AWS Documentation Requirement, CDK-Specific MCP Guidance, When to Use This Skill and Core CDK Principles, plus 5 more sections
  • Runs Shell scripts from its folder; calls npm and claude

What it does

AWS Cdk Development is an agent skill from zxkane/aws-skills. AWS Cloud Development Kit (CDK) expert for building cloud infrastructure with TypeScript/Python. Use when creating CDK stacks, defining CDK constructs, implementing infrastructure as code, or when the user mentions CDK, CloudFormation, IaC, cdk synth, cdk deploy, or wants to define AWS infrastructure programmatically. Covers CDK app structure, construct patterns, stack composition, and deployment workflows.

Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including scripts and reference files (for example `references/cdk-patterns.md` and `scripts/validate-stack.sh`).

It sits in DevOps & Cloud, covering Infrastructure as code, Deployment and MCP servers. It works with Amazon Web Services, Model Context Protocol, AWS CloudFormation and Python. The repository describes itself as: Claude Code plugins and agent skills for AWS development — IaC(CDK/SST), serverless, cost ops, and Bedrock AgentCore. The licence is MIT.

When your agent uses it

  • Creating CDK stacks
  • Defining CDK constructs
  • Implementing infrastructure as code
  • The user mentions CDK

Example prompts

  • “/aws-cdk-development”

Requirements

  • Python 3
  • Node.js
  • A Bash shell
  • Pre-approved tools (allowed-tools): mcp__cdk__*, mcp__aws-mcp__*, mcp__awsdocs__*, Bash(cdk *), Bash(npm *), Bash(npx *), Bash(aws cloudformation *), Bash(aws sts get-caller-identity)

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. Synthesis with cdk-nag: Validate stack with comprehensive rules
  2. Suppress legitimate exceptions with documented reasons

What it can do on your machine

Read from SKILL.md and the folder at commit 68530c6. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • mcp__cdk__*
    • mcp__aws-mcp__*
    • mcp__awsdocs__*
    • Bash(cdk *)
    • Bash(npm *)
    • Bash(npx *)
    • Bash(aws cloudformation *)
    • Bash(aws sts get-caller-identity)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • npm
    • claude

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com
    • marketplace.visualstudio.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

AWS Cdk Development loads about 2.5k tokens when it runs, and up to ~5k if it reads all its reference files. Until then it costs about 108 tokens; SKILL.md has 882 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~108
When it runs · the whole SKILL.md, loaded when a task matches
~2.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from zxkane/aws-skills at commit 68530c6, republished under its MIT licence (© zxkane). 882 words, ~2,498 tokens.

Download SKILL.mdSave it as .claude/skills/aws-cdk-development/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
aws-cdk-development
description
AWS Cloud Development Kit (CDK) expert for building cloud infrastructure with TypeScript/Python. Use when creating CDK stacks, defining CDK constructs, implementing infrastructure as code, or when the user mentions CDK, CloudFormation, IaC, cdk synth, cdk deploy, or wants to define AWS infrastructure programmatically. Covers CDK app structure, construct patterns, stack composition, and deployment workflows.
allowed-tools
mcp__cdk__*, mcp__aws-mcp__*, mcp__awsdocs__*, Bash(cdk *), Bash(npm *), Bash(npx *), Bash(aws cloudformation *), Bash(aws sts get-caller-identity)
context
fork
skills
aws-mcp-setup

AWS CDK Development

This skill provides comprehensive guidance for developing AWS infrastructure using the Cloud Development Kit (CDK), with integrated MCP servers for accessing latest AWS knowledge and CDK utilities.

AWS Documentation Requirement

Always verify AWS facts using MCP tools (mcp__aws-mcp__* or mcp__*awsdocs*__*) before answering. The aws-mcp-setup dependency is auto-loaded — if MCP tools are unavailable, guide the user through that skill's setup flow.

CDK-Specific MCP Guidance

AWS Labs replaced the dedicated CDK MCP server (awslabs.cdk-mcp-server) with the broader awslabs.aws-iac-mcp-server, which covers CDK alongside CloudFormation and other AWS infrastructure-as-code workflows.

For CDK construct lookups, best-practice recommendations, and pattern guidance, install awslabs.aws-iac-mcp-server. It ships in the deploy-on-aws plugin from awslabs/agent-plugins, or can be registered directly with claude mcp add aws-iac uvx awslabs.aws-iac-mcp-server@latest.

When to reach for it:

  • CDK construct recommendations and API lookups
  • CDK and CloudFormation best-practice patterns
  • Validation of synthesized templates
  • Cross-resource configuration guidance

When to Use This Skill

Use this skill when:

  • Creating new CDK stacks or constructs
  • Refactoring existing CDK infrastructure
  • Implementing Lambda functions within CDK
  • Following AWS CDK best practices
  • Validating CDK stack configurations before deployment
  • Verifying AWS service capabilities and regional availability

Core CDK Principles

Resource Naming

CRITICAL: Do NOT explicitly specify resource names when they are optional in CDK constructs.

Why: CDK-generated names enable:

  • Reusable patterns: Deploy the same construct/pattern multiple times without conflicts
  • Parallel deployments: Multiple stacks can deploy simultaneously in the same region
  • Cleaner shared logic: Patterns and shared code can be initialized multiple times without name collision
  • Stack isolation: Each stack gets uniquely identified resources automatically

Pattern: Let CDK generate unique names automatically using CloudFormation's naming mechanism.

typescript
// ❌ BAD - Explicit naming prevents reusability and parallel deployments
new lambda.Function(this, 'MyFunction', {
  functionName: 'my-lambda',  // Avoid this
  // ...
});

// ✅ GOOD - Let CDK generate unique names
new lambda.Function(this, 'MyFunction', {
  // No functionName specified - CDK generates: StackName-MyFunctionXXXXXX
  // ...
});

Security Note: For different environments (dev, staging, prod), follow AWS Security Pillar best practices by using separate AWS accounts rather than relying on resource naming within a single account. Account-level isolation provides stronger security boundaries.

Lambda Function Development

Use the appropriate Lambda construct based on runtime:

TypeScript/JavaScript: Use @aws-cdk/aws-lambda-nodejs

typescript
import { NodejsFunction } from 'aws-cdk-lib/aws-lambda-nodejs';

new NodejsFunction(this, 'MyFunction', {
  entry: 'lambda/handler.ts',
  handler: 'handler',
  // Automatically handles bundling, dependencies, and transpilation
});

Python: Use @aws-cdk/aws-lambda-python

typescript
import { PythonFunction } from '@aws-cdk/aws-lambda-python-alpha';

new PythonFunction(this, 'MyFunction', {
  entry: 'lambda',
  index: 'handler.py',
  handler: 'handler',
  // Automatically handles dependencies and packaging
});

Benefits:

  • Automatic bundling and dependency management
  • Transpilation handled automatically
  • No manual packaging required
  • Consistent deployment patterns
Pre-Deployment Validation

Use a multi-layer validation strategy for comprehensive CDK quality checks:

For TypeScript/JavaScript projects:

Install cdk-nag for synthesis-time validation:

bash
npm install --save-dev cdk-nag

Add to your CDK app:

typescript
import { Aspects } from 'aws-cdk-lib';
import { AwsSolutionsChecks } from 'cdk-nag';

const app = new App();
Aspects.of(app).add(new AwsSolutionsChecks());

Optional - VS Code users: Install CDK NAG Validator extension for faster feedback on file save.

For Python/Java/C#/Go projects: cdk-nag is available in all CDK languages and provides the same synthesis-time validation.

Layer 2: Synthesis-Time Validation (Required)
  1. Synthesis with cdk-nag: Validate stack with comprehensive rules

    bash
    cdk synth  # cdk-nag runs automatically via Aspects
  2. Suppress legitimate exceptions with documented reasons:

    typescript
    import { NagSuppressions } from 'cdk-nag';
    
    // Document WHY the exception is needed
    NagSuppressions.addResourceSuppressions(resource, [
      {
        id: 'AwsSolutions-L1',
        reason: 'Lambda@Edge requires specific runtime for CloudFront compatibility'
      }
    ]);
Layer 3: Pre-Commit Safety Net
  1. Build: Ensure compilation succeeds

    bash
    npm run build  # or language-specific build command
  2. Tests: Run unit and integration tests

    bash
    npm test  # or pytest, mvn test, etc.
  3. Validation Script: Meta-level checks

    bash
    ./scripts/validate-stack.sh

The validation script now focuses on:

  • Language detection
  • Template size and resource count analysis
  • Synthesis success verification
  • (Note: Detailed anti-pattern checks are handled by cdk-nag)

Workflow Guidelines

Show full SKILL.md (418 more words)Show less
Development Workflow
  1. Design: Plan infrastructure resources and relationships
  2. Verify AWS Services: Use AWS Documentation MCP to confirm service availability and features
    • Check regional availability for all required services
    • Verify service limits and quotas
    • Confirm latest API specifications
  3. Implement: Write CDK constructs following best practices
    • Use CDK MCP server for construct recommendations
    • Reference CDK best practices via MCP tools
  4. Validate: Run pre-deployment checks (see above)
  5. Synthesize: Generate CloudFormation templates
  6. Review: Examine synthesized templates for correctness
  7. Deploy: Deploy to target environment
  8. Verify: Confirm resources are created correctly
Stack Organization
  • Use nested stacks for complex applications
  • Separate concerns into logical construct boundaries
  • Export values that other stacks may need
  • Use CDK context for environment-specific configuration
Testing Strategy
  • Unit test individual constructs
  • Integration test stack synthesis
  • Snapshot test CloudFormation templates
  • Validate resource properties and relationships

Using MCP Servers Effectively

When to Use AWS Documentation MCP

Always verify before implementing:

  • New AWS service features or configurations
  • Service availability in target regions
  • API parameter specifications
  • Service limits and quotas
  • Security best practices for AWS services

Example scenarios:

  • "Check if Lambda supports Python 3.13 runtime"
  • "Verify DynamoDB is available in eu-south-2"
  • "What are the current Lambda timeout limits?"
  • "Get latest S3 encryption options"
When to Use CDK MCP Server

Leverage for CDK-specific guidance:

  • CDK construct selection and usage
  • CDK API parameter options
  • CDK best practice patterns
  • Construct property configurations
  • CDK-specific optimizations

Example scenarios:

  • "What's the recommended CDK construct for API Gateway REST API?"
  • "How to configure NodejsFunction bundling options?"
  • "Best practices for CDK stack organization"
  • "CDK construct for DynamoDB with auto-scaling"
MCP Usage Best Practices
  1. Verify First: Always check AWS Documentation MCP before implementing new features
  2. Regional Validation: Check service availability in target deployment regions
  3. CDK Guidance: Use CDK MCP for construct-specific recommendations
  4. Stay Current: MCP servers provide latest information beyond knowledge cutoff
  5. Combine Sources: Use both skill patterns and MCP servers for comprehensive guidance

CDK Patterns Reference

For detailed CDK patterns, anti-patterns, and architectural guidance, refer to the comprehensive reference:

File: references/cdk-patterns.md

This reference includes:

  • Common CDK patterns and their use cases
  • Anti-patterns to avoid
  • Security best practices
  • Cost optimization strategies
  • Performance considerations

Additional Resources

  • Validation Script: scripts/validate-stack.sh - Pre-deployment validation
  • CDK Patterns: references/cdk-patterns.md - Detailed pattern library
  • AWS Documentation MCP: Integrated for latest AWS information
  • CDK MCP Server: Integrated for CDK-specific guidance

GitHub Actions Integration

When GitHub Actions workflow files exist in the repository, ensure all checks defined in .github/workflows/ pass before committing. This prevents CI/CD failures and maintains code quality standards.

© zxkane, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (scripts, references) in plugins/aws-iac/skills/aws-cdk-development of zxkane/aws-skills.

  • SKILL.md
  • references/cdk-patterns.md
  • scripts/validate-stack.sh

Open the folder on GitHubat commit 68530c6

Used in 2 other repositories

We found 3 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 2 other GitHub owners. This page covers the copy in zxkane/aws-skills, which our catalogue first saw on October 7, 2026.

Compare with similar skills

AWS Cdk Development next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

AWS Cdk Development compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
AWS Cdk Development this skillzxkane/aws-skills3672 repos~2.5kAutomated safety check: PassMIT
AWS Cdkaws/agent-toolkit-for-aws2.8k—~2.2kAutomated safety check: PassApache-2.0
AWS Cdk Developmentsickn33/agentic-awesome-skills47k1 repos~2.5kAutomated safety check: PassMIT
AWS Cloudformationaws/agent-toolkit-for-aws2.8k—~3.6kAutomated safety check: PassApache-2.0
AWS Advisordiegosouzapw/awesome-omni-skills159—~4.3kAutomated safety check: PassMIT
Upgrading Mwaa Environmentsaws/agent-toolkit-for-aws2.8k—~7.3kAutomated safety check: PassApache-2.0

Similar skills

  • AWS Cdk

    aws/agent-toolkit-for-aws

    Official

    Authors, deploys, and troubleshoots AWS infrastructure using CDK with TypeScript or Python.

    2.8k GitHub stars~2.2k tokensUpdated today
    DevOps & CloudAuto-check passed
  • AWS Cdk Development

    sickn33/agentic-awesome-skills

    AWS Cloud Development Kit (CDK) expert for building cloud infrastructure with TypeScript/Python.

    47k GitHub starsUsed in 1 repo~2.5k tokens
    DevOps & CloudAuto-check passed
  • AWS Cloudformation

    aws/agent-toolkit-for-aws

    Official

    Authors, validates, and troubleshoots AWS CloudFormation templates.

    2.8k GitHub stars~3.6k tokensUpdated today
    DevOps & CloudAuto-check passed
  • AWS Advisor

    diegosouzapw/awesome-omni-skills

    AWS Advisor workflow skill. An agent skill from diegosouzapw/awesome-omni-skills.

    159 GitHub stars~4.3k tokensUpdated 3 mo ago
    DevOps & CloudAuto-check passed
  • Upgrading Mwaa Environments

    aws/agent-toolkit-for-aws

    Official

    Upgrades an MWAA environment to a newer Airflow version — within 2.x, within 3.x, or across the 2.x-to-3.x boundary.

    2.8k GitHub stars~7.3k tokensUpdated today
    Data & AnalyticsAuto-check passed
  • AWS Sam Bootstrap

    giuseppe-trisciuoglio/developer-kit

    Provides AWS SAM bootstrap patterns: generates template.yaml and samconfig.toml for new projects via sam init, creates SAM templates for existing Lambda/CloudFormation code migration, validates…

    355 GitHub stars~954 tokensUpdated 28 days ago
    Backend & APIsAuto-check: notes

More from zxkane/aws-skills

  • AWS Serverless Eda

    zxkane/aws-skills

    AWS serverless and event-driven architecture expert based on Well-Architected Framework.

    367 GitHub starsUsed in 4 repos~3.2k tokens
    Auto-check passed
  • AWS Agentic AI

    zxkane/aws-skills

    AWS Bedrock AgentCore comprehensive expert for deploying and managing AI agents at scale.

    367 GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed
  • AWS Cost Operations

    zxkane/aws-skills

    AWS cost optimization, monitoring, and operational excellence expert.

    367 GitHub starsUsed in 1 repo~2.4k tokens
    Auto-check passed
  • AWS MCP Setup

    zxkane/aws-skills

    Configure AWS MCP servers for documentation search and API access.

    367 GitHub stars~1.3k tokensUpdated 3 mo ago
    Auto-check passed
  • AWS Sst Development

    zxkane/aws-skills

    SST v4 (Ion) expert for managing AWS resources as code with the Pulumi-backed framework.

    367 GitHub stars~2.7k tokensUpdated 3 mo ago
    Auto-check: warnings

Categories

Questions about AWS Cdk Development

What does AWS Cdk Development do?

AWS Cloud Development Kit (CDK) expert for building cloud infrastructure with TypeScript/Python. AWS Cdk Development is an agent skill from zxkane/aws-skills. AWS Cloud Development Kit (CDK) expert for building cloud infrastructure with TypeScript/Python.

When should I use AWS Cdk Development?

AWS Cdk Development fits situations like: creating CDK stacks; defining CDK constructs; implementing infrastructure as code; the user mentions CDK.

How do I install AWS Cdk Development in Claude Code?

Run `npx skills add zxkane/aws-skills --skill aws-cdk-development -a claude-code`. Or copy the skill folder (plugins/aws-iac/skills/aws-cdk-development in zxkane/aws-skills) into .claude/skills/aws-cdk-development in your project. Claude Code loads it when a task matches its description.

How do I install AWS Cdk Development in Codex?

Run `npx skills add zxkane/aws-skills --skill aws-cdk-development -a codex`. Or copy the skill folder (plugins/aws-iac/skills/aws-cdk-development in zxkane/aws-skills) into .agents/skills/aws-cdk-development in your project. Codex loads it when a task matches its description.

Can I use AWS Cdk Development in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add zxkane/aws-skills --skill aws-cdk-development -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/aws-cdk-development, .gemini/skills/aws-cdk-development, .github/skills/aws-cdk-development and .opencode/skills/aws-cdk-development in your project.

What does AWS Cdk Development need to run?

Going by SKILL.md and its folder, AWS Cdk Development needs a shell for the scripts in its folder and the command-line tools its instructions call (npm and claude). Our summary lists: Python 3; Node.js; A Bash shell. Its frontmatter pre-approves these tools: mcp__cdk__*, mcp__aws-mcp__*, mcp__awsdocs__*, Bash(cdk *), Bash(npm *), Bash(npx *), Bash(aws cloudformation *), Bash(aws sts get-caller-identity).

Does AWS Cdk Development access the network?

SKILL.md names 2 domains. As links in the text: github.com and marketplace.visualstudio.com. This is read from the text; nothing was executed.

Is AWS Cdk Development safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does AWS Cdk Development use?

AWS Cdk Development is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does AWS Cdk Development use?

About 2.5k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.5k tokens, read only when the agent opens those files.

What are the alternatives to AWS Cdk Development?

Skills that share tags, products or a category with AWS Cdk Development: AWS Cdk (aws/agent-toolkit-for-aws, 2.8k stars), AWS Cdk Development (sickn33/agentic-awesome-skills, 47k stars), AWS Cloudformation (aws/agent-toolkit-for-aws, 2.8k stars) and AWS Advisor (diegosouzapw/awesome-omni-skills, 159 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains AWS Cdk Development?

zxkane (a GitHub user) maintains it in zxkane/aws-skills, which has 367 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on June 15, 2026.

Source: zxkane/aws-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.