Index of every page on this site: llms.txt
All skills
hashicorp avatar

/new-terraform-provider

@5e30fa5 official
by hashicorphashicorp/agent-skills934 stars
137
Run it yourself

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.

Use this Skill: https://skilld.dev/gh/hashicorp/agent-skills/new-terraform-provider

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈82 tokens for metadata: the name and description. ≈332 when used: this file.

Description uses 4.1% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈330 characters, or 4.1%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

To scaffold a new Terraform provider with Plugin Framework:

  1. If I am already in a Terraform provider workspace, then confirm that I want to create a new workspace. If I do not want to create a new workspace, then skip all remaining steps.
  2. Create a new workspace root directory. The root directory name should be prefixed with "terraform-provider-". Perform all subsequent steps in this new workspace.
  3. Initialize a new Go module.
  4. Run go get -u github.com/hashicorp/terraform-plugin-framework@latest.
  5. Write a main.go file that follows the example.
  6. Write an internal/provider/provider.go file that follows the example. Rename the demo provider, the DEMO_* environment variables, and the authentication attributes to match the target API.
  7. Remove TODO comments from main.go and provider.go.
  8. Run go mod tidy
  9. Run go build -o /dev/null
  10. Run go 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).

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning2mo5 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill provides a workflow for scaffolding new Terraform providers using the official Plugin Framework. It utilizes standard Go development tools and dependencies. No security concerns were identified.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

  • Runlayer9mo

    2/2 files flagged

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 5e30fa5. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last week.

Activeupdated 3 months ago
Other metadata
metadata
{
  "lifecycle-status": "active",
  "copyright": "Copyright IBM Corp. 2026",
  "version": "0.0.1"
}
  • Go
  • terraform
  • provider
  • plugin-framework
  • scaffolding
  • hashicorp

README badge

README badge for hashicorp/agent-skills/new-terraform-provider

Scaffolds a new Terraform provider using the Plugin Framework, handling Go module initialization, dependencies, and a starter main.go file. Targets providers built with the official HashiCorp framework and assumes a Go development environment.

Generated from the current SKILL.md.

Does this skill work with Terraform Plugin SDKv2 or only Plugin Framework?
This skill scaffolds providers using Plugin Framework. It does not support the older SDKv2.
What happens if I'm already in a Terraform provider workspace?
The skill prompts you to confirm whether you want to create a new workspace. If you decline, it skips the scaffolding steps.
Do I need to have Go installed?
Yes. The skill initializes a Go module and runs Go commands like go get, go mod tidy, go build, and go test.
What does the main.go template include?
The skill provides a main.go example that removes TODO comments and is ready for basic compilation and testing after cleanup.

Generated from the current SKILL.md. These answers refresh after source changes.