# infrastructure-code-synthesis

infrastructure-code-synthesis synthesizes AWS Cloud Development Kit code and enforces pre-deployment validation rules for cloud stacks.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 125 installs · ★ 50 repo stars
- Author: qodex-ai
- License: LicenseRef-Proprietary · policy=link-only · description only; the file stays with the author
- Source: https://github.com/qodex-ai/ai-agent-skills/tree/HEAD/skills/infrastructure-code-synthesis/SKILL.md
- Updated: 2026-01-05
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/infrastructure-code-synthesis

## What it does

This skill guides coding agents through producing AWS CDK infrastructure constructs. It establishes architectural standards for CloudFormation synthesis, runtime-specific Lambda packaging, and pre-commit verification workflows.

A central rule forbids hardcoding explicit resource names like `functionName`. Relying on CDK-generated identifiers prevents collision errors during parallel deployments across matching regions. For compliance checks, the workflow incorporates `cdk-nag` with `AwsSolutionsChecks` directly into `cdk synth` executions.

The skill relies on AWS documentation MCP tooling to look up service availability and API quotas: without active MCP connections, the assistant cannot pull live regional specifications.

## Requirements
- Works with: AWS

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add qodex-ai/ai-agent-skills --skill infrastructure-code-synthesis -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/infrastructure-code-synthesis/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/infrastructure-code-synthesis/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add qodex-ai/ai-agent-skills --skill infrastructure-code-synthesis -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/infrastructure-code-synthesis/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add qodex-ai/ai-agent-skills --skill infrastructure-code-synthesis -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/infrastructure-code-synthesis/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install qodex-ai/ai-agent-skills skills/infrastructure-code-synthesis
```

2. **Manually: put the files in place**
- File: `.github/skills/infrastructure-code-synthesis/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add qodex-ai/ai-agent-skills --skill infrastructure-code-synthesis -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/qodex-ai/ai-agent-skills --path skills/infrastructure-code-synthesis
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/infrastructure-code-synthesis/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add qodex-ai/ai-agent-skills --skill infrastructure-code-synthesis -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/qodex-ai/ai-agent-skills/tree/HEAD/skills/infrastructure-code-synthesis/SKILL.md

## When to use it
- Synthesize modular AWS CDK constructs avoiding explicit resource name collisions
- Configure runtime-specific Lambda bundling with `NodejsFunction` or `PythonFunction`
- Add automated synthesis validation using `cdk-nag` and `AwsSolutionsChecks`
- Verify service quotas and regional availability before deploying CloudFormation stacks

## Example prompts
- Build a TypeScript CDK stack for an S3-triggered Lambda without manual resource naming
- Attach AwsSolutionsChecks from cdk-nag to our root CDK application
- Setup a PythonFunction construct pointing to handler.py with dependency handling

## Similar
- [aws-cdk](https://affpapa.org/en/nevibecode/skills/aws-cdk.md) — skill · 10800 installs
- [aws-cdk-development](https://affpapa.org/en/nevibecode/skills/aws-cdk-development.md) — skill · 1200 installs
- [aws-lambda](https://affpapa.org/en/nevibecode/rules/aws-lambda.md) — rule · ★ 3589 repo stars
- [aws-development](https://affpapa.org/en/nevibecode/skills/aws-development.md) — skill · 741 installs
- [aws-solution-architect](https://affpapa.org/en/nevibecode/skills/borghei-aws-solution-architect.md) — skill · 150 installs
- [aws-cloud-services](https://affpapa.org/en/nevibecode/skills/aws-cloud-services.md) — skill · 452 installs

From the same set: [qodex-ai/ai-agent-skills](https://affpapa.org/en/nevibecode/by/qodex-ai/ai-agent-skills.md) — 42 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
