Scaffolds reusable, testable Terraform modules for AWS/Azure/GCP/OCI with standard directory layout, input validation, composable outputs, and Terratest test cases.
Ships in 10-platform. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
不该用:
云厂商/资源类型 分层,如 aws/vpc、azure/aks、gcp/gke、oci/oke。variables.tf 为每个输入写 description、type,并对关键输入加 validation 块。outputs.tf 暴露下游模块需要的属性(如 vpc_id、private_subnet_ids),支撑模块组合。versions.tf 锁定 provider 版本;用 locals 收敛计算值,用 count/for_each 实现条件资源。examples/complete/ 提供完整用例,并用 Terratest 编写 tests/*_test.go 做 apply/destroy 验证。name 前缀 + merge(local_tags, var.tags) 打标签。count = var.create_internet_gateway ? 1 : 0;多实例用 for_each。condition = can(regex("^([0-9]{1,3}\\.){3}[0-9]{1,3}/[0-9]{1,2}$", var.cidr_block))。source + 版本号固定依赖。terraform.InitAndApply 后断言 output,defer terraform.Destroy 清理。标准模块布局:
module-name/
├── main.tf # 主资源
├── variables.tf # 输入变量(带 validation)
├── outputs.tf # 输出值(供组合)
├── versions.tf # provider 版本锁定
├── README.md # 文档
├── examples/complete/ # 完整用例
└── tests/module_test.go # Terratest
带校验的输入变量(variables.tf):
variable "cidr_block" {
description = "CIDR block for VPC"
type = string
validation {
condition = can(regex("^([0-9]{1,3}\\.){3}[0-9]{1,3}/[0-9]{1,2}$", var.cidr_block))
error_message = "CIDR block must be valid IPv4 CIDR notation."
}
}
主资源与统一打标签(main.tf):
resource "aws_vpc" "main" {
cidr_block = var.cidr_block
enable_dns_hostnames = var.enable_dns_hostnames
tags = merge({ Name = var.name }, var.tags)
}
resource "aws_internet_gateway" "main" {
count = var.create_internet_gateway ? 1 : 0
vpc_id = aws_vpc.main.id
}
模块组合(根模块串接 VPC 与 RDS):
module "vpc" {
source = "../../modules/aws/vpc"
name = "production"
cidr_block = "10.0.0.0/16"
availability_zones = ["us-west-2a", "us-west-2b", "us-west-2c"]
}
module "rds" {
source = "../../modules/aws/rds"
identifier = "production-db"
vpc_id = module.vpc.vpc_id
subnet_ids = module.vpc.private_subnet_ids
}
Terratest 验证(tests/vpc_test.go):
func TestVPCModule(t *testing.T) {
opts := &terraform.Options{ TerraformDir: "../examples/complete" }
defer terraform.Destroy(t, opts)
terraform.InitAndApply(t, opts)
assert.NotEmpty(t, terraform.Output(t, opts, "vpc_id"))
}
本条采编自 wshobson/agents(MIT)。
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
terraform-module, iac-scaffolding, module-template, terratest
66 skills in this plugin
/agentmail-email-infra当 AI 智能体需要真实邮箱完成注册/验证码/事务通信时使用;通过 AgentMail REST API 开通账号、收发邮件、注册 Webhook、查询 karma 余额并产出可执行调用;不适用于自建/企业 SMTP/IMAP 或个人邮箱代收。触发词:AgentMail、智能体邮箱、theagentmail.net/agentphone-voice-sms-agents当需要给 AI 代理配备电话号码、发起/接听语音通话、收发短信、查看通话转写或配置 Webhook 时使用;调用 AgentPhone REST API(base=https://api.agentphone.to/v1)完成代理/号码/通话/短信/Webhook/用量的全生命周期管理,产出可直接执行的 curl 与 Webhook 处理代码;不适用于自建 Twilio/SIP/STUN 等底层电信栈或非 AgentPhone 平台。触发词:电话代理、语音通话、短信、号码、Webhook、转写。/ai-native-cli-design当设计/改造供 AI 智能体调用的命令行工具时使用;按 core/recommended/ecosystem 三层产出 JSON 优先、可校验的 CLI 契约(默认 JSON、结构化错误、退出码、护栏、agent/ 目录与自描述);不适用于纯人类交互 CLI、GUI 或库 API 设计;触发词:agent CLI、AI 友好命令行、CLI JSON 输出、退出码规范、agent/ 目录/amazon-alexa-skill-builder当需要用 ASK CLI + AWS Lambda 开发 Amazon Alexa 语音技能、并以 Claude 作为对话大脑(含 DynamoDB 记忆、Polly 语音、APL 屏显、Smart Home 控制)时使用;做交互模型/Lambda 处理器/部署脚本的搭建与产出;不适用于纯网页/移动 App 或非 Alexa 平台语音助手;触发词:Alexa、ASK CLI、语音技能、Smart Home/apify-actor-development当需要创建、修改或调试 Apify Actor(无服务器 Docker 抓取/自动化程序)时使用;引导选模板、配 input/output schema 与 actor.json、写入口逻辑、本地 apify run 测试并 apify push 部署;不适用于已有现成 Actor 直接调用(用 apify-ecommerce-scraper)、无 APIFY_TOKEN、或普通网页抓取无需打包为 Actor。触发词:apify actor、apify create、apify push、input_schema、actor.json、爬虫部署、serverless scraper、crawlee/apify-actorization当需要把现有 JS/TS、Python 脚本或任意 CLI 工具改造成可在 Apify 平台运行的 Actor(接受 JSON 输入、产出结构化 JSON、打包为 Docker 镜像并部署/变现)时使用;做 apify init 初始化 + SDK 生命周期包裹 + 配置 input/output/actor schema + apify run 本地测试 + apify push 部署,产出可上架的 Actor;不适用于从零写新爬虫、单纯调用现成 Actor、或无 apify CLI/APIFY_TOKEN。触发词:apify actor、actorization、改造成 actor、apify push、apify init、input_schema、serverless 爬虫/10-platform:terraform-module-builderfrom 10-platform
npx claudepluginhub findscripter/everything-skills --plugin 10-platformOther plugins' skills for the same job