claude-code-workflow: Command for Claude Code

.claude/commands/release.md

release is a command for Claude Code from Caspian-Sun/claude-code-workflow. It costs 0 tokens per session (1,065 once invoked), scanned A, original, MIT.

A release command that builds a changelog, a summary of changes for a software release, from Git commit history. It can use the latest tag, dates, version ranges, or two specified tags.

In plain words
What is it for?
Use it before a release, after pull requests are merged, or for a weekly report to collect commits and organize them by change type.
Why use it?
It removes the need to read and group commits manually when preparing release notes or periodic change summaries.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

This is Caspian-Sun/claude-code-workflow's own configuration. It tells Claude Code how to work on claude-code-workflow 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 claude-code-workflow configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Caspian-Sun/claude-code-workflow. 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/Caspian-Sun/claude-code-workflow/main/.claude/commands/release.md
Clone the repo
git clone --depth 1 https://github.com/Caspian-Sun/claude-code-workflow

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 release

README.md
[![agentmods](https://agentmods.dev/badge/commands/caspian-sun/claude-code-workflow/release/github.svg)](https://agentmods.dev/commands/caspian-sun/claude-code-workflow/release)
Your own site
<a href="https://agentmods.dev/commands/caspian-sun/claude-code-workflow/release"><img src="https://agentmods.dev/badge/commands/caspian-sun/claude-code-workflow/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 release

Your own site · 80×15
<a href="https://agentmods.dev/commands/caspian-sun/claude-code-workflow/release"><img src="https://agentmods.dev/badge/commands/caspian-sun/claude-code-workflow/release.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,065 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.00000 $0.01065
Opus 5.5 $0.00000 $0.00426
Sonnet 5.5 $0.00000 $0.00213
Haiku 4.5 $0.00000 $0.00106

Measured 2mo ago against content hash e087369601b1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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 · 116 lines

How it starts

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

You are now acting as a Release Engineer. Automatically generate a changelog from git history to assist with version releases.

Applicable Scenarios

  1. Before a version release — aggregate all changes since the last tag and generate a structured changelog
  2. Weekly report / iteration summary — summarize changes over a time range
  3. After PR merges — append to CHANGELOG.md

Input

Input Example Behavior
No arguments /release Auto-use range from the last git tag to HEAD
Version number /release v1.2.0 Specify version; range same as above
Time range /release --since 2026-04-01 Specified start date to HEAD
Two tags /release v1.1.0..v1.2.0 Exact range

Execution Flow

Step 1: Determine Range

  1. Read git tag --sort=-creatordate to get the most recent tag
  2. No tags → use commits from the last 30 days (or user-specified --since)
  3. After range is determined, output: "Changelog range: <start> → HEAD, N commits total"

Step 2: Aggregate Commits

Read all commits in the range, parse by type(scope): description format:

git log <range> --pretty=format:"%H %s" --no-merges

Group by type:

Type Changelog Section Notes
feat New Features New capabilities
fix Bug Fixes Bug fixes (includes [BUG-xxx] / [B00x] tags)
refactor Refactoring Code refactoring, no functional change
style Style UI / style adjustments
test Tests New or modified tests
docs Documentation Doc updates
chore Other Build / config / dependencies

Step 3: Extract Traceability Info

For each commit, extract from the commit message and diff:

  • Related PRD: grep for @prd or docs/prds/ references
  • Related task: grep for @task or docs/tasks/ references
  • Related bug: grep for [BUG- or [B0 tags
  • Related PR: grep for #<number> or match from gh pr list --state merged
  • Affected module: infer from the scope field or file paths

Read the full file on GitHub · 116 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. 2mo ago First seen · 116 lines · 0 tokens per session scan A e087369601b1

Subscribe to this mod's changes

release is a command published in the GitHub repository Caspian-Sun/claude-code-workflow (10 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,065 tokens. 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.