Skip to content
SkillCheatSheet Sign in

provider-test-patterns

An AI agent skill from hashicorp/agent-skills, scored 67 out of 100 by code.

67/ 100C

Code score by group

  • Spec20/20
  • Description10/20
  • Procedure3/15
  • Done criteria8/15
  • Resources9/10
  • Scripts5/8
  • Safety7/7
  • Upkeep5/5

It loses the most points in Procedure (12), the group that checks whether the steps are numbered, read the context first and say what to do when something fails.

What the author says it does

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, TestChec…

This is the description in the skill's own SKILL.md, written by its author, not by SkillCheatSheet.

Repository
hashicorp/agent-skills
Folder
plugins/terraform/skills/provider-test-patterns
License
MPL-2.0
GitHub stars
926
SKILL.md lines
416
Other files
3

Add provider-test-patterns to your agent

npx skills add hashicorp/agent-skills --skill provider-test-patterns

The command uses the open skills CLI. A skill is instructions and scripts your agent will follow, so read it first: open the folder on GitHub at the commit that was scored.

More skills from hashicorp/agent-skills

  1. provider-framework-migration

    Migrate Terraform provider resources and data sources from Plugin SDKv2 to the Plugin Framework: muxing both plugins in one provider (terraform-plugin-mux, tf5to6server), per-reso…

    Verified85A
  2. terraform-search-import

    Discover existing cloud resources using Terraform Search queries and bulk import them into Terraform management. Use when bringing unmanaged infrastructure under Terraform control…

    78B
  3. provider-configuration

    Implement Terraform provider configuration and authentication with the Plugin Framework: provider schema for credentials (Optional + Sensitive attributes), environment variable fa…

    76B
  4. provider-docs

    Create, update, and review Terraform provider documentation for Terraform Registry using HashiCorp-recommended patterns, tfplugindocs templates, and schema descriptions. Use when…

    75B
  5. new-terraform-provider

    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 Configu…

    69C
  6. provider-actions

    Implement Terraform Provider actions using the Plugin Framework. Use when developing imperative operations that execute at lifecycle events (before/after create, update, destroy).

    69C
  7. run-acceptance-tests

    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`, when a test fails with missi…

    69C
  8. terraform-test

    Comprehensive guide for writing and running Terraform tests. Use when creating test files (.tftest.hcl), writing test scenarios with run blocks, validating infrastructure behavior…

    69C

All skills in hashicorp/agent-skills

Scores come from a snapshot of 300 public GitHub repositories taken on 12 November 2026. Every score is the result of fixed checks run by code; no AI is involved. How scoring works.