$npx -y skills add hashicorp/agent-skills --skill new-terraform-providerUse this when scaffolding a new Terraform provider.
| 1 | To scaffold a new Terraform provider with Plugin Framework: |
| 2 | |
| 3 | 1. If I am already in a Terraform provider workspace, then confirm that I want |
| 4 | to create a new workspace. If I do not want to create a new workspace, then |
| 5 | skip all remaining steps. |
| 6 | 1. Create a new workspace root directory. The root directory name should be |
| 7 | prefixed with "terraform-provider-". Perform all subsequent steps in this |
| 8 | new workspace. |
| 9 | 1. Initialize a new Go module.. |
| 10 | 1. Run `go get -u github.com/hashicorp/terraform-plugin-framework@latest`. |
| 11 | 1. Write a main.go file that follows [the example](assets/main.go). |
| 12 | 1. Remove TODO comments from `main.go` |
| 13 | 1. Run `go mod tidy` |
| 14 | 1. Run `go build -o /dev/null` |
| 15 | 1. Run `go test ./...` |