Перейти к основному содержимому

Lang Terraform

Plan, validate, and format Terraform infra.

Skill metadata​

SourceBundled (installed by default)
Pathskills/software-development/lang-terraform
Version1.1.0
AuthorVibeOS
LicenseMIT
Platformslinux, macos, windows

Reference: full SKILL.md​

к сведению

The following is the complete skill definition that VibeOS loads when this skill is triggered. This is what the agent sees as instructions when the skill is active.

Terraform / OpenTofu Language Pack Skill

Drive Terraform / OpenTofu work with the project index and standard CLI recipes. LSP hint: terraform-ls (editor-side when applicable). Zero new core tools.

What this language is (beginner)​

Язык/инструмент Infrastructure as Code: описываете облако (серверы, сети, БД) файлами, а не руками в консоли.

Лучше всего для:

  • AWS / GCP / Azure инфраструктура
  • повторяемые окружения (dev/stage/prod)
  • сети, DNS, Kubernetes-кластеры как код

When to Use​

Выбирай этот pack, если:

  • нужно поднять/изменить облачную инфраструктуру
  • есть *.tf / *.tfvars
  • интернет-проект требует серверов, балансировщиков, managed DB

Manifests (автодетект репозитория): *.tf, *.tfvars, .terraform.lock.hcl

Обычно рядом: Любой язык приложения; часто рядом Docker/K8s.

См. также skill choose-language-pack, если цель ещё не ясна.

When NOT to use​

  • только код приложения без инфры → язык приложения (TS/Go/…)
  • одноразовый ручной эксперимент → можно CLI облака, но не для прода

Prerequisites​

vibeos pack apply lang-terraform --apply
vibeos pack apply project-intelligence --apply

How to Run​

vibeos project index build
terraform fmt -check -recursive
terraform validate
terraform plan

Quick Reference​

GoalCommand
Apply packvibeos pack apply lang-terraform --apply
Doctorvibeos language doctor terraform
Primary testterraform test
Choose guideskill choose-language-pack

Procedure​

  1. Если язык ещё не выбран для нового проекта — сначала choose-language-pack.
  2. Work from the project root that matches pack manifests.
  3. Index query → read_file → edit → path-scoped tests when iterating.
  4. Prefer the package manager / toolchain already locked in the repo.
  5. Explain non-obvious toolchain choices in plain language for the user.

Pitfalls​

  • Never apply without explicit user ask; prefer plan + validate.
  • Secrets stay in env / remote state — never commit keys.
  • Do not invent core tools; stay on terminal + read_file + index CLI.

Verification​

vibeos language doctor terraform
terraform validate || tofu validate