terraform-module

n4vysh's avatarfrom n4vysh

Inspect Terraform module specs from cache when seeing module sources.

⭐5stars🔀0forks📁View on GitHub🕐Updated Jan 2, 2026

When & Why to Use This Skill

This Claude skill streamlines Infrastructure as Code (IaC) workflows by automatically inspecting Terraform module specifications. It enables developers to instantly retrieve variable definitions, required provider versions, and module outputs from local caches or remote repositories, eliminating the need for manual file navigation and improving the accuracy of cloud resource provisioning.

Use Cases

  • Scenario 1: Rapidly identifying required input variables and their default values when integrating a new Terraform module into an existing codebase.
  • Scenario 2: Verifying module output schemas to ensure correct data mapping between different infrastructure layers and components.
  • Scenario 3: Auditing version compatibility and documentation for cached modules in complex environments to prevent deployment errors and maintain infrastructure consistency.
nameterraform-module
descriptionInspect Terraform module specs from cache when seeing module sources.
licenseUNLICENSE
compatibilityopencode

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