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.
Claude Code and Codex keep each installed skill's name and description in context. When a request matches the description, the agent loads the full SKILL.md. You can also run it yourself: type /provider-test-patterns in Claude Code or $provider-test-patterns in Codex.
The description says when to use it:
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.
Copy the provider-test-patterns folder into .claude/skills/ in your project. To use it in every project, copy it into ~/.claude/skills/ instead.
git clone --depth 1 https://github.com/hashicorp/agent-skills.git /tmp/hashicorp-agent-skills
mkdir -p .claude/skills
cp -r /tmp/hashicorp-agent-skills/plugins/terraform/skills/provider-test-patterns .claude/skills/
Codex reads skills from .agents/skills/ in your repository, and from ~/.agents/skills/ for every repository. It detects new skills on its own. Restart Codex if provider-test-patterns does not appear.
git clone --depth 1 https://github.com/hashicorp/agent-skills.git /tmp/hashicorp-agent-skills
mkdir -p .agents/skills
cp -r /tmp/hashicorp-agent-skills/plugins/terraform/skills/provider-test-patterns .agents/skills/
Open Settings and select the Skills tab. The tab appears when Skills installation is on under Settings → Feature Preview. Search for provider-test-patterns and choose Install….
Install for repository writes the skill under .treq/skills/ in the current repository. Install for application makes it available to every repository on this machine. Each new workspace gets a copy in .claude/skills/ and .agents/skills/, so Claude Code and Codex both find it. See Installing Skills from the Library.
provider-test-patterns ships 4 files, 27.6 KB in total. Select a file to load it from GitHub.