Terraform Docs Inject
Quick start
From the repository root:
cd terraform
terraform-docs markdown table --output-file README.md --output-mode inject .
Workflow
- Confirm a
terraform/directory exists in the repository root — stop and report if not. - Check that
terraform-docsis installed (terraform-docs --version). If not installed, stop and ask the user to install it before proceeding. - Run the command above exactly as written — do not change any arguments.
- Report whether
terraform/README.mdwas updated or was already up to date.
Notes
- Injects content between existing
terraform-docsmarkers interraform/README.md— does not replace the whole file. - Always run from the repository root so the relative path resolves correctly.
Source: craigspaterson/agent-skills — distributed by TomeVault.