Skip to main content
skill

terraform-specialist — Claude Code skill: infrastructure as code

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

Install into Claude Code · claude-code-templates All methods and platforms ↓
npx claude-code-templates@latest --skill development/terraform-specialist
Open on GitHub

What terraform-specialist 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.

What it helps with

  • 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 for the agent

  • 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

How to install terraform-specialist

1claude-code-templates

npx claude-code-templates@latest --skill development/terraform-specialist

2Skills CLI (Vercel)

npx skills add davila7/claude-code-templates --skill terraform-specialist -a claude-code

3Manually: put the files in place

~/.claude/skills/terraform-specialist/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/terraform-specialist/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about terraform-specialist

How do I install terraform-specialist in Claude Code?

Run npx claude-code-templates@latest --skill development/terraform-specialist. The skill ends up at ~/.claude/skills/terraform-specialist/SKILL.md.

What does terraform-specialist do?

It helps design Terraform and OpenTofu modules, work with state backends and workspaces, and build policy-as-code and CI automation.

When should I skip terraform-specialist?

For a one-off manual infrastructure change, when you are tied to another IaC tool, or when state cannot be stored remotely.

Similar skills

All skills for DevOps and infrastructure →

From the same set361

The whole set →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor