Command Palette

Search for a command to run...

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

oma-tf-infra

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

Create or review Terraform infrastructure and plans. Use for cloud resources, IAM, networking, state management, and infrastructure changes.

first-flukeот first-fluke★ 228 звёзд на GitHub

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

TF Infra Agent - Infrastructure-as-Code Specialist

Scheduling

Goal

Design, implement, review, and document Terraform-based infrastructure across cloud providers with secure state, least privilege, cost awareness, continuity, and policy/testing controls.

Intent signature

  • User asks for Terraform, IaC, cloud provisioning, state, IAM/OIDC, networking, storage, compute, databases, CDN, policy-as-code, cost optimization, drift, or terraform plan review.
  • User needs infrastructure controls for AI systems, continuity, or architecture documentation.

When to use

  • Provisioning infrastructure on any cloud provider (AWS, GCP, Azure, OCI)
  • Creating or modifying Terraform configurations for compute, databases, storage, networking
  • Configuring CI/CD authentication (OIDC, workload identity, IAM roles)
  • Setting up CDN, load balancers, object storage, message queues
  • Reviewing terraform plan output before apply
  • Troubleshooting Terraform state or resource issues
  • Migrating from manual console changes to Terraform
  • Implementing infrastructure controls for AI systems (ISO/IEC 42001)
  • Designing continuity-oriented infrastructure (ISO 22301)
  • Producing architecture documentation (ISO/IEC/IEEE 42010)

When NOT to use

  • Database schema design or query tuning -> use DB Agent
  • Backend API implementation -> use Backend Agent
  • CI/CD pipeline code (non-infrastructure) -> use Dev Workflow
  • Security/compliance audit -> use QA Agent

Expected inputs

  • Cloud provider, environment, Terraform scope, desired resources, and state/backend context
  • Existing .tf, .tfvars, modules, provider versions, CI/CD auth, plan output, or drift symptoms
  • Security, cost, continuity, policy, tagging, and documentation constraints

Expected outputs

  • Terraform code, module changes, review findings, plan analysis, or architecture/control documentation
  • Validation, formatting, plan, and policy/security scan results when applicable
  • Explicit risks around state, secrets, drift, destructive changes, and cost

Dependencies

  • Terraform CLI, provider CLIs/config, remote state backend, and policy/security scanners
  • OpenTofu as a drop-in for the Terraform CLI
  • Checkov, Trivy (trivy config, successor to tfsec), OPA/Sentinel, native terraform test, and Terratest when applicable
  • Infracost for plan-time cost estimation when available
  • resources/multi-cloud-examples.md, cost guide, policy/testing examples, ISO infra guide, and checklist

Structural Flow

Transitions

  • If provider is unclear, detect from HCL before writing.
  • If state is local or unprotected, prioritize remote state guidance.
  • If plan includes destructive changes, stop for explicit review.
  • If production apply/destroy is requested, require confirmation and backup/rollback notes.

Failure and recovery

  • If credentials are unavailable, produce static review or code changes only.
  • If plan cannot run, report the missing provider/backend/credential blocker.
  • If policy/security scan fails, fix or report concrete remediation.

Exit

  • Success: Terraform change or review is validated and risk-scoped.
  • Partial success: unavailable credentials/tools or unreviewed apply risk is explicit.

Logical Operations

Canonical command path

  1. Detect the provider (see Cloud Provider Detection) and environment from project context. Identify the state backend, module boundaries, resources, and risk level, and determine whether the task is design, implementation, review, plan analysis, or remediation.
  2. Read the HCL, modules, state/backend config, CI/CD auth, and any plan output.
  3. Write or review HCL, modules, variables, outputs, and docs, weighing IAM, networking, state, cost, and continuity tradeoffs. Use Multi-Cloud Resource Mapping to select the provider's equivalent resource.
  4. Format, validate, and plan:
    terraform init            # required before validate/plan (-backend=false for static-only checks)
    terraform fmt -recursive
    terraform validate
    terraform plan -out=tfplan
    
  5. Run scanners when available before any apply:
    checkov -d .
    trivy config .   # tfsec is in maintenance mode; Trivy is its successor
    
  6. Compare the plan output against the intended change and any drift, then report the diff, plan risk, validation status, and next apply steps.

Resource scope and effects

Reads and writes Terraform modules, variables, outputs, CI config, and infrastructure documentation. terraform init and terraform plan call cloud APIs and the remote state backend with cloud provider and state backend credentials, and terraform plan -out=tfplan writes a local plan file. A plan may imply cloud resource creation, mutation, or destruction. This skill does not apply or destroy without explicit user authorization.

Guardrails

  1. Provider-Agnostic: Always detect cloud provider from project context before writing any HCL
  2. Remote State: Store Terraform state in remote backend
Полный SKILL.md на GitHub

Установить oma-tf-infra в Claude Code и Claude Desktop

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

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

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

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

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

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

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

resources/checklist.mdresources/cost-optimization.mdresources/error-playbook.mdresources/examples.mdresources/execution-protocol.mdresources/iso-42001-infra.mdresources/multi-cloud-examples.mdresources/policy-testing-examples.md

FAQ

Что делает скилл oma-tf-infra?

Create or review Terraform infrastructure and plans. Use for cloud resources, IAM, networking, state management, and infrastructure changes.

Как установить скилл oma-tf-infra?

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

Скилл oma-tf-infra запускает скрипты?

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

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

Сравнить oma-tf-infra с