Install New Terraform Provider
Pick your agent. Every command is ready to paste.
npx skills add hashicorp/agent-skills --skill new-terraform-providerThe open skills CLI detects your agents (Claude Code, Cursor, Codex and 70+ more) and installs to the right folder. Add -g to install globally.
01
Install it
Run the command above, or upload the folder in Claude.
02
Ask naturally
Describe the task. Your agent loads new-terraform-provider when the request matches its description.
03
Name it if needed
If it does not trigger, say “use the new-terraform-provider skill”. In Codex, type $new-terraform-provider.
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.
- Write an
internal/provider/provider.gofile that follows the example. Rename thedemoprovider, theDEMO_*environment variables, and the authentication attributes to match the target API. - Remove TODO comments from
main.goandprovider.go. - Run
go mod tidy - Run
go build -o /dev/null - 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 theprovider-configurationskill (if available). To add the first resource or data source, use theprovider-resourcesskill (if available).
Tips for New Terraform Provider
- • Start a fresh session after installing so your agent picks up the new skill.
- • It bundles reference files. The agent reads them only when needed, so they cost no context until then.
- • It is part of a pack with 20 skills. Install only the ones you need with --skill to keep triggers precise.
- • If two skills overlap, mention the one you want by name.
Questions about New Terraform Provider
What does the New Terraform Provider skill do?
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.
How do I install New Terraform Provider?
Run "npx skills add hashicorp/agent-skills --skill new-terraform-provider" in your project. The skills CLI installs it for Claude Code, Cursor, Codex and 70+ other agents. In Claude on the web, upload the skill folder as a ZIP under Customize > Skills.
Does New Terraform Provider work in Cursor and Codex?
Yes. New Terraform Provider uses the open SKILL.md format, so it works in Claude Code, Claude, Cursor, OpenAI Codex, Gemini CLI, GitHub Copilot and other agents that support agent skills.
Is New Terraform Provider free?
New Terraform Provider is open source on GitHub under the MPL-2.0 license. It is free to install; check the license before commercial use.
Who made New Terraform Provider?
New Terraform Provider is published by hashicorp in the hashicorp/agent-skills repository, together with 19 other skills.

