/developer-platform-skills:sdk-package-publishingfrom developer-platform-skills
Plans secure SDK and CLI publishing across major package registries including npm, PyPI, Maven Central, NuGet, Go, crates.io, and more. Covers trusted publishing (OIDC), CI automation, provenance, and dependency-confusion defense.
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 release engineer who owns how a company's SDKs and tools reach public registries and how its private packages reach its own builds. Produce a publishing plan per registry, then the exact pipeline and client configuration that implement it.
Registries changed their credential rules fast between 2025 and 2026. Trust the registry reference files over memory for every version number, deadline and supported CI provider, and re-check a registry's changelog whenever a dated deadline in a reference sits within a month.
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 registries, CI provider, credential state and the approved rollback primitives in their own section.
These guard credentials and irreversible operations. Apply them before any other step.
${NPM_TOKEN}, %CORP_FEED_TOKEN%) and name the secret-store entry instead. If the user pastes a secret, tell them to revoke it.| Rationalization | Why it is wrong |
|---|---|
"Just add an NPM_TOKEN secret, it is quicker" | Classic npm tokens no longer exist, granular write tokens expire within 90 days, and stolen tokens drove the Shai-Hulud worms. Trusted publishing takes minutes. |
| "Unpublish the bad version and re-release it" | Public registries never let a published version be replaced, and consumers have already cached it. Roll forward, then soft-remove. |
"Add the internal index with --extra-index-url" | pip then picks the highest version across indexes, so anyone can outbid the private name on public PyPI. |
| "Provenance is green, so the package is safe" | Provenance proves which workflow built it. Ultralytics shipped malware with valid provenance. |
"Download the CLI binary in postinstall" | npm 12 skips dependency install scripts the consumer has not approved. Per-platform packages need no script. |
| "Yank the bad gem, like a PyPI yank" | A RubyGems yank deletes the file, and every lockfile pinning it stops installing. Yank only malware or leaked secrets. |
Load the files in "Load" for each ecosystem the user ships. Columns after it summarize what the reference details.
| Ecosystem | Load | OIDC from | First release | Rollback primitive | Rehearse on |
|---|---|---|---|---|---|
| JavaScript, TypeScript | npm.md | GitHub hosted, GitLab.com, CircleCI | session or token via npm stage publish | dist-tag back + deprecate | scratch scoped package |
| React Native library | react-native.md + npm.md; + swift-cocoapods.md, maven-central.md and kotlin-gradle.md when wrapping a native SDK | as npm | as npm | as npm | scratch scoped package |
| Python | pypi.md | GitHub, GitLab, Google Cloud, ActiveState, org custom issuers | pending publisher | yank | TestPyPI |
| Java (Maven) | maven-central.md | none | Portal token | none, release a fix | validate, then drop |
| Kotlin, KMP, Android, Java (Gradle), Gradle plugins | kotlin-gradle.md + maven-central.md; + swift-cocoapods.md for KMP XCFrameworks | none | Portal token; Plugin Portal human review | none, release a fix | validate, then drop |
| Scala (sbt) | scala-sbt.md + maven-central.md | none | Portal token | none, release a fix | sonaUpload, then drop |
| C#, F#, .NET | nuget.md | GitHub, GitLab | OIDC with "new packages" scope | unlist + deprecate | NuGet test gallery |
| Go | go-modules.md | no upload step | push a tag | retract in a newer tag | scratch module |
| Rust | crates-io.md | GitHub, GitLab.com | manual with token | yank | alternate registry |
| Dart, Flutter | pub-dev.md; + swift-cocoapods.md for plugin native dependencies | GitHub (tag trigger only), Google Cloud | manual dart pub publish | retract within 7 days, then a fix | --dry-run and a private pub repository |
| Ruby | rubygems.md | GitHub | pending trusted publisher | release a fix; yank deletes | private gem server |
| PHP | packagist.md | no upload step | register the repository, push a tag | new tag + advisory | private Composer repository |
| Elixir, Erlang | hex.md | none released yet | API key | --revert within 1 h, then retire | Hex organization or self-hosted repository |
| Swift, iOS, macOS | swift-cocoapods.md | no upload step (SwiftPM) | push a tag | new tag; pods deprecate before 2026-11-01 only | scratch repository, private spec repo |
| Container images | docker-hub.md | GitHub, paid or DSOS orgs only | access token | retag floating tags to the good digest | private repository |
| Private feed, any ecosystem | artifactory.md + the ecosystem file | GitHub via the feed's OIDC integration | deploy to the local repository | new version | dev local repository |
Skip any question the request already answers. Confirm inferred answers in one message, then ask the rest one per message. When no user can answer, state every assumption at the top of the deliverable and produce all sections.
Answers 7-9 re-rank the menus below. When answer 7 names an incident or a deadline under two weeks, run the rollback runbook or that registry's credential migration first and batch the remaining approvals.
curl | sh installer only as a fallback. Go binaries use GoReleaser while the module stays a tag.samber/developer-relations-skills@oss-release-policy when that collection is installed.Present the plan step by step and get approval before writing pipeline files. When no user can answer, or the request asks for files outright, write them and mark each as a draft pending that approval.
Rank by value per unit of effort; apply rungs top-down per registry.
efficiency: trusted publishing bound to a protected environment, then delete residual tokens > hardened publish job > human approval gate > provenance and signing
value (incidents prevented): trusted publishing + token deletion > hardened publish job > human approval gate > provenance and signing
effort (setup plus standing cost per release): human approval gate > trusted publishing + token deletion > hardened publish job > provenance and signing
durability: trusted publishing > human approval gate > provenance and signing > any static token. Static tokens now expire within 30-90 days on npm and NuGet, so every token-based pipeline carries forced rework.
Default rung: trusted publishing bound to a protected environment, in this order: configure the trusted publisher, validate it with one real release, switch the package to refuse tokens where the registry allows, then revoke every old token. A token left alive keeps the old attack path open; it was the second Ultralytics vector.
Harden the publish job in the same change: SHA-pin every third-party action, default permissions to none, no restored caches in build or publish jobs, no pull_request_target or workflow_run triggers. Cache poisoning was the first Ultralytics vector.
Move up to the approval gate for SDKs with paying customers or many dependents, or after an incident: OIDC alone lets malware inside the release workflow publish. Use npm staged publishing; elsewhere, required reviewers on the publish environment. Make a team the reviewer, or list at least two people besides whoever cuts releases (any one approves), and block self-review, so a holiday never stalls a security fix.
Starved rung: provenance and signing. It prevents nothing by itself and loses every efficiency round. Promote it when enterprise buyers or procurement ask, for binaries users download directly, or for container images consumers verify at admission. Trusted publishing emits it for free on some registries; each reference's CI auto-publishing section says which.
Where no OIDC exists (Maven Central, the Gradle Plugin Portal, Hex, CocoaPods trunk, Docker Hub personal namespaces, self-hosted runners on npm, Azure Pipelines on NuGet, any CI a registry does not support): use the narrowest token the registry offers, scoped to the packages, with the shortest workable expiry, owned by a bot account, stored in the protected environment, rotated automatically.
Where the tag is the release (Go, SwiftPM, Packagist): the tag ruleset is the publish credential. Restrict who may create release tags as tightly as a token.
This ranking is a default. A hard deadline from an expiring key or a read-only cutoff promotes that registry's migration first, even if another registry carries more risk.
Rehearse steps 1-2 on the "Rehearse on" target in the registry index, never on the production package: every public rehearsal burns a version forever.
Rank consumption controls by efficiency:
one internal endpoint that blocks internal names upstream + explicit client mapping > client mapping alone > claiming internal names publicly
Default: route every install through one internal endpoint (a virtual repository, single pip index, Maven mirrorOf *, npm registry proxy) that refuses to fetch internal names or prefixes from public upstreams (exclude patterns, routing rules, origin controls, disabled forwarding). A merged endpoint without that block is itself a confusion vector: "latest" lookups merge every upstream and can serve a higher public version. Then map internal names explicitly on the client (npm scope, uv index pinning, NuGet packageSourceMapping, Cargo registry =, GOPRIVATE, Gemfile source blocks, Composer only, pub hosted:, Hex repo:).
Client mapping alone fits teams without control of the feed configuration. Map every internal name, transitive ones included. pip has no per-package mapping: pip users need the blocking endpoint, or uv or Poetry explicit sources.
Claim names publicly only where the registry allows it without squatting: npm scope, NuGet prefix, Maven namespace. PyPI and crates.io ban placeholder projects.
Give CI read-only feed credentials, separate from the publish identity, injected as environment variables into committed config files that hold no secret.
Add a release-age cooldown for new public versions (Dependabot or Renovate cooldown, npm min-release-age, pnpm minimumReleaseAge, uv exclude-newer = "7 days", Bundler cooldown) where the team tolerates a few days' lag.
Deliver one publishing plan with these sections, then the files that implement it:
Iterate until every gate passes:
samber/developer-platform-skills@sdk-portfolio-strategy - decides which SDKs exist and their support tiers; this skill ships them.samber/developer-platform-skills@api-versioning-policy - API versioning, which SDK SemVer stays decoupled from.samber/developer-platform-skills@cli-interface-design - CLI command, flag, output and exit-code design; this skill ships the built binary.samber/developer-platform-skills@agent-skill-offering - an agent skill bundled in the package (skills/ in the published files) and versioned with it.samber/developer-relations-skills@oss-distribution-strategy - which channels and directories to be present in; this skill covers the registry mechanics underneath.samber/developer-relations-skills@readme-optimization - the README that registries render on the package page.samber/developer-platform-skills@huggingface-playbook - model weights, datasets and demo Spaces on the Hugging Face Hub, which this skill's registries do not cover.evals/evals.json (opens in a new tab)references/artifactory.md (opens in a new tab)references/crates-io.md (opens in a new tab)references/docker-hub.md (opens in a new tab)references/go-modules.md (opens in a new tab)references/hex.md (opens in a new tab)references/kotlin-gradle.md (opens in a new tab)references/maven-central.md (opens in a new tab)references/npm.md (opens in a new tab)references/nuget.md (opens in a new tab)references/packagist.md (opens in a new tab)references/pub-dev.md (opens in a new tab)references/pypi.md (opens in a new tab)references/react-native.md (opens in a new tab)references/release-workflow.md (opens in a new tab)references/rubygems.md (opens in a new tab)references/scala-sbt.md (opens in a new tab)references/swift-cocoapods.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub samber/developer-platform-skills --plugin developer-platform-skills61 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.