agentleFS
danielvoglerdanielvogler/ai-skills-library/.agents/skills/provider-docs/SKILL.md

provider-docs

Skill0 starsChanged 6 months agoMITView on GitHub

Create, update, and review Terraform provider documentation for Terraform Registry using HashiCorp-recommended patterns, tfplugindocs templates, and schema descriptions. Use when adding or changing provider configuration, resources, data sources, ephemeral resources, list resources, functions, or guides; when validating generated docs; and when troubleshooting missing or incorrect Registry documentation.

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

22 rules. About 0 are common, 16 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈16

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write schema descriptions first.

    line 14
  2. Distinctive:

    Add precise user-facing descriptions to schema fields so generated docs stay aligned with behavior.

    line 15
  3. Distinctive:

    Keep wording specific to argument purpose, constraints, defaults, and computed behavior.

    line 16
  4. Very specific:

    Add or update template files in docs/.

    line 18
  5. Distinctive:

    Create only files that map to implemented provider objects.

    line 19
  6. Distinctive:

    Use HashiCorp-recommended template paths:

    line 20
  7. Distinctive:

    Keep templates focused on overview and examples.

    line 28
  8. Distinctive:

    Prefer repository defaults when configured:

    line 31
  9. Very specific:

    Verify files in docs/ match the current provider implementation.

    line 42
  10. Distinctive:

    Verify examples are valid HCL and reflect current argument/attribute names.

    line 43
  11. Very specific:

    Verify required/optional/computed semantics in docs match schema behavior.

    line 44
  12. Very specific:

    Use semantic version tags prefixed with v (for example v1.2.3).

    line 47
  13. Distinctive:

    Create release tags from the default branch.

    line 48
  14. Very specific:

    Keep terraform-registry-manifest.json in the repository root.

    line 49
  15. Distinctive:

    Use the HashiCorp preview process to inspect rendered docs before release when accuracy risk is high.

    line 53
  16. Distinctive:

    If docs are missing in Registry, check tag format, tag source branch, manifest file presence, and provider publication status.

    line 54
  17. Distinctive:

    Keep documentation behaviorally accurate.

    line 58
  18. Distinctive:

    Keep examples minimal, realistic, and runnable.

    line 59
  19. Distinctive:

    Keep terminology and naming consistent across provider, resources, and data sources.

    line 60
  20. Distinctive:

    Avoid duplicating generated argument/attribute blocks in manual templates.

    line 61
  21. Distinctive:

    Keep doc changes tied to the same PR as schema/API changes whenever possible.

    line 62
  22. Very specific:

    Read references/hashicorp-provider-docs.md for source-backed rules and official links.

    line 66

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Terraform Provider Docs

Follow This Workflow

  1. Confirm scope and documentation targets.
  • Map code changes to the exact doc targets: provider index, resources, data sources, ephemeral resources, list resources, functions, or guides.
  • Decide whether content should come from schema descriptions, templates, or both.
  1. 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.
  1. Add or update template files in docs/.
  • Create only files that map to implemented provider objects.
  • Use HashiCorp-recommended template paths:
    • docs/index.md.tmpl
    • docs/data-sources/<name>.md.tmpl
    • docs/resources/<name>.md.tmpl
    • docs/ephemeral-resources/<name>.md.tmpl
    • docs/list-resources/<name>.md.tmpl
    • docs/functions/<name>.md.tmpl
    • docs/guides/<name>.md.tmpl
  • Keep templates focused on overview and examples; rely on generated sections for field-by-field details.
  1. 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.
  1. 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.
  1. Apply Registry publication rules before release.
  • Use semantic version tags prefixed with v (for example v1.2.3).
  • Create release tags from the default branch.
  • Keep terraform-registry-manifest.json in the repository root.
  • Expect docs to be versioned in Registry and switchable with the version selector.
  1. 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.md for source-backed rules and official links.
  • Load only the sections needed for the current change to keep context lean.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.