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 magnus919

Operates Terraform and OpenTofu across module structure, state backends, plan and apply, drift detection, and diagnostics. Built for operators and agents who run or inspect plans, applies, state files, and imports.

  • Score 64
  • 205 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/magnus919/agent-skills /tmp/agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agent-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 guides an AI assistant through Terraform and OpenTofu operations. It covers module structure, state backends and locking, the plan and apply workflow, drift detection, remote state, upgrades and refactors, and diagnostics. It bundles a tfops script, an agent-first wrapper around the terraform or tofu CLI, which can analyze a state file without a terraform binary.

Mutations are gated. Apply and import refuse to run without --yes. Apply also requires a plan saved through tfops plan --save-plan, which writes a SHA-256 sidecar that tfops verifies before applying that same snapshot. The skill is for operators working with Terraform or OpenTofu plans and state. Design decisions and IaC methodology route to platform-engineering.

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

What it can do

  • tfops doctorReports binary, config, backend, and state availability.
  • tfops stateInspects a local state file directly, without a terraform binary.
  • tfops planProduces a state-level plan summary or a full plan via terraform plan -json.
  • tfops applyPreviews with --dry-run or applies a saved plan after the mutation gate passes.
  • tfops importImports an existing resource, refusing to run without --yes.
  • Module structure guidanceCovers module layout, provider pinning, and composition conventions.
  • State backends and lockingCovers backend choice, migration, and lock troubleshooting.
  • Drift detectionDescribes how to find and remediate config-versus-reality differences.
  • Upgrade and refactor flowsPlans version upgrades, provider changes, and moved blocks or state mv.
  • Evidence-based diagnosticsDiagnoses failed applies, lock errors, and state serial mismatches.

What you need

  • Terraform CLI 1.5+ or OpenTofu CLI 1.6+ for delegated commands
  • Python 3.8+ for the tfops script

Try asking

  • Run a plan for this stack and summarize creates, updates and destroys
  • Analyze terraform.tfstate with tfops and list the resources it holds
  • Check this stack for drift and explain any unexpected diffs

Good to know

  • Apply and import refuse to run without --yes.
  • A --state summary cannot establish live drift or satisfy the apply guard.
  • --force cannot bypass missing or invalid plan evidence.
  • The sidecar is local provenance, not a cryptographic signature.

Security check

A

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

Checked automatically: 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 it need a terraform binary?

No, for --help, doctor, and direct --state analysis. Delegated commands need Terraform CLI 1.5+ or OpenTofu CLI 1.6+.

Can it apply changes without review?

Apply needs a plan saved through tfops plan --save-plan and the --yes flag. Tainted resources and detected drift block apply unless --force is used after review.

Does it work with OpenTofu?

Yes. The source says Terraform and OpenTofu share one agent workflow, and tfops auto-detects terraform first, then tofu.

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 64 of 100. Grades: maintenance A, licence A, quality B. 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.