Command Palette

Search for a command to run...

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

terraform-skill

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

Use when writing, reviewing, or debugging Terraform/OpenTofu modules, tests, CI, scans, or state ops - diagnoses failure mode (identity churn, secrets, blast…

antonbabenkoот antonbabenko★ 2 517 звёзд на GitHub

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

Terraform Skill for Claude

Diagnose-first guidance for Terraform and OpenTofu. Core file is a workflow; depth lives in references loaded on demand.

Response Contract

Every Terraform/OpenTofu response must include:

  1. Assumptions & version floor — runtime (terraform or tofu), exact version, providers, state backend, execution path (local/CI/Cloud/Atlantis), environment criticality. State assumptions explicitly if the user did not provide them.
  2. Risk category addressed — one or more of: identity churn, secret exposure, blast radius, CI drift, compliance gaps, state corruption, provider upgrade risk, testing blind spots.
  3. Chosen remediation & tradeoffs — what was chosen, what was traded off, why.
  4. Validation plan — exact commands (fmt -check, validate, plan -out, policy check) tailored to runtime and risk tier.
  5. Rollback notes — for any destructive or state-mutating change: how to undo, what evidence to keep.

Never recommend direct production apply without a reviewed plan artifact and approval.

Never run terraform destroy (targeted or full) without first running terraform plan -destroy and showing the user every resource that will be deleted — including implicit dependents pulled in via locals or for_each. Get explicit confirmation before proceeding. Never use -auto-approve on destroy.

Workflow

  1. Capture execution context — runtime+version, provider(s), backend, execution path, environment criticality.
  2. Diagnose failure mode(s) using the routing table below. If intent spans categories, load both references.
  3. Load only the matching reference file(s) — do not preload depth the task does not need.
  4. Propose fix with risk controls — why this addresses the mode, what could still go wrong, guardrails (tests/approvals/rollback).
  5. Generate artifacts — HCL, migration blocks (moved, import), CI changes, policy rules.
  6. Validate before finalizing — run validation commands tailored to risk tier.
  7. Emit the Response Contract at the end.

Diagnose Before You Generate

Failure category Symptoms Primary references
Identity churn Resource addresses shift after refactor, count index churn, missing moved blocks Code Patterns: count vs for_each, Code Patterns: moved blocks, Code Patterns: LLM mistakes
Secret exposure Secrets in defaults, state, logs, CI artifacts Security & Compliance, Code Patterns: write-only, State Management
Blast radius Oversized stacks, shared prod/non-prod state, unsafe applies State Management, Module Patterns
Destroy cascade Targeted destroy deletes more than expected; locals referencing a targeted resource make all for_each consumers implicit dependents Response Contract: plan-destroy first; State Management: Safe Destroy
CI drift Local plan ≠ CI plan, apply without reviewed artifact, unpinned versions CI/CD Workflows, Code Patterns: versions
Compliance gaps Missing policy stage, no approval model, no evidence retention Security & Compliance, CI/CD Workflows
Testing blind spots Plan-only validation of computed values, set-type indexing, mock/real confusion Testing Frameworks
State corruption / recovery Stuck lock, backend migration, drift reconciliation State Management
Provider upgrade risk Breaking-change provider bump, unpinned modules Code Patterns: versions, Module Patterns
Provider lifecycle Removing a provider with resources still in state, orphaned resources, removed block usage State Management: Provider Removal
Bootstrap / orchestration misuse null_resource + local-exec for bootstrap, remote-exec for setup scripts, provisioner stdout leaking secrets in CI logs Code Patterns: Provisioners as Last Resort
Navigation / safe-rename blind spots Cannot locate symbol defs/refs semantically, value-symbol rename done as blind text replace, grep-only refactor missing refs, hallucinated rg shim [Code Intelligence](references/code-intelligence
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

references/ci-cd-workflows.mdreferences/code-intelligence-lsp.mdreferences/code-patterns.mdreferences/module-patterns.mdreferences/quick-reference.mdreferences/security-compliance.mdreferences/state-management.mdreferences/testing-frameworks.md

FAQ

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

Use when writing, reviewing, or debugging Terraform/OpenTofu modules, tests, CI, scans, or state ops - diagnoses failure mode (identity churn, secrets, blast radius, CI drift, state corruption) with version-aware guards.

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

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

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

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

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

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