terraform-module
在查看模块源时检查Terraform模块规范。
📖 中文导读:在查看模块源时检查Terraform模块规范。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: terraform-module description: Inspect Terraform module specs from cache when seeing module sources. license: UNLICENSE compatibility: opencode
Terraform module
Workflow
- Check if
.terraform/modules/exists:find . -type d -name ".terraform" - Initialize if needed:
terraform init -backend=false - Find module:
find .terraform/modules -type d -name "*<module-name>*" - Read key files:
README.md,variables.tf,versions.tf,outputs.tf - Fallback: Clone to
/tmpif local inspection fails
Note: Support both hyphen and underscore conventions (aws-s3, aws_s3).
Prefer cached modules over cloning. Requires Terraform, Git, and credentials.
Output
- Variable definitions (types, descriptions, defaults)
- Required Terraform/provider versions
- Module outputs and descriptions
- Documentation and usage examples
- Source and version information