# terraform-infrastructure

Guides the AI agent in writing HashiCorp Configuration Language code for AWS, Azure, and GCP, covering reusable modules, variable validation, and multi-environment state.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 437 installs · ★ 62
- Author: manutej
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/manutej/luxor-claude-marketplace/tree/HEAD/plugins/luxor-devops-suite/skills/terraform-infrastructure/SKILL.md
- Updated: 2026-06-13
- HTML: https://affpapa.org/en/nevibecode/skills/manutej-terraform-infrastructure

## What it does

The skill equips coding agents with patterns for HashiCorp Configuration Language (HCL) code. It covers core Terraform components, including cloud providers, resource definitions, data sources, and output declarations. The instructions enforce the standard lifecycle flow from initialization and planning to applying changes.

Inside, the reference outlines typed input variables such as tuples and objects. It shows how to attach custom `validation` blocks with condition checks and regex patterns. Agents also learn to filter collections using `for` expressions, merge tags inside `locals`, and invoke built-in helpers like `cidrhost` or `merge`.

Running the generated manifests still requires a local `terraform` binary and active cloud credentials.

## Requirements
- Works with: Terraform

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add manutej/luxor-claude-marketplace --skill terraform-infrastructure -a claude-code
```

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add manutej/luxor-claude-marketplace --skill terraform-infrastructure -a codex
```

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

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add manutej/luxor-claude-marketplace --skill terraform-infrastructure -a cursor
```

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install manutej/luxor-claude-marketplace terraform-infrastructure
```

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

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add manutej/luxor-claude-marketplace --skill terraform-infrastructure -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/manutej/luxor-claude-marketplace --path plugins/luxor-devops-suite/skills/terraform-infrastructure
```

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add manutej/luxor-claude-marketplace --skill terraform-infrastructure -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/manutej/luxor-claude-marketplace/tree/HEAD/plugins/luxor-devops-suite/skills/terraform-infrastructure/SKILL.md

## When to use it
- write modular HCL configurations for AWS, Azure, or GCP
- enforce input variable types and validation rules
- filter and transform infrastructure lists with for expressions
- manage multi-environment setups across dev, staging, and prod

## Example prompts
- Generate an AWS VPC module with input validation using `cidrhost`
- Create a `main.tf` file for a PostgreSQL database using an object variable schema
- Write a set of local values filtering production compute instances via a `for` loop

## Similar
- [wizard](https://affpapa.org/en/nevibecode/skills/wizard.md) — skill · 553369 installs
- [hyperframes-cli](https://affpapa.org/en/nevibecode/skills/heygen-com-hyperframes-cli.md) — skill · 1300000 installs
- [setup-pre-commit](https://affpapa.org/en/nevibecode/skills/setup-pre-commit.md) — skill · 489289 installs
- [using-git-worktrees](https://affpapa.org/en/nevibecode/skills/using-git-worktrees.md) — skill · 217153 installs
- [finishing-a-development-branch](https://affpapa.org/en/nevibecode/skills/finishing-a-development-branch.md) — skill · 214439 installs
- [orca-cli](https://affpapa.org/en/nevibecode/skills/orca-cli.md) — skill · 354000 installs

## Other versions with the same name
- [terraform-infrastructure · aj-geddes](https://affpapa.org/en/nevibecode/skills/terraform-infrastructure.md) — 1200 installs

From the same set: [manutej/luxor-claude-marketplace](https://affpapa.org/en/nevibecode/by/manutej/luxor-claude-marketplace.md) — 65 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
