← Explore all skills

INFRASTRUCTURE / hashicorp

Terraform Provider Scaffold

Scaffold a Plugin Framework provider with configuration schema, unknown-value guards and environment credential fallback.

“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. …”

01 / THE REASONING

Why this made the selection.

  • It scaffolds a Plugin Framework provider only after confirming a new terraform-provider-* workspace.
  • Credentials in the scaffold are explicit config with an environment-variable fallback, not a full provider chain.
  • Includes concrete server and provider Go assets rather than only a directory checklist.
  • Separates a compiling scaffold from the later resource and credential-chain implementation.

02 / THE REVIEW RECORD

What we actually inspected.

Source review has boundaries.
A clear record is more useful than a “safe” badge.

Material inspected

  • plugins/terraform/skills/new-terraform-provider/SKILL.md
  • plugins/terraform/skills/new-terraform-provider/assets/provider.go
  • README.md
  • LICENSE

Our findings

  • The first step confirms a new workspace and skips the rest when the user declines.
  • The scaffold runs go get against github.com/hashicorp/terraform-plugin-framework and then go mod tidy, go build, and go test.
  • Credentials are explicit config plus an environment variable, and the file says that is not yet a full credential provider chain.
  • The first resource or data source is not part of this skill.
  • provider.go rejects unknown config, marks API keys sensitive and falls back to DEMO_* environment variables.
  • Resources and DataSources return empty lists; client handoff remains an explicit TODO.
  • The scaffold instructions explicitly rename the demo provider, DEMO environment variables and authentication attributes to the target API before completing the workspace.

Not established by this review

  • The resource was not executed and its tools were not called.
  • No skill execution, authenticated service operation, or outcome benchmark was performed.
  • Not executed: it was not installed or run.

The review applies to the material and revision named here. A newer upstream release can change its behavior.

03 / PUT IT TO WORK

Add a skill to your workflow.

Upstream setup instructions ↗

DOCUMENTED COMMAND

npx skills add hashicorp/agent-skills/plugins/terraform/skills/new-terraform-provider

Run in your terminal to choose your AI tools, project or global scope, and installation method. This short command follows the current upstream version; the review covers the revision shown above.

Optional: install the reviewed revision

Keeps the original source and installer version where recorded, while leaving your AI tools and installation scope for you to choose.

npx skills add https://github.com/hashicorp/agent-skills/tree/f706481af9b8fedb66de909f6243ad29601afa0c/plugins/terraform/skills/new-terraform-provider
  1. Install the pinned skill directory interactively, retaining its bundled references and scripts.
  2. Create a distinct terraform-provider-* workspace and initialize its Go module.
  3. Adapt both assets, replace demo identifiers, then build/test before adding actual API operations.

Before you start

  • Go toolchain and an identified target API
  • Terraform Plugin Framework development environment

04 / FOLLOW THE EVIDENCE

The source trail.

Our notes are separate from the original resource.
Check upstream before adopting a new version.

  1. Pinned skill definition ↗Checked

    https://github.com/hashicorp/agent-skills/blob/f706481af9b8fedb66de909f6243ad29601afa0c/plugins/terraform/skills/new-terraform-provider/SKILL.md

    Supports: summary, whySelected, bestFor, limitations, install, access, review

  2. https://github.com/hashicorp/agent-skills/blob/f706481af9b8fedb66de909f6243ad29601afa0c/README.md

    Supports: install

  3. MPL-2.0 licence ↗Checked

    https://github.com/hashicorp/agent-skills/blob/f706481af9b8fedb66de909f6243ad29601afa0c/LICENSE

    Supports: license

  4. https://github.com/hashicorp/agent-skills/blob/f706481af9b8fedb66de909f6243ad29601afa0c/plugins/terraform/skills/new-terraform-provider/assets/provider.go

    Supports: review, limitations, access, install

  5. https://raw.githubusercontent.com/hashicorp/agent-skills/f706481af9b8fedb66de909f6243ad29601afa0c/plugins/terraform/skills/new-terraform-provider/SKILL.md

    Supports: review.findings, bestFor, upstreamDescription

Evidence & Ask