Provider Docs
HashiCorpOfficialPublished by HashiCorp
- Skill
- Content generator
- Cloud and DevOps
- MPL-2.0
- No issues found
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides a standardized process for authoring, generating, and validating documentation for Terraform providers. It focuses on using HashiCorp-recommended patterns and the tfplugindocs tool to ensure documentation remains synchronized with provider schema changes. The workflow covers the lifecycle from writing schema descriptions and template files to generating markdown and preparing for Registry publication.
What it does
- Maps provider code changes to documentation targets like resources, data sources, and actions.
- Guides the creation of template files in the docs/ directory.
- Standardizes the inclusion of HCL examples from the examples/ directory.
- Automates documentation generation using tfplugindocs.
- Provides validation steps to ensure docs match schema behavior.
- Outlines requirements for Registry publication including versioning and manifest management.
When to use it
- When adding or updating provider configuration, resources, or data sources.
- When implementing new ephemeral resources, list resources, functions, or actions.
- When troubleshooting missing or incorrect documentation on the Terraform Registry.
- When preparing a provider release for publication.
Advantages
- Ensures documentation stays aligned with actual provider schema definitions.
- Promotes consistent documentation structure across different provider objects.
- Separates HCL examples from documentation templates for better maintainability.
- Supports automated generation to reduce manual documentation overhead.
Usage examples
- “How do I document a new resource for my Terraform provider?”
- The agent will guide you to add schema descriptions, create a corresponding .md.tmpl file in docs/resources/, add a minimal HCL example in examples/resources/, and run go generate to produce the final documentation.
- “My provider documentation is missing from the Registry, what should I check?”
- The agent will help you verify your semantic version tags, the presence of the terraform-registry-manifest.json file, and ensure the tag was created from the default branch.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/hashicorp/provider-docs/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip provider-docs.zip -d .agents/skills
Documentation by HashiCorp
Terraform Provider Docs
Follow This Workflow
Confirm scope and documentation targets.
Map code changes to the exact doc targets: provider index, resources, data sources, ephemeral resources, list resources, functions, actions, or guides.
Decide whether content should come from schema descriptions, templates, or both.
Write schema descriptions first.
Add precise user-facing descriptions to schema fields so generated docs stay aligned with behavior.
Keep wording specific to argument purpose, constraints, defaults, and computed behavior.
Add or update template files in
docs/.
Create only files that map to implemented provider objects.
Use HashiCorp-recommended template paths:
docs/index.md.tmpldocs/data-sources/<name>.md.tmpldocs/resources/<name>.md.tmpldocs/ephemeral-resources/<name>.md.tmpldocs/list-resources/<name>.md.tmpldocs/functions/<name>.md.tmpldocs/actions/<name>.md.tmpl(tfplugindocs generates action docs with Terraform v1.14.0+)docs/guides/<name>.md.tmpl
Keep templates focused on overview and examples; rely on generated sections for field-by-field details.
Keep HCL examples in the
examples/directory — one example per file, pulled into templates withtffile— rather than inlined in templates (see Example File Conventions inreferences/hashicorp-provider-docs.md). Examples must not containterraform,provider, oroutputblocks.For action pages, follow the structure in
references/hashicorp-provider-docs.md(Action Pages section): examples must show both theactionblock and theaction_triggerlifecycle wiring, and actions get no attribute/output section.
Generate documentation with
tfplugindocs.
Prefer repository defaults when configured:
go generate ./...Otherwise run the generator directly:
go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs generate --provider-name <provider_name>Re-run generation after every schema or template edit.
Validate the generated markdown.
Verify files in
docs/match the current provider implementation.Verify examples are valid HCL and reflect current argument/attribute names.
Verify required/optional/computed semantics in docs match schema behavior.
Apply Registry publication rules before release.
Use semantic version tags prefixed with
v(for examplev1.2.3).Create release tags from the default branch.
Keep
terraform-registry-manifest.jsonin the repository root.Expect docs to be versioned in Registry and switchable with the version selector.
Preview or troubleshoot publication when needed.
Use the HashiCorp preview process to inspect rendered docs before release when accuracy risk is high.
If docs are missing in Registry, check tag format, tag source branch, manifest file presence, and provider publication status.
Enforce Quality Bar
Keep documentation behaviorally accurate; never describe unsupported arguments or attributes.
Keep examples minimal, realistic, and runnable.
Keep terminology and naming consistent across provider, resources, and data sources.
Avoid duplicating generated argument/attribute blocks in manual templates.
Keep doc changes tied to the same PR as schema/API changes whenever possible.
Load References On Demand
Read
references/hashicorp-provider-docs.mdfor source-backed rules and official links.Load only the sections needed for the current change to keep context lean.
Files
- ATTRIBUTION.mdAdded by AutoGineer894 B
- LICENSELicence file added by AutoGineer16.3 KiB
- SKILL.md3.9 KiB
- agents/openai.yaml343 B
- references/hashicorp-provider-docs.md5.4 KiB
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Published by
- HashiCorp
- Publisher
- HashiCorp (Official)
- Source
- hashicorp/agent-skills · plugins/terraform/skills/provider-docs · commit 5e30fa5
- Licence
- Mozilla Public License 2.0 (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by HashiCorp or HashiCorp.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download provider-docs.zip