cockpit: Skill for Claude Code

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

publish-release is a skill for Claude Code from alexjbarnes/cockpit. It costs 75 tokens per session (1,542 once invoked), scanned A, original, Apache-2.0.

A release procedure for publishing a package to npm, the JavaScript package registry. It prepares the version, merges the release into the main branch, creates a tag, publishes the package, and checks that the published files install and start.

In plain words
What is it for?
Use it to publish or ship a specified npm version, such as 0.6.0, and verify the resulting package.
Why use it?
It reduces mistakes in the order of release steps and catches cases where the branch, tag, source files, and published package do not match.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is alexjbarnes/cockpit's own configuration. It tells Claude Code how to work on cockpit 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 cockpit configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is PORT=<spare port> node node_modules/@alexjbarnes/cockpit/bin/cockpit.js.

Reuse

Borrowing it

Nothing to install: this file belongs to alexjbarnes/cockpit. 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/alexjbarnes/cockpit/main/.claude/skills/publish-release/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/alexjbarnes/cockpit

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-release

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/alexjbarnes/cockpit/publish-release"><img src="https://agentmods.dev/badge/skills/alexjbarnes/cockpit/publish-release.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,542 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.00075 $0.01542
Opus 5.5 $0.00030 $0.00617
Sonnet 5.5 $0.00015 $0.00308
Haiku 4.5 $0.00007 $0.00154

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

Security

Grade A, and why

publish-release 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 29d 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.

.claude/skills/publish-release/SKILL.md · 111 lines

How it starts

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

Publish a cockpit release

A release is a short sequence where the ordering carries all the risk. The tarball is built from the working tree at publish time, so the only thing that guarantees the published package matches the tag is that the tree, the branch, the tag and the remote all agree first. make publish-check enforces that; this skill's job is to get everything into the state that check demands, in the right order, and to stop the moment something does not line up.

Never work around a failing check. Every refusal in publish-check is there because a published release once went wrong in exactly that way. If it fails, fix the cause or stop and report — do not retag, do not force, do not bump the version to dodge a conflict, do not publish from a branch that is not main.

An npm publish cannot be undone. A version number is spent the moment it is published, even if unpublished afterwards. Treat step 5 as the point of no return and be sure of everything before it.

Input

A version, or none. With no version, read package.json and propose it, then confirm with the user before touching anything. Never invent a version bump on your own: whether a release is a patch or a minor is the user's call.

Step 0: Establish the state

Run these and read them before doing anything:

git branch --show-current
git status --porcelain
node -p "require('./package.json').version"
gh pr list --json number,title,headRefName,baseRefName --limit 10
npm view @alexjbarnes/cockpit dist-tags
git log --oneline main..next | wc -l

Stop and report if: the tree is dirty, the version is already on npm, or there is an open PR from next to main you did not expect (someone else may be mid-release).

Step 1: Confirm the version and the changelog agree

package.json holds the version being released. CHANGELOG.md must have a ## [<version>] - <date> section at the top whose date is today, describing what is actually in main..next.

Check the changelog covers the commits: git log --oneline main..next. A commit that changed behaviour a user can see and is not represented in the changelog is a gap — add it (see the docs: bring the changelog up to date commits for the voice: what changed for the user, and why it was wrong before). Internal-only work goes under Internal, briefly.

Read the full file on GitHub · 111 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. 29d ago First seen · 111 lines · 75 tokens per session scan A 39c3981c76af

Subscribe to this mod's changes

publish-release is a skill published in the GitHub repository alexjbarnes/cockpit (16 stars, last pushed 3d ago), licensed Apache-2.0. It adds 75 tokens to every session and 1,542 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-09-30.