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.
Esta skill incluye scripts que tu agente puede ejecutar. Ver qué archivos
To scaffold a new Terraform provider with Plugin Framework:
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.
Create a new workspace root directory. The root directory name should be prefixed with "terraform-provider-". Perform all subsequent steps in this new workspace.
Initialize a new Go module.
Run go get -u github.com/hashicorp/terraform-plugin-framework@latest.
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.
Remove TODO comments from main.go and provider.go.
Run go mod tidy
Run go build -o /dev/null
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).
terraform-style-guidehashicorpGenerate Terraform HCL code following HashiCorp's official style conventions and best practices. Use when writing, reviewing, or generating Terraform configurations.11.8 k11.8 k instalaciones en skills.sh0
terraform-testhashicorpComprehensive guide for writing and running Terraform tests. Use when creating test files (.tftest.hcl), writing test scenarios with run blocks, validating infrastructure behavior with assertions, mocking providers and data sources, testing module outputs and resource configurations, or troubleshooting Terraform test syntax and execution.8,3008,300 instalaciones en skills.sh0
refactor-modulehashicorpTransform monolithic Terraform configurations into reusable, maintainable modules following HashiCorp's module design principles and community best practices.6,0006,000 instalaciones en skills.sh0
terraform-stackshashicorpComprehensive guide for working with HashiCorp Terraform Stacks. Use when creating, modifying, or validating Terraform Stack configurations (.tfcomponent.hcl, .tfdeploy.hcl files), working with stack components and deployments from local modules, public registry, or private registry sources, managing multi-region or multi-environment infrastructure, or troubleshooting Terraform Stacks syntax and structure.5,4005,400 instalaciones en skills.sh0
terraform-search-importhashicorpDiscover existing cloud resources using Terraform Search queries and bulk import them into Terraform management. Use when bringing unmanaged infrastructure under Terraform control, auditing cloud resources, or migrating to IaC.4,7004,700 instalaciones en skills.sh0