new-terraform-provider

Scaffold a Terraform provider workspace with the Plugin Framework.

790|117|Updated Nov 8, 2025
One-click install
npx skills add https://github.com/hashicorp/agent-skills --skill new-terraform-provider
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-terraform-provider
Source: https://github.com/hashicorp/agent-skills/tree/main/terraform/provider-development/skills/new-terraform-provider
Command: npx skills add https://github.com/hashicorp/agent-skills --skill new-terraform-provider

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) components.

What problem does it solve?

This Skill streamlines the initial setup for a new Terraform provider by bootstraping a workspace, Go module, and a provider skeleton using the Terraform Plugin Framework.

Core Features & Use Cases

  • Bootstrap workspace: Creates a new provider workspace named terraform-provider-<provider-name> and prepares the project structure.
  • Module & Dependency Setup: Initializes a Go module and adds the terraform-plugin-framework dependency so development can begin immediately.
  • Provider Skeleton: Generates a minimal main.go and starter provider wiring ready for customization.
  • Use Case: A team wants to prototype a provider quickly for internal tooling and needs a ready-to-edit foundation with buildable code.

Quick Start

Use this skill to scaffold a new Terraform provider workspace and generate a minimal main.go with a basic provider skeleton.

Frequently Asked Questions about new-terraform-provider

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a new Terraform provider using the plugin framework?

To scaffold a new Terraform provider, this Skill initializes a Go module, fetches the terraform-plugin-framework dependency, and generates a runnable main.go with a basic provider skeleton ready for customization.

What is the Terraform Plugin Framework used for in provider development?

The Terraform Plugin Framework is used for provider development to define resources and data sources in Go. This Skill bootstraps a workspace that imports the framework, enabling you to build custom providers for Terraform.

Do I need a Go toolchain to create a custom Terraform provider?

Yes, a Go toolchain is required to create a custom Terraform provider. This Skill uses the Go toolchain to initialize a module named terraform-provider-<provider-name> and set up the project structure for the provider skeleton.

Can I bootstrap a Terraform provider workspace for internal tooling prototypes?

Yes, you can bootstrap a Terraform provider workspace for internal tooling prototypes. This Skill creates a ready-to-edit foundation with buildable Go code, allowing teams to rapidly prototype providers for internal use.

What's the best way to start developing a Terraform provider with Go?

The best way to start developing a Terraform provider with Go is to use a scaffolding tool. This Skill prepares the project structure, initializes the Go module, and writes the starter provider wiring so development can begin immediately.

What files are generated when setting up a new Terraform provider project?

When setting up a new Terraform provider project, a minimal main.go file with a basic provider skeleton is generated. The Skill also prepares the overall workspace structure required to build the provider using the plugin framework.