terraform-provider-development
v1.0.0Terraform provider development skills for Claude Code, including resources, data sources, actions, and acceptance testing.
by HashiCorpMPL-2.0790updated 5 days ago
Source
git clone https://github.com/hashicorp/agent-skillsClone the source, then follow the repository's marketplace instructions for your runtime. The plugin root is terraform/provider-development/ inside the repository.
Layout
├── .claude-plugin/plugin.json├── skills/new-terraform-provider/SKILL.md├── skills/provider-actions/SKILL.md├── skills/provider-docs/SKILL.md├── skills/provider-resources/SKILL.md├── skills/provider-test-patterns/SKILL.md└── skills/run-acceptance-tests/SKILL.md
Skills6
Use this when scaffolding a new Terraform provider.
Implement Terraform Provider actions using the Plugin Framework. Use when developing imperative operations that execute at lifecycle events (before/after create, update, destroy).
Create, update, and review Terraform provider documentation for Terraform Registry using HashiCorp-recommended patterns, tfplugindocs templates, and schema descriptions. Use when adding or changing provider configuration, resources, data sources, ephemeral resources, list resources, functions, or guides; when validating generated docs; and when troubleshooting missing or incorrect Registry documentation.
Implement Terraform Provider resources and data sources using the Plugin Framework. Use when developing CRUD operations, schema design, state management, and acceptance testing for provider resources.
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.
Guide for running acceptance tests for a Terraform provider. Use this when asked to run an acceptance test or to run a test with the prefix `TestAcc`.
Manifests1
{
"name": "terraform-provider-development",
"version": "1.0.0",
"description": "Terraform provider development skills for Claude Code, including resources, data sources, actions, and acceptance testing.",
"author": {
"name": "HashiCorp",
"url": "https://github.com/hashicorp"
},
"homepage": "https://developer.hashicorp.com/terraform/plugin/framework",
"repository": "https://github.com/hashicorp/agent-skills",
"license": "MPL-2.0",
"keywords": [
"terraform",
"provider",
"plugin-framework",
"resources",
"testing"
]
}