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-style-guide

Skill by Cloudgeni-ai

Generates Terraform HCL code that follows HashiCorp's official style conventions. Covers file layout, naming, variables, outputs, security defaults and version pinning. Written for engineers who write or review Terraform configurations.

  • Score 81
  • 229 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install terraform-style-guide

Built from the published package, never by AI.

git clone --depth 1 https://github.com/Cloudgeni-ai/opengeni /tmp/opengeni && mkdir -p ~/.claude/skills && cp -r /tmp/opengeni/packages/runtime/src/curated_skill_library/terraform-style-guide ~/.claude/skills/terraform-style-guide

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

Step-by-step: install terraform-style-guide in Claude Code

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

About

The terraform-style-guide skill tells an AI assistant how to write, review and generate Terraform HCL code using HashiCorp's official style conventions. It sets a generation order: provider configuration and version constraints first, then data sources, then resources in dependency order, with outputs and variables added. It also defines a standard file layout with terraform.tf, providers.tf, main.tf, variables.tf, outputs.tf and locals.tf.

The guide covers formatting with two-space indentation, lowercase underscore naming, and required type and description on every variable and output. It prefers for_each over count, applies security defaults such as encryption and blocked public access, and pins provider versions. It lists terraform fmt, terraform validate, tflint and checkov or tfsec as checks. It is aimed at developers and teams writing or reviewing Terraform configurations.

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

What it can do

  • Code generation strategyOrders generated code from provider setup and version constraints through data sources to resources.
  • File organizationSplits configuration into terraform.tf, providers.tf, main.tf, variables.tf, outputs.tf and locals.tf.
  • Formatting and namingUses two-space indentation, aligned equals signs and lowercase underscore names.
  • Variables and outputsRequires type and description on variables and descriptions on outputs, with sensitive marking where needed.
  • for_each and countPrefers for_each for multiple resources and count for conditional creation.
  • Security practicesApplies encryption at rest, private networking, least privilege and no hardcoded secrets by default.
  • Version pinningSets Terraform and provider version constraints explicitly.
  • Provider configurationShows default_tags and aliased providers for multi-region setups.
  • Version control rulesLists which Terraform files to commit and which to ignore.
  • Review checklistProvides a checklist for reviewing Terraform code against the conventions.

What you need

  • Terraform CLI, for terraform fmt and terraform validate

Try asking

  • Write Terraform for a VPC with standard tags and file layout
  • Review this Terraform config against the HashiCorp style guide
  • Create an encrypted S3 bucket with public access blocked in Terraform

Good to know

  • Examples use AWS resources and the AWS provider.

Security check

A

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

Checked automatically: packages/runtime/src/curated_skill_library/terraform-style-guide/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md8 KB

Alternatives to terraform-style-guide

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-style-guide: common questions

Does it follow HashiCorp's Terraform style conventions?

Yes. The skill is based on the HashiCorp Terraform Style Guide and links to it as its reference.

Which files should be committed to version control?

All .tf files and .terraform.lock.hcl should be committed. terraform.tfstate, the .terraform/ directory, *.tfplan files and sensitive .tfvars files should not.

Which validation tools does it recommend?

It recommends terraform fmt and terraform validate before committing, plus tflint for linting and checkov or tfsec for security scanning.

How do I install terraform-style-guide?

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

Is terraform-style-guide free?

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

Is terraform-style-guide safe to use?

It scores 81 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-style-guide?

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

terraform-style-guide Install

Add to stack

Loading.