terraform-style-check

terraform-style-check is a skill for Claude Code, Codex from OutlineDriven/odin-claude-plugin. It costs 39 tokens per session (1,369 once invoked), scanned A, original, Apache-2.0.

A checker and formatter for Terraform HCL configuration. Terraform is a tool for describing and managing infrastructure, and HCL is its configuration language.

In plain words
What is it for?
Use it to format and validate selected Terraform files, check naming and versioning conventions, and review certain security settings.
Why use it?
It catches formatting and configuration problems before deployment while avoiding commands that change infrastructure or state.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the odin-infra plugin — 13 skills shipped together

Good fit Use it to format and validate selected Terraform files, check naming and versioning conventions, and review certain security settings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/outlinedriven/odin-claude-plugin/terraform-style-check
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add OutlineDriven/odin-claude-plugin --skill terraform-style-check
Clone the repo
git clone --depth 1 https://github.com/OutlineDriven/odin-claude-plugin

Made for: Claude Code, Codex.

Or install odin-infra, the plugin that ships this one along with the rest of its 13 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for terraform-style-check

README.md
[![agentmods](https://agentmods.dev/badge/skills/outlinedriven/odin-claude-plugin/terraform-style-check/github.svg)](https://agentmods.dev/skills/outlinedriven/odin-claude-plugin/terraform-style-check)
Your own site
<a href="https://agentmods.dev/skills/outlinedriven/odin-claude-plugin/terraform-style-check"><img src="https://agentmods.dev/badge/skills/outlinedriven/odin-claude-plugin/terraform-style-check/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for terraform-style-check

Your own site · 80×15
<a href="https://agentmods.dev/skills/outlinedriven/odin-claude-plugin/terraform-style-check"><img src="https://agentmods.dev/badge/skills/outlinedriven/odin-claude-plugin/terraform-style-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,369 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.01369
Opus 5 $0.00019 $0.00685
Sonnet 5 $0.00008 $0.00274
Haiku 4.5 $0.00004 $0.00137

Measured 6d ago against content hash d8d9a484e8ca, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

terraform-style-check scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/odin-infra/skills/terraform-style-check/SKILL.md · 54 lines

How it starts

The opening of the file, as written. The whole thing — 54 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Terraform style check

Contract

Field Bound contract
Trigger Writing, reviewing, or generating Terraform configurations.
Authority Reversible local: writes only named local HCL files; rollback is version control. No remote mutation.
Side effect Local HCL files are formatted, validated, and may have resource blocks, provider constraints, and security attributes rewritten in place.
Done HCL follows file organization, naming, version pinning, and security best practices and passes terraform fmt and validate.

Inputs

  • Target directory or files (required): the Terraform root module or specific .tf files to check. Must exist on disk.
  • Terraform CLI (required): terraform must be available on PATH.
  • Style overrides (optional): project-specific naming prefixes or security exceptions. If absent, apply defaults below.

Refusals

  • Will not run terraform apply, terraform plan, or any state-mutating command.
  • Will not modify files outside the declared target set, except that conventionally named destination files (main.tf, <resource_type>.tf, variables.tf, outputs.tf, versions.tf) may be created or modified by the file-organization step when blocks are moved into them.
  • Will not suppress, comment out, or work around a validation diagnostic. The HCL is not valid until the diagnostic resolves.
  • Will not install the Terraform CLI if it is missing.

Procedure

  1. Define the target scope. Enumerate .tf files under the target directory and record the file set. Do not read or modify files outside this set. Done when: the complete .tf file set is recorded.
  2. File organization. Verify each resource type lives in a file named after its type (main.tf for provider and terraform blocks, <resource_type>.tf for resources, variables.tf for variable declarations, outputs.tf for outputs, versions.tf for required_providers and required_version). Reorganize misplaced blocks by moving them into their conventionally named file, creating that file if it does not yet exist. Done when: every block resides in its conventionally named file.
  3. Naming conventions. Enforce snake_case for all resource, variable, output, and local names. Ensure resource names include a descriptive suffix matching the resource type (aws_instance.web_server not aws_instance.this). Ensure variable names use descriptive nouns (vpc_cidr_block not cidr). Done when: every name is snake_case and descriptively suffixed.
  4. Version pinning. Verify every provider in required_providers has an exact version constraint (= X.Y.Z or ~> X.Y.Z with minor pinned). Verify every module source has a version constraint. Add missing pins using the currently resolved version from .terraform.lock.hcl if available; otherwise flag for manual review. Flagging a missing pin for manual review is a non-blocking partial success: the step is done for that provider or module, and the flag is recorded in the compliance report. Done when: every provider and module source has a version constraint or a recorded manual-review flag.
  5. Security defaults. Verify S3 buckets have server_side_encryption_configuration, public access blocks (block_public_acls, block_public_policy, restrict_public_buckets, ignore_public_acls all true), and versioning enabled. Verify security groups default to deny-all ingress. Verify RDS instances have storage_encrypted = true and publicly_accessible = false. Verify EC2 instances have metadata_options.http_tokens = "required". Apply defaults where missing unless the file contains an explicit # tfsec:ignore or # checkov:skip annotation for that resource. Done when: every checked resource has its security defaults or an explicit skip annotation.
  6. Run terraform fmt -recursive -diff on the target scope. When the input is a specific file list rather than a directory, run terraform fmt -diff on each file individually instead of -recursive. Capture stdout and stderr. Done when: terraform fmt exits zero.
  7. Run terraform validate on the target directory. When the input is a specific file list rather than a directory, skip terraform validate (it requires a full module directory) and note the skip in the compliance report. Capture stdout and stderr. Done when: terraform validate exits zero, or the skip is recorded for single-file input.
  8. Re-enumerate the target .tf file set. Verify no file outside the original set was created or modified, except for conventionally named destination files created or modified by the file-organization step (Step 2). Done when: the file set is accounted for, with any new conventionally named files explicitly listed.
  9. Report the final state. List each file touched, each check category (organization, naming, version pinning, security) with pass/fail, and the terraform fmt and validate exit codes. Done when: the compliance report is emitted.

Read the full file on GitHub · 54 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 54 lines · 39 tokens per session scan A d8d9a484e8ca

Subscribe to this mod's changes

terraform-style-check is a skill published in the GitHub repository OutlineDriven/odin-claude-plugin (36 stars, last pushed 3d ago), licensed Apache-2.0. It adds 39 tokens to every session and 1,369 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens