---
stable_id: skills/skills-sh-hashicorp-agent-skills-refactor-module
type: skills
title: skills-sh-hashicorp-agent-skills-refactor-module
summary: >-
  ---

  name: terraform-style-guide

  description: Generate Terraform HCL code following HashiCorp's official style
  conventions and best practices. Use when writing, reviewing, or generating
  Terraform configurations.

  ---

  # Terraform Style Guide

  Generate and maintain Terraform code following HashiCorp's official style
  conventions and best practices.

  **Reference:** [HashiCorp Terraform Style
  Guide](https://developer.hashicorp.com/terraform/language/style)

  ## Code Generation Strategy

  When generating Terraform code:

  1. Start with provider configuration and version constraints
tags:
  - skills-sh
  - skills-sh-all-time
source_url: https://raw.githubusercontent.com/hashicorp/agent-skills/refs/heads/main/terraform/code-generation/skills/terraform-style-guide/SKILL.md
license: ""
upstream_ref: https://skills.sh/hashicorp/agent-skills/refactor-module
github_stars: null
github_forks: null
github_is_organization: null
retrieved_at: 2026-06-11T08:32:55.287Z
content_sha256: fea8a0eadf68f1ac45cae3b1d6dc4c66b489fb6e40a3d41762120059c49540c2
---
