# Infra validation

> Infra validation is an open-source agent skill for cloud and infrastructure. Checks AWS CDK and CloudFormation code against best practices before deployment. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/aws-solutions/konductor/tree/main/skills/infra-validation
- **Repository:** https://github.com/aws-solutions/konductor
- **GitHub stars:** 12
- **License:** Apache-2.0
- **Skill name:** infra-validation
- **Collection:** https://github.com/aws-solutions/konductor
- **Categories:** [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure), [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-04

## About

This skill reviews infrastructure-as-code written for AWS, covering CDK apps and CloudFormation templates, and rates what it finds as critical, important or suggestion-level issues. It works by delegating to AWS-published skills on the AWS MCP server for cfn-lint or cloudformation-validate, cfn-guard rules, cdk-nag packs and Well-Architected pillar reviews, then folding their results into one report. Before reading any files it asks for the infrastructure type, the code location and the target environment, so the validation runs against the right code.

The report lists every resource in scope with the settings it checked, then gives each finding a before-and-after snippet. A short quality gate defines which issues block deployment, such as public S3 buckets, missing encryption, open security group ingress, wildcard IAM permissions and missing deletion protection on production data stores. The skill does not deploy, create change sets or run cdk synth without explicit user approval.

It expects access to the AWS MCP server to load its sub-skills; without it, the skill falls back to any locally installed cfn-lint, cfn-guard or cdk-nag and a manual code read. Inputs are the CDK or CloudFormation source and, optionally, compliance requirements and a focus area such as security or cost.

## When your agent uses it

> Validates AWS CDK and CloudFormation code against AWS best practices and Well-Architected principles. Use before deploying infrastructure changes. Flags security vulnerabilities, cost issues, and compliance gaps.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/aws-solutions/konductor/tree/HEAD/skills/infra-validation)
- [License: Apache-2.0](https://github.com/aws-solutions/konductor/tree/HEAD/skills/infra-validation)

## Features

- **Security and IAM review:** Flags public access, missing encryption, open ingress and overly broad IAM actions or wildcard resources.
- **Deployment gate:** Sorts findings into critical, important and suggestion tiers, with a fixed list of issues that block deployment.
- **Resource inventory:** Lists each resource in scope with its type, environment and the key settings that were checked.
- **Well-Architected alignment:** Runs a pillar-scoped Well-Architected review against the infrastructure code when a cost, reliability or operations focus applies.
- **Before and after fixes:** Gives each serious finding a concrete code snippet showing the current lines and the corrected version.
- **Compliance and drift checks:** Can run cfn-guard rules and cdk-nag packs where the project already uses them, reporting each layer separately.

## Good for

- Review my CDK stack for security issues before I deploy it
- Check this CloudFormation template against AWS best practices
- Find public S3 buckets or open security groups in my infrastructure code
- Flag overly broad IAM permissions in my Lambda and role definitions
- Confirm my DynamoDB tables have deletion protection and backups for production

## Install

### Claude Code

This skill ships in the `konductor` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add aws-solutions/konductor
/plugin install konductor@konductor
```

Or copy only this skill to `~/.claude/skills/infra-validation`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-solutions/konductor.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/infra-validation &&
cp -R "$tmp/skills/infra-validation" ~/.claude/skills/infra-validation &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/infra-validation` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/infra-validation` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-solutions/konductor.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/infra-validation &&
cp -R "$tmp/skills/infra-validation" ~/.agents/skills/infra-validation &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/infra-validation` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/infra-validation` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-solutions/konductor.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/infra-validation &&
cp -R "$tmp/skills/infra-validation" ~/.cursor/skills/infra-validation &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/infra-validation` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/aws-solutions/konductor.git --path skills/infra-validation
```

Or copy the folder to `~/.gemini/skills/infra-validation` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/infra-validation`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-solutions/konductor.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/infra-validation &&
cp -R "$tmp/skills/infra-validation" ~/.copilot/skills/infra-validation &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/infra-validation` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/aws-solutions/konductor.git
```

Then copy `konductor/skills/infra-validation` into your agent's skills folder as `infra-validation`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need before Infra validation starts?

It asks for the infrastructure type (CDK TypeScript or Python, or CloudFormation YAML or JSON), the folder path or pasted code, and the environment. Compliance requirements, a focus area and known issues are optional.

### Does Infra validation deploy anything or change my AWS account?

No. It does not deploy, create stacks or change sets, or install tools. It runs cdk synth only after the user explicitly confirms the code is trusted, and it skips account-aware checks such as cdk diff unless asked.

### What happens if the AWS MCP server is not available?

The skill says so at the top of the report, runs whichever of cfn-lint, cfn-guard and cdk-nag are installed, and reads the code manually for the quality gate items.

### How does Infra validation decide whether a finding blocks deployment?

Only exposure, data loss, credential risk or blocked writes are rated critical. Operational gaps such as missing alarms, DLQs or tracing are rated important, and cost or performance items are suggestions.

### How do I install Infra validation in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/infra-validation to use it in all your projects, or to .claude/skills/infra-validation in one project. Or install the konductor plugin, which includes it: /plugin marketplace add aws-solutions/konductor, then /plugin install konductor@konductor.

### Does Infra validation run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Infra validation?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Infra validation?

The closest alternatives to Infra validation are Policy validation, AWS well architected review, Sh kb misconfig, Azure well architected review and Adversarial code review pass security.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Policy validation](https://ai-powered.com/skills/policy-validation): Policy validation is an open-source agent skill for security.
- [AWS well architected review](https://ai-powered.com/skills/aws-well-architected-review): AWS well architected review is an open-source agent skill for cloud and infrastructure.
- [Sh kb misconfig](https://ai-powered.com/skills/sh-kb-misconfig): Sh kb misconfig is an open-source agent skill for cloud and infrastructure.
- [Azure well architected review](https://ai-powered.com/skills/azure-well-architected-review): Azure well architected review is an open-source agent skill for cloud and infrastructure.
- [Adversarial code review pass security](https://ai-powered.com/skills/adversarial-code-review-pass-security): Adversarial code review pass security is an open-source agent skill for security.
- [Security review](https://ai-powered.com/skills/security-review-getsentry): Security review is an open-source agent skill for security.
- [Security](https://ai-powered.com/skills/security-xiaolai): Security is an open-source agent skill for security.
- [AWS cost optimize](https://ai-powered.com/skills/aws-cost-optimize): AWS cost optimize is an open-source agent skill for cloud and infrastructure.

---
Source: https://ai-powered.com/skills/infra-validation
