/fuse-devops:devops-iacfrom fuse-devops
Covers infrastructure as code with OpenTofu/Terraform for self-hosted environments: tool choice, project layout, provider pinning, remote state with locking/encryption, state surgery, modules, environments, plan-then-apply workflow, drift detection, testing, and static scanning with tflint/checkov/trivy.
Ships in fuse-devops. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Before ANY change to .tf, .tofu, .tfvars, .tftest.hcl, terragrunt.hcl or state, spawn in parallel, one Agent call each with a name:
tofu or terraform) the repo uses/websites/opentofu, /websites/developer_hashicorp_terraform, /bpg/terraform-provider-proxmox) - confirm each argument before writing itRead-only commands first (plan-apply-protocol.md). After file changes, run fuse-ai-pilot:sniper.
| Area | What matters on 2026-11-10 |
|---|---|
| Tool | OpenTofu (Linux Foundation fork) vs Terraform (Business Source License 1.1, licensor IBM, 1.6.0 and later); same HCL core, diverging features |
| Only OpenTofu | State and plan encryption (1.7), -exclude (1.9), provider for_each (1.9), enabled meta-argument (1.11), dynamic prevent_destroy and destroy = false (1.12) |
| Both | Ephemeral resources and write-only arguments (Terraform 1.11+, OpenTofu 1.11+), import/moved/removed blocks, native S3 locking use_lockfile |
| Only Terraform | Actions and terraform query list resources (1.14), Terraform Policy GA (1.17), -minimal-refresh (1.17) |
| Providers | bpg/proxmox is the maintained Proxmox provider; Telmate/proxmox publishes only release candidates on its 3.x line (last stable 2.9.14); OpenStack provider last released 2025-11-11 |
plan -out=FILE, read the summary line and every replace (-/+) and destroy, show it to the user, apply FILE only after the user's go. Never apply from a dirty tree, a stale plan or an unreviewed plan.destroy, applying a plan that replaces or destroys, state rm, state push, force-unlock, -target, -replace, deleting a backend bucket/table or a lock: ACTION / EFFECT / PROOF / WAIT-FOR-GO (plan-apply-protocol.md).state pull > backup plus bucket versioning; with encryption on, the key is part of the backup.required_version, provider version, exact module versions, .terraform.lock.hcl..tf, .tfvars committed or state when avoidable - ephemeral values and write-only arguments first, then encrypted state; the secret store is devops-secrets.infra/
├── live/<env>/<stack>/ # root modules: backend, providers, module calls (one state each)
│ ├── versions.tf backend.tf main.tf variables.tf outputs.tf
│ ├── encryption.tf # OpenTofu only
│ ├── .terraform.lock.hcl # committed
│ └── terraform.tfvars # non-secret values only
├── modules/<name>/ # reusable, versioned, tested (tests/*.tftest.hcl)
└── .tflint.hcl .trivyignore # static checks
| Topic | Reference | When to Consult |
|---|---|---|
| Tool choice | tofu-vs-terraform.md | License, governance, feature divergence, migration |
| Layout & providers | layout-providers-lock.md | Project tree, version pinning, lock file, registries |
| State | state-backends-encryption.md | Backend choice, S3/MinIO, http, pg, kubernetes, locking, encryption |
| State surgery | state-surgery.md | import, moved, removed, state mv/rm/push, force-unlock |
| Modules | modules-variables.md | Module design, versioning, variables, validation, outputs, locals |
| Environments | environments.md | Workspaces vs directories vs Terragrunt |
| Plan/apply | plan-apply-protocol.md | Saved plans, destructive catalogue, drift, CI pointer |
| Testing | testing-quality.md | fmt, validate, test, tflint, checkov, trivy |
| Proxmox | provider-proxmox.md | Which provider, auth, VM from template |
| OpenStack | provider-openstack.md | clouds.yaml auth, network + instance |
| K8s/Helm/Docker/libvirt | provider-k8s-docker-libvirt.md | Provider choice, v3 schema changes, pitfalls |
| Template | When to Use |
|---|---|
| root-module.tf | Root module with pinned providers and an S3-compatible backend |
| encryption.tf | OpenTofu state and plan encryption with migration fallback |
| module-skeleton.tf | Reusable module with validated inputs and outputs |
| proxmox-vm-cloudinit.tf | VM cloned from a cloud-init template (bpg provider) |
| openstack-instance-network.tf | Network, router, security group and instance |
| import-moved-removed.tf | Adopt, rename and forget resources without destroying them |
| main.tftest.hcl | Offline plan-only tests for the module skeleton, including negative validation tests |
tofu version && tofu providers # binary, versions, provider tree
tofu fmt -check -recursive && tofu init -backend=false && tofu validate # offline checks
tofu init && tofu plan -out=tfplan -detailed-exitcode # exit 0 no diff, 1 error, 2 changes
tofu show tfplan # read it; show the user; wait for the go
tofu apply tfplan # only the reviewed file
moved blocks for renames, removed with lifecycle { destroy = false } to forgetprevent_destroy on state-like resources (databases, volumes) and VM templatesapply without a saved plan outside a throwaway lab; use -target as a routine toolstate push -force or force-unlock without proof of the causetofu and terraform on one state; commit .tfstate, plan files or .tfvars with secretsreferences/environments.md (opens in a new tab)references/layout-providers-lock.md (opens in a new tab)references/modules-variables.md (opens in a new tab)references/plan-apply-protocol.md (opens in a new tab)references/provider-k8s-docker-libvirt.md (opens in a new tab)references/provider-openstack.md (opens in a new tab)references/provider-proxmox.md (opens in a new tab)references/state-backends-encryption.md (opens in a new tab)references/state-surgery.md (opens in a new tab)references/templates/encryption.tf (opens in a new tab)references/templates/import-moved-removed.tf (opens in a new tab)references/templates/main.tftest.hcl (opens in a new tab)references/templates/module-skeleton.tf (opens in a new tab)references/templates/openstack-instance-network.tf (opens in a new tab)references/templates/proxmox-vm-cloudinit.tf (opens in a new tab)references/templates/root-module.tf (opens in a new tab)references/testing-quality.md (opens in a new tab)references/tofu-vs-terraform.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
opentofu, terraform, iac, infrastructure-as-code, state-management, self-hosted
npx claudepluginhub fusengine/claude-plugins --plugin fuse-devops18 skills in this plugin
/devops-ansibleUse when writing, reviewing, testing or running Ansible - choosing ansible-core and community package versions (control node and managed node Python), static and dynamic inventory with group_vars/host_vars, variable precedence, playbooks, roles and collections (ansible-galaxy, requirements.yml, FQCN), idempotency (changed_when/failed_when), handlers, tags, Jinja2 templates, Ansible Vault and no_log, privilege escalation, check mode and diff mode, --limit, serial/rolling updates and max_fail_percentage, block/rescue/always, performance (forks, pipelining, fact caching, strategy), ansible-lint, Molecule, execution environments (ansible-navigator, ansible-builder), project layout, and Ansible versus Terraform/OpenTofu. Not for Terraform/OpenTofu state and modules (devops-iac), Linux host internals (devops-linux), CI pipeline authoring (devops-cicd), secret stores (devops-secrets), Proxmox or OpenStack platform internals (devops-proxmox, devops-openstack) or a security hardening audit (fuse-security:security-expert)./devops-cicdUse when writing, reviewing or debugging CI/CD pipelines for self-hosted infrastructure - GitHub Actions (workflows, reusable workflows, composite actions, matrix, concurrency, caching, environments with required reviewers, OIDC instead of stored secrets, pinning actions by SHA or lockfile, permissions least privilege, self-hosted runners), GitLab CI (rules, needs, includes and components, environments, resource_group, protected variables, runners and executors), pointers for Jenkins / Forgejo-Gitea Actions / Woodpecker, pipeline design (build once promote many, quality gates, speed), image builds in CI (BuildKit cache, multi-arch, provenance/SBOM/signing), deploy strategies and rollback, release automation and pipeline troubleshooting. Not for GitOps controllers, Helm or Kustomize (devops-gitops-packaging), Dockerfile and registry craft (devops-docker), secret stores (devops-secrets), language-specific CI gates (framework experts), repo commit/release flow (commit agent) or a supply-chain audit (fuse-security:security-expert).Other plugins' skills for the same job