Agent Skills: Terraform module

Inspect Terraform module specs from cache when seeing module sources.

UncategorizedID: n4vysh/dotfiles/terraform-module

Repository

n4vyshLicense: Unlicense
5

Install this agent skill to your local

pnpm dlx add-skill https://github.com/n4vysh/dotfiles/tree/HEAD/home/dot_config/opencode/skill/terraform-module

Skill Files

Browse the full folder contents for terraform-module.

Download Skill

Loading file tree…

home/dot_config/opencode/skill/terraform-module/SKILL.md

Skill Metadata

Name
terraform-module
Description
Inspect Terraform module specs from cache when seeing module sources.

Terraform module

Workflow

  1. Check if .terraform/modules/ exists: find . -type d -name ".terraform"
  2. Initialize if needed: terraform init -backend=false
  3. Find module: find .terraform/modules -type d -name "*<module-name>*"
  4. Read key files: README.md, variables.tf, versions.tf, outputs.tf
  5. Fallback: Clone to /tmp if 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