Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

terraform

Skill by iliaal

Terraform skill that guides an AI assistant through Terraform and OpenTofu work, covering modules, native tests, state management and HCL review. It is aimed at engineers who write, test or review infrastructure as code.

  • Score 58
  • 46 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install terraform

Built from the published package, never by AI.

git clone --depth 1 https://github.com/iliaal/ai-skills /tmp/ai-skills && mkdir -p ~/.claude/skills && cp -r /tmp/ai-skills/skills/terraform ~/.claude/skills/terraform

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install terraform in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The terraform skill gives an AI assistant working rules and conventions for Terraform and OpenTofu configuration. It covers file layout and naming, block ordering, count versus for_each, module structure, and version pinning. It also covers state handling, including remote backends with locking, moved blocks, and OpenTofu state encryption, along with security defaults such as encryption at rest and no hardcoded credentials.

The skill applies to files matching .tf and .tfvars and points to a reference for native plan and apply tests and CI test selection. Its verification step runs terraform fmt, terraform validate, tflint and trivy config. The source is aimed at engineers who write, test or review Terraform or OpenTofu code.

Written from the project's SKILL.md and checked against it.

What it can do

  • File layout and namingSets conventions for files such as main.tf, variables.tf and outputs.tf, and for resource names.
  • Module structureDescribes resource, infrastructure and composition modules and a standard module folder layout.
  • count vs for_eachExplains when to use count for boolean toggles and for_each for keyed items that may reorder.
  • Version pinningGives pinning strategies for Terraform, providers and modules, including prod and dev modules.
  • State and security practicesCovers remote backends with locking, encryption, lock files, default_tags and least-privilege rules.
  • Refactoring with moved blocksShows how to rename resources or modules without destroy and recreate.
  • Troubleshooting commandsCovers force-unlock, drift detection with -refresh-only, -replace and import blocks.
  • Native test patternsPoints to a reference for plan and apply tests, fixture ordering and CI test selection.
  • Verification checksRuns terraform fmt, validate, tflint and trivy config before work is declared done.

What you need

  • Terraform or OpenTofu
  • tflint
  • trivy

Try asking

  • Review this Terraform module for state and security issues
  • Refactor these resources with moved blocks instead of recreating them
  • Should these subnets use count or for_each? Explain the choice

Good to know

  • Real-service tests can create billable infrastructure and need authorization.
  • The Stacks feature is on HCP and its release status should be checked.
  • DynamoDB-based S3 locking is deprecated in favor of use_lockfile.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/terraform/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to terraform

All alternatives →
deploy-release-testvercel
94

Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.

AAA Skill 144k
deepeval-tracingconfident-ai
94

Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.

AAA Skill 20k
azure-container-registry-cligithub
94

Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.

AAA Skill 42k
crabbox-appsopenclaw
94

Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.

AAA Skill 395k
gke-batch-hpcgoogle
94

Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.

AAA Skill 25k
gke-cost-analysisgoogle
94

Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.

AAA Skill 25k

Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli

terraform: common questions

Does this skill support OpenTofu as well as Terraform?

Yes. The source covers both Terraform and OpenTofu and includes OpenTofu-only state and plan encryption.

What does it say about state locking?

It recommends S3 with use_lockfile on Terraform 1.10 and later, or Azure Blob, GCS or Terraform Cloud. It says DynamoDB-based S3 locking is deprecated.

Which checks does the verify step run?

It runs terraform fmt -check, terraform validate, tflint and trivy config, and all must pass with zero errors.

How do I install terraform?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is terraform free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is terraform safe to use?

It scores 58 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to terraform?

Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.

terraform Install

Add to stack

Loading.