mcpbeat

New Terraform Provider

hashicorp/new-terraform-provider

Use this when scaffolding a new Terraform provider.

509 tokens
context cost
the whole folder, loaded on every use
2
files
instructions only
0
copies elsewhere
how many repositories repackaged it
776
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/hashicorp/agent-skills --skill new-terraform-provider

The instruction itself

as written by the author

To scaffold a new Terraform provider with Plugin Framework:

  • 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.

  • Create a new workspace root directory. The root directory name should be

prefixed with "terraform-provider-". Perform all subsequent steps in this

new workspace.

  • Initialize a new Go module..
  • Run go get -u github.com/hashicorp/terraform-plugin-framework@latest.
  • Write a main.go file that follows the example.
  • Remove TODO comments from main.go
  • Run go mod tidy
  • Run go build -o /dev/null
  • Run go test ./...

How to use it

Copy the folder

Take hashicorp/new-terraform-provider from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.