Agent Plugins Marketplace
All plugins

terraform

v1.0.0

Terraform skills for configuration, modules, providers, tests, imports, stacks, and policy.

CodexClaude Code16 Skills

By HashiCorpLicense: MPL-2.0792 GitHub starsUpdated 12 hours ago

Get the plugin

git clone https://github.com/hashicorp/agent-skills

Clone the source repository, then follow its setup instructions to add the plugin to a compatible client. The plugin root is plugins/terraform/.

Plugin files

plugins/terraform/
├── .codex-plugin/plugin.json
├── .claude-plugin/plugin.json
├── skills/azure-verified-modules/SKILL.md
├── skills/new-terraform-provider/SKILL.md
├── skills/provider-actions/SKILL.md
├── skills/provider-configuration/SKILL.md
├── skills/provider-docs/SKILL.md
├── skills/provider-ephemeral-resources/SKILL.md
├── skills/provider-framework-migration/SKILL.md
├── skills/provider-resources/SKILL.md
├── skills/provider-test-patterns/SKILL.md
├── skills/refactor-module/SKILL.md
├── skills/run-acceptance-tests/SKILL.md
├── skills/terraform-policy/SKILL.md
├── skills/terraform-search-import/SKILL.md
├── skills/terraform-stacks/SKILL.md
├── skills/terraform-style-guide/SKILL.md
└── skills/terraform-test/SKILL.md

Included Skills16

azure-verified-modulesskills/azure-verified-modules/SKILL.md

Azure Verified Modules (AVM) requirements and best practices for developing certified Azure Terraform modules. Use when creating or reviewing Azure modules that need AVM certification.

new-terraform-providerskills/new-terraform-provider/SKILL.md

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.

provider-actionsskills/provider-actions/SKILL.md

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

provider-configurationskills/provider-configuration/SKILL.md

Implement Terraform provider configuration and authentication with the Plugin Framework: provider schema for credentials (Optional + Sensitive attributes), environment variable fallbacks, credential provider chains (static config, then environment variables, shared credentials file, and platform identity), unknown-value guards in Configure(), secret redaction, configure-time credential validation, and diagnostics that name every source tried. Use when implementing or reviewing a provider's Configure method or provider schema, adding authentication options (API keys, tokens, profiles, credentials files, assume-role), deciding how a provider should resolve credentials, debugging "no valid credential sources" or missing-credentials errors, or unit testing credential resolution.

provider-docsskills/provider-docs/SKILL.md

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, actions, or guides; when validating generated docs; and when troubleshooting missing or incorrect Registry documentation.

provider-ephemeral-resourcesskills/provider-ephemeral-resources/SKILL.md

Implement Terraform provider ephemeral resources with the Plugin Framework: the Open/Renew/Close lifecycle, ephemeral schema design, registration via EphemeralResources, renewal for expiring credentials, and how ephemeral values flow into write-only attributes and provider configuration. Use when adding an ephemeral resource, exposing secrets/tokens/certificates that must never persist in state or plan, deciding between an ephemeral resource and a data source, or wiring short-lived credentials from one provider into another.

provider-framework-migrationskills/provider-framework-migration/SKILL.md

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-resource migration workflow, SDKv2-to-Framework schema mapping (ForceNew, ValidateFunc, DiffSuppressFunc, Default, Timeouts, blocks), null-vs-zero-value behavioral traps, and state-compatibility verification. Use when converting or translating SDKv2 resources to the Framework, setting up a muxed provider server, deciding whether a resource should be migrated at all, or debugging plan diffs and state errors that appeared after a migration.

provider-resourcesskills/provider-resources/SKILL.md

Implement Terraform Provider resources and data sources using the Plugin Framework: CRUD operations, schema design, plan modifiers and validators, not-found handling, waiters for eventually consistent APIs, import support, resource design principles, and required acceptance test coverage. Use when adding or changing a resource or data source, deciding whether an API concept should be a resource, wiring a resource to the provider's configured client, handling drift or resource-not-found, or reviewing a resource implementation before submission.

provider-test-patternsskills/provider-test-patterns/SKILL.md

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.

refactor-moduleskills/refactor-module/SKILL.md

Transform monolithic Terraform configurations into reusable, maintainable modules following HashiCorp's module design principles and community best practices.

run-acceptance-testsskills/run-acceptance-tests/SKILL.md

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 missing environment variables, or when diagnosing a failing or suspiciously passing acceptance test.

terraform-policyskills/terraform-policy/SKILL.md

Write, test, or convert Terraform Policy files (.policy.hcl, .policytest.hcl, Sentinel→tfpolicy). Triggers: policy.hcl, policytest, convert sentinel, tfpolicy, write a policy.

terraform-search-importskills/terraform-search-import/SKILL.md

Discover 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.

terraform-stacksskills/terraform-stacks/SKILL.md

Comprehensive 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.

terraform-style-guideskills/terraform-style-guide/SKILL.md

Generate Terraform HCL code following HashiCorp's official style conventions and best practices. Use when writing, reviewing, or generating Terraform configurations.

terraform-testskills/terraform-test/SKILL.md

Comprehensive 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.

Plugin manifests2

plugins/terraform/.codex-plugin/plugin.json
{
  "name": "terraform",
  "version": "1.0.0",
  "description": "Terraform skills for configuration, modules, providers, tests, imports, stacks, and policy.",
  "author": {
    "name": "HashiCorp",
    "url": "https://github.com/hashicorp"
  },
  "homepage": "https://developer.hashicorp.com/terraform",
  "repository": "https://github.com/hashicorp/agent-skills",
  "license": "MPL-2.0",
  "keywords": [
    "terraform",
    "hcl",
    "provider",
    "modules",
    "infrastructure"
  ],
  "skills": "./skills/",
  "interface": {
    "displayName": "Terraform",
    "shortDescription": "Build and maintain Terraform workflows.",
    "longDescription": "HashiCorp Terraform skills for infrastructure configuration, modules, providers, tests, imports, stacks, and policy.",
    "developerName": "HashiCorp",
    "category": "Developer Tools",
    "capabilities": [
      "Read",
      "Write"
    ],
    "defaultPrompt": "Help me complete this Terraform task using the relevant HashiCorp skill."
  }
}
plugins/terraform/.claude-plugin/plugin.json
{
  "name": "terraform",
  "version": "1.0.0",
  "description": "Terraform skills for configuration, modules, providers, tests, imports, stacks, and policy.",
  "author": {
    "name": "HashiCorp",
    "url": "https://github.com/hashicorp"
  },
  "homepage": "https://developer.hashicorp.com/terraform",
  "repository": "https://github.com/hashicorp/agent-skills",
  "license": "MPL-2.0",
  "keywords": [
    "terraform",
    "hcl",
    "provider",
    "modules",
    "infrastructure"
  ],
  "skills": "./skills/"
}