/iac-guidelines:iac-c4-diagramsfrom iac-guidelines
Generates C4 Context (level 1) and Container (level 2) Mermaid diagrams from a Terragrunt/Terraform folder structure. Useful for architecture documentation of IaC projects.
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.
Generate a C4 Level 1 (Context) and Level 2 (Container) diagram, in Mermaid, for the folder the user names, otherwise the repository. The only files you create are the two diagram files below.
terragrunt.hcl; read root.hcl, module.hcl, inputs.hcl, _settings.hcl / _settings.tf and the .tf files. Map folders to logical components.dependency blocks, include relationships, module sources, cross-layer data sources and remote state, input/output chains.C4Context): users and admins, the system boundary, external systems (cloud platform, third parties), the main flows.C4Container): Terragrunt layers grouped into containers by responsibility (networking, compute, data, security, monitoring), with technology, dependencies and data flows.Skeleton:
C4Container
title Container Diagram for <folder>
Person(admins, "Administrators")
System_Boundary(system, "Infrastructure System") {
Container(networking, "Network Layer", "Terragrunt/Terraform", "VNets, subnets, NSGs")
Container(compute, "Compute Layer", "Terragrunt/Terraform", "AKS, VMs")
}
System_Ext(cloud, "Cloud platform")
Rel(compute, networking, "Network traffic")
Create docs/diagrams/ if missing, then docs/diagrams/<folder-name>-context.md and docs/diagrams/<folder-name>-container.md. Each has a short header, the Mermaid block, and a few lines on the decisions shown. If a Mermaid validator is available, validate both diagrams.
Keep them readable: descriptive container names tied to business capabilities, technology in descriptions, protocols in relationship labels, security and network boundaries visible, not overcrowded. Finish with a brief summary of the architectural decisions and dependencies you found.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
c4-diagrams, mermaid, terragrunt, terraform, architecture-diagrams
5 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-guidelinesTheodo 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./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.npx claudepluginhub padok-team/docs-terraform-guidelines --plugin iac-guidelinesOther plugins' skills for the same job