AGENT SKILL

版本发布

release

运行完整的发布工作流:变更日志条目、版本升级、git 标签和 GitHub 发布。依次调用 changelog-entry、tag-version 和 publish。在发布项目新版本时使用。

适用职业发布经理
License 许可
MIT
最近更新
2026-05-15
Stars
★ 13
Forks
1

01 前言 Front Matter

name
release
title
release
description
Run the complete release workflow: changelog entry, version bump, git tag, and GitHub release. Invokes changelog-entry, tag-version, and publish in sequence. Use when releasing a new version of the project.
allowed-tools
Bash(git tag *) Bash(git log *) Bash(git status) Bash(git describe *) Bash(npm version *) Bash(gh release *)
argument-hint
[version|patch|minor|major]
disable-model-invocation
true

03 SKILL.md 正文

Run the complete release workflow for $ARGUMENTS (e.g., 1.2.0, patch, minor, major).

If $ARGUMENTS is empty, stop and tell the user: "Provide a version or bump type — for example: /release patch or /release 1.2.0."

Pre-flight

Check the current state before doing anything:

!git status --short 2>&1

!git describe --tags --abbrev=0 2>/dev/null && echo "latest tag found" || echo "no tags yet"

If the working tree is dirty (uncommitted changes shown above), stop and tell the user to commit or stash their changes before running the release workflow. A release must start from a clean state.

Steps

  1. Run /changelog-entry to generate the changelog entry for all commits since the last tag.

    Review the output carefully. Ask the user: "Does this changelog entry look accurate? Type 'yes' to continue or 'edit' to open CHANGELOG.md first."

    If the user says 'edit', open CHANGELOG.md and wait for them to confirm they are done editing before continuing.

  2. Run /tag-version $ARGUMENTS to bump the version in package.json and create the annotated git tag.

    Confirm the tag was created by showing the output of git describe --tags --abbrev=0.

  3. Run /publish to push the tag to origin and create the GitHub release.

  4. Report the release URL returned by /publish. Tell the user the release is complete.

If any step fails, stop immediately and report which step failed and what the error was. Do not attempt to continue after a failure.

04 同仓库更多 Skills

davila7
davila7/claude-with-skills

版本号升级与 Git 标签

tag-version

升级软件包版本并创建带注释的 git 标签。接受语义化版本号(1.2.0)或升级类型(patch、minor、major)。不执行推送——请使用 publish 技能进行推送。作为发布工作流的一部分使用。

发布经理部署与发布管理
★ 13
davila7
davila7/claude-with-skills

项目完整发布流程

release

运行完整的发布工作流:变更日志条目、版本升级、git 标签和 GitHub Release。依次调用 changelog-entry、tag-version 和 publish。在发布项目新版本时使用。

发布经理部署与发布管理
★ 13
davila7
davila7/claude-with-skills

GitHub 版本发布

publish

将当前分支和所有标签推送到 origin,然后使用最新标签及其 CHANGELOG.md 条目创建 GitHub Release。在 tag-version 之后使用以完成发布。

发布经理部署与发布管理
★ 13
davila7
davila7/claude-with-skills

变更日志条目生成

changelog-entry

按照 Keep a Changelog 格式为所有未发布的提交起草变更日志条目。将提交分组为新增(Added)、变更(Changed)、修复(Fixed)、移除(Removed)和安全(Security)。在发布新版本之前或更新 CHANGELOG.md 时使用。

发布经理部署与发布管理
★ 13
davila7
davila7/claude-with-skills

代码自动格式化

auto-format-on-edit

每次编辑后使用 Prettier 和 ESLint 自动格式化代码文件。当 Claude 编辑文件时在后台激活。格式化是静默的——没有提示,除非格式化程序失败,否则没有输出。当您希望在编码会话期间自动执行一致的格式化时使用。

软件开发工程师开发环境与工具链管理
★ 13
davila7
davila7/claude-with-skills

代码质量审计

code-quality-audit

运行全面的代码质量审计,涵盖安全性、性能和可维护性。用于季度审计、发布前审查或接入大型代码库时。

测试工程师测试与质量保障
★ 13