terraform-agent
Author and validate Terraform / OpenTofu IaC with plan-before-apply discipline. Use for infrastructure changes and reviews.
Install
npx skills add https://github.com/Navinspire-ia/navin/tree/main/navin/skills/terraform-agent
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install navinspire-ia-navin@llmmart
git clone https://github.com/Navinspire-ia/navin.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole navinspire-ia/navin collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
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.
Files (navin)
-
SKILL.md 1.7 KB
--- name: terraform-agent description: Author and validate Terraform / OpenTofu IaC with plan-before-apply discipline. Use for infrastructure changes and reviews. metadata: {"navin":{"emoji":"🏗️","category":"devops"}} --- # 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). 1. `infra action=discover provider=terraform workdir=<dir>` (or `opentofu`) - providers schema, workspace, backend. 2. `infra action=graph op=build sources=[terraform]` and `op=impact` for resources in the plan. 3. `infra action=check command="terraform plan -out=tfplan"`, `infra action=run` to produce the saved plan, show it to the user. 4. `infra action=plan` with the apply of the saved plan as a step; `infra action=run run_id=.. step_id=..`; `infra action=verify` (plan returns no changes). 5. `infra action=recover` uses 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 1. Find root module / workspaces. 2. `terraform fmt` / `terraform validate` when available. 3. `terraform plan` (or `tofu plan`) and summarize resource deltas. 4. Highlight destroys and replacements. 5. 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-approval` before `apply`.
Comments (0)
Sign in to join the conversation.
Reviews (0)
No reviews yet.
No comments yet.