Skip to content
alyn
hashicorp

New Terraform Provider skill

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.

$npx skills add hashicorp/agent-skills --skill new-terraform-provider
View this skill on GitHubhashicorp/agent-skills/plugins/terraform/skills/new-terraform-provider/SKILL.md
Pack stars
925
Pack installs
83k
Alyn Score
60/99
Updated
7 days ago
License
MPL-2.0
– views – installs via Alyn

hashicorp

New Terraform Provider

Install New Terraform Provider

Pick your agent. Every command is ready to paste.

$npx skills add hashicorp/agent-skills --skill new-terraform-provider

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

The skill itself

SKILL.md

FolderGitHub

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

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.

Similar skills. From other creators.