/iac-guidelines:iac-guidelinesfrom iac-guidelines
Theodo Cloud IaC Guild guidelines for Terraform and Terragrunt. Use when writing, modifying or reviewing .tf/.hcl files, designing layers or modules, or answering questions about IaC naming, versioning, structure, secrets and refactoring.
Ships in iac-guidelines. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The guideline documents live at the root of this plugin (terraform/, terragrunt/, operations/, tooling/), next to the skills/ folder. They are the source of truth: read the relevant file before applying or citing a rule. The summary below is only a reminder.
Apply the rules in the context of the target project. Do not restructure an existing project just to enforce a style preference; follow its conventions where they are consistent, and mention deviations instead.
apply = one state. It reflects a business need, has one owning team, and refreshes fast enough to contribute to._settings.tf for terraform/providers/backend, output.tf for the interface, reader-friendly names (database.tf). No main.tf (except the bootstrap layer).snake_case; no stuttering (aws_route_table.public, not .public_route_table); this / these in modules; plural names for collections, for_each loops and list outputs; every variable and output has a description.= 1.6.0) for Terraform and providers and commit .terraform.lock.hcl; modules use ranges (~> 1.0); remote modules are pinned to a version or tag.provider block inside a module; no data sources in modules; README + terraform-docs.terraform workspace, complex one-liners, tfvars instead of locals, shell scripts mixed with .tf, Kubernetes/Helm providers, monolayer repos.for_each over count.moved blocks with tfautomv, apply an empty plan, then change configuration in a separate step.root.hcl + module.hcl + inputs.hcl + leaf terragrunt.hcl; one module per layer.| Topic | File |
|---|---|
| Red flags / what not to do (provider blocks in modules, data sources known at apply time...) | terraform/donts.md |
| Resource, variable, output, file naming | terraform/terraform_naming.md |
| Terraform / provider / module version constraints | terraform/terraform_versioning.md |
| Secrets in code and state | terraform/handling_secrets.md |
for_each / count / for | terraform/iterate_on_your_resources.md |
| Optional object attributes | terraform/optional_attributes.md |
| Child module depth | terraform/child_modules_depth_limit.md |
| Pre-commit hooks | terraform/pre-commits.md |
.gitignore | terraform/gitignore.md |
| Referencing other layers (Terraform) | terraform/refering_to_resources_from_other_layers.md |
| WYSIWYG pattern | terraform/wysiwg_patterns.md |
| Context pattern (Terragrunt) | terragrunt/context_pattern.md |
| Terragrunt decisions | terragrunt/adr-terragrunt.md |
| Referencing other layers (Terragrunt) | terragrunt/refering_to_resources_from_other_layers.md |
| Terragrunt inputs not declared in the module | terragrunt/unused_inputs.md |
When to define a locals in Terragrunt files | terragrunt/local_usage.md |
| Folder / layer structure | operations/standard-best-iac-structure.md |
| Refactoring and moves | operations/refactoring.md |
| tflint, tfautomv and other tools | tooling/README.md, tooling/tflint.md, tooling/tfautomv.md |
terraform fmt, terraform validate and tflint (or terragrunt hclfmt) when available.apply or destroy unless explicitly asked; show the plan instead.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub padok-team/docs-terraform-guidelines --plugin iac-guidelines5 skills in this plugin
/iac-architecture-diagramGenerate a Mermaid flowchart of the target architecture (layers, networks with CIDR ranges, services, dependencies, security boundaries) from a Terragrunt / Terraform folder, with an architecture write-up. Use when asked for an architecture diagram of an IaC project./iac-auditRead-only audit of a Terraform / Terragrunt codebase against the Theodo Cloud IaC Guild guidelines, with a maturity level and risk-ranked findings. Use when asked to audit, assess or review the overall quality of an IaC repository or folder./iac-c4-diagramsGenerate C4 Context (level 1) and Container (level 2) Mermaid diagrams from a Terragrunt / Terraform folder. Use when asked for C4 diagrams or architecture documentation of an IaC project./iac-upgrade-versionsNormalize and upgrade Terraform, Terragrunt and provider version constraints across a repository following the IaC Guild versioning rules, then check provider compatibility. Use when asked to upgrade providers, bump Terraform / Terragrunt versions or harmonize version pins.Other plugins' skills for the same job