Logo Release

Release

Cộng đồng
dcb
release

Cut a new homeassistant-claude-kit version. Curates commits since the last tag into kit-changelog.yaml entries, derives the semver bump, renders CHANGELOG.md, bumps .kit-version + dashboard/package.json, then creates a signed tag and (confirmed) GitHub release. Producer-only — runs entirely inside the kit repo, reads only its own git history. Trigger phrases: "cut a release", "release the kit", "bump the kit version", "tag a new version", "run the release skill", "publish vX.Y.Z".

Tổng quan

Nhà phát hànhdcb
Kho mãhomeassistant-claude-kit
Tên kỹ năngrelease
Sao
125
Bản fork
22
Tệp đi kèm
1
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ộ.

  • 1 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được dcb 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 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/dcb/homeassistant-claude-kit/tree/main/.claude/skills/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/dcb/homeassistant-claude-kit.git /tmp/homeassistant-claude-kit
mkdir -p .claude/skills
cp -r /tmp/homeassistant-claude-kit/.claude/skills/release .claude/skills/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 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 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 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.

Release the Kit

This skill is the producer half of kit versioning. It reads ONLY the kit's own git history and writes the version artifacts — the git tag, .kit-version, kit-changelog.yaml, CHANGELOG.md, and dashboard/package.json — in one commit so version and content always travel together. It is idempotent per version: re-running it on a version that is already released, tagged, and pushed is a no-op at every step (append-only changelog, pre-existing-tag guard, idempotent GitHub release). The changelog's detect/apply prose is authored generically and is never executed.

See references/changelog-schema.md for the full record schema, the intent contract, the deterministic commit→type mapping, and the rendering rules.

Step 0: Prerequisites

Run each check; branch on the sentinel it prints.

bash
# Clean working tree (untracked files are allowed; tracked modifications are not)
git diff --quiet && git diff --cached --quiet && echo "TREE_OK" || echo "TREE_DIRTY"

# On the default branch
def=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@')
[ -z "$def" ] && def=main
[ "$(git branch --show-current)" = "$def" ] && echo "BRANCH_OK" || echo "BRANCH_WRONG"

# A baseline tag exists and is >= v0.1.0
git fetch --tags --quiet 2>/dev/null
last=$(git tag --list 'v*' --sort=-v:refname | head -1)
[ -n "$last" ] && echo "LAST_TAG=$last" || echo "TAGS_MISSING"

# Signing capability (decides -s vs -a in Step 7)
if [ -n "$(git config --get user.signingkey)" ] && git tag -s __sigprobe__ -m x >/dev/null 2>&1; then
  git tag -d __sigprobe__ >/dev/null 2>&1; echo "SIGN_OK"
else
  git tag -d __sigprobe__ >/dev/null 2>&1; echo "SIGN_NONE"
fi

# GitHub CLI auth (for the release in Step 8)
gh auth status >/dev/null 2>&1 && echo "GH_OK" || echo "GH_NONE"
  • TREE_DIRTY → stop. Tell the user to commit or stash; a release commits a curated set, never accidental WIP.
  • BRANCH_WRONG → stop. Releases are cut from the default branch only.
  • TAGS_MISSING → stop. The baseline v0.1.0 tag must exist first (it is created once, during the versioning foundation). Do not invent one.
  • SIGN_NONE → continue, but downgrade the Step-7 tag from git tag -s to git tag -a and log: "no usable signing key — creating an annotated (unsigned) tag." Never abort for this.
  • GH_NONE → continue; in Step 8 skip gh release create and print the exact command for the user to run later.

0a. Intent-contract gate

The changelog's detect/apply can only be synthesized well if commit messages carry intent.

bash
git log "$last"..HEAD --no-merges --pretty='%h%x09%s'

For each releasable commit (one NOT in the skip-list of Step 3), require a Conventional-Commit subject (^(feat|fix|change|removed|security|perf|refactor|docs|chore|style|test|ci|build)(\(.+\))?!?: ) and a body that explains why / how you'd know you're affected.

  • Bot / *(deps) commits that are non-Conventional → warn and skip (do not block the release).
  • Any other releasable commit that is non-Conventional or body-less → STOP, list the offenders, and ask the maintainer to reword (interactive rebase) before releasing. Thin commits produce hollow detect/apply.

Step 1: Collect commits

bash
git rev-list --count "$last"..HEAD            # 0 → nothing new
git log "$last"..HEAD --no-merges --reverse --pretty='%h%x09%s%n%b'
  • Empty range (count 0) → print "Nothing to release since $last" and exit 0 (no mutation). This is the idempotent re-run case.
  • Merge commits are excluded (--no-merges).
  • For each commit, also capture its touched paths (git show --stat --name-only <sha>) — needed for the file-aware skip decision (Step 3) and for conditions/detect_hint.

Step 2: Curate into logical changes

Group related commits into one logical change each (a feature's many commits → one entry with a commit range; a follow-up fix to an unreleased feature folds into that feature's entry). This grouping is the only step that uses judgment — everything downstream is deterministic.

One entry = exactly one type. Never merge a fix and a feat into one entry, even if they touch the same files — emit two entries, each with its own commits subset, so each renders in its correct section. Present the proposed grouping to the user for confirmation before synthesizing entries.

Step 3: Classify each group (deterministic)

Derive type and breaking from Conventional Commits — a lookup, not judgment:

  • feat: → feature · fix: → fix · security-tagged fix → security · a behavioral refactor!/change: → change · a removal → removed.
  • breaking: true iff any grouped commit has ! after type/scope OR a BREAKING CHANGE: footer (orthogonal to type).
  • Skip-list (no entry, no bump contribution): docs, chore, style, test, ci, refactor, build — but FILE-AWARE. A skip-typed commit that touches a transportable path (docs/templates/**, dashboard/src/**, config/**, .kit-version, kit-changelog.yaml, the skills) is not skipped → reclassify it as change. (A docs: commit that edits a shipped card template is a real, transportable change.)
  • revert: — if it reverts a commit in this same $last..HEAD range, drop BOTH the reverted commit and the revert (they cancel; no entry, no bump). If it reverts a prior-release commit, classify change (or fix).
  • Unclassifiable non-bot commit → was already caught by the Step-0a gate.

If, after classification, there are zero releasable entries (e.g. everything was skip-listed), print "N commits found but none are releasable" and exit 0 — no bump, no tag.

Step 4: Compute the bump (BEFORE synthesizing entries)

The version must be known before entries are stamped. From the Step-3 classifications:

  • Default: PATCH for any releasable entry.
  • Escalate to MINOR iff any entry is feature OR breaking (0.x rule).
  • Highest-wins → exactly one bump for the release → targetVersion.
  • (At >= 1.0.0, breaking → MAJOR instead. Do not auto-cross 1.0.0 — that is a maintainer decision; confirm.)

So fix/security/change/removed-only releases are PATCH (never "no bump"). Confirm targetVersion with the maintainer.

Step 5: Synthesize entries

For each curated group build a kit-changelog.yaml entry (schema in references/changelog-schema.md): id (new stable slug), version: <targetVersion>, type, breaking, title, commits, conditions, detect (+ optional generic detect_hint), apply, default_action.

  • Write detect/apply generically — describe the pattern/component, never a specific entity ID.
  • default_action: ask for behavioral fixes/changes; skip-if-absent when feature-gated; auto only for self-contained, path-safe additions. It is a ceiling, never authority to run transported files.

Step 6: Write artifacts + render

  1. Append the new entries to kit-changelog.yaml under changes:. NEVER rewrite or reorder existing entries. De-dup: if an entry with the same id, or a ## [targetVersion] section, already exists, skip the append (idempotency).
  2. Render CHANGELOG.md from kit-changelog.yaml (Keep a Changelog 1.1.0): ## [x.y.z] - YYYY-MM-DD (date from the release, latest-first); sections Added / Changed / Removed / Fixed / Security mapped from type; one-line bullets with inline commit links; [**BREAKING**] prefix on breaking entries; omit an Unreleased section; compare links at the bottom. Render is deterministic (stable order by id within a version; no today()). Every entry appears in exactly one section.
  3. Render-check (idempotent): render again to a temp file and diff the two — expect zero diff. (Do NOT use git diff --exit-code CHANGELOG.md, which always trips because you just wrote it.) Also assert bullet-count == entry-count for the version.
  4. Bump .kit-version version: → targetVersion; bump dashboard/package.json version → targetVersion.
  5. python tools/validate_changelog.py — abort before committing on any failure.

Step 7: Commit + tag

bash
# Stage ONLY the artifacts, by explicit path — never `git add -A`.
git add kit-changelog.yaml CHANGELOG.md .kit-version dashboard/package.json
git commit -m "release: vX.Y.Z"

# Pre-existing-tag guard — never -f.
git rev-parse -q --verify "refs/tags/vX.Y.Z" >/dev/null && echo "TAG_EXISTS" || echo "TAG_FREE"
  • TAG_FREE → create the tag: git tag -s vX.Y.Z -m "Release vX.Y.Z" (or git tag -a if Step 0 said SIGN_NONE).
  • TAG_EXISTS → do NOT re-tag and NEVER use -f; if the tag points at a different commit than the one just built, report it and stop for manual intervention; otherwise fall through to Step 8's idempotent GitHub-release check.
  • Transactional rollback: if anything after the commit fails, roll back with git reset --hard <pre-release-HEAD> and git tag -d vX.Y.Z.

Local creation is complete. The commit and tag exist locally; nothing has been pushed. The push is a separate, explicitly confirmed step.

Step 8: Safe push + GitHub release

bash
# Resolve the kit remote by URL match — never assume `origin`.
kit_remote=$(git remote -v | awk '/homeassistant-claude-kit(\.git)?[[:space:]].*\(push\)/{print $1; exit}')
[ -n "$kit_remote" ] && git remote get-url "$kit_remote" || echo "NO_KIT_REMOTE"
  • NO_KIT_REMOTE → stop and ask. Never fall back to origin (an install's origin may be the user's own private config repo).
  • Display the resolved URL and get confirmation. Then push the single tag + the release commit:
    bash
    git push "$kit_remote" "refs/tags/vX.Y.Z"
    git push "$kit_remote" HEAD:"$def"
    Never git push --tags; never a bare/inferred remote; never -f.
  • GitHub release (skip if Step 0 said GH_NONE — print the command instead):
    bash
    owner_repo=$(git remote get-url "$kit_remote" | sed -E 's#(git@github.com:|https://github.com/)##; s#\.git$##')
    gh release view "vX.Y.Z" --repo "$owner_repo" >/dev/null 2>&1 \
      && echo "REL_EXISTS (skip)" \
      || gh release create "vX.Y.Z" --repo "$owner_repo" --title "vX.Y.Z" --notes-from-tag
    Idempotent: skip if the release already exists.

Completion

Released vX.Y.Z. Added N changelog entr(y/ies), bumped .kit-version and dashboard/package.json, rendered CHANGELOG.md, and pushed a signed (or annotated) tag to <kit-remote-url>. GitHub release: created / already existed / command printed. Re-running release on this version is a no-op.

Troubleshooting

SymptomLikely causeFix
TREE_DIRTY at Step 0Uncommitted tracked changesCommit or stash; releases never sweep in WIP
Intent-gate lists commitsNon-Conventional / body-less releasable commitsReword via interactive rebase before releasing
"Nothing to release"HEAD is at the last tag (empty range)Expected no-op; nothing to do
"none are releasable"All commits are skip-listed (docs/chore/…) and touch no transportable pathNo release needed
Render-check shows a diffCHANGELOG.md was hand-editedRe-render from kit-changelog.yaml; never edit the .md by hand
validate_changelog.py failsMalformed/missing schema fieldFix the offending entry; re-run before committing
SIGN_NONENo usable signing keyAnnotated -a tag is created automatically; configure user.signingkey for signed tags
TAG_EXISTSVersion already taggedDo not -f; if it diverges, resolve manually; else continue to the GitHub-release check
NO_KIT_REMOTEOnly a non-kit remote configuredAdd/identify the kit remote explicitly; never push to origin blindly
GH_NONEgh not authenticatedgh auth login, or create the release manually — the tag is already pushed

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

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

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

Cut a new homeassistant-claude-kit version. Curates commits since the last tag into kit-changelog.yaml entries, derives the semver bump, renders CHANGELOG.md, bumps .kit-version + dashboard/package.json, then creates a signed tag and (confirmed) GitHub release. Producer-only — runs entirely inside the kit repo, reads only its own git history. Trigger phrases: "cut a release", "release the kit", "bump the kit version", "tag a new version", "run the release skill", "publish vX.Y.Z".

Vì sao nên dùng 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. 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 Release trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/dcb/homeassistant-claude-kit/tree/main/.claude/skills/release. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà 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 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 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 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 Release có miễn phí không?

Có. Kỹ năng này được dcb 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 👇