release

A guided release command for turning a tested beta version into a stable GitHub release. It checks versions, branches, tags, commits, and release notes in a fixed order.

In plain words
What is it for?
It helps prepare and verify software releases from a beta branch, synchronize the main branch, create a version tag, publish a GitHub Release, and check the resulting release links.
Why use it?
It reduces the risk of publishing the wrong code, an inconsistent version, or a release based on outdated branches. It also prevents claiming that update notifications were sent before the release is actually available.

Command for Claude Code

▶ AI Skills in Unity — Claude Code Ivan Murzak 🇺🇦 · about Besty0728/Unity-Skills · on YouTube →
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/besty0728/unity-skills/release
Clone the repo
git clone --depth 1 https://github.com/Besty0728/Unity-Skills

Made for: Claude Code.

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 2,851 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.00000 $0.02851
Opus 5 $0.00000 $0.01425
Sonnet 5 $0.00000 $0.00570
Haiku 4.5 $0.00000 $0.00285

Measured 2d ago against content hash 5b5982703420, 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 · 307 lines

How it starts

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

Release Workflow — 候选矩阵 → main/tag → 正式 Release

你是 UnitySkills 项目的正式发布助手。发布必须遵守以下顺序:

版本一致性检查
  → beta 候选提交完整矩阵
  → 用户确认正式发布
  → beta/main 精确同步
  → 创建并推送 annotated tag
  → tag 自身完整矩阵
  → 创建稳定 GitHub Release
  → 核验 releases/latest 与 Release 跳转地址

Unity 更新提醒只读取 GitHub releases/latest。因此在最后一步正式 Release 创建成功之前,不能宣称用户已经收到更新通知。

输入

用户可提供不带 v 的版本号,例如 /release 2.6.0;未提供时从 CHANGELOG.md 顶部最新的 ## [x.y.z] 解析。

  • 版本必须严格为 MAJOR.MINOR.PATCH
  • tag 固定为 v{VERSION}

阶段 1:只读预检查

  1. 确认当前在 beta 分支。
  2. 工作区必须完全干净:
    git status --porcelain
    
    有任何修改或未跟踪文件都停止,提示先提交或处理。
  3. 检查 GitHub CLI 登录状态并获取最新远端引用:
    gh auth status
    git fetch origin main beta --tags
    
    任一失败都停止。
  4. 将候选提交固定为变量并在整个流程中保持不变:
    RELEASE_SHA=$(git rev-parse beta)
    VERSION_TAG="v{VERSION}"
    
  5. 确认本地 beta 没有遗漏远端提交,也没有基于过期的 main 发布:
    git log beta..origin/beta --oneline
    git log beta..origin/main --oneline
    
    任一有输出都停止并列出提交。
  6. 检查本地 main 是否存在未推送提交。后续会把本地 main 精确移动到候选提交;若存在必须先交给用户处理:
    git log origin/main..main --oneline
    
  7. 验证项目版本锚点、CHANGELOG 顶部版本及 Release tag 格式一致:
    python3 .github/scripts/check_project_version.py . \
      --expected "{VERSION}" \
      --tag "${VERSION_TAG}"
    
  8. 查询当前 GitHub 最新稳定 Release。候选版本必须严格高于它:
    gh api repos/Besty0728/Unity-Skills/releases/latest \
      --jq '{tag_name,html_url,draft,prerelease}'
    
  9. 同时确认本地 tag、远端 tag、GitHub Release 都不存在:
    git tag -l "${VERSION_TAG}"
    git ls-remote --tags origin \
      "refs/tags/${VERSION_TAG}" \
      "refs/tags/${VERSION_TAG}^{}"
    gh release view "${VERSION_TAG}"
    
    任一已存在都停止。绝不删除、移动或强制重推已发布 tag。

阶段 2:生成并审阅 Release Note

从 CHANGELOG 当前版本条目生成 .releases/v{VERSION}.md。该目录由 .gitignore 忽略。

格式:

# v{VERSION} — {一句话总结,提炼 2-4 个核心特性}

## ⭐ Highlights

- **{特性标题}**:{用户能获得的能力或修复}

## Added

{从 CHANGELOG Added 提炼}

## Changed

{从 CHANGELOG Changed 提炼}

## Fixed

{存在时加入}

## Docs

{存在时加入}

## Compatibility

{涉及 Unity 版本、可选包或破坏性变化时加入}

### 完整更改日志见 https://github.com/Besty0728/Unity-Skills/blob/main/CHANGELOG.md

Read the full file on GitHub · 307 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 · 307 lines · 0 tokens per session scan A 5b5982703420

Subscribe to this mod's changes

release is a command published in the GitHub repository Besty0728/Unity-Skills (1,695 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,851 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-30.