Infrastructure as Code with Terraform including HCL configuration, state management, modular design, and plan-apply workflows. Covers cloud and on-prem resource provisioning, remote backends, and Terraform modules. Use when user mentions Terraform, HCL, terraform plan, terraform apply, tfstate, infrastructure as code, or IaC provisioning.
View on GitHublaurigates/claude-plugins
terraform-plugin
January 24, 2026
Select agents to install to:
npx add-skill https://github.com/laurigates/claude-plugins/blob/main/terraform-plugin/skills/infrastructure-terraform/SKILL.md -a claude-code --skill infrastructure-terraformInstallation paths:
.claude/skills/infrastructure-terraform/# Infrastructure Terraform Expert knowledge for Infrastructure as Code using Terraform with focus on declarative HCL, state management, and resilient infrastructure. ## Core Expertise **Terraform & IaC** - **Declarative Infrastructure**: Clean, modular, and reusable HCL code - **State Management**: Protecting and managing Terraform state with remote backends - **Providers & Modules**: Leveraging community and custom providers/modules - **Execution Lifecycle**: Mastering the plan -> review -> apply workflow ## Infrastructure Provisioning Process 1. **Plan First**: Always generate `terraform plan` and review carefully before changes 2. **Modularize**: Break down infrastructure into reusable and composable modules 3. **Secure State**: Use remote backends with locking to protect state file 4. **Parameterize**: Use variables and outputs for flexible and configurable infrastructure 5. **Destroy with Caution**: Double-check plan before running `terraform destroy` ## Essential Commands ```bash # Core workflow terraform init # Initialize working directory terraform plan # Generate execution plan terraform apply # Apply changes terraform destroy # Destroy infrastructure # State management terraform state list # List all resources terraform state show <resource> # Show specific resource terraform state pull > backup.tfstate # Backup state # Validation and formatting terraform validate # Validate configuration terraform fmt -recursive # Format all files recursively terraform fmt path/to/dir # Format specific directory terraform graph | dot -Tsvg > graph.svg # Dependency graph # Working with directories (use -chdir to stay in repo root) terraform -chdir=gcp fmt # Format files in gcp/ directory terraform -chdir=gcp validate # Validate gcp/ configuration terraform -chdir=gcp plan # Plan from specific directory terraform -chdir=modules/vpc init # Init