oma-tf-infra
БесплатноБез исполняемых скриптовНе проверенCreate or review Terraform infrastructure and plans. Use for cloud resources, IAM, networking, state management, and infrastructure changes.
от 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, nativeterraform 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
- 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.
- Read the HCL, modules, state/backend config, CI/CD auth, and any plan output.
- 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.
- 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 - Run scanners when available before any apply:
checkov -d . trivy config . # tfsec is in maintenance mode; Trivy is its successor - 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
- Provider-Agnostic: Always detect cloud provider from project context before writing any HCL
- Remote State: Store Terraform state in remote backend
Установить oma-tf-infra в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub