20 skills · 53 min
Terraform
Skill 6 of 20
Use this when scaffolding a new Terraform provider with the Plugin Framework: workspace layout, go module setup, provider server main.go, and a provider.go with schema and…
1 minute · 165 words
Install
npx skills add hashicorp/agent-skills --skill new-terraform-providernpx skills add hashicorp/agent-skills/plugin marketplace add hashicorp/agent-skillsThe first command installs just this skill, by the name in its SKILL.md; the second installs the whole repository.
To scaffold a new Terraform provider with Plugin Framework:
go get -u github.com/hashicorp/terraform-plugin-framework@latest.internal/provider/provider.go file that follows
the example (opens in a new tab). Rename the demo provider, the
DEMO_* environment variables, and the authentication attributes to
match the target API.main.go and provider.go.go mod tidygo build -o /dev/nullgo test ./...
The scaffold resolves credentials as explicit config with environment
variable fallback. To grow that into a full credential provider chain
(shared credentials files, profiles, platform identity, configure-time
validation), use the provider-configuration skill (if available). To add
the first resource or data source, use the provider-resources skill (if
available).Use this when scaffolding a new Terraform provider with the Plugin Framework: workspace layout, go module setup, provider server main.go, and a provider.go with schema and Configure. Also use when a user wants to start building a provider for a new API or asks how to begin a terraform-provider-* project.
The verbatim description from this skill’s front matter — the string an agent matches on to decide whether to load it.
plugins/terraform/skills/new-terraform-provider/SKILL.mdmain, last pushed 21 September 2026.SKILL.md, not by matching a directory convention. 2 distinct layouts observed: plugins/packer/skills/*/SKILL.md, plugins/terraform/skills/*/SKILL.md..claude-plugin/marketplace.json by HashiCorp, declaring 2 plugins. It is read for editorial metadata only — never as the skill index, which is always the repository tree./hashicorp/agent-skills.md, and each skill at its own .md URL.2 files · 5 KB
Everything this skill ships beside its prose. All of it is set here, as subchapters of skill 6.
Templates, schemas and fixtures the skill draws on.