release

A coding command that prepares a software release by changing the package version, creating a Git tag, and pushing it so GitHub Actions can publish the package to npm.

In plain words
What is it for?
It helps review changes since the previous release, choose a major, minor, or patch version, tag the release, push it, and trigger automated npm publishing.
Why use it?
It avoids manually deciding version changes and performing each release step. It uses commit messages to distinguish breaking changes, new features, and smaller fixes.

Command for Claude Code

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 commands/gregpriday/create-image-mcp/release
Clone the repo
git clone --depth 1 https://github.com/gregpriday/create-image-mcp

Made for: Claude Code.

Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 878 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 $0.00013 $0.00878
Opus 5 $0.00006 $0.00439
Sonnet 5 $0.00003 $0.00176
Haiku 4.5 $0.00001 $0.00088

Measured yesterday against content hash 4e14eacc2a41, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 yesterday.

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/commands/release.md · 108 lines

How it starts

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

Release @gpriday/create-image-mcp

NPM publishing is handled by GitHub Actions on tag push. This command bumps the version, tags, and pushes.

Current State

  • Git status: !git status
  • Current branch: !git branch --show-current
  • Latest tag: !git describe --tags --abbrev=0 2>/dev/null || echo "none"
  • Current version: !node -p "require('./package.json').version"
  • Changes since last tag: !git log $(git describe --tags --abbrev=0 2>/dev/null || echo "HEAD")..HEAD --oneline 2>/dev/null || echo "No previous tags"

Steps

Step 1: Analyze Changes & Determine Version

Version bump override: $ARGUMENTS

If $ARGUMENTS is empty, auto-detect version bump:

Read all commits since the last git tag. Analyze commit messages following Conventional Commits:

  • MAJOR (breaking): Look for "BREAKING CHANGE:", "!" after type (e.g., "feat!:"), or "major:" prefix
  • MINOR (feature): Look for "feat:", "feature:", new functionality
  • PATCH (fix): Look for "fix:", "bugfix:", "chore:", "docs:", "refactor:", "test:", "style:", improvements

Rules:

  • If any BREAKING CHANGE found → MAJOR bump
  • If any feat/feature found (no breaking) → MINOR bump
  • Otherwise → PATCH bump
  • If no commits since last tag → Ask user if they want to proceed with PATCH

Calculate new version based on current package.json version and bump type.

Step 2: Pre-Release Validation

  1. Check for Uncommitted Changes

    • Run git status --porcelain
    • If ANY uncommitted changes exist: STOP and tell user to commit or stash first
  2. Verify Prerequisites

    • Must be on main branch (STOP if not)
    • Run npm test - all tests must pass (STOP if any fail)

Step 3: Update package.json

  • Read current package.json
  • Update version field to new calculated version
  • Write back to file

Step 4: Commit & Tag

git add package.json
git commit -m "chore: prepare for v[NEW_VERSION] release"
git tag -a v[NEW_VERSION] -m "Release version [NEW_VERSION]

[First 3-5 key changes from commit history]"

Read the full file on GitHub · 108 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. yesterday First seen · 108 lines · 0 tokens per session scan A 4e14eacc2a41

Subscribe to this mod's changes

release is a command published in the GitHub repository gregpriday/create-image-mcp (0 stars, last pushed 5mo ago), licensed MIT. It adds 13 tokens to every session and 878 once invoked, about $0.0001 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.