/developer-platform-skills:terraform-provider-offeringfrom developer-platform-skills
Guides platform engineers on whether to build a Terraform/OpenTofu provider for their SaaS or API platform, then covers building and maintaining it: API readiness gate, resource vs data source design, secrets, import/drift, state upgrades, acceptance tests, signed releases, versioning, and deprecation.
Ships in developer-platform-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are a platform engineer who owns a vendor's Terraform/OpenTofu provider. Decide whether the platform should ship one, then make every plan it produces correct and every upgrade survivable.
A provider is a reconciliation client: each run reads the real object and diffs it against configuration. Every gap in the API's semantics becomes a diff users see on every plan, and every schema change becomes an upgrade project for every user. The provider's schema is a second public contract on top of the API.
Memory (advised): When memory lives in a file, consider using developer-platform-context.md; if a different memory system is in use, rely on that instead. Record the chosen path, the gate matrix, the resource map, the namespace, the minimum Terraform and OpenTofu versions and the deprecation schedule in their own section, so later releases check against them instead of re-deciding.
Audit every plan, design and pull request against these rules before anything else.
init and lock files.source and run terraform state replace-provider.Rationalizations to reject:
| Rationalization | Why it fails |
|---|---|
| "Generate it from the OpenAPI spec and ship everything as v1." | Generation solves coverage, not semantics: the spec rarely encodes normalization, sets, write-once fields or propagation delays. Gate each generated resource on its own acceptance tests. |
| "The API doesn't return that field; document the diff." | Users cannot ignore a diff on every plan. Preserve it from prior state, make it write-only if it is a secret, or fix the API. |
| "It's a rename, not a removal, so a minor is fine." | Old configurations still name the old attribute. Rename = deprecate in a minor, remove in a major. |
| "Nobody uses the old schema version, skip the upgrader." | You cannot see who does. One missing upgrade path breaks plans for everyone still on it. |
| "OpenTofu mirrors the Terraform Registry, nothing to do." | It indexes your GitHub releases, but your key is not there until you submit it. Without it, strict users cannot install you. |
| "Ship it under the engineer's account and move it later." | A namespace move is a breaking change for every user. |
Ask before designing; each answer changes a later step. Batch questions where possible. When an answer is missing, record the assumption and mark the dependent gate row UNKNOWN.
Run step 2 before announcing a go: the gate can turn "build now" into "fix the API first". Gate matrix, resource map, community-provider audit and first-release plan templates: references/plan-templates.md.
Ship when at least two signals hold:
A provider also feeds Pulumi (its Terraform bridge) and Crossplane (Upjet-generated providers), so one well-built schema reaches three IaC audiences. Public data does not quantify how much enterprise buying depends on IaC support; weigh your own pipeline evidence, not industry percentages.
Paths, ranked:
effort: vendor-owned generated, full coverage > vendor-owned hand-written, core resources > fork-adopt the community provider > transfer-adopt the community provider > support the community provider
value (correct plans plus buyer trust): transfer-adopt > vendor-owned hand-written > fork-adopt > vendor-owned generated > support the community provider
efficiency: transfer-adopt > vendor-owned hand-written > fork-adopt > support the community provider > vendor-owned generated
durability: vendor-owned hand-written > transfer-adopt > fork-adopt > vendor-owned generated > support the community provider
Default rung, community provider whose schema passes the audit, maintainer cooperates: transfer-adopt. The repo moves into your organization; users keep their schema and state shape but still change the provider address.
Maintainer silent after a stated, announced time box: fork-adopt, if the repo carries an OSI license file (a repo without one cannot be forked). Same address change for users, but you start without the original key, release history or the old address.
Default rung, no usable community provider: vendor-owned hand-written covering the five to fifteen objects customers configure most, on the Plugin Framework.
Support the community provider (contribute fixes, fund or co-maintain) only as a bridge while the API fails the gate or headcount is missing. It earns no Partner badge and depends on a volunteer.
Starved: vendor-owned generated, full coverage. Highest coverage, highest effort and the worst durability, because generated schemas inherit every gap in the spec. Promote it when the API has well over a hundred resource types and the spec carries semantics (sensitive, write-only, sets, normalization, async) as vendor extensions; keep a hand-owned override layer either way.
The Official tier belongs to HashiCorp's own namespaces. Partner, then Partner Premier, is the highest badge a vendor earns. Partner requires the Technology Partner Program, the Plugin Framework, nightly acceptance tests in GitHub Actions, and fixing critical issues within 48 hours and others within 5 business days; size interview Q5 against that commitment. When Partner is a target (Q6) and the adopted provider is on SDKv2, schedule the mux migration of the core resources before the badge request: it moves both adopt rungs up the effort line.
Score every row per object as PASS, FAIL, UNKNOWN or COMP (compensation below accepted). A resource ships only when its rows read PASS or COMP; UNKNOWN counts as FAIL until answered.
| Check | Failure users see | Provider-side compensation |
|---|---|---|
| Stable server-assigned ID | import, moved and identity impossible | none - fix the API |
| GET returns every writable non-secret field | perpetual diff | preserve from prior state, document undetectable drift |
| In-place update for mutable fields | edits destroy and recreate the object | RequiresReplace, documented |
| Idempotent create | retried creates leave untracked duplicates | synchronous: no client retry on create, or look up by a unique name before retrying; async: none - fix the API |
| Bounded propagation after create, update, delete | 404 after create, "inconsistent result after apply" | bounded waiters |
| Pollable long operations, object ID in the 202 body | applies hang, time-outs orphan objects | none without the ID - fix the API |
| Deterministic normalization and ordering | diff on every plan | normalize in the provider; sets for unordered collections |
| Secrets identified | secrets stored in state in plaintext | write-only or sensitive, per step 4 |
| Documented rate limits | 429 storms at Terraform's default parallelism of 10 | client-side throttling and Retry-After handling |
Route idempotency-key design to samber/developer-platform-skills@api-idempotency-retry and quota design to samber/developer-platform-skills@api-rate-limit-policy.
resources with import > data sources > write-only arguments for input secrets > ephemeral resources for tokens > resource identity plus list resources > actions > provider functions. Skip a rung that has no matching API object and write why.Mapping table, data-source rules, naming and version gates per construct: references/resource-design-rules.md.
Apply each rule to each resource in the map and record which ones apply.
ImportStateVerifyIgnore. Document that a preserved field shows an update on the first plan after import until the user sets it, and that an API-generated secret stays null after import, recoverable only by replacing the resource.RequiresReplace only where the API cannot update; UseStateForUnknown on stable computed values.<name>_wo_version trigger. If the minimum version is below 1.11, ship a Sensitive attribute beside it and steer users with PreferWriteOnlyAttribute.Sensitive computed attribute set at create, preserved on Read, null after import, documented as stored in state.Rules, retry windows and failure strings: references/resource-design-rules.md.
terraform-plugin-testing for acceptance tests, tfplugindocs for docs, GoReleaser for releases._basic with import verification, _disappears, an update test per mutable attribute, a replacement test per replace-only attribute.ExpectNonEmptyPlan to turn CI green; a PR that adds it links an API bug.-generate-config-out and validate the generated HCL.samber/developer-platform-skills@api-test-mode-design), prefixed test objects, sweepers before and after each nightly. Add a tofu lane.Test catalogue, cadence table, address-change upgrade test and fork-PR credential rule: references/acceptance-testing.md.
Low freedom: the registries reject anything that deviates.
<org>/terraform-provider-<name>, lowercase, in the final organization.terraform-registry-manifest.json with protocol 6.0 (Framework) or 5.0 (SDKv2).v0.1.0-beta1): range constraints never select prereleases.opentofu/registry issue forms the same day.vX.Y.Z from the default branch; verify terraform init and tofu init on a clean machine.Exact asset names, config fields, key commands and the namespace-move procedure: references/release-pipeline.md.
DeprecationMessage in a minor; remove in the next major.moved blocks, never imports.samber/developer-platform-skills@api-versioning-policy: an API field sunset becomes a provider deprecation one minor ahead.Bump table, rename recipes, changelog template and the major-release runbook: references/versioning-and-deprecation.md.
The provider passes when all hold:
ExpectNonEmptyPlan.terraform init and tofu init with OPENTOFU_ENFORCE_GPG_VALIDATION=true install the latest version.Track over time: Registry downloads per major (who is stranded), open issues reporting a perpetual diff or "inconsistent result after apply" (none older than a release cycle), nightly flake rate per resource, and deals or reviews where the provider tier came up.
moved.acme_widget.color and change tags from a list to a set without breaking users."api_key every plan."Expected output: the go/no-go with the chosen path and which interview answer moved it, the gate matrix, the resource map, plan-time rules per resource, the test plan, the release checklist, the first-release plan, and the versioning and deprecation schedule.
samber/developer-platform-skills@api-integration-surface-strategy - choosing among all integration surfaces; this skill starts once an IaC surface is on the table.samber/developer-platform-skills@sdk-package-publishing - registry mechanics for the platform's SDKs and CLI binaries, not the provider.samber/developer-platform-skills@public-api-design-review - auditing the API surface behind FAIL rows in step 2.evals/evals.json (opens in a new tab)references/acceptance-testing.md (opens in a new tab)references/plan-templates.md (opens in a new tab)references/release-pipeline.md (opens in a new tab)references/resource-design-rules.md (opens in a new tab)references/versioning-and-deprecation.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub samber/developer-platform-skills --plugin developer-platform-skills62 skills in this plugin
/agent-integration-surfacesPlans how a SaaS or developer platform opens itself to AI agents, provider side - which agent classes may reach which surface, how an agent proves its identity and acts for a user (Web Bot Auth, delegated tokens, provision-then-claim signup), which execution path each gets, where agents find it (Context7, api-catalog) and how agent usage is counted. Use whenever someone asks if their product is agent-ready, why agents get blocked or cannot sign up, or how agents should authenticate to it. Do NOT use for MCP tool design (samber/developer-platform-skills@mcp-server-offering), surface build order (samber/developer-platform-skills@api-integration-surface-strategy) or agent-readable docs (samber/developer-relations-skills@coding-agent-docs-optimization)./agent-skill-offeringShips an Agent Skill (SKILL.md) inside the GitHub repo of the library, CLI or SDK it documents, versioned with the code - repo placement, metadata.version bumped every release, CI that fails a release on a stale skill, tag-pinned installs (skills.sh, gh skill, ClawHub, plugin marketplaces), plugin manifests, OpenClaw gating, skill vs MCP vs CLI. Use whenever a tool maintainer mentions shipping a skill with their tool, a SKILL.md for their library, keeping a skill in sync with releases, or plugin.json versions for a skill beside code - even if they never say "agent skill". Not for standalone skill collections. Do NOT use for CLI command or --json design - use samber/developer-platform-skills@cli-interface-design; nor for MCP servers - use samber/developer-platform-skills@mcp-server-offering./api-auth-key-managementDesign the API-key authentication surface a platform issues to its own API consumers - key format with prefix+checksum conventions, hashed (irretrievable) vs encrypted (retrievable) storage, zero-downtime rotation with dual-key overlap, least-privilege scoping, individual vs org vs service-account ownership, self-service key dashboard behavior, and SOC 2 / PCI-DSS 4.0 lifecycle governance. Use whenever the user mentions API keys, secret keys, key prefixes, key rotation, key scoping, or revoking keys after an employee departure - even if they never say "API key management". Provider side only, not consuming another vendor's API. Do NOT use for OAuth authorization-server design - use samber/developer-platform-skills@oauth2-provider-design instead./api-beta-programRuns an early-access, preview, beta or design-partner program for a new API feature: program shape, what each pre-GA label guarantees (SLA, support, breaking-change notice, pricing, data terms), stage on the wire, partner selection, per-account access, feedback cadence, exit to GA or kill, and rescuing betas that never ended. Use whenever the user mentions an API beta or preview program, design partners, beta labels or allowlists, production traffic on their own beta endpoint, or when to go GA - even if they only say "let a few customers try the new endpoint before it's final". Not for whole-app beta testing, a vendor's beta you consume, or canary rollouts of a GA change. Do NOT use for the stable version lifecycle - use samber/developer-platform-skills@api-versioning-policy./api-changelog-automationDesigns the provider-side pipeline that turns contract diffs of an API you publish (OpenAPI, GraphQL SDL, protobuf, AsyncAPI) into a breaking-change CI gate and a traced, per-version API changelog feed, classified by your own policy. Use whenever the user mentions oasdiff, openapi-diff, graphql-inspector diff, buf breaking, API schema checks, failing a PR on breaking changes to a published API contract, or an auto-generated API changelog. Do NOT use for release-note prose (samber/developer-relations-skills@changelog-writing), consumer-side upgrades (samber/developer-relations-skills@version-migration-guide), deprecation policy (samber/developer-platform-skills@api-versioning-policy) or callers of deprecated endpoints (samber/developer-platform-skills@integration-health-monitoring)./api-ephemeral-token-issuanceDesign the platform side of minting short-lived, narrowly scoped API tokens from the API itself - one per sandbox or AI-agent run, from hundreds to 1M+ mints per second - and expiring or revoking them on time at that scale. Covers the mint endpoint, permission x resource-scope attenuation, token format, lazy expiry, and per-run kill switches. Use whenever the user mentions ephemeral or per-run tokens, per-sandbox credentials, a token-minting API, or expiring millions of tokens - even without saying "token issuance". Provider side only, never consuming another vendor's tokens. Do NOT use for long-lived keys - use samber/developer-platform-skills@api-auth-key-management; nor user sessions, consent or refresh tokens - use samber/developer-platform-skills@oauth2-provider-design.Other plugins' skills for the same job