Logo Create Release

Create Release

Cộng đồng
richkuo
create-release

Dùng khi người dùng yêu cầu "create a release", "cut a release", "tag a version", "publish release notes" hoặc phát hành phiên bản GitHub mới cho repo hiện tại.

Add to TypingMind

Tổng quan

Nhà phát hànhrichkuo
Kho mãrk-skills
Tên kỹ năngcreate-release
Sao
50
Bản fork
8
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được richkuo công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Create Release trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/richkuo/rk-skills/tree/main/skills/create-release
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/richkuo/rk-skills.git /tmp/rk-skills
mkdir -p .claude/skills
cp -r /tmp/rk-skills/skills/create-release .claude/skills/create-release
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Create Release trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Create Release ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Create Release với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

create-release

Tag a SHA on origin/<default> (annotated semver) and publish a GitHub release with generated notes. The local branch never decides what ships. Never push to the default branch: the version bump and notes entry land through a pull request (PR).

Preconditions: verify ALL before doing anything

bash
gh auth status
git status --porcelain -- . ':(exclude).claude/worktrees'
DEFAULT=$(gh repo view --json defaultBranchRef -q .defaultBranchRef.name)
git fetch origin --tags

gh auth status must succeed. git status --porcelain must print nothing; if the tree is dirty, stop and surface the diff. Every later read uses origin/$DEFAULT. Any failure: stop and tell the user.

Tag-target invariant. The tagged commit must pass git merge-base --is-ancestor <sha> "origin/$DEFAULT" right after a fresh git fetch origin. No confirmation, flag, or caller instruction overrides this. On failure, stop and report the SHA and origin/$DEFAULT.

Steps

  1. Inspect actual tags. Never trust memory or CHANGELOG: git tag --sort=-v:refname | head -10.

  2. Review commits since the last tag: git log <last-tag>..origin/$DEFAULT --oneline; with no semver tag (first release), git log origin/$DEFAULT --oneline.

  3. Determine the semver bump and state the rationale. Breaking = major (never patch), feature = minor, fixes and polish = patch. Proceed without confirmation: the only question is the bump PR merge. Ask about the bump only when its type is genuinely ambiguous (for example, unclear whether commits are breaking). Then git ls-remote --tags origin refs/tags/vX.Y.Z must print nothing. Never force-overwrite a tag that exists locally or on origin: ask the user.

    Previous version. The newest semver tag without its v. With no semver tag, the value all table manifests below agree on; if they disagree or none exists, ask the user (AskUserQuestion) for the first version and treat each manifest version field's value as its previous value. A first release takes X.Y.Z from the user's version, else from that agreed value.

  4. Land the version bump and the release-notes entry through a PR.

    • Resume an interrupted release first. List bump PRs: gh pr list --state all --search 'in:title "chore(release): bump version to"' --json number,title,state,isCrossRepository,headRefName,baseRefName,headRefOid,mergeCommit,files --limit 50. A candidate meets all of: its title names a version V above the previous version (or, with no semver tag, it is merged and V equals the manifests' agreed value: an interrupted first release), and git ls-remote --tags origin refs/tags/vV prints nothing; open or merged, never closed unmerged; isCrossRepository false; headRefName is <harness-prefix>/release-vV (cc/, cursor/, or codex/), optionally suffixed -<n>; baseRefName is $DEFAULT; every path in files is a table manifest or the notes file, and gh pr diff <n> only moves those version fields from their pre-PR values to V and adds at most one notes entry. A title match that fails any check is never resumed or merged: report it and continue with the version-fields bullet. No candidate: continue with that bullet. More than one: stop and report them. One: if V differs from the version the user asked for or step 3 chose, ask the user (AskUserQuestion); never override their version yourself. X.Y.Z is then V, and step 3's tag-free check applies to V. Open: reuse it (edit nothing, open no second PR), record its headRefOid as the head the checks read, and go to the Merge bullet, which always asks about a resumed PR: no caller plan authorization covers a PR this run did not open. Merged: go to the Resolve bullet, which checks the invariant and manifests before step 5. Either way, reuse the worktree named for its headRefName if it still exists; the Resolve bullet removes it.

    • Version fields. Change only manifest version fields whose value equals the previous version: grep it (for example git grep -n -F "<previous>" origin/$DEFAULT -- <manifest files>) and check each hit against the table. Libraries, CLIs, and installers count: a package.json "version" must be bumped. Schema and config versions stay (for example .github/dependabot.yml version: 2), and so do native build numbers (buildNumber, versionCode, CURRENT_PROJECT_VERSION) unless the user asks. With a semver tag, a manifest field holding another version, with no bump PR kept by the resume bullet, is a stop: report the file and value.

      FileField
      package.json"version"
      .claude-plugin/plugin.json"version"
      app.json / app.config.js / app.config.tsexpo.version
      pubspec.yamlversion
      Cargo.toml[package] version
      pyproject.toml[project] version or [tool.poetry] version
      iOS *.xcodeproj/project.pbxprojMARKETING_VERSION
      Android build.gradleversionName
    • Release-notes entry. If the repo has a MEMORY.md or CHANGELOG.md with a Releases section, the same PR appends **vX.Y.Z** — YYYY-MM-DD: <one-line summary>, unless that file on origin/$DEFAULT already holds a **vX.Y.Z** entry.

    • Publish-on-release check (every time). Find .github/workflows/ jobs on release: published (for example npm publish): they usually guard on the manifest version and silently skip while package.json holds the previous version, so a tag and manifest mismatch is a bug.

    • No version field needs a change and no notes entry is due (no manifest, or a first release whose manifests already hold X.Y.Z; and no notes file, or one already holding **vX.Y.Z**): skip the PR, git fetch origin, set SHA=$(git rev-parse "origin/$DEFAULT"), and go to step 5.

    • Otherwise open the PR from a worktree off origin/$DEFAULT, on a branch with the harness prefix (cc/ Claude Code, cursor/ Cursor, codex/ Codex): git worktree add .claude/worktrees/cc+release-vX.Y.Z -b cc/release-vX.Y.Z "origin/$DEFAULT". If that branch exists locally or on origin, never delete or reuse it: add the next free suffix to branch and worktree name (cc/release-vX.Y.Z-2, then -3). Edit there, run every git command with -C <worktree>, and stage changed files by name. Commit chore(release): bump version to X.Y.Z with the repo's commit footer (its CLAUDE.md or AGENTS.md attribution rule), push, and run gh pr create --base "$DEFAULT", titled chore(release): bump version to X.Y.Z plus any suffix the repo's PR convention requires. The body lists the bumped files and bump rationale and follows the repo's PR body rules.

    • Merge. Wait with gh pr checks <n> --watch. A failing or pending check never merges: stop and leave the PR open. When gh pr checks still reports no checks about a minute after the PR opened, read the required checks on $DEFAULT: gh api repos/{owner}/{repo}/branches/$DEFAULT --jq .protection.required_status_checks.contexts and any required_status_checks rule in gh api repos/{owner}/{repo}/rules/branches/$DEFAULT. With none required, there is no failing check: go on to the merge question. A required check that has not reported is pending. Ask the user once to merge (AskUserQuestion), unless the caller's approved plan already authorizes this bump PR and its merge (as the milestone-workflow close-out does). A decline leaves the PR open and stops with no tag. Merge with a method the repo allows and pin the head: read gh repo view --json squashMergeAllowed,mergeCommitAllowed,rebaseMergeAllowed, take --squash, else --merge, else --rebase, and run gh pr merge <n> <method> --match-head-commit <head-sha>; a resumed PR's <head-sha> is the headRefOid its checks read. If branch protection or a required review blocks the merge, stop, leave the PR open, and report what it waits on.

    • Resolve the tag target. Read gh pr view <n> --json state,mergeCommit. If state is not MERGED (a merge queue holds it, or gh pr merge only enabled auto-merge), stop, report it queued or waiting with its state, and tag nothing; a rerun resumes it through the resume bullet once merged. Else SHA is mergeCommit.oid, which must be a non-empty commit SHA (empty is a stop naming the PR state); never tag the bump branch head or the checkout's HEAD. Then git fetch origin, check the invariant on $SHA, confirm git show "$SHA":<manifest> holds X.Y.Z for every bumped manifest, and remove the worktree if it exists (git worktree remove <path>).

  5. Create an annotated tag on the resolved SHA. Recheck the invariant first:

    bash
    git fetch origin
    git merge-base --is-ancestor "$SHA" "origin/$DEFAULT"
    git tag -a vX.Y.Z "$SHA" -m "vX.Y.Z"
  6. Push the tag: git push origin vX.Y.Z.

  7. Create the release with auto-generated notes: gh release create vX.Y.Z --verify-tag --generate-notes --title "vX.Y.Z", and print the URL from its output. Never hand-write notes, and never let gh release create create the tag.

Câu hỏi thường gặp

Kỹ năng AI Create Release làm được gì?

Dùng khi người dùng yêu cầu "create a release", "cut a release", "tag a version", "publish release notes" hoặc phát hành phiên bản GitHub mới cho repo hiện tại.

Vì sao nên dùng Create Release trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Create Release là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Create Release trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/richkuo/rk-skills/tree/main/skills/create-release. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Create Release?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Create Release với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Create Release với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Create Release có miễn phí không?

Có. Kỹ năng này được richkuo phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇