Working with Terraform configuration, CLI, modules, and providers. Use when writing or reviewing HCL configuration, managing infrastructure as code, debugging Terraform plans/applies, or working with Terraform-related tools.
Generates and reviews Terraform HCL configurations, manages infrastructure as code, and validates plans.
/plugin marketplace add bendrucker/claude/plugin install terraform@bendruckerThis skill inherits all available tools. When active, it can use any tool Claude has access to.
docs.mdlanguage.mdregistry.mdstate.mdCRITICAL: Before providing any language syntax or CLI advice, run terraform version to determine the project's Terraform version.
terraform version
Assume Terraform 1.12+ (current: 1.14). All standard features are available:
terraform testimport blocks for importing resourcescheck blocks for runtime validationremoved blocks for lifecycle managementIf the project uses Terraform < 1.12, note the version and check feature availability.
Always format before committing:
terraform fmt -recursive
main.tf # Primary resources
variables.tf # Input variable declarations
outputs.tf # Output value declarations
versions.tf # Terraform and provider version constraints
terraform.tfvars # Variable values (gitignored if sensitive)
For larger modules, split by logical component: compute.tf, networking.tf, security.tf, data.tf, locals.tf.
fmt)depends_onfor_each for resource sets; count only for conditional creationsensitive = true.tf files)apply, destroy, import, state mv, etc.)plan, validate, fmt, state list, show) are safe to runmoved blocks instead of state manipulationterraform state write commandsimport blocks to import existing resourcesremoved blocks to remove resources from statemoved blocks to refactor resource addressestfsec, checkov, or terrascanimport {
to = aws_instance.web
id = "i-1234567890abcdef0"
}
Without destroying infrastructure:
removed {
from = aws_instance.old
lifecycle {
destroy = false
}
}
moved {
from = aws_instance.old
to = aws_instance.new
}
language.md for HCL configuration patterns, variables, iteration, data sources, and localsstate.md for read-only state inspection and remote state data sourcesdocs.md for navigating official Terraform documentationregistry.md for finding and using providers/modulesThis skill should be used when the user asks to "create a hookify rule", "write a hook rule", "configure hookify", "add a hookify rule", or needs guidance on hookify rule syntax and patterns.
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.