cdk-validate

Validate AWS CDK infrastructure code with cdk-nag and cfn-lint.

2|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/amdmax/claude_marketplace --skill cdk-validate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cdk-validate
Source: https://github.com/amdmax/claude_marketplace/tree/main/skills/cdk-validate
Command: npx skills add https://github.com/amdmax/claude_marketplace --skill cdk-validate

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automatically validates your AWS CDK infrastructure code against best practices and syntax rules, preventing common misconfigurations and security vulnerabilities before they reach deployment.

Core Features & Use Cases

  • Automated Validation: Runs cdk-nag for AWS best practices and cfn-lint for CloudFormation syntax.
  • Pre-commit/Pre-PR Checks: Integrates with hooks to catch issues early in the development cycle.
  • Use Case: After modifying your CDK stack definitions, this skill will automatically run checks, providing immediate feedback on potential security misconfigurations (like IAM wildcard permissions) or syntax errors, ensuring your infrastructure is robust and compliant.

Quick Start

Use the cdk-validate skill to check your infrastructure code for compliance with AWS best practices.

Frequently Asked Questions about cdk-validate

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

FAQPage Schema
How do I validate AWS CDK infrastructure code for security and syntax errors?

Validating AWS CDK infrastructure code involves running cdk-nag to enforce AWS best practices and cfn-lint to check CloudFormation syntax, preventing common misconfigurations and security vulnerabilities.

How does cdk-nag check AWS CDK stacks for compliance?

cdk-nag checks AWS CDK stacks for compliance by automatically validating your infrastructure code against AWS best practices, identifying potential security misconfigurations such as IAM wildcard permissions during development.

What is the best way to automate pre-commit checks for AWS CDK infrastructure?

The best way to automate pre-commit checks for AWS CDK infrastructure is integrating validation tools into your hooks to run cdk-nag and cfn-lint, catching syntax errors and security issues early in the development cycle.

Do I need npm and pip packages to run AWS CDK validation checks?

Yes, you need the npm package cdk-nag and the pip package cfn-lint installed in your environment to perform comprehensive validation of AWS CDK infrastructure code for best practices and syntax.

Why does my AWS CDK deployment fail due to CloudFormation syntax errors?

AWS CDK deployments may fail due to CloudFormation syntax errors that can be detected and prevented by running cfn-lint as a pre-PR check to validate your infrastructure code before it reaches deployment.