Terraform
v1.9.0Terraform configuration validation and infrastructure-as-code best practices
Installation
Install han binary (required for hooks to work):
curl -fsSL https://han.guru/install.sh | bashThen install this plugin:
han plugin install jutsu-terraformOverview
Terraform configuration validation and infrastructure-as-code best practices.
Features
- Validates Terraform configuration formatting with
terraform fmt - Validates Terraform syntax and configuration with
terraform validate - Provides skills for working with Terraform configurations, state, and modules
Requirements
Install Terraform:
# macOS
brew install terraform
# Linux
wget https://releases.hashicorp.com/terraform/1.6.0/terraform_1.6.0_linux_amd64.zip
unzip terraform_1.6.0_linux_amd64.zip
sudo mv terraform /usr/local/bin/
Skills Included
- terraform-configuration: Writing and organizing Terraform configurations
- terraform-state: Managing Terraform state files
- terraform-modules: Creating reusable Terraform modules
Hook Behavior
Validates Terraform configurations in directories containing .tf files using terraform fmt and terraform validate.
Installation
Install with npx (no installation required):
han plugin install jutsu-terraform
Skills
terraform-configuration
Use when writing and organizing Terraform infrastructure-as-code configurations for cloud resource provisioning.
terraform-modules
Use when creating and using reusable Terraform modules for organizing and sharing infrastructure code.
terraform-state
Use when managing Terraform state files, remote backends, and state locking for infrastructure coordination.
Hooks
Token Usage Notice
Hooks run automatically during Claude Code sessions and their output is sent to the model for processing. This may increase token usage and associated costs. Consider disabling hooks you don't need via han-config.yml.
Stop
Runs when the main Claude Code agent has finished responding. Can verify task completion, check quality gates, or ensure documentation requirements are met before the session ends.
SubagentStop
Runs when a Claude Code subagent (Task tool call) has finished responding. Can validate subagent outputs, enforce quality standards, or trigger additional workflows after delegated tasks complete.