new-terraform-provider

Scaffolds a new Terraform provider workspace using the Go Plugin Framework.

1|1|Updated Dec 30, 2025
One-click install
npx skills add https://github.com/anyscale/terraform-provider-anyscale --skill new-terraform-provider-anyscale
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: new-terraform-provider
Source: https://github.com/anyscale/terraform-provider-anyscale/tree/main/.claude/skills/new-terraform-provider
Command: npx skills add https://github.com/anyscale/terraform-provider-anyscale --skill new-terraform-provider-anyscale

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires github.com/hashicorp/terraform-plugin-framework, and includes assets (resource) components.

What problem does it solve? Setting up a new Terraform provider from scratch involves repetitive boilerplate: creating the workspace directory, initializing a Go module, fetching the Plugin Framework dependency, and writing a working main.go entry point. This Skill automates that entire scaffolding sequence so you can start building resources immediately. ## Core Features & Use Cases - Workspace Scaffolding: Creates a new root directory prefixed with "terraform-provider-" and initializes a Go module inside it. - Framework Setup: Installs the latest hashicorp/terraform-plugin-framework dependency and generates a main.go from a proven template. - Build Verification: Runs go mod tidy, a compile check, and go test to confirm the new provider builds cleanly. - Use Case: You want to build a custom Terraform provider for an internal API. Invoke this Skill to get a compilable provider skeleton in minutes instead of copying examples by hand. ## Quick Start Scaffold a new Terraform provider workspace using the Plugin Framework and verify it builds.

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 with the Plugin Framework?▼

Create a workspace directory prefixed with terraform-provider-, initialize a Go module, run go get for hashicorp/terraform-plugin-framework, and write a main.go that calls providerserver.Serve. This Skill performs all of these steps automatically and verifies the build.

What does the main.go of a Terraform provider look like?▼

It parses a debug flag, builds providerserver.ServeOpts with the provider's registry address, and calls providerserver.Serve with a provider.New(version) constructor. The Skill includes a ready-to-use template in its assets directory.

Does this work inside an existing Terraform provider workspace?▼

The Skill first checks whether you are already in a Terraform provider workspace and asks for confirmation before creating a new one. If you decline, it stops without making changes.

What are the limitations of the generated provider scaffold?▼

The scaffold only provides the main.go entry point and Go module setup; it contains no resources, data sources, or provider configuration logic. You must implement the internal/provider package and update the registry address placeholder yourself.