/odin-infra:terraform-style-checkfrom ODIN Infra
Formats, validates, and enforces style conventions on Terraform HCL files including file organization, naming, and version pinning.
Ships in ODIN Infra. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| 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. |
.tf files to check. Must exist on disk.terraform must be available on PATH.terraform apply, terraform plan, or any state-mutating command.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..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.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.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.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.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.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.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..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.| Failure class | Behavior |
|---|---|
| Syntax or validation error | Report the exact terraform validate diagnostic. Do not suppress, comment out, or work around the error. The HCL is not valid until the diagnostic resolves. |
| Scope expansion | Stop immediately. Report which file(s) were created or modified outside the original target set and the conventionally named destination files allowed by Step 2. Revert the out-of-scope changes via git checkout or manual deletion. |
| Missing terraform CLI | Report that terraform is not available on PATH. Do not attempt installation. The check cannot proceed. |
| Partial result (steps 1-5 pass, 6 or 7 fails) | Intermediate HCL changes are retained on disk. The failure report names the step that failed and the files already modified. The user decides whether to keep or revert. |
Formatted and validated HCL files in place, plus a compliance report listing files touched, per-category pass/fail (organization, naming, version pinning, security), and terraform fmt/validate exit codes. On failure, the report includes the specific diagnostic, the failed step, and the set of files modified before failure.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
13 skills in this plugin
/analysis-artifactsUse when the user requests a deep dive, exploratory analysis, or data analysis on BigQuery. Not for credential, publish, deploy, or irreversible changes./ci-cdUse when setting up or modifying CI/CD pipelines, quality gates, test runners, or deployment pipeline configuration through workflow files. Not for triggering a deployment./ci-fixUse when "CI is red", "fix the checks", or "make CI green", one check needs classifying, or a bounded sweep runs. Not for deploys, credentials, or rerun-as-fix. Non-CI bugs: use strike-the-root.npx claudepluginhub outlinedriven/odin-claude-plugin --plugin odin-infraOther plugins' skills for the same job