publish-npm-version

publish-npm-version is a skill for Claude Code, Codex from prisma/prisma-next. It costs 117 tokens per session (1,910 once invoked), scanned A, original, Apache-2.0.

A release workflow for Prisma Next that updates the version in the root package file and all workspace packages, then opens a release pull request. npm is the JavaScript package registry where the project publishes its packages.

In plain words
What is it for?
Use it when a Prisma Next maintainer is cutting a minor npm release and has permission to push branches and open pull requests.
Why use it?
It keeps package versions aligned and prepares the review step that leads to publishing the next minor release.

Skill for Claude CodeCodex ✓ vendor

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is git worktree add -b "release/$NEXT" "../release-$NEXT" origin/main.

Good fit Use it when a Prisma Next maintainer is cutting a minor npm release and has permission to push branches and open pull requests.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/prisma/prisma-next
agentmods
npx agentmods add skills/prisma/prisma-next/publish-npm-version

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 publish-npm-version

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/prisma/prisma-next/publish-npm-version"><img src="https://agentmods.dev/badge/skills/prisma/prisma-next/publish-npm-version.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,910 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.00117 $0.01910
Opus 5.5 $0.00047 $0.00764
Sonnet 5.5 $0.00023 $0.00382
Haiku 4.5 $0.00012 $0.00191

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

Security

Grade A, and why

publish-npm-version 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 2mo 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.

skills-contrib/publish-npm-version/SKILL.md · 118 lines

How it starts

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

Publish next npm version

Audience

Maintainers of Prisma Next who have permission to push branches and open PRs in the repository. The skill is invoked locally by the maintainer; it does not run as a GitHub Action. Running locally is what makes the resulting PR trigger CI normally — PRs opened by a workflow's GITHUB_TOKEN do not, which defeats the point of cutting a reviewable release.

Background reading

Read docs/oss/versioning.md before running this skill. It covers:

  • The source-of-truth model (root package.json version).
  • The lockstep guarantee (every workspace package matches the root).
  • The dist-tag convention (latest / dev / beta).
  • The full release procedure (this skill is step 2 of 3; merging the PR is the publish trigger — there is no separate dispatch step).
  • The emergency-patch path (this skill does not handle patches).

This SKILL.md covers only the mechanics of step 2 — opening the bump PR.

Pre-flight

The skill does not require the maintainer to be on main or to have a clean working tree — it does all the work in a fresh worktree off origin/main, so the maintainer's current worktree (typically a feature branch in worktrees/<feature>/) is left undisturbed.

Before invoking this skill, confirm:

  1. The maintainer can fetch from origin (git fetch origin main succeeds).
  2. You are ready to draft the release notes for this bump. The draft-release-notes skill (invoked in step 7 below) enumerates the merged PRs since the previous stable tag and surfaces the release-notes-worthy changes — including any breaking changes — so this no longer rests on the maintainer's unaided recollection. If you already know of an in-flight breaking change that must be called out, note it so the authoring step gives it prominence.

If either precondition is unmet, stop and surface the issue. Do not try to auto-resolve.

Procedure

  1. Fetch and determine the target version. Run git fetch origin main, then read the current root version from origin/main and compute the next minor:

Read the full file on GitHub · 118 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. 2mo ago First seen · 118 lines · 117 tokens per session scan A baccc2115ae6

Subscribe to this mod's changes

publish-npm-version is a skill published in the GitHub repository prisma/prisma-next (407 stars, last pushed 5d ago), licensed Apache-2.0. It adds 117 tokens to every session and 1,910 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-09-03.

Related

publish-npm-version compared with skills from other repositories

publish-npm-version next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
publish-npm-versionprisma/prisma-nextSkill4075d agoApache-2.0A117Claude Code, Codex
releasethedotmack/claude-memSkill121ktodayApache-2.0A13Claude Code
release-notesphuryn/pm-skillsSkill28k21d agoMITA57Claude Code
multi-agent-release-managerchromium/chromiumSkill25ktodayBSD-3-ClauseA27Claude Code, Codex
pack-submitaeonfun/aeonSkill800yesterdayMITA27Claude Code, Codex
updater_guidesiddsachar/row-botSkill1.7kyesterdayApache-2.0A22Claude Code, Codex
prepareapache/magpieSkill160todayApache-2.0A86Claude Code