Terraform Style Check

🌐Community
by oldwinter · vlatest · Repository

Analyzes Terraform code for adherence to Old Winter's style guide, ensuring consistency and best practices in cloud infrastructure deployments.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add oldwinter-terraform-style-check npx -- -y @trustedskills/oldwinter-terraform-style-check
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "oldwinter-terraform-style-check": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/oldwinter-terraform-style-check"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill, oldwinter-terraform-style-check, analyzes Terraform configuration files and enforces a consistent style based on established best practices. It identifies deviations from defined rules, helping to improve code readability and maintainability within infrastructure as code projects. The tool provides feedback on formatting, naming conventions, and other stylistic elements.

When to use it

  • Automated Code Reviews: Integrate into CI/CD pipelines to automatically check Terraform code for style violations before merging changes.
  • Team Standardization: Ensure all team members adhere to the same Terraform coding standards across projects.
  • New Infrastructure Projects: Enforce consistent styling from the outset of new infrastructure deployments.
  • Refactoring Existing Codebases: Apply a style check to existing Terraform code to improve its readability and consistency.

Key capabilities

  • Terraform configuration file analysis
  • Style rule enforcement
  • Deviation reporting
  • Consistent formatting checks
  • Naming convention validation

Example prompts

  • "Check the style of this Terraform file: [file content]"
  • "Analyze main.tf for any style violations."
  • "Run a Terraform style check against my repository."

Tips & gotchas

This skill requires access to the Terraform configuration files you want to analyze. The specific rules enforced are determined by the underlying Terraform style checker being used, so understanding those rules is important for interpreting results.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
oldwinter
Installs
10

🌐 Community

Passed automated security scans.