provider-framework-migration — Claude Code skill for Terraform
Guides per-resource migrations from Terraform Plugin SDKv2 to the Plugin Framework. Covers mux setup, schema translation, and state compatibility checks.
npx skills add hashicorp/agent-skills --skill provider-framework-migration -a claude-codeWhat provider-framework-migration does
This skill walks through migrating Terraform resources and data sources one at a time while a mux serves SDKv2 and Framework implementations side by side. It covers setting up terraform-plugin-mux with tf5to6server, translating schema elements, and checking resource behavior before and after the port.
It calls out null-versus-zero differences, blocks, the id attribute, and reading state written by SDKv2. Before changing a resource, the workflow has you prepare acceptance tests and record how optional attributes behave. The protocol 6 setup requires Terraform CLI 1.0 or later; the documented protocol 5 route is for Terraform 0.12+ support. That choice matters because nested attributes require protocol 6.
What it helps with
- Configure a mux for SDKv2 and Framework implementations
- Port one resource's schema and CRUD operations
- Map
ForceNew,Default, and blocks to Framework schema - Track plan changes caused by null and empty values
- Verify state compatibility after a resource migration
Example prompts for the agent
- Set up a mux server for a provider using SDKv2 and the Plugin Framework.
- Help port this resource schema to the Plugin Framework while keeping its blocks and
idattribute. - Investigate the plan diff after migration, focusing on null handling and state.
How to install provider-framework-migration
1Skills CLI (Vercel)
npx skills add hashicorp/agent-skills --skill provider-framework-migration -a claude-code2Manually: put the files in place
~/.claude/skills/provider-framework-migration/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/provider-framework-migration/
1Skills CLI (Vercel)
npx skills add hashicorp/agent-skills --skill provider-framework-migration -a codex2Manually: put the files in place
.agents/skills/provider-framework-migration/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add hashicorp/agent-skills --skill provider-framework-migration -a cursor2Manually: put the files in place
.cursor/skills/provider-framework-migration/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install hashicorp/agent-skills provider-framework-migration2Manually: put the files in place
.github/skills/provider-framework-migration/SKILL.md1Skills CLI (Vercel)
npx skills add hashicorp/agent-skills --skill provider-framework-migration -a gemini-cli2Platform CLI
gemini skills install https://github.com/hashicorp/agent-skills --path plugins/terraform/skills/provider-framework-migrationManually: put the files in place
.devin/skills/provider-framework-migration/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add hashicorp/agent-skills --skill provider-framework-migration -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about provider-framework-migration
How do I install provider-framework-migration in Claude Code?
Run npx skills add hashicorp/agent-skills --skill provider-framework-migration -a claude-code. The skill file is placed at ~/.claude/skills/provider-framework-migration/SKILL.md.
What does provider-framework-migration do?
It guides Terraform resource and data source migrations from SDKv2 to the Plugin Framework, including mux setup and checks for schema and state compatibility.
What is required to serve a provider with protocol 6?
The described protocol 6 setup requires Terraform CLI 1.0 or later. For Terraform 0.12+ support, the skill describes a protocol 5 mux, which cannot use Framework features that require protocol 6.