cdk-ci

Automate local validation of AWS CDK code with linting, builds, snapshot tests, and cdk synth.

1|Updated Jan 18, 2026
One-click install
npx skills add https://github.com/kasiopeiya/oidc-learning-sandbox --skill cdk-ci
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cdk-ci
Source: https://github.com/kasiopeiya/oidc-learning-sandbox/tree/main/.claude/skills/cdk-ci
Command: npx skills add https://github.com/kasiopeiya/oidc-learning-sandbox --skill cdk-ci

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates local quality checks for AWS CDK infrastructure code, including static analysis, snapshot tests, and CloudFormation synth, helping teams validate changes before CI.

Core Features & Use Cases

  • Static analysis: ESLint/TS checks on CDK code to catch errors early.
  • Snapshot tests: Run Vitest snapshot tests to ensure infra expectations.
  • cdk synth validation: Generate and verify CloudFormation templates for CDK apps.

Quick Start

Run the cdk-ci workflow from the root of your CDK project to perform formatting, linting, building, snapshot tests, and synthesis.

Frequently Asked Questions about cdk-ci

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate AWS CDK infrastructure code locally before pushing a pull request?

You can validate AWS CDK infrastructure code locally by running automated checks for formatting, linting, TypeScript builds, Vitest snapshot tests, and cdk synth to catch errors before CI.

What is the best way to run CDK snapshot tests and CloudFormation synth during development?

The best way to run CDK snapshot tests and CloudFormation synth during development is using an automated local workflow that executes Vitest snapshots and cdk synth sequentially with detailed failure reports.

Can I run ESLint and Prettier checks on AWS CDK projects without deploying to AWS?

Yes, you can run ESLint and Prettier checks on AWS CDK projects without deploying by executing local static analysis and formatting validation directly on your infrastructure code.

Does local CDK validation replace CI pipelines for infrastructure as code?

Local CDK validation does not replace CI pipelines but provides reliable, repeatable checks during development so teams can fix formatting, linting, and synth failures before creating pull requests.

Why does cdk synth fail locally even when TypeScript builds pass?

Cdk synth can fail locally even when TypeScript builds pass because synthesis validates CloudFormation template generation, catching infrastructure logic errors that static type checks and formatting linters do not detect.

Do I need Vitest installed to run snapshot tests for CDK infrastructure code?

Yes, you need Vitest installed in your CDK project environment to execute the snapshot tests that verify your infrastructure expectations during local validation workflows.