環境の前提条件の設定、Pythonベースの新しいCDKプロジェクトの初期化、依存関係の管理、およびAWSへのインフラデプロイを行います。
- GitHubスター
- 41,038
- ファイル
- 1
- 最終コミット
- 2026年11月11日
- ライセンス
- MIT
- 許可されたツール
- —
aws-cdk-python-setup skillは何をしますか
aws-cdk-python-setupはAgent Skillsです。 環境の前提条件の設定、Pythonベースの新しいCDKプロジェクトの初期化、依存関係の管理、およびAWSへのインフラデプロイを行います。.
skillのSKILL.mdから生成された要約。
aws-cdk-python-setup skill について
このSKILLの主な機能は、PythonベースのAWS Cloud Development Kit環境をセットアップすることです。Node.js、Python、AWS CLI、Gitなどの必要なツールの確認を行い、開発者のローカルマシンの準備を支援します。環境が整うと、新しいCDKプロジェクトの作成、Python仮想環境の初期化、およびaws-cdk-libやconstructsなどのコアライブラリのインストールをガイドします。
ユーザーが空のターミナルから機能的なInfrastructure as Codeプロジェクトを開始したい場合に、エージェントはこのSKILLをロードすべきです。app.py、cdk.json、requirements.txtを含む構造化されたプロジェクトファイルを生成します。ワークフローは、cdk initの実行から、cdk synthによるCloudFormationテンプレートの合成、そして最終的にcdk deployによるAWSアカウントへのスタックのデプロイまで、ライフサイクル全体をカバーします。また、S3バケットへのアセット保存に必要な初期のcdk bootstrapプロセスも処理します。
エージェントができること
- 1新しいCDKプロジェクトの初期化新しいディレクトリを作成し、PythonベースのAWS CDKアプリケーション構造をセットアップします。
- 2インフラ変更のプレビューアップデートを適用する前に、現在のローカルコードとデプロイ済みのスタックを比較します。
skill の SKILL.md から作成されています。すべてのユースケースは、その引用と照合されています。
aws-cdk-python-setup skillのインストール方法
各コマンドはskillフォルダをクライアントのskillsディレクトリにコピーします。読み込むには、クライアントを再起動するか新しいセッションを開始してください。Claude Codeにaws-cdk-python-setup skillをインストールする
~/.claude/skills/aws-cdk-python-setup/SKILL.md
$ npx degit github/awesome-copilot/skills/aws-cdk-python-setup ~/.claude/skills/aws-cdk-python-setupClaude Code (project)にaws-cdk-python-setup skillをインストールする
.claude/skills/aws-cdk-python-setup/SKILL.md
$ npx degit github/awesome-copilot/skills/aws-cdk-python-setup .claude/skills/aws-cdk-python-setupCodexにaws-cdk-python-setup skillをインストールする
~/.agents/skills/aws-cdk-python-setup/SKILL.md
$ npx degit github/awesome-copilot/skills/aws-cdk-python-setup ~/.agents/skills/aws-cdk-python-setupGemini CLIにaws-cdk-python-setup skillをインストールする
~/.gemini/skills/aws-cdk-python-setup/SKILL.md
$ npx degit github/awesome-copilot/skills/aws-cdk-python-setup ~/.gemini/skills/aws-cdk-python-setupClaude.aiにaws-cdk-python-setup skillをインストールする
npx degit github/awesome-copilot/skills/aws-cdk-python-setup aws-cdk-python-setup && zip -r aws-cdk-python-setup.zip aws-cdk-python-setup # claude.ai → Customize → Skills → + → Create skill → Upload a skill → aws-cdk-python-setup.zip
自動チェック
実行日 2026年11月13日詳細レポート →自動チェックに合格しました。これはセキュリティ監査ではありません。エージェントに実行させる前にスクリプトを読んでください。 チェックの仕組み
- ソースリポジトリがリンクされており、アクセス可能github/awesome-copilot/skills/aws-cdk-python-setup is public and reachablegithub.com/github/awesome-copilot/tree/HEAD/skills/aws-cdk-p ↗合格
- オープンソースライセンス (OSI)MITspdx.org/licenses/MIT.html ↗合格
- 過去1年以内にコミットまたはリリースありLast commit 2026-11-11github.com/github/awesome-copilot/commits ↗合格
- スクリプトにダウンロード実行や認証情報の窃取がないNo scripts in the skill folder合格
- SKILL.md に隠れた指示がないNo override phrases, safeguard switches, credential requests or hidden charactersgithub.com/github/awesome-copilot/blob/HEAD/skills/aws-cdk-p ↗合格
- 事前許可ツールが限定されているNo pre-approved tools; the agent asks before using onegithub.com/github/awesome-copilot/blob/HEAD/skills/aws-cdk-p ↗合格
SKILL.md
GitHubで表示AWS CDK Python Setup Instructions
This skill provides setup guidance for working with AWS CDK (Cloud Development Kit) projects using Python.
Prerequisites
Before starting, ensure the following tools are installed:
- Node.js ≥ 14.15.0 — Required for the AWS CDK CLI
- Python ≥ 3.7 — Used for writing CDK code
- AWS CLI — Manages credentials and resources
- Git — Version control and project management
Installation Steps
1. Install AWS CDK CLI
npm install -g aws-cdk
cdk --version
2. Configure AWS Credentials
# Install AWS CLI (if not installed)
brew install awscli
# Configure credentials
aws configure
Enter your AWS Access Key, Secret Access Key, default region, and output format when prompted.
3. Create a New CDK Project
mkdir my-cdk-project
cd my-cdk-project
cdk init app --language python
Your project will include:
app.py— Main application entry pointmy_cdk_project/— CDK stack definitionsrequirements.txt— Python dependenciescdk.json— Configuration file
4. Set Up Python Virtual Environment
# macOS/Linux
source .venv/bin/activate
# Windows
.venv\Scripts\activate
5. Install Python Dependencies
pip install -r requirements.txt
Primary dependencies:
aws-cdk-lib— Core CDK constructsconstructs— Base construct library
Development Workflow
Synthesize CloudFormation Templates
cdk synth
Generates cdk.out/ containing CloudFormation templates.
Deploy Stacks to AWS
cdk deploy
Reviews and confirms deployment to the configured AWS account.
Bootstrap (First Deployment Only)
cdk bootstrap
Prepares environment resources like S3 buckets for asset storage.
Best Practices
- Always activate the virtual environment before working.
- Run
cdk diffbefore deployment to preview changes. - Use development accounts for testing.
- Follow Pythonic naming and directory conventions.
- Keep
requirements.txtpinned for consistent builds.
Troubleshooting Tips
If issues occur, check:
- AWS credentials are correctly configured.
- Default region is set properly.
- Node.js and Python versions meet minimum requirements.
- Run
cdk doctorto diagnose environment issues.
このスキルのファイル
1aws-cdk-python-setup skillに関する質問
Claude Codeにaws-cdk-python-setup skillをインストールするには
npx degit github/awesome-copilot/skills/aws-cdk-python-setup ~/.claude/skills/aws-cdk-python-setupを実行してください。Claude Codeは~/.claude/skills(すべてのプロジェクト)または.claude/skills(単一プロジェクト)からskillsを読み込み、説明がタスクに一致する場合にskillを使用します。
aws-cdk-python-setup skillはどのクライアントで使用できますか
Agent Skills形式を読み込むすべてのクライアントで使用できます: Claude Code、Codex、Gemini CLI、claude.ai(ZIPとしてアップロード)。skill内のスクリプトは、クライアントがコード実行を許可した場合にのみ実行されます。
AWS CDKのPython開発に必要な最小バージョンは何ですか?
Node.js version 14.15.0以上、およびPython version 3.7以上が必要です。
初回デプロイに向けてAWS環境をどのように準備すればよいですか?
アセット保存用のS3バケットなどのリソースを準備するために、bootstrapコマンドを実行する必要があります。
AWSにデプロイする前に変更内容を確認する方法はありますか?
デプロイを進める前に、cdk diffコマンドを使用して変更内容をプレビューしてください。
環境の問題を診断するにはどのコマンドを使用できますか?
cdk doctorを実行することで、環境内の問題の診断を支援できます。