一键导入
new-terraform-provider
Use this when scaffolding a new Terraform provider.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use this when scaffolding a new Terraform provider.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Terraform provider acceptance test patterns using terraform-plugin-testing with the Plugin Framework. Covers test structure, TestCase/TestStep fields, ConfigStateChecks with custom statecheck.StateCheck implementations, plan checks, CompareValue for cross-step assertions, config helpers, import testing with ImportStateKind, sweepers, and scenario patterns (basic, update, disappears, validation, regression), and ephemeral resource testing with the echoprovider package. Use when writing, reviewing, or debugging provider acceptance tests, including questions about statecheck, plancheck, TestCheckFunc, CheckDestroy, ExpectError, import state verification, ephemeral resources, or how to structure test files.
Generate, update, and validate Terraform provider documentation from Go schema code. Use when adding or changing resources, data sources, or schema fields to keep docs/ aligned with the provider implementation.
| name | new-terraform-provider |
| description | Use this when scaffolding a new Terraform provider. |
| license | MPL-2.0 |
| metadata | {"copyright":"Copyright IBM Corp. 2026","version":"0.0.1"} |
To scaffold a new Terraform provider with Plugin Framework:
go get -u github.com/hashicorp/terraform-plugin-framework@latest.main.gogo mod tidygo build -o /dev/nullgo test ./...