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.
npx skills add xonovex/platform --skill publishing-npm-packagesgit clone --depth 1 https://github.com/xonovex/platformWrote 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.
[](https://agentmods.dev/skills/xonovex/platform/publishing-npm-packages)<a href="https://agentmods.dev/skills/xonovex/platform/publishing-npm-packages"><img src="https://agentmods.dev/badge/skills/xonovex/platform/publishing-npm-packages/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.
<a href="https://agentmods.dev/skills/xonovex/platform/publishing-npm-packages"><img src="https://agentmods.dev/badge/skills/xonovex/platform/publishing-npm-packages.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00075 | $0.00684 |
| Opus 5.5 | $0.00030 | $0.00274 |
| Sonnet 5.5 | $0.00015 | $0.00137 |
| Haiku 4.5 | $0.00007 | $0.00068 |
Grade A, and why
publishing-npm-packages 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 9d 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.
How it starts
The opening of the file, as written. The whole thing — 35 lines — stays where its author put it; the contents beside it link to each section on GitHub.
npm Publishing Guidelines
Validate publish-readiness and publish packages idempotently, with correct access, provenance, dist-tags, and platform fields.
Core Principles
- npm requires only name + version:
license/repository/filesare house policy, not npm rules, andprivate: trueblocks publishing outright, see references/publish-check.md - Provenance needs CI + OIDC:
--provenanceonly works from a supported runner withid-tokenpermission, the public registry, and a matchingrepository; it errors elsewhere, see references/publish.md - Access is derived: unscoped packages are always public; scoped packages default to restricted and need
--access publicon first publish, see references/publish.md - Platform packages gate install:
os/cpu/libcrestrict where a native-binary package installs; inject and restore those fields safely, see references/publish.md
Operations
- publish-check: validate a package.json is publish-ready, separating npm rules from policy, see references/publish-check.md
- publish: publish a package idempotently with provenance / access / dist-tag / platform handling, see references/publish.md
Gotchas
- Hard-requiring
license/repository/filesexceeds npm (it warns, it doesn't block), and rejecting arepositoryshorthand string likegithub:org/repois wrong: treat the three as policy publishConfig.accessis only meaningful for@scopednames; unscoped packages cannot be restricted: don't hard-require it universally--provenancefails outside a supported CI/OIDC environment: gate it on CI, never expect a local no-opfilessupports globs anddist/is built later: don't existence-check glob entries or build outputs;package.json/README/LICENSE/mainare always included- Inject-then-restore of
os/cpu/libcmust restore on failure (try/finally), andlibcis a silent no-op unlessosincludeslinux - A pre-release published without
--taglands onlatestand installs by default: derive a dist-tag from the version
What ships with it
6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 9d ago First seen · 35 lines · 75 tokens per session scan A 52c42ad675d0
publishing-npm-packages is a skill published in the GitHub repository xonovex/platform (6 stars, last pushed yesterday), licensed MIT. It adds 75 tokens to every session and 684 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-11-21.
publishing-npm-packages compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| publishing-npm-packagesxonovex/platform | Skill | 6 | yesterday | MIT | A | 75 | Claude Code |
| rea-changelog-updatemorluto/rea | Skill | 483k | today | MIT | A | 33 | Claude Code |
| codew-release-qa-sweepHmbown/CodeWhale | Skill | 41k | yesterday | MIT | A | 31 | Claude Code, Codex |
| release-rollbackPrismer-AI/PrismerCloud | Skill | 1.4k | 1mo ago | MIT | A | 96 | Claude Code |
| installxiaotonng/pikiloom | Skill | 291 | 7d ago | MIT | A | 39 | Claude Code, Codex |
| contributingZaxbyHub/opencode-swarm | Skill | 549 | today | MIT | A | 44 | Codex |
| testflight-releasetermio-sh/termio | Skill | 712 | 7d ago | MIT | B | 102 | Claude Code, Codex |