aws-cdk-skill-plugin

内容来源:README.md(说明文档) · 原始地址 · 查看安装指南

原始内容

AWS CDK Skill Plugin for Claude Code

License: MIT AWS CDK

A Claude Code plugin that provides expert-level guidance for engineering AWS CDK v2 applications with safe CloudFormation deployments.


Features

  • Risk-aware deployments: Analyzes cdk diff for replacements, IAM changes, data loss, and cross-stack exports
  • Repo-first approach: Detects language, CDK version, entrypoints, and existing patterns before making changes
  • Safe refactoring: Guides construct/stack restructuring without triggering resource replacements
  • Troubleshooting: Covers bootstrap, asset, pipeline, and synthesis failures
  • Governance: Supports tags, encryption, logging, boundaries, and policy checks

What's Included

skills/developing-with-aws-cdk/
├── SKILL.md              # Main instructions (loaded by Claude Code)
├── README.md             # Skill overview
├── EVALS.md              # Prompts for testing the Skill
├── reference/            # Deep documentation (loaded on demand)
│   ├── WORKFLOWS.md
│   ├── REPO_DISCOVERY.md
│   ├── RISK_MODEL.md
│   ├── REFACTORING_AND_IDENTITY.md
│   ├── BOOTSTRAP_AND_SYNTHESIZERS.md
│   ├── DEPLOYMENT_AND_RELEASES.md
│   ├── ASSETS_AND_BUNDLING.md
│   ├── CDK_PIPELINES.md
│   ├── TESTING_AND_VALIDATION.md
│   ├── GOVERNANCE_AND_GUARDRAILS.md
│   └── TROUBLESHOOTING.md
├── templates/            # Copy-paste templates for PRs and runbooks
│   ├── PR_RISK_SUMMARY.md
│   ├── DIFF_REVIEW.md
│   ├── MIGRATION_PLAN.md
│   ├── RELEASE_RUNBOOK.md
│   └── INCIDENT_REPORT.md
└── scripts/              # Diagnostic and analysis tools
    ├── repo_profile.py   # Repo inventory (language, versions, entrypoints)
    ├── parse_cdk_diff.py # Parse cdk diff into JSON/Markdown
    └── cdk_risk_report.py # Generate risk reports from synth+diff

Installation

Option A: As a Claude Code plugin (recommended)

git clone https://github.com/kndoshn/aws-cdk-skill-plugin.git

Then register the plugin in Claude Code:

claude plugins:add /path/to/aws-cdk-skill-plugin

Or add to your Claude Code settings manually.

Option B: Copy into your project

mkdir -p .claude/skills
cp -R skills/developing-with-aws-cdk .claude/skills/

Option C: Personal installation

cp -R skills/developing-with-aws-cdk ~/.claude/skills/

Usage

After installation, ask Claude Code for AWS CDK-related tasks. The Skill activates automatically when your request matches its scope.

Example Prompts

"Review this CDK PR and summarize the deployment risk."
"Refactor this construct to a separate stack without replacements."
"Why is cdk synth failing with a bootstrap version error?"
"Add a CDK Pipeline with prod approval gates."
"Troubleshoot this cross-stack export removal."

Documentation

See the Skill's own documentation for details:


Scripts

Run these scripts for repo analysis:

# Repo inventory
python skills/developing-with-aws-cdk/scripts/repo_profile.py --project . --md

# Parse cdk diff output
python skills/developing-with-aws-cdk/scripts/parse_cdk_diff.py --file diff.txt --md

# Generate risk report
python skills/developing-with-aws-cdk/scripts/cdk_risk_report.py --project . --out reports

Compatibility

  • AWS CDK: v2 (aws-cdk-lib)
  • Languages: TypeScript, Python, Java, C#, Go
  • Environments: Local development, CI/CD pipelines, CDK Pipelines

License

MIT