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

Skill by sawrus

Guides an AI assistant through creating or changing a Terraform or OpenTofu module. It covers inputs, outputs, provider pins, checks, and moved blocks that avoid resource recreation.

  • Score 55
  • 21 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install terraform-modules

Built from the published package, never by AI.

git clone --depth 1 https://github.com/sawrus/agent-guides /tmp/agent-guides && mkdir -p ~/.claude/skills && cp -r /tmp/agent-guides/areas/devops/infrastructure/skills/terraform-modules ~/.claude/skills/terraform-modules

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

Step-by-step: install terraform-modules in Claude Code

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

About

This skill gives an AI assistant a step-by-step procedure for creating or changing a Terraform or OpenTofu module. It covers reading the module and finding its callers, changing inputs and outputs, and pinning provider versions. It also covers renaming resources with moved blocks so Terraform does not destroy and recreate them.

The checks use terraform fmt, validate, tflint, and terraform test, then a plan in one caller environment. The skill tells the assistant to stop if a plan replaces a stateful resource such as a database or bucket. It asks the user before any apply or state move. It is written for changes to .tf files in a module.

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

What it can do

  • Find module callersSearches the repository for every caller of a module before a change is made.
  • Change module interfaceGuides adding typed variables, validation blocks, sensitive flags, and deprecation notes.
  • Pin versionsSets required_providers with a ~> constraint and a required_version in versions.tf.
  • Rename without destroyUses moved blocks to change resource addresses without destroy and recreate.
  • Run format and validationRuns terraform fmt, terraform validate, and tflint across the module.
  • Write module testsAdds tests/<name>.tftest.hcl files with command = plan for new input combinations.
  • Review plan outputChecks the plan for destroy or forces replacement lines the task did not ask for.
  • Update release docsUpdates the README inputs and outputs table and bumps the module version.

What you need

  • Terraform or OpenTofu CLI
  • tflint
  • terraform-docs, if the project uses it
  • Access to a caller environment to run terraform plan

Try asking

  • Add an optional variable to this module and update its README table.
  • Rename aws_s3_bucket.this to logs in this module without destroying it.
  • Check this module with fmt, validate, and tflint, then list any fixes.

Good to know

  • The skill asks the user before any terraform apply.
  • Moving resources between state files needs terraform state mv or removed and import blocks, and the user must approve it.
  • If a plan replaces a stateful resource, the assistant must stop and tell the user.

Security check

A

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

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

Alternatives to terraform-modules

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-modules: common questions

What does the terraform-modules skill do?

It gives a step-by-step procedure for changing a Terraform or OpenTofu module safely. It covers interface changes, version pins, checks, and moved blocks.

How does it avoid destroying resources when I rename them?

It adds a moved block that maps the old resource address to the new one. The skill also tells the assistant to check the plan for forces replacement lines.

Does it apply changes to my infrastructure?

No. The source says the assistant must ask the user first before any terraform apply, and applies go through the pipeline.

How do I install terraform-modules?

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

Is terraform-modules free?

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

Is terraform-modules safe to use?

It scores 55 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-modules?

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

terraform-modules Install

Add to stack

Loading.