multipublish

multipublish is a skill for Claude Code, Codex from stephansama/packages. It costs 83 tokens per session (1,243 once invoked), scanned A, original, MIT.

A publishing tool for releasing packages from a monorepo to npm and JSR at the same time. npm and JSR are package registries where developers distribute reusable code, and Changesets is a release-management tool.

In plain words
What is it for?
Use it in release scripts or CI to publish selected package versions to configured registries using pnpm, bun, npm, yarn, or Deno where supported.
Why use it?
It avoids running separate publishing workflows for each registry and can use package release information produced by Changesets.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it in release scripts or CI to publish selected package versions to configured registries using pnpm, bun, npm, yarn, or Deno where supported.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/stephansama/packages/multipublish
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 stephansama/packages --skill multipublish
Clone the repo
git clone --depth 1 https://github.com/stephansama/packages

Made for: Claude Code, Codex.

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 multipublish

README.md
[![agentmods](https://agentmods.dev/badge/skills/stephansama/packages/multipublish/github.svg)](https://agentmods.dev/skills/stephansama/packages/multipublish)
Your own site
<a href="https://agentmods.dev/skills/stephansama/packages/multipublish"><img src="https://agentmods.dev/badge/skills/stephansama/packages/multipublish/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 multipublish

Your own site · 80×15
<a href="https://agentmods.dev/skills/stephansama/packages/multipublish"><img src="https://agentmods.dev/badge/skills/stephansama/packages/multipublish.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,243 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.
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.00083 $0.01243
Opus 5.5 $0.00033 $0.00497
Sonnet 5.5 $0.00017 $0.00249
Haiku 4.5 $0.00008 $0.00124

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

Security

Grade A, and why

multipublish 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 1mo 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.

core/multipublish/skills/multipublish/SKILL.md · 185 lines

How it starts

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

multipublish

Publishes monorepo packages to multiple registries in a single step. Reads released package info from changesets and loops over configured platforms.

Setup

{
  "$schema": "./node_modules/@stephansama/multipublish/config/schema.json",
  "platforms": [
    ["jsr", { "experimentalGenerateJSR": true }],
    ["npm", { "tokenEnvironmentKey": "NODE_AUTH_TOKEN" }]
  ]
}

Place as .multipublishrc.json, .config/multipublishrc.json, or a multipublish key in package.json. See cosmiconfig docs for all supported filenames.

Core Patterns

Changeset-based release (GitHub Actions)

- name: Create Changeset Release
  uses: changesets/action@v1
  id: changesets
  with:
    publish: pnpm run publish

- name: Publish to other registries
  if: steps.changesets.outputs.published == 'true'
  run: echo "${{ steps.changesets.outputs.publishedPackages }}" | multipublish

changeset publish output is piped into multipublish via stdin. The JSON array of published packages tells multipublish which packages to process and at which versions.

Use --useChangesetStatus instead of stdin

{
  "scripts": {
    "preversion": "multipublish --useChangesetStatus --versionJsr",
    "version": "changeset version"
  }
}

--useChangesetStatus reads which packages have pending (unreleased) changesets directly from the changeset state — without piping from changeset publish. Use it in preversion to update JSR config versions before the changeset version bump runs.

GitHub npm registry with scoped token

{
  "platforms": [
    [
      "npm",
      {
        "registry": "https://npm.pkg.github.com",
        "tokenEnvironmentKey": "GITHUB_TOKEN"
      }
    ]
  ]
}

Set packages: write permission in the GitHub Actions workflow.

Dry run

multipublish --dry

Runs the full flow but passes --dry-run to the underlying publish commands. Use to verify config without publishing.

Common Mistakes

CRITICAL No jsr.json/deno.json and experimentalGenerateJSR not enabled

Read the full file on GitHub · 185 lines

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. 1mo ago First seen · 185 lines · 83 tokens per session scan A ba2938318d80

Subscribe to this mod's changes

multipublish is a skill published in the GitHub repository stephansama/packages (5 stars, last pushed yesterday), licensed MIT. It adds 83 tokens to every session and 1,243 once invoked, about $0.0003 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-31.

Related

Other skills, from other repositories

draft-release-notes

Author the committed release-notes file for a Prisma 8 release (stable or 8.0.0-rc.N) by enumerating the merged PRs since the previous release v tag (stable or -rc.N), resolving opaque TML-NNNN: titles via Linear context (never copied verbatim), triaging public-worthiness, and writing categorized notes — breaking…

prisma/orm · 174 tokens

publish-npm-version

Cuts the next release of Prisma 8: bumps the root package.json version (on the v8 RC line: 8.0.0-rc.N → rc.N+1), propagates it to every workspace package, and opens a PR titled "chore(release): bump to ". When the maintainer merges the PR, the Publish to npm workflow runs automatically and ships the new version to npm…

prisma/orm · 182 tokens

playground-snapshot-release

Publish a Playground UI snapshot (@mastra/playground-ui and its workspace dependencies) from main or the current branch via the playground-snapshot mode of the Publish to npm workflow, wait for it to finish, then open a PR on mastra-ai/platform bumping the frontend to the published snapshot version. Use when asked to…

mastra-ai/mastra · 96 tokens

pr-snapshot-release

Guide a Mastra maintainer through publishing an npm snapshot from a pull request or a specified repository branch. Use when asked to release, publish, or create a PR snapshot, branch snapshot, canary package build, or branch-specific npm tag. Performs source and branch preflight checks, requires confirmation before…

mastra-ai/mastra · 88 tokens

plugin-publish

A release guide for publishing Zhin.js plugins to npm, the JavaScript package registry, and to the Zhin plugin marketplace. It covers package metadata, versioning, release checks, and submission requirements.

zhinjs/zhin · 58 tokens

release-aur

Use when creating, updating, reviewing, or publishing Arch User Repository (AUR) packages. Runs /release-aur plan first, reviews PKGBUILD/.SRCINFO/build/namcap evidence, and only recommends /release-aur publish after a GO decision.

Firstp1ck/pi-coding-agent-forge · 57 tokens