Skip to content
Kitbay
SkillOfficialactive

terraform-style-guide

MPL-2.0Updated on Nov 4, 2026925GitHub stars

A HashiCorp skill that makes an agent write Terraform HCL the way HashiCorp's own style guide describes.

What the skill teaches

A HashiCorp skill that makes an agent write Terraform HCL the way HashiCorp's own style guide describes. It sets an order for generating code, from version constraints and provider configuration through data sources and resources to outputs, and a standard file layout with terraform.tf, providers.tf, main.tf, variables.tf, outputs.tf and locals.tf, with variables and outputs sorted alphabetically. It also covers formatting, naming, variables and outputs, preferring for_each over count, security practices, version pinning and a code review checklist, and applies when reviewing existing configurations as well as generating new ones.

Capabilities

  • Generate Terraform code in HashiCorp style
  • Organise configuration into standard files
  • Review existing Terraform for style issues