devops-iac
БесплатноБез исполняемых скриптовНе проверенUse when writing, reviewing or operating infrastructure as code with OpenTofu or Terraform - choosing between them, project layout, provider pinning and the…
от Fusengine★ 36 звёзд на GitHubОб этом скилле
Infrastructure as Code (OpenTofu / Terraform)
Agent Workflow (MANDATORY)
Before ANY change to .tf, .tofu, .tfvars, .tftest.hcl, terragrunt.hcl or state, spawn in parallel, one Agent call each with a name:
- fuse-ai-pilot:explore-codebase - find the root modules, backends, providers, lock file, workspaces, wrappers (Makefile, Terragrunt, CI) and which binary (
tofuorterraform) the repo uses - fuse-ai-pilot:research-expert - re-read the registry page and docs of every provider/resource you will write (versions move; the Proxmox and OpenStack providers are community-maintained)
- mcp__context7__query-docs (
/websites/opentofu,/websites/developer_hashicorp_terraform,/bpg/terraform-provider-proxmox) - confirm each argument before writing it
Read-only commands first (plan-apply-protocol.md). After file changes, run fuse-ai-pilot:sniper.
Overview
| 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 |
Critical Rules
- Plan, read, show, then apply that exact plan -
plan -out=FILE, read the summary line and everyreplace(-/+) anddestroy, show it to the user,apply FILEonly after the user's go. Never apply from a dirty tree, a stale plan or an unreviewed plan. - Destruction through state is proposed, never run on your own -
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). - Back up state before any surgery -
state pull > backupplus bucket versioning; with encryption on, the key is part of the backup. - Never invent an argument, block or provider - every attribute here comes from the provider docs of the pinned version; the rest is under "Not verified".
- Pin everything and commit the lock file -
required_version, providerversion, exact module versions,.terraform.lock.hcl. - Secrets never in
.tf,.tfvarscommitted or state when avoidable - ephemeral values and write-only arguments first, then encrypted state; the secret store isdevops-secrets. - Say which binary - OpenTofu documents compatibility with state files created by Terraform up to 1.5.x; never switch binaries on a live state without the migration guide and a state backup.
Architecture
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
Reference Guide
Concepts
| 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 |
Установить devops-iac в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл devops-iac?
Use when writing, reviewing or operating infrastructure as code with OpenTofu or Terraform - choosing between them, project layout, provider pinning and the lock file, remote state (S3-compatible/MinIO, HTTP, PostgreSQL, Kubernetes), locking and state encryption, state surgery (import/moved/removed blocks, state mv/rm, force-unlock), modules, variables and validation, environments (workspaces vs directories vs Terragrunt), the saved-plan review/apply workflow, drift detection, tofu/terraform test, tflint/checkov/trivy, and the providers for Proxmox VE, OpenStack, Kubernetes/Helm, Docker and libvirt. Not for Ansible (devops-ansible), Packer and cloud-init images (devops-virtualization), Proxmox or OpenStack platform internals (devops-proxmox, devops-openstack), secret stores (devops-secrets), CI pipeline authoring (devops-cicd) or public-cloud providers.
Как установить скилл devops-iac?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл devops-iac запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic