release

A release command that prepares a new version of a GitHub project and creates a GitHub release. It reviews Git history, tags, and project notes to suggest a version and release notes.

In plain words
What is it for?
Use it to inspect commits since the previous release, suggest semantic versions such as 1.2.3, choose a release-notes format, and publish the release on GitHub.
Why use it?
It removes the manual work of checking what changed, choosing the next version, and writing release notes. It also helps keep releases consistent with the project's versioning style.

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/defaultperson/agent-setup/release
Clone the repo
git clone --depth 1 https://github.com/DefaultPerson/agent-setup

Made for: Claude Code.

Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 724 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.00011 $0.00724
Opus 5 $0.00005 $0.00362
Sonnet 5 $0.00002 $0.00145
Haiku 4.5 $0.00001 $0.00072

Measured 2d ago against content hash 361c5dc25fdd, 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 2d 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/commands/release.md · 77 lines

How it starts

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

Context

  • Branch: !git branch --show-current
  • Last tag: !git describe --tags --abbrev=0 2>/dev/null || echo "No tags"
  • Commits since tag: !git log $(git describe --tags --abbrev=0 2>/dev/null || echo HEAD~20)..HEAD --oneline 2>/dev/null | head -20
  • CHANGELOG exists: !test -f CHANGELOG.md && echo "Yes" || echo "No"

$ARGUMENTS

Arguments: [optional version override]

Algorithm

  1. Get release context:

    LAST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "none")
    
    • Show: last tag + date, commit count since, diff stats
    • If no tags — use full commit history (capped at 50)
  2. Detect versioning scheme:

    • Semver (v1.2.3 or 1.2.3) → suggest bump (patch/minor/major based on commit types: feat→minor, fix→patch, !→major)
    • Calver (2026.08.1) → suggest next calver
    • No tags → ask user for preferred scheme
    • If $ARGUMENTS provided — use as version directly
  3. Ask questions (AskUserQuestion):

    • Version: confirm suggested or enter custom
    • Release notes style: Technical (full changelog) / User-facing (features+fixes) / Both
  4. Generate release notes from commits since last tag:

    Group by Conventional Commit type:

    Type Section User-visible
    feat Added Yes
    fix Fixed Yes
    perf Performance Yes
    refactor Changed No
    docs Documentation No
    ci, test, chore, build Internal No
    • Technical: all sections, commit messages as-is
    • User-facing: only Added + Fixed + Performance, rewrite as human-readable descriptions
  5. Update CHANGELOG.md (if file exists):

    • Replace [Unreleased] header content with new version + date
    • Add fresh empty [Unreleased] section above
    • If no [Unreleased] section — prepend new version block after top header
  6. Create tag & release:

    # Commit changelog if changed
    git add CHANGELOG.md && git commit -m "docs: release <version>"
    git push origin HEAD
    
    # Tag and release
    git tag -a <version> -m "Release <version>"
    git push origin <version>
    gh release create <version> --title "<version>" --notes-file /tmp/release-notes.md
    
    • If user wants to attach files — ask which files, then gh release upload <version> <files...>

Read the full file on GitHub · 77 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. 2d ago First seen · 77 lines · 11 tokens per session scan A 361c5dc25fdd

Subscribe to this mod's changes

release is a command published in the GitHub repository DefaultPerson/agent-setup (11 stars, last pushed 1mo ago), licensed MIT. It adds 11 tokens to every session and 724 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-30.