Command Palette

Search for a command to run...

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

terraform-skill

БесплатноБез исполняемых скриптовНе проверен

Diagnoses and designs safe Terraform releases, provisioners (remote-exec/local-exec/file, cloud-init, Compose, Caddy), multi-environment isolation, and…

daymadeот daymade★ 1 556 звёзд на GitHub

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

Terraform Release and Provisioner Safety

Prevent a valid-looking Terraform workflow from publishing unvalidated bytes or widening a change's blast radius. Keep the user's business outcome and the actual mutation surface ahead of plan counts, green wrappers, or process completeness.

Route the task

Operating contract

  1. Use the repository's canonical release entry. When shared-gateway publication requires standard CI, agents may initiate that CI within existing authorization; normal release, restoration, rollback, and static-content transfer all use its controlled executor and existing wrappers. Do not substitute a local Terraform apply, root SSH/SCP, helper, or console write. Verify the implemented workflow and supported inputs before dispatch; lint or image-build CI alone is not a deployment lane. A missing lane blocks the live write, not preparation or read-only diagnosis.
  2. Prefer provider resources, image baking, cloud-init, or configuration management. HashiCorp recommends exhausting purpose-built alternatives because Terraform cannot model provisioner side effects predictably. When a provisioner remains necessary, make its artifact, target, lock, validation, and readback explicit.
  3. Inventory every resource or recovery tool that can write the target runtime. A validator attached to only one writer does not protect another writer of the same shared service.
  4. Give staging and production one required-key schema. Let values differ; never let a key be required in one environment and optional, defaulted, absent, or allowed-empty in another.
  5. Validate the exact candidate bytes, Compose-rendered environment, and immutable runtime image before the first live write or restart. Keep post-deploy checks too: they detect damage but cannot prevent the first bad mutation.
  6. Treat a saved plan as an executable artifact. Bind it to reviewed source/artifact identity and apply that exact file. A successful apply is not a staging receipt; record promotion evidence only after every required live verifier succeeds.
  7. Honor the user's production authorization, including standing authorization, at the last reversible point. A deadline, PLAN_DIGEST, CONFIRM_*, or agent inference does not supply it. Do not add personal signatures or per-run human approval when the authorized contract is standard CI.
  8. Stop after the requested result is verified. Do not turn a single-service fix into full-stack drift reconciliation, recovery redesign, or unrelated hardening.

Provisioner traps (symptom → fix)

Use these incident-derived symptom patterns to choose the next falsifying check. Confirm the current source and runtime before promoting a historical cause into the present diagnosis.

terraform plan says "No changes" but the site is down

Symptom: Browser ERR_SSL_PROTOCOL_ERROR or similar, terraform plan shows No changes, but the service is actually broken.

Interpretation: No changes is not a live-health check. Terraform refreshes provider-managed attributes, but a provisioner's remote files and container side effects are not automatically represented by those attributes. A broken site can follow an authorized apply, another IaC writer, or an out-of-band change; this symptom alone does not identify which happened. An HTTP redirect or healthy container does not prove the affected HTTPS route works.

Diagnosis:

  1. Probe the affected hostname and user path, then inspect the loaded route and live files.
  2. Compare the exact deployed source/artifact and state-tracked hashes, where present, with live hashes. Read the actual provisioner commands and release logs for every writer of that directory. Shared mtimes and deployed .tftpl/.static files are clues to inspect the archive and copy path, not proof of an out-of-band write: a normal archive extraction can produce them too.
  3. Reconstruct each writer's candidate file set and delete/exclude scope. In particular, a valid rsync --delete can remove another owner's route omitted from its candidate while retaining syntactically valid configuration. Check the complete existing hostname set, not just the
Полный SKILL.md на GitHub

Установить terraform-skill в Claude Code и Claude Desktop

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

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

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

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

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

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

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

references/multi-env-isolation.mdreferences/pre-deploy-validation.mdreferences/release-safety-and-environment-parity.mdreferences/zero-to-deploy-checklist.md

FAQ

Что делает скилл terraform-skill?

Diagnoses and designs safe Terraform releases, provisioners (remote-exec/local-exec/file, cloud-init, Compose, Caddy), multi-environment isolation, and fresh-host bootstrap. Use when writing or reviewing plan/apply wrappers or provisioners; when staging/production config may differ; when a rollout can mutate a shared gateway; or debugging drift, TLS, container restarts, DNS duplication, or snapshot contamination.

Как установить скилл terraform-skill?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл terraform-skill запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить terraform-skill с