Guide · Agent skill
How to use the AWS CDK Python Setup agent skill
Updated · written with AI from the project's own documentation and checked against our catalogue data
The AWS CDK Python Setup skill gives your AI agent a checklist for getting an AWS Cloud Development Kit project running in Python. CDK lets you describe cloud infrastructure such as servers, storage and databases as Python code, and AWS builds it in your account. After this guide, you will know how to add the skill to your agent, which tools you need first, and how to ask the agent to set up a project.
Quick start
- 1Check prerequisites. Confirm Node.js 14.15.0 or later, Python 3.7 or later, AWS CLI, Git and an AWS account with an access key are available.
- 2Install the skill. Download the ZIP from this page and unzip it into ~/.claude/skills/ or a project's .claude/skills/ folder, or upload it under Settings → Capabilities → Skills.
- 3Ask for setup. Describe your goal in plain language, such as setting up a new AWS CDK project in Python.
- 4Install the CDK CLI and configure credentials. Run npm install -g aws-cdk, check it with cdk --version, then run aws configure and enter your keys, region and output format.
- 5Create and activate the project. Run cdk init app --language python in a new folder, then activate .venv and install dependencies with pip install -r requirements.txt.
- 6Synth, diff and deploy. Run cdk synth to generate templates, cdk diff to preview changes, and cdk deploy to deploy. Run cdk bootstrap on the first deployment.
What is an agent skill, and what does this one do?
An agent skill is a folder with a SKILL.md file that gives an AI agent specific instructions for a task. The agent reads these instructions when your request matches them. The skill itself only supplies instructions; the agent runs commands on your machine only if you ask it to.
The aws-cdk-python-setup skill covers the setup path: configuring prerequisites, creating a new CDK project, installing Python dependencies, and using the core commands synth, diff, deploy and bootstrap.
- Walks through installing the AWS CDK CLI with npm and checking it with cdk --version
- Explains configuring AWS credentials with aws configure
- Creates a new project with cdk init app --language python
- Installs dependencies from requirements.txt into a virtual environment
- Covers cdk synth, cdk diff, cdk deploy and cdk bootstrap, plus cdk doctor for troubleshooting
What do you need before you start?
The skill assumes you already have a few tools and an AWS account. Check these before asking the agent to begin, because the steps assume familiarity with terminals and AWS credentials.
- Node.js 14.15.0 or later, required for the AWS CDK CLI
- Python 3.7 or later, used for writing CDK code
- AWS CLI, which manages credentials and resources
- Git, for version control and project management
- An AWS account with an access key and secret key
How do you install the skill?
Download the ZIP file for the skill from this page and unzip it. The folder should contain SKILL.md. Then choose one of the following locations.
For a personal skill available in all your projects, unzip it into ~/.claude/skills/. For a skill that only applies to one project, unzip it into that project's .claude/skills/ folder.
In the Claude apps, you can instead upload the ZIP under Settings → Capabilities → Skills.
- Personal: ~/.claude/skills/
- Single project: .claude/skills/ inside the project folder
- Claude apps: Settings → Capabilities → Skills, then upload the ZIP
How do you trigger the skill with a natural request?
You do not need a special command. Describe what you want in plain language that matches the skill's purpose, such as setting up CDK or starting a Python CDK project. The agent will then use the skill's checklist.
Be specific about your situation. Mention whether you are starting fresh or fixing an existing environment, and which operating system you use, so the agent follows the matching steps. The source gives macOS/Linux and Windows activation commands, so naming your system helps.
- "Set up an AWS CDK project in Python for a new web app."
- "My cdk deploy is failing. Check my AWS credentials and region."
- "Walk me through installing the CDK CLI and checking the version."
- "Create a new CDK Python project and install its dependencies."
What does a typical setup look like?
The skill follows a fixed order. The agent installs the CDK CLI, configures credentials, creates the project with cdk init, activates the virtual environment, and installs dependencies. The setup commands from the source are shown below. The agent runs them only if you approve.
When the project is ready, the skill covers the workflow: run cdk synth to generate CloudFormation templates into cdk.out/, run cdk diff to preview changes, and then cdk deploy. Run cdk bootstrap once, on the first deployment to an environment.
- Your new project includes app.py, a folder of stack definitions, requirements.txt and cdk.json
- Primary dependencies are aws-cdk-lib and constructs
npm install -g aws-cdk
cdk --version
brew install awscli
aws configure
mkdir my-cdk-project
cd my-cdk-project
cdk init app --language python
source .venv/bin/activate
pip install -r requirements.txt
cdk synth
cdk diff
cdk deploy
cdk bootstrapWhat are the safety notes?
This skill runs no scripts and uses no network access of its own. The risk comes from the commands it recommends. cdk deploy changes real cloud resources in your AWS account and can incur costs. The skill suggests using development accounts for testing and running cdk diff before any deployment.
Review every command the agent proposes before you approve it, especially deploy and bootstrap. Do not use this skill against a production AWS account without a review.
- Use development accounts for testing
- Run cdk diff before cdk deploy
- Confirm the target account and region before deploying
- Keep AWS credentials out of shared files and chat logs
What tips help the setup go smoothly?
Most setup problems come from credentials, region or version mismatches. If something breaks, ask the agent to check these first, and to run cdk doctor to diagnose the environment. The source also advises keeping requirements.txt pinned so builds stay consistent.
- Always activate the virtual environment before working
- Check that the default region is set correctly
- Confirm your Node.js and Python versions meet the minimums
- Pin requirements.txt for consistent builds
- Follow Pythonic naming and directory conventions
What people use it for
- Starting a new Python CDK project with the correct folder layout and dependencies
- Onboarding a new engineer who has never used CDK and needs prerequisites explained
- Diagnosing a broken CDK environment caused by credentials, region or version issues
- Previewing infrastructure changes with cdk diff before a deployment in a development account
Frequently asked questions
How do I install the aws-cdk-python-setup skill?
Download the ZIP from this page and unzip it into ~/.claude/skills/ for personal use, or into a project's .claude/skills/ folder for one project. In the Claude apps, you can upload the ZIP under Settings → Capabilities → Skills.
What do I need before using this skill?
You need Node.js 14.15.0 or later, Python 3.7 or later, the AWS CLI, Git, and an AWS account with an access key and secret key. The skill assumes you are comfortable using a terminal.
Is the aws-cdk-python-setup skill free?
The skill is published under the MIT licence on github/awesome-copilot. The licence text is the authority on what you may do with it. The AWS services it deploys to may charge you for resources, so check AWS pricing separately.
Does the skill run scripts or access the network?
According to the listing, the skill runs no scripts and uses no network access. It only supplies instructions. Commands run on your machine only when the agent executes them with your approval.
Can I use this skill for TypeScript or Java CDK projects?
No. The guidance is specific to Python. For other CDK languages, look for a skill written for that language.
What should I do if cdk deploy fails?
Check that your AWS credentials are configured correctly, that the default region is set, and that Node.js and Python meet the minimum versions. The skill also suggests running cdk doctor to diagnose the environment.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
This skill suits developers starting a new AWS CDK project in Python, teams onboarding engineers new to CDK, and anyone fixing a broken setup. It is a poor fit for non-technical users, for anyone without an AWS account or terminal experience, and for TypeScript, Java or other CDK languages. Test it in a development account before using it anywhere near production.
Download the skill