Guide · Agent skill
How to use the Terraform Engineer agent skill: install and run it
Updated · written with AI from the project's own documentation and checked against our catalogue data
The terraform-engineer skill is a set of instructions that teaches an AI agent to work like a senior Terraform engineer on infrastructure as code for AWS, Azure or GCP. It is aimed at engineers who write or refactor Terraform modules, teams moving state to a remote backend, and anyone who wants plans reviewed in a checklist before anything changes in the cloud. After this guide you will know what the skill does, how to install it, how to trigger it with a natural request, and which safety points to check before letting it touch real infrastructure.
Quick start
- 1Download the ZIP. Download the terraform-engineer ZIP from the skill page on this site.
- 2Install the skill. Unzip it into ~/.claude/skills/ for personal use or into the project's .claude/skills/ folder, or upload the ZIP under Settings → Capabilities → Skills in the Claude apps.
- 3Install Terraform and tflint. Make sure the Terraform CLI and tflint are installed and available in the terminal the agent uses.
- 4Set cloud credentials. Configure AWS, Azure or GCP credentials if the agent will run plan or apply.
- 5Make a natural request. Describe the Terraform task, the cloud and the environment in plain language, mentioning Terraform or a provider.
- 6Review the plan. Read the summary of creates, updates and destroys, paying close attention to any destructive actions.
- 7Approve or reject. Reply with explicit approval before the agent runs terraform apply tfplan, or refuse and ask for changes.
What the terraform-engineer skill makes the agent do
An agent skill is a folder with a SKILL.md file that describes how the agent should handle a certain kind of task. When this skill is active, the agent structures Terraform code into reusable modules with inputs, outputs and validation blocks, configures remote state with locking and encryption, and pins provider versions. It can also help migrate backends, import existing resources and resolve state conflicts.
- Module development: create reusable modules and manage module versioning
- State management: migrate backends, import existing resources, resolve state conflicts
- Provider configuration for AWS, Azure and GCP, including authentication
- Multi-environment workflows and infrastructure testing
Install the skill on Claude (ZIP download or upload)
Download the ZIP file from the skill page. Then choose one of two routes. For a personal install, unzip it into ~/.claude/skills/. To scope it to one project, unzip it into the project's .claude/skills/ folder. Alternatively, upload the ZIP in the Claude apps under Settings → Capabilities → Skills.
After installing, the folder should contain SKILL.md along with the references folder, which holds module-patterns.md, state-management.md, providers.md, testing.md and best-practices.md. The agent loads these reference files when a task needs them.
- Personal install: unzip into ~/.claude/skills/
- Project install: unzip into the project's .claude/skills/
- App install: Settings → Capabilities → Skills, then upload the ZIP
~/.claude/skills/terraform-engineer/SKILL.mdInstall the required tools
The skill expects the Terraform CLI to be installed, because its workflow runs terraform fmt, terraform validate, terraform plan and terraform apply. It also runs tflint in the validation step. If the agent will run plan or apply, it needs cloud provider credentials for AWS, Azure or GCP. Set these up in your environment before you start, and check that the terraform command works in the same terminal the agent uses.
- Terraform CLI
- tflint
- Cloud provider credentials for AWS, Azure or GCP (only needed if the agent runs plan or apply)
Trigger the skill with natural requests
You do not need a special command. Describe the Terraform task in plain language and mention Terraform or the cloud provider. The skill's trigger words include Terraform, infrastructure as code, IaC, terraform module, terraform state, AWS provider, Azure provider, GCP provider, terraform plan and terraform apply.
Be specific about the goal, the cloud and any constraints. Name the files or environment when you can, because the agent works from existing code.
- "Turn this S3 bucket definition into a reusable module with validated inputs and outputs."
- "Move our Terraform state from local files to an S3 backend with DynamoDB locking."
- "Import the existing VPC in us-east-1 into state and check the plan shows no changes."
- "Pin the AWS and azurerm provider versions in this repo and run fmt and validate."
Understand the review-before-apply workflow
The skill follows a fixed sequence. It analyses the infrastructure, designs modules, implements state, applies security policies, then validates with terraform fmt, terraform validate and tflint. Validation errors must be fixed and re-checked before going on. It then runs terraform plan -out=tfplan and summarises creates, updates and deletes, with destructive actions called out. It presents that summary and asks for explicit approval. It runs terraform apply tfplan only after you confirm.
If a plan fails, the skill has recovery steps: refresh or re-align state for drift, re-run terraform init and check credentials for provider auth errors, and add depends_on or restructure outputs for ordering errors. After any fix it returns to validation before planning again.
- Validate: terraform fmt, terraform validate, then tflint
- Plan: terraform plan -out=tfplan with a summary of changes
- Approve: the agent refuses to apply without your confirmation, or if destructive changes are present and not accepted
terraform plan -out=tfplan
terraform apply tfplanRead the plan summary before you approve
The approval step is only as good as your reading of the plan. Check every line marked for destruction or replacement, confirm the target account, region and environment, and ask the agent why each change is needed. If something is unclear, say no and ask for a narrower plan.
The skill's own rules support this. It says to store no secrets in plain text, avoid local state for production, and never commit .terraform directories. Use these as a checklist when you review.
- Confirm the account, region and environment in the plan match what you intended
- Treat any replacement or deletion as a decision you must accept explicitly
- Check that no secrets appear in code or outputs
What people use it for
- Refactor a single-file AWS S3 bucket definition into a module with validated variables and documented outputs.
- Migrate a project's local state to an S3 backend with encryption and DynamoDB locking.
- Import an existing cloud resource into Terraform state and confirm the plan shows no unexpected changes.
- Pin AWS, Azure and GCP provider versions in a multi-environment repository.
- Review a plan for a change set and get a list of creates, updates and destructive actions before approving.
Frequently asked questions
Is the terraform-engineer skill free?
The skill is published under the MIT licence, as stated on its page. Check the licence file in the repository for the full terms. Any Terraform, cloud or Claude costs are separate and depend on your own accounts.
What do I need installed to use it?
You need the Terraform CLI and tflint. If the agent will run plan or apply, you also need credentials for AWS, Azure or GCP. The skill runs scripts and uses the network, so review what it will execute.
Where do I put the skill folder?
Unzip it into ~/.claude/skills/ for personal use, or into a project's .claude/skills/ folder to scope it to that project. You can also upload the ZIP in the Claude apps under Settings → Capabilities → Skills.
Will the agent apply changes to my cloud account without asking?
The skill's workflow says to present the plan summary and wait for explicit approval before running terraform apply tfplan. It also says to refuse applying if approval is withheld. Do not give it unattended apply access, because the approval step depends on the agent following its instructions.
Does it work with Pulumi or CloudFormation?
No. The guidance covers Terraform only, so Pulumi and CloudFormation stacks are outside its scope.
Why does the agent say my skill is not triggering?
Mention Terraform or infrastructure as code in your request, and name the cloud provider. The skill's trigger words include terraform plan, terraform state and the AWS, Azure and GCP provider names. Check the folder is in the correct skills directory and contains SKILL.md.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
Use this skill if you write or refactor Terraform modules for AWS, Azure or GCP, move state to a remote backend, or want a checklist-driven review of plans before anything changes. Skip it if you lack Terraform or cloud experience and might approve an apply you do not understand, if you want unattended apply in production, or if your stack is Pulumi or CloudFormation.
Download the skill