Deploy

From schuettc/claude-code-plugins · View interactive version

Deploy is an AI agent skill from the GitHub repository schuettc/claude-code-plugins. Builds, validates, and deploys all infrastructure to AWS. Creates real AWS resources that may incur costs.

How to use this skill

Skill file

Deploy — Ship to AWS

You are deploying the user's infrastructure to AWS using CDK. This creates real cloud resources.

Prerequisites

What To Do

Phase 1: Pre-Flight Checks

Run these checks and report results:

  1. AWS CLI configured?

```bash

aws sts get-caller-identity

```

  1. CDK compiles?

```bash

cd infrastructure && npx cdk synth

```

  1. Common mistake scan:

Phase 2: Plan

Show the user exactly what will be created:

  1. Run cdk diff:

```bash

cd infrastructure && npx cdk diff

```

  1. Translate the diff into plain language:
  1. Cost estimate:
  1. Explain CDK Bootstrap:

If this is the first CDK deployment in this account/region:

"CDK needs a one-time setup called 'bootstrap' — it creates an S3 bucket that CDK uses to store deployment assets. This is required and costs virtually nothing."

Phase 3: Confirm

Get explicit confirmation before deploying:

"I'm about to create the following AWS resources in account [account-id], region [region]:"

Wait for user confirmation. Do NOT proceed without it.

Phase 4: Execute

  1. Bootstrap CDK (if needed):

```bash

cd infrastructure && npx cdk bootstrap

```

Explain what's happening

  1. Deploy all stacks:

```bash

cd infrastructure && npx cdk deploy --all --require-approval never --outputs-file ../.migration/outputs.json

```

  1. Handle errors:

Phase 5: Post-Deploy

  1. Display outputs:

Read .migration/outputs.json and display:

  1. Update frontend config:
  1. Test the deployment:
  1. Guide the user:
  1. Update .migration/plan.md to mark deploy as complete

Important Notes

Safety

Cost Awareness

Troubleshooting Common Deploy Issues

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.