npm-publish

npm-publish is a skill for Claude Code from kvdm-co-pilot/create-cmp. It costs 150 tokens per session (2,870 once invoked), scanned A, original, MIT.

A release skill for publishing the create-cmp command-line tool to npm, the package registry used by JavaScript and Node.js developers.

In plain words
What is it for?
It helps release new versions of create-cmp-cli so users can run the create-cmp command through npm or npx.
Why use it?
It handles the release process and checks npm authentication before publishing, reducing manual release steps and avoiding publishing under the wrong package name.

Skill for Claude Code

Written for Claude Code: Claude Code plugin machinery. Also seen: mentions Claude Code.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node scripts/fleet-check.mjs # no device attached: desktop rung (L1).

Part of the create-cmp plugin — 15 skills, 2 agents, 3 hooks, 1 MCP server shipped together

Good fit It helps release new versions of create-cmp-cli so users can run the create-cmp command through npm or npx.

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/kvdm-co-pilot/create-cmp
agentmods
npx agentmods add skills/kvdm-co-pilot/create-cmp/npm-publish

Made for: Claude Code.

Or install create-cmp, the plugin that ships this one along with the rest of its 15 skills, 2 agents, 3 hooks, 1 MCP server.

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/kvdm-co-pilot/create-cmp/npm-publish/github.svg)](https://agentmods.dev/skills/kvdm-co-pilot/create-cmp/npm-publish)
Your own site
<a href="https://agentmods.dev/skills/kvdm-co-pilot/create-cmp/npm-publish"><img src="https://agentmods.dev/badge/skills/kvdm-co-pilot/create-cmp/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/kvdm-co-pilot/create-cmp/npm-publish"><img src="https://agentmods.dev/badge/skills/kvdm-co-pilot/create-cmp/npm-publish.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 150 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,870 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.00150 $0.02870
Opus 5 $0.00075 $0.01435
Sonnet 5 $0.00030 $0.00574
Haiku 4.5 $0.00015 $0.00287

Measured today against content hash 7a6bb3f56fd8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 today.

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.

.claude/skills/npm-publish/SKILL.md · 242 lines

How it starts

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

npm-publish — release create-cmp to the npm registry

This repo publishes to npm as create-cmp-cli (not create-cmp — that name is an unrelated placeholder — and not create-cmp-app — that's a real, unrelated CMP generator). The installed command stays create-cmp regardless; package.json maps both create-cmp and create-cmp-cli as bin names so either invocation works.

Auth — token-first, login fallback

Publishing is unattended when a granular npm access token lives in Karel's ~/.npmrc. The token is user-managed infrastructure, exactly like his SSH key or gh auth: the agent USES the ambient auth, it never sees, handles, stores, or moves the token itself.

Check auth before anything else:

npm whoami
  • Prints a username → authed, proceed. Everything below runs without Karel in the loop.
  • Errors (ENEEDAUTH) → auth is missing/expired. STOP and tell Karel to refresh it (below). Do not attempt to work around it.

One-time token setup (Karel does this himself, not the agent):

  1. npmjs.com → avatar → Access TokensGenerate New TokenGranular Access Token
  2. Permissions: Read and write. Packages: only ours — every name under packages/*/package.json and packages/aliases/*/package.json (node scripts/ground-truth.mjs lists them; ten as of 2026-09-08, prooflane-harness and prooflane-receipts among them) — never "all packages".
  3. Enable Bypass two-factor authentication (this is what makes publish non-interactive).
  4. Pick an expiration; when it lapses, npm whoami starts failing and publish PUTs return E404 — that's the signal to regenerate.
  5. Add to ~/.npmrc by hand (or via a local installer that prompts with hidden input): //registry.npmjs.org/:_authToken=npm_XXXX

Hard rules for the agent:

  • Never ask for, read, echo, or write the token value. Never cat/grep the auth line of ~/.npmrc. npm whoami is the only auth probe you need.
  • Never create a repo-level .npmrc and never copy auth config into the project — a committed token is a leaked token.
  • If auth is dead, the fix is Karel regenerating the token or running npm login interactively. Both are his steps; hand off and wait.

Read the full file on GitHub · 242 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. today Changed · +15 lines 7a6bb3f56fd8
  2. 9d ago First seen · 227 lines · 150 tokens per session scan A 9581a0c9bb7c

Subscribe to this mod's changes

npm-publish is a skill published in the GitHub repository kvdm-co-pilot/create-cmp (0 stars, last pushed today), licensed MIT. It adds 150 tokens to every session and 2,870 once invoked, about $0.0007 per session on Opus 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

mobile-checkpoint

Checkpoint workflow for mobile development safety. Save/restore Android project state at critical points.

TalissonVitorino/kmp-ios-skills · 21 tokens

prepare-merge-request

Use when about to open or update a pull/merge request, push a feature branch, run git add/git commit on finished work, or state that the test suite passes — in a Kotlin Multiplatform or Android Gradle project. Three gates in order - prove the suites actually ran by counting JUnit XML instead of trusting BUILD…

TalissonVitorino/kmp-ios-skills · 101 tokens

release-kotlin-library

Use when preparing, publishing, or checking readiness for a new Kotlin library version in a repository using gradle-maven-publish-plugin, including release changelog reconciliation, API snapshots, and publication verification.

chrisbanes/skills · 45 tokens

compose-multiplatform

Use when building one shared Compose UI in Kotlin across Android, iOS, and desktop — commonMain @Composables, expect/actual, source-set placement, native interop, multiplatform ViewModel/navigation/Koin. NOT a single-platform native build (that is kotlin-android / swift-ios), and NOT Dart/Flutter cross-platform UI…

ericrisco/rsc-harness · 80 tokens

m3-expressive

Material 3 Expressive design patterns for Jetpack Compose - expressive theming, motion physics, shape morphing, typography emphasis, color emphasis, and all 28 expressive components.

TalissonVitorino/kmp-ios-skills · 41 tokens

liquid-glass

Apple Liquid Glass design patterns for SwiftUI iOS 26 - glass effects, morphing, containers, interactive glass, tinting, accessibility, and cross-platform glass design.

TalissonVitorino/kmp-ios-skills · 40 tokens