release
Skill này làm gì
Skill này hướng dẫn bạn xuất bản một phiên bản mới của dự án phần mềm. Skill dành cho lập trình viên muốn một quy trình phát hành nhất quán dựa trên các quy tắc đã có trong repository.
Khi nào nên dùng
- ✓Khi bạn sẵn sàng xuất bản một phiên bản mới của dự án.
- ✓Khi bạn muốn agent học quy tắc phiên bản và CI trước khi phát hành.
- ✓Khi quy trình phát hành hoặc cấu hình CI đã thay đổi và các quy tắc đã lưu cần được cập nhật.
Liên kết skill
https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/release/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Hãy phát hành phiên bản 2.4.0 của dự án này. Kiểm tra các quy tắc phát hành của chúng ta trước và hướng dẫn tôi từng bước.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Lần đầu, agent kiểm tra các tệp dự án và thiết lập CI để tìm ra quy tắc phát hành, rồi lưu chúng vào một tệp quy tắc. Các lần sau, nó kiểm tra xem có thay đổi không và cập nhật quy tắc khi cần trước khi hướng dẫn phát hành.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Có thể dùng những số phiên bản nào?
Bạn có thể nói patch, minor hoặc major, hoặc đưa ra một phiên bản chính xác như 2.4.0. Nếu bỏ trống, agent sẽ hỏi.
Tôi có thể buộc nó đọc lại các quy tắc không?
Có. Một tùy chọn làm mới buộc nó phân tích lại repository ngay cả khi đã có tệp quy tắc.
Các quy tắc phát hành được lưu ở đâu?
Trong một tệp quy tắc bên trong thư mục cài đặt ẩn của dự án, để có thể tái sử dụng lần sau.
Chi tiết
Mô tả gốc của tác giả
Generic release assistant — analyzes repo release rules, caches them in .omc/RELEASE_RULE.md, then guides the release
Độ phổ biến
- Sao GitHub
- 41k
- Vị trí xếp hạng
- #7020
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
agent-doc-discipline
41kDạy agent của bạn viết hướng dẫn mà các agent AI khác có thể tự làm theo, với các quy tắc có thể kiểm tra và lý do rõ ràng đằng sau mỗi quy tắc.
ai-slop-cleaner
41kGiúp agent của bạn dọn dẹp mã do AI viết mà chạy được nhưng cồng kềnh hoặc lặp lại, loại bỏ mã thừa mà không thay đổi những gì nó làm.
architecture-survey
41kGiúp agent của bạn xem xét cấu trúc một codebase và liệt kê các phần ngày càng khó thay đổi, kèm bằng chứng, mà không tự thay đổi gì.
ask-navigator
41kGiúp agent của bạn biến một dự án còn mơ hồ thành bản đồ các câu hỏi quyết định rõ ràng, rồi giải quyết từng câu một cho đến khi con đường trở nên rõ.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.