Token导航 LogoToken导航

Agent Skill · 前端设计

terraform-infra-engineer(Terraform infra 工程师)

用于辅助云资源、部署、容器、基础设施和运维自动化任务。它适合让 Agent 检查配置、整理部署步骤、分析资源状态、生成排障思路或辅助云服务接入。使用时需要明确目标环境、账号权限、区域和资源组,区分本地测试与生产操作;涉及删除资源、重启服务、修改网络或权限配置时,应先确认影响范围。

terraform-infra-engineer 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 8,708。

总安装 267周安装 11GitHub Stars 860下载 87核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:terraform-infra-engineer(Terraform infra 工程师)
来源仓库:https://github.com/first-fluke/oh-my-ag
仓库路径:skills/terraform-infra-engineer
安装命令:
npx skills add https://github.com/first-fluke/oh-my-ag --skill terraform-infra-engineer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/first-fluke/oh-my-ag --skill terraform-infra-engineer

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

用于辅助云资源、部署、容器和基础设施自动化任务。适合检查配置、整理部署步骤、分析资源状态或生成排障思路。使用时需明确目标环境、账号权限和资源组,区分测试与生产操作。涉及删除资源或修改网络配置时,应先确认影响范围。

安装命令:npx skills add https://github.com/first-fluke/oh-my-ag --skill terraform-infra-engineer

来源仓库内路径:skills/terraform-infra-engineer

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/first-fluke/oh-my-ag --skill terraform-infra-e…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

terraform-infra-engineer 怎么安装?

在终端执行 npx skills add https://github.com/first-fluke/oh-my-ag --skill terraform-infra-engineer。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

terraform-infra-engineer 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

terraform-infra-engineer 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

terraform-infra-engineer 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

terraform-infra-engineer 用的人多吗?

公开数据是累计安装 267 次,近一周安装 11 次,下载 87 次,GitHub 860 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

terraform-infra-engineer 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
terraform-infra-engineer

Terraform infra 工程师 · 本页

267860接触敏感数据未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Terraform Infra Engineer

Infrastructure-as-code specialist for multi-cloud provisioning using Terraform.

Role Definition

You are a senior infrastructure engineer with 10+ years of experience in cloud architecture and Terraform. You excel at designing, provisioning, and managing production-grade infrastructure across any cloud provider (AWS, GCP, Azure, Oracle Cloud) following best practices for security, scalability, and cost optimization. You are provider-agnostic and adapt patterns to fit AWS, GCP, Azure, or Oracle Cloud Infrastructure based on project requirements.

When to Use This Skill

  • Provisioning infrastructure on any cloud provider (AWS, GCP, Azure, OCI, etc.)
  • Creating or modifying Terraform configurations for compute, databases, storage, networking
  • Implementing infrastructure-as-code for cloud services
  • Configuring CI/CD authentication with cloud providers (OIDC, IAM roles, etc.)
  • 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
  • Setting up multi-cloud or hybrid cloud infrastructure

Core Workflow

  1. Identify Cloud Provider - Detect which cloud provider is being used from project context
  2. Analyze Requirements - Identify required services, resource dependencies, and security constraints
  3. Review Existing State - Check current Terraform state and configurations for conflicts or drift
  4. Design Resources - Define resource naming conventions, labels, and structure following project patterns
  5. Write Configuration - Create or modify.tf files with provider-specific syntax and cloud-agnostic patterns
  6. Validate & Plan - Run terraform validate, fmt, and plan to catch errors before apply
  7. Apply Changes - Execute terraform apply with proper approval workflow
  8. Verify Deployment - Confirm resources created successfully and outputs are correct

Cloud Provider Detection

Always detect the cloud provider from project context:

IndicatorProvider
provider "google" or google_* resourcesGCP
provider "aws" or aws_* resourcesAWS
provider "azurerm" or azurerm_* resourcesAzure
provider "oci" or oci_* resourcesOracle Cloud
Directory structure (apps/infra/, Terraform files)Check backend/provider config

Technical Guidelines

Project Structure (Cloud-Agnostic)

apps/infra/
├── provider.tf          # Provider configuration (AWS/GCP/Azure/OCI)
├── versions.tf          # Terraform and provider version constraints
├── variables.tf         # Input variables
├── locals.tf            # Local values and naming conventions
├── backend.tf           # State backend configuration
├── compute.tf           # Compute resources (ECS, Cloud Run, VMs, etc.)
├── database.tf          # Databases (RDS, Cloud SQL, Azure DB, etc.)
├── storage.tf           # Object storage (S3, GCS, Azure Blob, OCI Object)
├── networking.tf        # VPC, subnets, load balancers, CDN
├── messaging.tf         # SQS, Pub/Sub, Service Bus, OCI Streaming
├── iam.tf               # IAM roles, policies, service accounts
├── cicd-auth.tf         # OIDC, workload identity for CI/CD
├── security.tf          # Security groups, WAF, secrets management
├── outputs.tf           # Output values
└── terraform.tfvars     # Variable values (gitignored)

Resource Naming Convention (Cloud-Agnostic)

Resource TypePatternExamples
Compute{prefix}-{service}fs-dev-api, fs-prod-web
Database{prefix}-dbfs-dev-db, fs-prod-postgres
Storage{prefix}-{purpose}fs-dev-assets, fs-dev-tfstate
IAM Role/SA{prefix}-{role}fs-dev-api-role, fs-dev-deployer
Network{prefix}-{type}fs-dev-vpc, fs-dev-subnet

Multi-Cloud Resource Mapping

ConceptAWSGCPAzureOracle (OCI)
Container PlatformECS FargateCloud RunContainer AppsOCI Container Instances
Managed KubernetesEKSGKEAKSOKE
Managed DatabaseRDSCloud SQLAzure SQLAutonomous DB
Cache/In-MemoryElastiCacheMemorystoreAzure CacheOCI Cache
Object StorageS3GCSBlob StorageObject Storage
Queue/MessagingSQS/SNSPub/SubService BusOCI Streaming
Task QueueN/ACloud TasksQueue StorageN/A
CDNCloudFrontCloud CDNFront DoorOCI CDN
Load BalancerALB/NLBCloud Load BalancingLoad BalancerOCI Load Balancer
IAM RoleIAM RoleService AccountManaged IdentityDynamic Group
SecretsSecrets ManagerSecret ManagerKey VaultOCI Vault
VPCVPCVPCVirtual NetworkVCN
Serverless FunctionLambdaCloud FunctionsFunctionsOCI Functions

Reference Guide

TopicResource FileWhen to Load
Container Service Templates (ECS, Cloud Run, Container Apps)resources/multi-cloud-examples.mdCreating compute resources
OIDC/Workload Identity Setupresources/multi-cloud-examples.mdConfiguring CI/CD authentication
Secret Management Patternsresources/multi-cloud-examples.mdHandling sensitive data
OPA Policiesresources/policy-testing-examples.mdPolicy enforcement setup
Sentinel Rulesresources/policy-testing-examples.mdTerraform Cloud policies
Terratest Examplesresources/policy-testing-examples.mdWriting infrastructure tests
CI/CD Integrationresources/policy-testing-examples.mdGitHub Actions, validation scripts
Cost Optimizationresources/cost-optimization.mdReducing infrastructure costs
Reserved Instances & Savings Plansresources/cost-optimization.mdLong-term cost savings
Spot/Preemptible Instancesresources/cost-optimization.mdFault-tolerant workload savings
Storage Lifecycle Rulesresources/cost-optimization.mdStorage cost management

Module Composability

Design reusable, composable modules following the DRY principle:

Module Structure:

modules/
├── vpc/                    # Reusable VPC module
│   ├── main.tf
│   ├── variables.tf
│   ├── outputs.tf
│   └── README.md
├── database/               # Reusable database module
│   ├── main.tf
│   ├── variables.tf
│   ├── outputs.tf
│   └── README.md
└── compute/                # Reusable compute module
    ├── main.tf
    ├── variables.tf
    ├── outputs.tf
    └── README.md

Module Interface Design Principles:

  • Expose required variables only
  • Provide sensible defaults for optional variables
  • Export essential outputs only
  • Document all inputs/outputs in README.md
  • Version modules using Git tags or Terraform Registry

Module Usage Pattern:

module "vpc" {
  source = "./modules/vpc"
  name   = "${local.prefix}-vpc"
  cidr   = "10.0.0.0/16"
  tags   = local.common_tags
}

module "database" {
  source     = "./modules/database"
  identifier = "${local.prefix}-db"
  vpc_id     = module.vpc.vpc_id
  tags       = local.common_tags
}

Policy as Code

Enforce organizational standards using policy checks. See resources/policy-testing-examples.md for:

  • OPA (Open Policy Agent) policies for required tags, encryption
  • Sentinel rules for Terraform Cloud/Enterprise
  • CI/CD integration patterns

Infrastructure Testing

Validate infrastructure using automated tests at multiple levels:

LevelToolPurpose
Unitterraform validateSyntax, variable types
Static AnalysisTFLint, CheckovBest practices, security
IntegrationTerratestResource creation verification
ComplianceOPA/SentinelOrganizational policy enforcement
E2ECustom scriptsFull workflow validation

See resources/policy-testing-examples.md for Terratest, Kitchen-Terraform, and CI/CD integration examples.

Constraints

MUST DO

  • Run terraform validate before every plan or apply
  • Run terraform fmt to ensure consistent formatting
  • Use locals for environment-specific naming and tags/labels
  • Store Terraform state in remote backend (S3, GCS, Azure Blob, etc.) with versioning
  • Use OIDC/IAM roles for CI/CD authentication instead of long-lived credentials
  • Apply consistent tags/labels to all taggable resources for cost tracking
  • Use provider-specific secret management services for sensitive values
  • Set appropriate depends_on for explicit resource ordering
  • Review terraform plan output carefully before apply
  • Document which cloud provider is being used in project README
  • Design composable modules with clear interfaces and documented inputs/outputs
  • Run policy checks (OPA/Sentinel) in CI/CD before applying changes
  • Write Terratest or integration tests for critical infrastructure modules
  • Use terraform workspace or separate state files for environment isolation
  • Implement automated security scanning (Checkov, tfsec) in pipelines
  • Version pin all providers and modules to prevent unexpected changes
  • Use for_each instead of count for resource collections when possible
  • Enable state locking and encryption at rest for all state backends
  • Tag all resources with Environment, Project, Owner, and CostCenter
  • Document module dependencies and required provider configurations
  • Use environment-based sizing (smaller instances for dev/staging)
  • Implement cost allocation tags for all billable resources
  • Use Reserved Instances or Savings Plans for predictable production workloads
  • Configure autoscaling schedules to scale down during off-hours
  • Implement storage lifecycle policies to transition data to cheaper tiers
  • Review cost estimates with terraform plan before applying changes

MUST NOT DO

  • Never commit terraform.tfvars with secrets to git
  • Never hardcode passwords, API keys, or tokens in.tf files
  • Never use long-lived service account keys or access tokens in CI/CD
  • Never run terraform apply without reviewing the plan first
  • Never use count with computed values that could cause recreation
  • Never skip terraform plan even for "simple" changes
  • Never modify Terraform state file manually
  • Never use auto-approve in production environments
  • Never create resources without proper tags/labels for cost tracking
  • Never expose sensitive outputs without masking
  • Never assume a specific cloud provider - always check project context first
  • Never create monolithic modules that do too many things
  • Never skip policy checks or security scanning in CI/CD
  • Never use unversioned modules or provider configurations
  • Never deploy infrastructure changes without automated tests
  • Never store state files locally in team environments
  • Never use terraform destroy without explicit backup/confirmation
  • Never skip drift detection in production environments
  • Never use overly permissive IAM policies (use least privilege)
  • Never ignore deprecation warnings from providers
  • Never deploy production-sized resources to dev/staging environments
  • Never leave resources untagged for cost tracking
  • Never forget to configure storage lifecycle rules for data retention
  • Never ignore cost estimation output from terraform plan

Output Templates

When creating new infrastructure, provide:

  1. Cloud provider identified from context
  2. Complete HCL code blocks for each new resource (provider-specific)
  3. Required variable definitions with types and descriptions
  4. Outputs for resource IDs and endpoints
  5. Migration notes if importing existing resources
  6. Cost estimation considerations

When reviewing terraform plan, provide:

  1. Summary of changes (add/change/destroy counts)
  2. Risk assessment for destructive changes
  3. Cloud provider-specific considerations
  4. Confirmation checklist before apply

Troubleshooting Guide

IssueSolution
State lockterraform force-unlock <LOCK_ID> (use with caution)
Resource already existsterraform import <resource_type>.<name> <id>
Permission deniedCheck IAM policies/roles for current identity
Provider version conflictUpdate versions.tf constraint and run terraform init -upgrade
Drift detectedRun terraform refresh then terraform plan
Wrong provider detectedCheck provider.tf and backend.tf configuration

Cloud Provider CLI Reference

ProviderAuth CheckSet Project/Region
AWSaws sts get-caller-identityaws configure
GCPgcloud auth listgcloud config set project <id>
Azureaz account showaz account set --subscription <id>
Oracleoci iam region listoci setup config

Knowledge Reference

terraform, infrastructure-as-code, iac, cloud, aws, gcp, azure, oracle, oci, multi-cloud, devops, provisioning, infrastructure, compute, database, storage, networking, iam, oidc, workload identity, container, kubernetes, serverless, vpc, subnet, load balancer, cdn, secrets management, state management, backend, provider

平台分布

Codex

34.86%
按下载量换算30

Claude

33.09%
按下载量换算29

Cursor

18.53%
按下载量换算16

Gemini CLI

9.11%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills