terraform-style-guide

Generate Terraform HCL configurations following HashiCorp style conventions.

Updated Dec 13, 2025
One-click install
npx skills add https://github.com/AshleyHollis/yt-summarizer --skill terraform-style-guide-ashleyhollis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-style-guide
Source: https://github.com/AshleyHollis/yt-summarizer/tree/main/.opencode/skills/terraform-style-guide
Command: npx skills add https://github.com/AshleyHollis/yt-summarizer --skill terraform-style-guide-ashleyhollis

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Terraform projects often suffer from inconsistent style, organization, and outdated patterns. This Skill helps enforce HashiCorp's official style conventions to improve readability, maintainability, and collaboration.

Core Features & Use Cases

  • Enforces file organization and naming conventions for Terraform configurations.
  • Ensures provider blocks, version pins, and data/source declarations follow best practices.
  • Use Case: When starting a new infrastructure project, or auditing an existing Terraform module to ensure consistency with HashiCorp style guidelines.

Quick Start

Use the terraform-style-guide skill to generate a compliant Terraform configuration scaffold for a typical AWS VPC.

Frequently Asked Questions about terraform-style-guide

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce HashiCorp style conventions in my Terraform HCL configurations?

To enforce HashiCorp style in Terraform HCL, apply this skill to generate and review configurations for naming conventions, resource organization, provider blocks, and formatting to ensure consistency and maintainability.

What is the best way to organize Terraform provider blocks and variable declarations?

The best way to organize Terraform provider blocks and variable declarations is following HashiCorp official style conventions, which dictate specific ordering, version pinning, and structural formatting for infrastructure-as-code readability.

Can I use this to audit an existing Terraform module for code style consistency?

Yes, you can use this skill to audit existing Terraform modules. It reviews and refines your current configurations against HashiCorp style guidelines, ensuring naming, provider setup, and security best practices are consistently applied.

Does this apply to Terraform configurations across different cloud providers?

This skill applies to Terraform configurations across all environments and providers. It standardizes HCL syntax, file organization, and provider version configurations regardless of the specific cloud platform you are targeting.

Why does my Terraform code suffer from inconsistent style and outdated patterns?

Terraform code suffers from inconsistent style when projects lack enforced conventions. Applying HashiCorp's official style guidelines resolves outdated patterns, improving infrastructure-as-code readability and team collaboration.

What are the limitations of using terraform-style-guide for infrastructure scaffolding?

The terraform-style-guide focuses specifically on generating HCL syntax, naming conventions, and formatting. It produces configuration scaffolding but does not execute terraform plan or apply commands to provision actual cloud resources.