# terraform-specialist

A Claude skill that walks the agent through Terraform and OpenTofu module design, state handling and CI automation. Useful when infrastructure lives in code.

- skill · `type=skill` · Claude Code · 70 installs
- Author: davila7
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/development/terraform-specialist
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/skills/terraform-specialist

## What it does

The skill gives the agent a Terraform and OpenTofu specialist role. It covers module and environment design, state backends, workspaces and multi-cloud stacks, plus policy-as-code and IaC pipelines. The workflow inside runs in four steps: pin down environments, providers and security constraints; design modules and pick a remote backend; set up plan/apply with reviews and policies; then check drift, cost and rollback.

Safety rules are spelled out too. Plans get reviewed before anything is applied, and state files stay protected with no secrets sitting in them. The skill also lists where it does not fit: a one-off manual infrastructure change, a different IaC tool, or no way to keep state remotely. Without a remote backend some of the workflows just will not run, so settle that first.

Install it with `npx claude-code-templates@latest --skill development/terraform-specialist`; the skill file lands at `~/.claude/skills/terraform-specialist/SKILL.md`.

## Requirements
- Works with: Terraform

## Install

### Claude Code (native platform)

1. **claude-code-templates**
```bash
npx claude-code-templates@latest --skill development/terraform-specialist
```

2. **Skills CLI (Vercel)**
```bash
npx skills add davila7/claude-code-templates --skill terraform-specialist -a claude-code
```

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

### Codex

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

### Cursor

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install davila7/claude-code-templates terraform-specialist
```

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

### Gemini CLI

**Platform CLI**
```bash
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/development/terraform-specialist
```

### Windsurf (Devin Desktop)

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

### 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/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/development/terraform-specialist

## When to use it
- split infrastructure into modules and environments
- pick a remote backend and set up state locking
- add policy checks to the plan/apply pipeline
- spot drift between state and real infrastructure
- plan a move from Terraform to OpenTofu

## Example prompts
- Design a VPC module with separate staging and prod environments
- Set up a remote state backend with DynamoDB locking
- Add policy checks to the pipeline before apply

## 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

From the same set: [davila7/claude-code-templates](https://affpapa.org/en/nevibecode/by/davila7/claude-code-templates.md) — 361 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
