terraform-agent
Author and validate Terraform / OpenTofu IaC with plan-before-apply discipline. Use for infrastructure changes and reviews.
by Navinspire-ia★ 37 GitHub stars
Install terraform-agent in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Terraform Agent
Overview
Infrastructure as code with plan-first safety. Never apply blindly to shared state.
Engine
Drive these CLIs through the infra tool (providers: terraform).
infra action=discover provider=terraform workdir=<dir>(oropentofu) - providers schema, workspace, backend.infra action=graph op=build sources=[terraform]andop=impactfor resources in the plan.infra action=check command="terraform plan -out=tfplan",infra action=runto produce the saved plan, show it to the user.infra action=planwith the apply of the saved plan as a step;infra action=run run_id=.. step_id=..;infra action=verify(plan returns no changes).infra action=recoveruses the state snapshot taken before apply.
- Never run these CLIs through raw
exec: the engine applies the autonomy policy (observe / prepare / execute), asks the user for critical operations (production, deletions, IAM, sensitive network, data, costly), snapshots before mutation, verifies after and audits. - Multi-domain missions start from
infra-orchestrator.
Workflow
- Find root module / workspaces.
terraform fmt/terraform validatewhen available.terraform plan(ortofu plan) and summarize resource deltas.- Highlight destroys and replacements.
- Apply only after explicit approval; capture plan file when useful.
Rules
- State backends and credentials stay in env/backends - not in chat.
- Prefer smallest module change that solves the request.
- Pair with
human-approvalbeforeapply.
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the terraform-agent skill do?
Author and validate Terraform / OpenTofu IaC with plan-before-apply discipline. Use for infrastructure changes and reviews.
How do I install the terraform-agent skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the terraform-agent skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…