release
它能做什么
这项技能指导你发布软件项目的新版本。适合希望根据代码仓库中已有的规则,获得一致发布流程的开发者。
适用场景
- ✓当你准备发布项目的新版本的时候。
- ✓当你希望智能体在发布之前先了解你的版本和 CI 规则的时候。
- ✓当你的发布工作流或 CI 配置已经改变,已保存的规则需要更新的时候。
技能链接
https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/release/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我们来发布这个项目的 2.4.0 版本。请先检查我们的发布规则,然后逐步指导我完成每一步。”
每周 5 个新技能,1 分钟读完。
工作原理
第一次运行时,智能体会检查项目文件和 CI 设置,以弄清楚发布规则,并把它们保存到一个规则文件中。之后的运行中,它会检查是否有变化,并在指导发布之前在需要时更新规则。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Release Skill
A thin, repo-aware release assistant. On first run it inspects the project and CI to derive release rules, stores them in .omc/RELEASE_RULE.md for future use, then walks you through a release using those rules.
Usage
/oh-my-claudecode:release [version]
versionis optional. If omitted the skill will ask. Acceptspatch,minor,major, or an explicit semver like2.4.0.- Add
--refreshto force re-analysis of the repo even when a cached rule file exists.
Execution Flow
Step 0 — Load or Build Release Rules
Check whether .omc/RELEASE_RULE.md exists.
If it does NOT exist (or --refresh was passed): Run the full repo analysis below and write the file.
If it DOES exist: Read the file. Then do a quick delta check — scan .github/workflows/ (or equivalent CI dirs: .circleci/, .travis.yml, Jenkinsfile, bitbucket-pipelines.yml, gitlab-ci.yml) for any modifications newer than the last-analyzed timestamp in the rule file. If relevant workflow files changed, re-run the analysis for those sections and update the file. Report what changed.
Step 1 — Repo Analysis (first run or --refresh)
Inspect the repo and answer the following. Write answers into .omc/RELEASE_RULE.md.
1a. Version Sources
- Locate all files that contain a version string matching the current version in
package.json/pyproject.toml/Cargo.toml/build.gradle/VERSIONfile / etc. - List each file and the field or regex pattern used to find the version.
- Detect whether there is a release automation script (e.g.
scripts/release.*,Makefile releasetarget,bump2version,release-it,semantic-release,changesets,goreleaser).
1b. Registry / Distribution
- npm (
package.jsonwithpublishConfigornpm publishin CI), PyPI (pyproject.toml+twine/flit), Cargo (Cargo.toml), Docker (Dockerfile+ push step), GitHub Packages, other. - Is there a CI step that publishes automatically on tag push? Which workflow file and job?
1c. Release Trigger
- Identify what starts the release: tag push (
v*), manual dispatch (workflow_dispatch), merge to main/master, a release branch merge, a commit message pattern.
1d. Test Gate
- Identify the test command and where it runs in CI.
- Are tests required to pass before publish? Note any bypass flags.
1e. Release Notes / Changelog
- Does a
CHANGELOG.mdorCHANGELOG.rstexist? - What convention is used: Keep a Changelog, Conventional Commits, GitHub auto-generated, none?
- Is there a release body file (e.g.
.github/release-body.md) committed pre-tag?
1f. First-Time User Check
- Does a release workflow exist in
.github/workflows/(or equivalent)? If not, flag this and offer to scaffold one. - Is there a
.gitignoreentry preventing build artifacts from being committed? If not, flag it. - Are git tags being used? Run
git tag --listto check. If no tags exist, flag and explain best practice.
Step 2 — Write .omc/RELEASE_RULE.md
Create or overwrite the file with this structure:
# Release Rules
<!-- last-analyzed: YYYY-MM-DDTHH:MM:SSZ -->
## Version Sources
<!-- list of files + patterns -->
## Release Trigger
<!-- what kicks off the release -->
## Test Gate
<!-- command + CI job name -->
## Registry / Distribution
<!-- npm, PyPI, Docker, etc. + CI job that publishes -->
## Release Notes Strategy
<!-- convention + files -->
## CI Workflow Files
<!-- paths to relevant workflow files -->
## First-Time Setup Gaps
<!-- any missing pieces found during analysis, or "none" -->
Step 3 — Determine Version
If the user provided a version argument, use it. Otherwise:
- Show the current version (from the primary version file).
- Show what
patch,minor, andmajorwould produce. - Ask the user which to use.
Validate the chosen version is a valid semver string.
Step 4 — Pre-Release Checklist
Present a checklist derived from the release rules. At minimum:
- All changes intended for this release are committed and pushed
- CI is green on the target branch
- Tests pass locally (run the test gate command)
- Version bump applied to all version source files
- Release notes / changelog prepared (see Step 5)
Ask the user to confirm before proceeding, or run each step if they say "go ahead".
Step 5 — Release Notes Guidance
Help the user write good release notes. Apply whichever convention the
常见问题
我可以使用哪些版本号?
你可以说 patch、minor 或 major,也可以给出确切的版本,例如 2.4.0。如果你不指定,智能体会询问。
我可以强制它重新读取规则吗?
可以。刷新选项会让它即使在已有保存的规则文件时,也重新分析代码仓库。
发布规则保存在哪里?
保存在项目内隐藏设置文件夹中的一个规则文件里,以便下次复用。
详情
作者的原始描述
Generic release assistant — analyzes repo release rules, caches them in .omc/RELEASE_RULE.md, then guides the release
热度
- GitHub 星标
- 41k
- 排名
- #7020
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-doc-discipline
41k教你的智能体编写其他 AI 智能体能够独立遵循的说明,规则可以检验,并且每条规则都附有明确的理由。
ai-slop-cleaner
41k帮你的智能体整理 AI 写出的代码,这些代码能运行但臃肿或重复,在不改变其功能的前提下删除多余部分。
architecture-survey
41k帮你的智能体审查代码库的结构,列出越来越难修改的部分并附上证据,且自身不做任何更改。
ask-navigator
41k帮你的智能体把模糊的项目整理成一张清晰的决策问题图,然后逐个处理,直到路径变得清楚。