---
title: "Generate Terraform module inputs and outputs docs with terraform-docs before review drift sets in"
description: "Refresh Terraform module documentation from source so variables, outputs, and providers stay aligned with the code before review or release."
verification: "security_reviewed"
source: "https://github.com/terraform-docs/terraform-docs"
author: "terraform-docs"
publisher_type: "open_source_project"
category:
  - "CI/CD Integrations"
framework:
  - "Multi-Framework"
tool_ecosystem:
  github_repo: "terraform-docs/terraform-docs"
  github_stars: 4753
---

# 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

Choose whichever fits your setup:

1. Copy this skill folder into your local skills directory.
2. Clone the repo and symlink or copy the skill into your agent workspace.
3. Add the repo as a git submodule if you manage shared skills centrally.
4. Install it through your internal provisioning or packaging workflow.
5. Download the folder directly from GitHub and place it in your skills collection.

Install command or upstream instructions:

```
Install terraform-docs from the upstream releases or package manager, then run it against the target Terraform module directory.
```

## 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/)
