Token导航 LogoToken导航TokenDH.com
开发external-servicegithub未标认证来源可访问许可证需确认审计通过

building-terraform-modulesbuilding Terraform modules ORM

Agent Skill

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

总安装

685

周安装

28

GitHub Stars

2,086

下载量

220
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/jeremylongshore/claude-code-plugins-plus-skills --skill building-terraform-modules

简介

该技能构建可复用的 Terraform 模块,遵循 HashiCorp 标准结构与安全最佳实践。

  • 适用于 AWS、GCP 与 Azure 资源模板化部署与生命周期管理。
  • 包含变量定义、输出导出、校验规则与示例代码自动生成功能。
  • 安装方式:通过 npx skills add 命令从 GitHub 仓库添加,需配置云提供商凭证。
  • building-terraform-modules 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Building Terraform Modules

Overview

Build reusable, production-ready Terraform modules with proper variable definitions, outputs, validation rules, documentation, and examples. Generate modules following HashiCorp's standard module structure for AWS, GCP, and Azure resources with security best practices, tagging conventions, and lifecycle management.

Prerequisites

  • Terraform 1.0+ installed (terraform version)
  • Cloud provider credentials configured for the target platform
  • Understanding of the infrastructure resources the module will manage
  • Familiarity with HCL syntax and Terraform module conventions
  • terraform-docs installed for automated documentation generation (optional)

Instructions

  1. Define the module scope: determine which cloud resources the module manages and its input/output contract
  2. Create the standard module file structure: main.tf, variables.tf, outputs.tf, versions.tf, locals.tf
  3. Write versions.tf with required_version and required_providers blocks pinned to stable versions
  4. Define input variables in variables.tf with descriptions, types, defaults, and validation rules
  5. Implement resources in main.tf using variables for all configurable values; use locals for computed values
  6. Add meaningful outputs in outputs.tf for resource IDs, ARNs, endpoints, and connection strings
  7. Implement security defaults: encryption enabled, public access blocked, least-privilege IAM, logging enabled
  8. Create an examples/ directory with at least one complete usage example showing module invocation
  9. Generate documentation with terraform-docs markdown table. > README.md
  10. Validate the module with terraform init && terraform validate and test with terraform plan using the example

Output

  • Module files: main.tf, variables.tf, outputs.tf, versions.tf, locals.tf
  • Example usage in examples/basic/main.tf with realistic variable values
  • Auto-generated README.md with inputs, outputs, and usage documentation
  • .terraform-docs.yml configuration for documentation generation
  • Optional: test files using Terratest or terraform test (HCL-based)

Error Handling

ErrorCauseSolution
variable validation failedInput value does not meet validation ruleCheck the validation block in variables.tf; adjust the value or the validation regex
provider not foundMissing or wrong provider source in versions.tfAdd the provider to required_providers with correct source and version constraint
circular dependencyResources referencing each other in a loopRefactor to break the cycle; use depends_on or separate into sub-modules
output references undeclared resourceTypo in resource name or resource removedVerify resource names in main.tf match output references exactly
module source not foundIncorrect module path or registry referenceVerify the source path is relative (e.g., ./modules/vpc) or a valid registry address

Examples

  • "Build a Terraform module for an AWS VPC with configurable CIDR, public/private subnets across 3 AZs, NAT gateway, and flow logs."
  • "Create a GCP Cloud Run module with custom domain, IAM bindings, and auto-scaling configuration as input variables."
  • "Generate a Terraform module for an S3 bucket with versioning, encryption, lifecycle rules, and access logging, with all settings as optional variables with secure defaults."

Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.85%
按下载量换算77

Claude

32.37%
按下载量换算71

Cursor

20.48%
按下载量换算45

Gemini CLI

9.75%
按下载量换算21

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

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

来源信息

继续浏览同类 Skills