# Generate Terraform module inputs and outputs docs with terraform-docs before review drift sets in

> Refresh Terraform module documentation from source so variables, outputs, and providers stay aligned with the code before review or release.

- Skill: `agentskillexchange/generate-terraform-module-inputs-and-outputs-docs-with-terra` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/generate-terraform-module-inputs-and-outputs-docs-with-terra`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/generate-terraform-module-inputs-and-outputs-docs-with-terra/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/generate-terraform-module-inputs-and-outputs-docs-with-terra

---


# Generate Terraform module inputs and outputs docs with terraform-docs before review drift sets in

Refresh Terraform module documentation from source so variables, outputs, and providers stay aligned with the code before review or release.

## Prerequisites

Terraform module directory, terraform-docs CLI, optional README template or CI step

## Installation

Use the upstream install or setup path that matches your environment:
- brew install terraform-docs
- brew install terraform-docs/tap/terraform-docs
- go install github.com/terraform-docs/terraform-docs@v0.24.0
- the repo and run make build from the repository which will put terraform-docs in:

Requirements and caveats from upstream:
- ### Using docker
- **NOTE:** Docker tag latest refers to _latest_ stable released version and edge

Basic usage or getting-started notes:
- macOS users can install using [Homebrew]:
- bash
- or

- Source: https://github.com/terraform-docs/terraform-docs
- Extracted from upstream docs: https://raw.githubusercontent.com/terraform-docs/terraform-docs/HEAD/README.md

## Documentation

- https://terraform-docs.io

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/generate-terraform-module-inputs-and-outputs-docs-with-terraform-docs-before-review-drift-sets-in/)

