Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от Fusengine★ 36 звёзд на GitHub

Об этом скилле

Covers infrastructure as code with OpenTofu and Terraform for a self-hosted audience (Proxmox, OpenStack, Kubernetes, Docker, libvirt): the tool choice, layout and version pinning, remote state with locking and encryption, safe state surgery, modules, environments, a plan-then-apply protocol that never applies an unreviewed plan, drift detection, tests and static scanning. The main danger is destruction through state; every destructive command is shown with its exact effect. Does not cover Ansible, Packer/cloud-init, platform internals, secret stores, pipeline authoring or public clouds.

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:

  1. fuse-ai-pilot:explore-codebase - find the root modules, backends, providers, lock file, workspaces, wrappers (Makefile, Terragrunt, CI) and which binary (tofu or terraform) the repo uses
  2. 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)
  3. 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

  1. Plan, read, show, then apply that exact plan - 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.
  2. 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).
  3. Back up state before any surgery - state pull > backup plus bucket versioning; with encryption on, the key is part of the backup.
  4. 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".
  5. Pin everything and commit the lock file - required_version, provider version, exact module versions, .terraform.lock.hcl.
  6. Secrets never in .tf, .tfvars committed or state when avoidable - ephemeral values and write-only arguments first, then encrypted state; the secret store is devops-secrets.
  7. 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
Полный SKILL.md на GitHub

Установить devops-iac в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/environments.mdreferences/layout-providers-lock.mdreferences/modules-variables.mdreferences/plan-apply-protocol.mdreferences/provider-k8s-docker-libvirt.mdreferences/provider-openstack.mdreferences/provider-proxmox.mdreferences/state-backends-encryption.mdreferences/state-surgery.mdreferences/templates/encryption.tfreferences/templates/import-moved-removed.tfreferences/templates/main.tftest.hclreferences/templates/module-skeleton.tfreferences/templates/openstack-instance-network.tfreferences/templates/proxmox-vm-cloudinit.tfreferences/templates/root-module.tfreferences/testing-quality.mdreferences/tofu-vs-terraform.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить devops-iac с