LaunchKit · 2026

Setup & Installation

npx skills add https://github.com/hashicorp/agent-skills --skill terraform-style-guide
or paste the link and ask your coding assistant to install it
https://github.com/hashicorp/agent-skills/tree/main/terraform/code-generation
View on GitHub

What This Skill Does

Generates Terraform HCL code following HashiCorp's official style conventions. Covers file organization, naming rules, variable declarations, output formatting, and security defaults. Based directly on the HashiCorp Terraform Style Guide.

Instead of cross-referencing the HashiCorp style guide manually during code review or generation, the conventions are applied inline as code is written.

When to use it

  • Writing new Terraform modules with correct file structure from scratch
  • Reviewing existing HCL configs for naming convention violations
  • Setting up S3 buckets with encryption and public access blocks by default
  • Converting count-based resources to for_each with named instances
  • Adding type, description, and validation blocks to bare variable declarations