provider-framework-migration

provider-framework-migration is a skill for Claude Code from hashicorp/agent-skills. It costs 133 tokens per session (2,068 once invoked), scanned A, original, MPL-2.0.

A guide to moving Terraform provider resources and data sources from the older Plugin SDKv2 to the newer Plugin Framework. Resources are the things Terraform manages; data sources read information without managing it.

In plain words
What is it for?
Use it to set up a provider that runs both implementations, migrate one resource at a time, translate schemas, and check compatibility risks.
Why use it?
It supports gradual migration instead of requiring the whole provider to be rewritten at once. It also highlights behavior differences that could unexpectedly change existing users' configurations.

Skill for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin.

Part of the terraform plugin — 16 skills shipped together

Good fit Use it to set up a provider that runs both implementations, migrate one resource at a time, translate schemas, and check compatibility risks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hashicorp/agent-skills/provider-framework-migration
About the project

HashiCorp Agent Skills is a collection of reusable instructions and plugins that help coding agents work with Terraform and Packer. Developers use it to add HashiCorp product workflows to supported coding-agent tools, either individually or as product bundles.

hashicorp/agent-skills · 947 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add hashicorp/agent-skills --skill provider-framework-migration
Clone the repo
git clone --depth 1 https://github.com/hashicorp/agent-skills

Made for: Claude Code.

Or install terraform, the plugin that ships this one along with the rest of its 16 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for provider-framework-migration

README.md
[![agentmods](https://agentmods.dev/badge/skills/hashicorp/agent-skills/provider-framework-migration/github.svg)](https://agentmods.dev/skills/hashicorp/agent-skills/provider-framework-migration)
Your own site
<a href="https://agentmods.dev/skills/hashicorp/agent-skills/provider-framework-migration"><img src="https://agentmods.dev/badge/skills/hashicorp/agent-skills/provider-framework-migration/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for provider-framework-migration

Your own site · 80×15
<a href="https://agentmods.dev/skills/hashicorp/agent-skills/provider-framework-migration"><img src="https://agentmods.dev/badge/skills/hashicorp/agent-skills/provider-framework-migration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 133 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,068 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 10 Aug 2026
  • Snyk pass 10 Aug 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00133 $0.02068
Opus 5.5 $0.00053 $0.00827
Sonnet 5.5 $0.00027 $0.00414
Haiku 4.5 $0.00013 $0.00207

Measured 3mo ago against content hash 6f5d9f2f94c3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

provider-framework-migration scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/terraform/skills/provider-framework-migration/SKILL.md · 205 lines

How it starts

The opening of the file, as written. The whole thing — 205 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Migrating from Plugin SDKv2 to the Plugin Framework

The Plugin Framework is required for net-new resources and data sources; SDKv2 is maintenance-only. Migration is per-resource and incremental: a muxed provider serves SDKv2 and Framework implementations side by side, so you never need a big-bang rewrite. This skill covers the mux setup, the per-resource workflow, and the behavioral traps that turn a mechanical translation into a silent breaking change.

Reference (load when needed):

  • references/schema-mapping.md — the full SDKv2 → Framework translation table with code pairs

Official guide: Framework migration.

Decide Whether to Migrate at All

Migration has real risk and little user-visible payoff, so triage first:

  • Do not migrate complex or heavily-used resources without a driving need (a Framework-only feature, a bug that SDKv2 cannot fix). The two SDKs differ behaviorally — most importantly around null versus zero values — and those differences surface as breaking changes for existing users. This is the standing policy in large providers like terraform-provider-aws.
  • Simple resources migrate safely: flat schemas, no DiffSuppressFunc, no CustomizeDiff, no StateFunc, no complex nested blocks.
  • New capabilities never require migrating old code — mux and write the new resource in the Framework alongside the old ones.

To tell what mode a provider is in, check go.mod: terraform-plugin-mux present means it already serves both; only terraform-plugin-sdk/v2 means SDKv2-only (mux setup is your first step); only terraform-plugin-framework means the migration is done.

Step 1: Mux the Provider

Combine both plugin servers in main.go. Serving protocol version 6 requires upgrading the SDKv2 server with tf5to6server (protocol 6 needs Terraform CLI >= 1.0; if you must support 0.12+, mux at protocol 5 with tf6to5server/tf5muxserver instead — but the Framework provider then cannot use protocol-6-only features like nested attributes):

Read the full file on GitHub · 205 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 205 lines · 133 tokens per session scan A 6f5d9f2f94c3

Subscribe to this mod's changes

provider-framework-migration is a skill published in the GitHub repository hashicorp/agent-skills (947 stars, last pushed 28d ago), licensed MPL-2.0. It adds 133 tokens to every session and 2,068 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

provider-framework-migration compared with skills from other repositories

provider-framework-migration next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
provider-framework-migrationhashicorp/agent-skillsSkill94728d agoMPL-2.0A133Claude Code
gke-compute-classesgoogle/skillsSkill25kyesterdayApache-2.0A83Claude Code, Codex
cloud-operator-admin-setupgoogle/skillsSkill25kyesterdayApache-2.0A115Claude Code, Codex
gke-reliabilitygoogle/skillsSkill25kyesterdayApache-2.0A85Claude Code, Codex
gke-workload-securitygoogle/skillsSkill25kyesterdayApache-2.0A171Claude Code, Codex
nemo-automodel-launcher-configNVIDIA/skillsSkill4.3ktodayApache-2.0A30Claude Code
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.3kyesterdayMITA78Claude Code