specd: Skill for Claude Code

.claude/skills/publish-npm/SKILL.md

publish-npm is a skill for Claude Code from jnerytech/specd. It costs 110 tokens per session (4,290 once invoked), scanned A, original, MIT.

A controlled procedure for publishing the @jnerytech/specd package to npm, the public registry used to distribute JavaScript packages.

In plain words
What is it for?
Running checks and a dry run, requesting explicit confirmation, then publishing a release and verifying it in npm.
Why use it?
It reduces the risk of accidentally publishing the wrong version, exposing a token, or releasing code without a clean, passing project state.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

This is jnerytech/specd's own configuration. It tells Claude Code how to work on specd itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything specd configures →

Reuse

Borrowing it

Nothing to install: this file belongs to jnerytech/specd. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/jnerytech/specd/main/.claude/skills/publish-npm/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/jnerytech/specd

Made for: Claude Code.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jnerytech/specd/publish-npm"><img src="https://agentmods.dev/badge/skills/jnerytech/specd/publish-npm.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 110 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,290 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00110 $0.04290
Opus 5.5 $0.00044 $0.01716
Sonnet 5.5 $0.00022 $0.00858
Haiku 4.5 $0.00011 $0.00429

Measured 12d ago against content hash d4e240a77c00, 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 scanned grade A with 1 finding 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 12d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s https://registry.npmjs.org/<pacote com / escapado como %2F> \
.claude/skills/publish-npm/SKILL.md · 305 lines

How it starts

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

publish-npm

Publica specd no registry npm. O procedimento existe porque publicação é a operação mais irreversível que este repositório executa: nome mais versão publicados nunca voltam a ficar livres. npm unpublish só vale nas primeiras 72 horas, e mesmo assim queima o par para sempre.

Daí a skill seguir costly-ops-are-not-silent e absence-is-not-compliance do CLAUDE.md ao pé da letra: para e nomeia a escolha antes de pagar o custo, e trata a resposta de sucesso do npm como promessa, não como prova.

Regras que não se negociam

A credencial nunca aparece. O token mora em NODE_AUTH_TOKEN no .env, que é gitignored. Nunca cat .env, nunca echo do valor, nunca token em argv (fica visível em ps para qualquer processo da máquina). Ele entra por um .npmrc temporário fora do repositório, apagado por trap mesmo se o comando falhar.

As outras quatro são pré-condições, cada uma detalhada no passo que a executa:

  • Sem confirmação nesta conversa, não publica — versão e dist-tag exatas, depois do dry-run (passo 5). Autorização de sessão anterior não vale.
  • Sem gate verde e árvore limpa, não publica (passos 2 e 6).
  • De commit que só existe nesta máquina, não publica (passo 6).
  • Sucesso do npm não é prova — quem fecha é a releitura (passo 8).

Procedimento

1. Estado antes de qualquer coisa

git status --porcelain && git rev-parse --short HEAD
node -p "const p=require('./package.json'); p.name+'@'+p.version"
npm view "$(node -p "require('./package.json').name")" versions --json 2>&1
npm view "$(node -p "const p=require('./package.json'); p.name+'@'+p.version")" version 2>&1

Árvore suja → pare e mostre o que está pendente. A lista de versões sai inteira, sem tail: o começo da série é onde mora 0.0.0, a versão quebrada que os passos 4 e 8 usam como referência.

Terceira linha, o nome. E404 significa que este nome nunca foi publicado — normal numa primeira publicação, alarme em qualquer outra. Nome diferente é pacote diferente, não versão nova do mesmo: houve um intervalo em que @jnerytech/specd estava no ar e o package.json dizia "name": "specd", e publicar dali teria reservado um segundo nome, com quem instalou o primeiro continuando nele. Se divergirem, pare e traga a escolha ao autor — renomear pacote publicado quebra quem instalou. (REQ-CLI-007 amarra o nome citado na documentação ao manifesto; a checagem fica porque é barata e falha em silêncio.)

Read the full file on GitHub · 305 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. 12d ago First seen · 305 lines · 110 tokens per session scan A d4e240a77c00

Subscribe to this mod's changes

publish-npm is a skill published in the GitHub repository jnerytech/specd (0 stars, last pushed 2mo ago), licensed MIT. It adds 110 tokens to every session and 4,290 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-02.

Related

Other skills, from other repositories