terraform-style-guide

Generate Terraform HCL code following HashiCorp style conventions.

1|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/Crytlig/agent-sandbox --skill terraform-style-guide-crytlig
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-style-guide
Source: https://github.com/Crytlig/agent-sandbox/tree/main/opencode/skills/terraform/terraform-style-guide
Command: npx skills add https://github.com/Crytlig/agent-sandbox --skill terraform-style-guide-crytlig

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures your Terraform HCL code adheres to HashiCorp's official style conventions and best practices, leading to more maintainable, readable, and robust infrastructure as code.

Core Features & Use Cases

  • Code Generation Guidance: Provides a structured approach to writing Terraform configurations, from provider setup to resource definition.
  • Best Practice Enforcement: Details naming conventions, variable usage, output definitions, and security considerations.
  • Use Case: When starting a new Terraform project or reviewing existing code, use this Skill to ensure all configurations follow established standards for consistency and quality.

Quick Start

Use the terraform-style-guide skill to generate a basic Terraform configuration for an AWS VPC following best practices.

Frequently Asked Questions about terraform-style-guide

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

FAQPage Schema
What are the best practices for writing clean Terraform HCL code?

To generate Terraform configurations following style conventions, start with provider setup and proceed to resource definition. Apply established standards for variable usage and output definitions to ensure all infrastructure code maintains high consistency and quality.

How do I ensure my Terraform variables and outputs follow naming conventions?

To ensure Terraform variables and outputs follow naming conventions, apply HashiCorp's official style guidelines during code generation. This enforces consistent naming patterns and proper output definitions, leading to more readable and maintainable infrastructure configurations.

Can I use this style guide for reviewing existing infrastructure as code?

Yes, you can use this style guide for reviewing existing infrastructure as code. It details best practice enforcement for naming conventions, variable usage, and security considerations, allowing you to audit current configurations against established HashiCorp standards for consistency.

Does this Terraform style guide cover security considerations for cloud infrastructure?

Yes, this Terraform style guide covers security considerations for cloud infrastructure. It enforces best practices that include security guidelines alongside naming conventions and output definitions, ensuring your infrastructure as code remains robust and secure.