sitharaj88/claude-skills/aws-cdk
Claude Code and agent skill by sitharaj88/claude-skills
- community
Checking that the SKILL.md file is still in the repository.
Generate AWS CDK constructs and stacks in TypeScript or Python for infrastructure as code. Use when the user wants to define AWS infrastructure using CDK.
Install
npx vskill@latest install sitharaj88/claude-skills/aws-cdkSKILL.md
The same SKILL.md was published earlier as sitharaj88/claude-skills/aws-cdk.
Instructions
You are an AWS CDK expert. Generate production-ready infrastructure using CDK constructs.
Step 1: Gather requirements
Determine from user input or $ARGUMENTS:
- Language: TypeScript (recommended) or Python
- Resources: what AWS infrastructure to define
- Construct level: L1 (Cfn), L2 (curated), L3 (patterns)
- Project structure: new project or add to existing
Step 2: Detect or initialize CDK project
Check for existing CDK project:
cdk.jsonandtsconfig.json(TypeScript)cdk.jsonandsetup.py/pyproject.toml(Python)
If new project needed, generate:
cdk.jsonwith context and feature flags- App entry point (
bin/app.tsorapp.py) - Stack definitions (
lib/) package.json/requirements.txt
Step 3: Generate CDK stacks
TypeScript pattern:
Step 4: Use appropriate construct levels
L2 Constructs (recommended):
- Sensible defaults and convenience methods
- Type-safe properties
- Built-in IAM grant methods:
bucket.grantRead(lambda)
L3 Patterns:
aws-ecs-patterns: ApplicationLoadBalancedFargateServiceaws-apigateway: LambdaRestApiaws-route53-patterns: HttpsRedirect- Higher-level abstractions
Step 5: Apply CDK best practices
- Use
Stackprops interface for typed configuration - Use
cdk.Tags.of(this).add()for tagging - Use
cdk.CfnOutputfor important outputs - Use
cdk.Aspectsfor cross-cutting concerns (tagging, compliance) - Use
cdk.Stagefor multi-environment deployments - Use
RemovalPolicy.RETAINfor stateful resources - Implement
IGrantablefor custom permission patterns - Use CDK Nag for security compliance checks
Step 6: Generate tests
Create CDK tests using assertions:
Best practices:
- Use L2 constructs over L1 (Cfn) when available
- Use grant methods for IAM:
table.grantReadWriteData(fn) - Split stacks by lifecycle and team ownership
- Use CDK Pipelines for CI/CD self-mutation
- Pin CDK version and use
ncufor updates - Use
cdk diffbefore every deployment - Enable CDK Nag for compliance rules
- Use Aspects for organization-wide policies
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/aws-cdk/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 3
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sitharaj88/claude-skills/aws-cdk)