publish-release

publish-release is a skill for Claude Code, Codex from erraggy/oastools. It costs 33 tokens per session (632 once invoked), scanned A, original, MIT.

A release command for publishing a prepared software release to GitHub. It requires a version such as v1.46.0 and runs the project's fixed publishing process, including tagging and creating the release.

In plain words
What is it for?
Use it after preparing and reviewing release notes, when you are ready to create and push the version tag, build the release, and publish it on GitHub.
Why use it?
It reduces mistakes during an irreversible release and ensures the required preparation and release steps are followed in order.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/erraggy/oastools/publish-release
Any agent
npx skills add erraggy/oastools --skill publish-release
Clone the repo
git clone --depth 1 https://github.com/erraggy/oastools

Made for: Claude Code, Codex.

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/erraggy/oastools/publish-release.svg)](https://agentmods.dev/skills/erraggy/oastools/publish-release)
Your own site
<a href="https://agentmods.dev/skills/erraggy/oastools/publish-release"><img src="https://agentmods.dev/badge/skills/erraggy/oastools/publish-release.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 632 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00033 $0.00632
Opus 5 $0.00016 $0.00316
Sonnet 5 $0.00007 $0.00126
Haiku 4.5 $0.00003 $0.00063

Measured 5d ago against content hash 2d9568596bff, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 5d 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 · 99 lines

How it starts

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

publish-release

Publish a prepared release to GitHub. This is phase 7 of the release process.

Usage: /publish-release <version> (e.g., /publish-release v1.46.0)

Prerequisites

Before running this skill:

  1. Run /prepare-release <version> to complete phases 1-6
  2. Verify prepared notes exist at .release/notes-<version>.md
  3. Review the release notes in that file
  4. Ensure you're ready to publish (this is irreversible)

Process

⚠️ CRITICAL: This skill wraps publish-release.sh. Do NOT run release commands manually.

Step 1: Validate Version Argument

If no version is provided, stop and ask the user:

Error: Version argument required.
Usage: /publish-release <version>
Example: /publish-release v1.46.0

If the version doesn't match the vX.Y.Z pattern, reject it:

Error: Version must match vX.Y.Z pattern (e.g., v1.46.0)
Got: <invalid-version>

Step 2: Confirm with User

Use the AskUserQuestion tool to confirm before proceeding:

Ready to publish release **<version>**?

This will:
1. Create and push git tag <version>
2. Trigger goreleaser workflow
3. Wait for draft release with binaries
4. Publish the release (irreversible)

Proceed? [Yes / Cancel]

Step 3: Run the Publish Script

From the repository root, run:

.claude/scripts/publish-release.sh <version>

The script handles:

  1. Verifies on main branch
  2. Creates and pushes annotated tag
  3. Waits for goreleaser workflow
  4. Verifies draft has 8 assets (binaries + checksums)
  5. Reads prepared notes from .release/notes-<version>.md (fails if missing)
  6. Publishes with gh release edit --draft=false
  7. Verifies published release

Step 4: Report Results

On success, report:

✅ Release <version> published successfully!

View release: https://github.com/erraggy/oastools/releases/tag/<version>

The release includes:
- 8 binary assets for all platforms
- Enhanced release notes (from prepare step)
- Homebrew formula will update automatically

Read the full file on GitHub · 99 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. 5d ago First seen · 99 lines · 33 tokens per session scan A 2d9568596bff

Subscribe to this mod's changes

publish-release is a skill published in the GitHub repository erraggy/oastools (5 stars, last pushed 7d ago), licensed MIT. It adds 33 tokens to every session and 632 once invoked, about $0.0002 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.