Skip to main content
skill CX Codex

provider-actions — Claude Code skill: Terraform Actions

Guides implementation of Terraform Actions with the Plugin Framework for operations run around resource create, update, and destroy events.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add hashicorp/agent-skills --skill provider-actions -a claude-code
Open on GitHub

What provider-actions does

This skill guides Terraform Provider work where an imperative action must run around a resource lifecycle event. It covers first-action setup: ProviderWithActions, passing ActionData from Configure, a configurable action base type, and schema helpers for shared attributes.

It lays out implementation, test, and documentation locations, then covers action schemas and Invoke. The guide calls out mismatched framework types, missing ElementType on list or map fields, incorrect Optional and Computed settings, and validator imports. It also advises progress events, API timeouts through context.WithTimeout(), and diagnostics for failures.

Terraform Actions are described as experimental. That is a reason to check Provider support before changing schemas. The skill also points to go build as a check for type errors.

What it helps with

  • add a Terraform action around a resource lifecycle event
  • prepare a Provider for its first Action
  • define action fields with correct schema types
  • report progress during a long-running operation
  • surface API failures through Provider diagnostics

Example prompts for the agent

  • Add a Terraform Action that runs after a resource is created.
  • Prepare this Provider for its first Action using ProviderWithActions and ActionData.
  • Review this Action schema for field types, ElementType, and Computed settings.

How to install provider-actions

1Skills CLI (Vercel)

npx skills add hashicorp/agent-skills --skill provider-actions -a claude-code

2Manually: put the files in place

~/.claude/skills/provider-actions/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/provider-actions/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about provider-actions

How do I install provider-actions in Claude Code?

Run npx skills add hashicorp/agent-skills --skill provider-actions -a claude-code, then run npx skills add hashicorp/agent-skills --skill provider-actions -a claude-code again. The skill file is placed at ~/.claude/skills/provider-actions/SKILL.md.

What does provider-actions do?

It guides Terraform Action implementation with the Plugin Framework for operations tied to create, update, and destroy lifecycle events. It covers Provider setup, schemas, invocation, progress messages, timeouts, and error diagnostics.

What is needed for the first Action in a Provider?

Implement ProviderWithActions with an Actions() method and set ActionData in Configure. Providers using configurable base types or shared schema attributes need matching Action variants.

Similar skills

All skills for DevOps and infrastructure →

From the same set20

refactor-module This skill turns a monolithic Terraform configuration into reusable modules with clear variables and outputs. Useful when one main.tf has grown too risky to touch. CX Codex +1 6,400installs terraform-stacks Guides AI coding assistants through HashiCorp Terraform Stacks syntax, component definitions, and multi-environment deployment configs. CX Codex +1 5,600installs terraform-search-import Discovers untracked cloud assets and sets up Terraform configuration for bulk state imports. Helpful during infrastructure migrations and audits. CX Codex +1 4,900installs provider-resources This skill guides Terraform resource and data source work with the Plugin Framework. Use it when adding resources, handling drift, or reviewing provider code. CX Codex +1 4,100installs new-terraform-provider A skill that walks the agent through bootstrapping a Terraform provider on the Plugin Framework, from directory layout to a passing build. CX Codex +1 3,900installs run-acceptance-tests Runs and investigates Terraform provider acceptance tests with the TestAcc prefix. Use it for missing environment variables, failed runs, or tests that pass when they should not. CX Codex +1 3,700installs provider-test-patterns A skill that guides acceptance testing for Terraform providers using terraform-plugin-testing and the Plugin Framework. CX Codex +1 3,300installs azure-verified-modules A skill that carries the Azure Verified Modules requirements, so your agent can write and review Terraform modules that pass AVM certification. CX Codex +1 3,300installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor