Claude Skill MartBrowse skillsQuick linesLearn by videoTerminal guideWhat is a Skill?
Back to list

Terraform Skill (diagnose-first IaC guidance)

A diagnose-first Terraform/OpenTofu companion that classifies the failure mode, applies version-aware guards, and always ships validation and rollback steps.

Dev & CodingIntermediate2,376217AI score 9/10Last updated: Jul 3, 2026

What it does

  • Forces context capture first: runtime (terraform vs tofu), exact version, providers, state backend, execution path, environment criticality.
  • Routes symptoms to a failure category — identity churn, secret exposure, blast radius, destroy cascade, CI drift, compliance gaps, testing blind spots, state corruption, provider upgrade/lifecycle risk.
  • Enforces a response contract: assumptions, risk category, chosen remediation and tradeoffs, exact validation commands, rollback notes.
  • Applies a version-floor table before emitting features (moved 1.1+, import 1.5+, native tests 1.6+, mocks 1.7+, removed 1.7+, S3 lockfile 1.10+, write_only 1.11+).
  • Bundles opinionated guidance on module hierarchy and layout, variable/output contracts, testing decision matrix, trivy/checkov scanning, secret handling, and state organization/splitting rules.
  • Documents terraform-ls capabilities (goToDefinition, findReferences) plus an explicit degradation path to rg + Read when LSP isn't available.

Who it's for

  • DevOps and platform engineers running multi-environment Terraform/OpenTofu.
  • Teams authoring or reviewing reusable modules who need consistent contracts and release checks.
  • Anyone building IaC CI/CD (GitHub Actions, GitLab CI, Atlantis) or fighting local-vs-CI plan drift.
  • Operators doing risky work: backend migrations, stuck locks, large refactors, provider removals.

Example uses

  1. "I deleted one item from a list and half my resources are being recreated" → diagnosed as count index churn, with a for_each migration plan and moved blocks so plan shows zero destroys.
  2. "Is passing a DB password as a variable safe?" → explains that sensitive = true only masks output while the value persists in state, then rewrites using a secret manager lookup or write_only on 1.11+.
  3. "Can I just target-destroy this one resource?" → runs terraform plan -destroy first, lists implicit dependents pulled in via locals/for_each, and requires explicit confirmation before proceeding.

· · · Install guide · · ·

Try it now, no install

Paste this into Claude to use the skill without installing anything.

Read the instructions in this file and follow them to help me:
https://raw.githubusercontent.com/antonbabenko/terraform-skill/HEAD/skills/terraform-skill/SKILL.md

What I want: (describe your task here)

If Claude can't open the link, open it yourself and paste the contents instead.

If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.

Install in the Claude app (no terminal)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Download ZIP
Install in Claude Code

Let Claude do it — paste this into Claude Code

Install the skill I found on Claude Skill Mart.
Copy the skills/terraform-skill folder from the GitHub repo antonbabenko/terraform-skill into my ~/.claude/skills/antonbabenko-terraform-skill/.
When it's done, tell me in one line what this skill can do.

Install with a command instead

git clone https://github.com/antonbabenko/terraform-skill.git /tmp/terraform-skill && mkdir -p ~/.claude/skills && cp -r /tmp/terraform-skill/skills/terraform-skill ~/.claude/skills/

This is a third-party skill. Check the source repository before installing.

  1. Open a terminal.
  2. Clone the repository: git clone https://github.com/antonbabenko/terraform-skill.git
  3. Create the skills directory: mkdir -p ~/.claude/skills
  4. Copy the whole skill folder (the references/ files carry most of the depth): cp -r terraform-skill/skills/terraform-skill ~/.claude/skills/
  5. Verify ~/.claude/skills/terraform-skill/ contains SKILL.md and a references/ directory.
  6. Restart Claude Code and try a prompt like "review this Terraform module" or "migrate my state to an S3 backend" — the skill should activate automatically.
  7. Optional: for semantic navigation, install terraform (or tofu) and terraform-ls on your PATH and run terraform init once in the project directory.
View source on GitHubLicense: NOASSERTION