new-terraform-provider

Scaffold a Terraform provider workspace and bootstrap a Go module.

Updated Mar 19, 2026
One-click install
npx skills add https://github.com/PaulRBerg/prb-iac --skill new-terraform-provider-paulrberg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-terraform-provider
Source: https://github.com/PaulRBerg/prb-iac/tree/main/.agents/skills/new-terraform-provider
Command: npx skills add https://github.com/PaulRBerg/prb-iac --skill new-terraform-provider-paulrberg

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) components.

What problem does it solve?

Provides a repeatable scaffolding workflow to bootstrap a new Terraform provider project using the Terraform Plugin Framework, including workspace setup and initial Go module configuration.

Core Features & Use Cases

  • Scaffold a provider skeleton: creates a Go module, initial provider main.go, and plugin framework integration.
  • Guided onboarding: ensures consistent directory structure (terraform-provider-<name>), and example main.go usage.
  • Use case: teams launching new providers can clone the template, run the steps, and immediately build and test the provider.

Quick Start

Follow the steps to create a new Terraform provider workspace, initialize a Go module, and adapt the provided assets/main.go as your starting point.

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 Terraform provider, the Skill automates workspace setup by creating a Go module, configuring the terraform-provider-<name> directory structure, and bootstrapping an example main.go file using the Terraform Plugin Framework.

What is the Terraform Plugin Framework and when do I need it for infrastructure-as-code?

The Terraform Plugin Framework is a Go library for building custom Terraform providers. You need it when extending infrastructure-as-code to manage custom APIs or internal services not covered by existing providers.

Do I need Go installed to bootstrap a Terraform provider?

Yes, you need Go installed to bootstrap a Terraform provider. The scaffolding process initializes a Go module, fetches necessary dependencies, and compiles a runnable provider binary from the main.go template.

Can I use this scaffolding to create a reproducible provider skeleton for my devops team?

Yes, you can use this scaffolding to create a reproducible provider skeleton for devops teams. It ensures a consistent directory structure, initial Go module configuration, and example main.go usage across new provider projects.

What's the best way to set up the directory structure for a Terraform provider in Go?

The best way to set up a Terraform provider directory structure is using guided onboarding that enforces the terraform-provider-<name> naming convention, initializes the Go module, and prepares the plugin framework integration automatically.

What are the limitations of using a scaffolded Terraform provider template?

The scaffolded Terraform provider template provides only the initial skeleton, example main.go usage, and Go module configuration. You must manually implement resource and data source logic specific to your API beyond the basic binary setup.