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.
curl -O https://raw.githubusercontent.com/alexjbarnes/cockpit/main/.claude/skills/publish-release/SKILL.mdgit clone --depth 1 https://github.com/alexjbarnes/cockpitWrote 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/alexjbarnes/cockpit/publish-release)<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.
<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>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.01542 |
| Opus 5.5 | $0.00030 | $0.00617 |
| Sonnet 5.5 | $0.00015 | $0.00308 |
| Haiku 4.5 | $0.00007 | $0.00154 |
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.
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.
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.
- 29d ago First seen · 111 lines · 75 tokens per session scan A 39c3981c76af
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.
Other skills, from other repositories
version-bump
Automated semantic versioning and release workflow for Claude Code plugins. Handles version increments across package.json, marketplace.json, plugin.json manifests, build verification, git tagging, GitHub releases, and changelog generation. npm publishing is done by the tag-triggered GitHub Actions workflow through…
batch
Research and plan a large-scale change, then execute it in parallel across 5–30 isolated worktree agents that each open a PR.
github
GitHub via gh CLI: PRs, issues, reviews, repos, auth.
changelog
Auto-generate a changelog from git commits and sprint data. Internal and player-facing versions.
release
Fully automate a release with version-bump and childhood.
team-release
Orchestrate the release team — release-manager, qa-lead, devops-engineer, producer — to execute a release from candidate to deployment.