npm-publish

npm-publish is a skill for Claude Code from LandonSchropp/agent-toolkit. It costs 53 tokens per session (792 once invoked), scanned A, original, MIT.

A release workflow for publishing a new version of an npm, pnpm, Yarn, or Bun package to its package registry. It covers version numbering, tags, authentication, and one-time passwords.

In plain words
What is it for?
Use it when bumping a package version, tagging a release, pushing changes, authenticating, or publishing to a registry.
Why use it?
It brings the release decisions and registry steps into one process. This helps avoid mistakes when choosing a version, setting access, or publishing a package.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code.

Part of the ls-typescript plugin — 7 skills, 1 command shipped together

Good fit Use it when bumping a package version, tagging a release, pushing changes, authenticating, or publishing to a registry.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/landonschropp/agent-toolkit/npm-publish
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 LandonSchropp/agent-toolkit --skill npm-publish
Clone the repo
git clone --depth 1 https://github.com/LandonSchropp/agent-toolkit

Made for: Claude Code.

Or install ls-typescript, the plugin that ships this one along with the rest of its 7 skills, 1 command.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/landonschropp/agent-toolkit/npm-publish"><img src="https://agentmods.dev/badge/skills/landonschropp/agent-toolkit/npm-publish.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 792 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.00053 $0.00792
Opus 5.5 $0.00021 $0.00317
Sonnet 5.5 $0.00011 $0.00158
Haiku 4.5 $0.00005 $0.00079

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

Security

Grade A, and why

npm-publish 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 11d 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/ls-typescript/skills/npm-publish/SKILL.md · 41 lines

How it starts

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

Pre-flight checks

Do these before bumping the version — fail before creating a commit and tag, not after.

  1. Authenticated. Run npm whoami. A 401 means you're not logged in, so stop and resolve it before anything else. npm login is interactive (browser-based), so you cannot run it for the user — ask them to (in Claude Code, ! npm login), then re-check npm whoami. Don't bump or commit until this passes.
  2. Clean working tree. Run git status. Commit or stash changes first.
  3. Tests and lint pass. Run the project's test and lint scripts. Publish only when both pass.
  4. Right branch, up to date. Releases normally happen from main.

Package manager

Detect from the lockfile (first match wins) and use that row's commands:

Lockfile Bump Publish
yarn.lock yarn version --<bump> yarn publish
pnpm-lock.yaml pnpm version <bump> pnpm publish
bun.lock / bunfig.toml npm version <bump> bun publish
package-lock.json (or none) npm version <bump> npm publish

Both steps only touch package.json and the registry, so npm version / npm publish are safe fallbacks when a manager's syntax differs (e.g. Yarn Berry publishes with yarn npm publish).

Bump, push, and publish

  1. Bump. Pick the level — major (breaking), minor (new backward-compatible feature), or patch (fix/internal only); ask if unsure. Run the bump command for your manager. It edits package.json, commits, and creates a v<version> tag.
  2. Push the commit and tag: git push --follow-tags. Without --follow-tags, the tag stays on your machine.
  3. Publish with your manager's command plus --access public, which scoped packages (@scope/name) need: without it npm publishes privately and rejects a free account.
  4. Verify: npm view <package-name> version.

Read the full file on GitHub · 41 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. 11d ago Changed dd9e1de630ab
  2. 3mo ago First seen · 41 lines · 53 tokens per session scan A ef49fb953477

Subscribe to this mod's changes

npm-publish is a skill published in the GitHub repository LandonSchropp/agent-toolkit (3 stars, last pushed today), licensed MIT. It adds 53 tokens to every session and 792 once invoked, about $0.0002 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

npm-publish compared with skills from other repositories

npm-publish next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
npm-publishLandonSchropp/agent-toolkitSkill3todayMITA53Claude Code
zb-release-pipelineAdamBien/airailsSkill76yesterdayMITA148Claude Code, Codex
apply-semantic-versioningpjt222/agent-almanacSkill46yesterdayMITA94Claude Code
create-github-releasepjt222/agent-almanacSkill46yesterdayMITA73Claude Code
capgo-release-managementCap-go/capgo-skillsSkill7919d agoMITA162Claude Code
npm-publishmetarhia/metaskillsSkill611mo agoMITA59Claude Code
release-notesjcottam/agent-resourcesSkill2111d agoMITA87Claude Code