provider-framework-migration
Skill by hashicorp
Guides migration of Terraform provider resources and data sources from Plugin SDKv2 to the Plugin Framework. It is written for provider maintainers who need to run both plugins side by side in one muxed provider.
Install provider-framework-migration
Built from the published package, never by AI.
git clone --depth 1 https://github.com/hashicorp/agent-skills /tmp/agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agent-skills/plugins/terraform/skills/provider-framework-migration ~/.claude/skills/provider-framework-migrationRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install provider-framework-migration in Claude Code
git clone --depth 1 https://github.com/hashicorp/agent-skills /tmp/agent-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agent-skills/plugins/terraform/skills/provider-framework-migration ~/.gemini/antigravity-cli/skills/provider-framework-migrationAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install provider-framework-migration in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill, published by HashiCorp, gives step-by-step guidance for moving Terraform provider resources and data sources from Plugin SDKv2 to the Plugin Framework. It covers muxing both plugins in one provider server using terraform-plugin-mux and tf5to6server, a per-resource migration workflow, and a schema mapping reference for items such as ForceNew, ValidateFunc, DiffSuppressFunc, Default, Timeouts and blocks.
The skill also covers null-versus-zero-value behavior differences, state-compatibility checks, and when a resource should not be migrated at all. It is aimed at Terraform provider developers who convert SDKv2 code, set up a muxed server, or debug plan diffs and state errors that appear after a migration.
Written from the project's SKILL.md and checked against it.
What it can do
- Mux setupShows how to serve SDKv2 and Framework implementations side by side in one provider server.
- Per-resource workflowLists the steps to port a resource, move its registration, and verify the result.
- Schema mappingMaps SDKv2 schema features such as ForceNew and ValidateFunc to Framework equivalents.
- Null-vs-zero trapsExplains behavior differences between null and zero values that can cause breaking changes.
- Migration triageHelps decide whether a resource is simple enough to migrate or should stay in SDKv2.
- State verificationDescribes checks that an empty plan results from state written by the previous release.
What you need
- Terraform CLI 1.0 or later for protocol 6
- A Terraform provider codebase using Plugin SDKv2 or the Plugin Framework
Try asking
- Help me mux my SDKv2 provider with a new Framework resource
- Port this SDKv2 resource schema to the Plugin Framework
- Check whether this resource is safe to migrate from SDKv2
Good to know
- Protocol 6 requires Terraform CLI 1.0 or later
- Protocol 5 muxing cannot use protocol-6-only features such as nested attributes
- Complex or heavily used resources are advised against migrating without a driving need
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: plugins/terraform/skills/provider-framework-migration/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md9 KB -
references/schema-mapping.md6 KB
Alternatives to provider-framework-migration
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
provider-framework-migration: common questions
Do I have to rewrite the whole provider to use the Plugin Framework?
No. The skill says migration is per-resource and incremental, since a muxed provider serves SDKv2 and Framework code side by side.
Why do null and zero values matter during migration?
The source says SDKv2 and the Framework differ here, and these differences can surface as breaking changes for existing users.
Which tests should pass after a migration?
The skill says the pre-existing acceptance tests, including ImportStateVerify, must pass without modification after the migration.
How do I install provider-framework-migration?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is provider-framework-migration free?
The code is published under the MPL-2.0 licence. The service it connects to may have its own pricing.
Is provider-framework-migration safe to use?
It scores 82 of 100. Grades: maintenance B, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to provider-framework-migration?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
