Token导航 LogoToken导航TokenDH.com
AI 工具敏感数据github未标认证来源可访问clear审计通过

terraformTerraform 基础设施

Agent Skill

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

总安装

974

周安装

41

GitHub Stars

347

下载量

341
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/teachingai/full-stack-skills --skill terraform

简介

terraform 用于云资源管理与部署自动化,支持基础设施即代码。

  • 适合检查配置、分析资源状态或生成排障思路。
  • 通过 GitHub 仓库安装,使用 npx skills add 命令添加技能,需明确目标环境。
  • 涉及删除或修改资源时应先确认影响范围和安全边界。
  • terraform 属于AI 工具类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

When to use this skill

Use this skill whenever the user wants to:

  • Write or debug Terraform configuration files (.tf)
  • Manage cloud infrastructure (AWS, Azure, GCP, etc.)
  • Configure providers, resources, data sources, and outputs
  • Manage Terraform state, modules, and workspaces

How to use this skill

Workflow

  1. Write configuration — define providers, resources, variables, and outputs in HCL
  2. Initialize — run terraform init to download providers and modules
  3. Plan — run terraform plan to preview changes
  4. Apply — run terraform apply to provision infrastructure
  5. Validate — confirm resources with terraform state list and cloud console

Quick Start Example

# main.tf
terraform {
  required_version = ">= 1.5"
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "~> 5.0"
    }
  }
  backend "s3" {
    bucket         = "myapp-terraform-state"
    key            = "prod/terraform.tfstate"
    region         = "us-east-1"
    dynamodb_table = "terraform-locks"
  }
}

provider "aws" {
  region = var.aws_region
}

variable "aws_region" {
  description = "AWS region for resources"
  type        = string
  default     = "us-east-1"
}

resource "aws_s3_bucket" "app_assets" {
  bucket = "myapp-${var.environment}-assets"
  tags = {
    Environment = var.environment
    ManagedBy   = "terraform"
  }
}

output "bucket_arn" {
  value = aws_s3_bucket.app_assets.arn
}
# Standard workflow
terraform init
terraform fmt          # Format code
terraform validate     # Check syntax
terraform plan         # Preview changes
terraform apply        # Apply changes

# State inspection
terraform state list
terraform state show aws_s3_bucket.app_assets

Module Usage Example

module "vpc" {
  source  = "terraform-aws-modules/vpc/aws"
  version = "~> 5.0"

  name = "myapp-vpc"
  cidr = "10.0.0.0/16"

  azs             = ["us-east-1a", "us-east-1b"]
  private_subnets = ["10.0.1.0/24", "10.0.2.0/24"]
  public_subnets  = ["10.0.101.0/24", "10.0.102.0/24"]
}

Best Practices

  • Use remote state (S3 + DynamoDB, Azure Blob, etc.) to avoid state file conflicts
  • Store sensitive values in variables or environment variables — never hardcode in .tf files
  • Run terraform fmt and terraform validate before every commit
  • Use workspaces or directory-based environments for isolation (dev/staging/prod)
  • Version-pin providers and modules to avoid unexpected breaking changes

Troubleshooting

  • State lock error: Check for stale locks in DynamoDB/backend; use terraform force-unlock as last resort
  • Provider version conflict: Pin versions in required_providers and run terraform init -upgrade
  • Drift detected: Run terraform plan to see differences; import or taint resources as needed
  • Destroy hanging: Check for resource dependencies; use -target for selective destruction

Keywords

terraform, iac, infrastructure as code, hcl, aws, azure, gcp, modules, state management, cloud provisioning

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

29.94%
按下载量换算102

Antigravity

22.09%
按下载量换算75

Gemini CLI

16.49%
按下载量换算56

OpenCode

14.01%
按下载量换算48

trae

7.25%
按下载量换算25

Codex

3.5%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills