Agent Skills › rokartur/BetterCmdTab › release-changelog

release-changelog

GitHub

基于Git版本范围生成面向用户的发布说明,通过代码差异和PR验证Issue引用,确保内容准确并符合规范格式。

.agents/skills/release-changelog/SKILL.md rokartur/BetterCmdTab

Trigger Scenarios

用户请求生成本次或特定版本的发布说明 需要整理从某版本到HEAD的变更日志

Install

npx skills add rokartur/BetterCmdTab --skill release-changelog -g -y
More Options

Non-standard path

npx skills add https://github.com/rokartur/BetterCmdTab/tree/main/.agents/skills/release-changelog -g -y

Use without installing

npx skills use rokartur/BetterCmdTab@release-changelog

指定 Agent (Claude Code)

npx skills add rokartur/BetterCmdTab --skill release-changelog -a claude-code -g -y

安装 repo 全部 skill

npx skills add rokartur/BetterCmdTab --all -g -y

预览 repo 内 skill

npx skills add rokartur/BetterCmdTab --list

SKILL.md

Frontmatter
{
    "name": "release-changelog",
    "description": "Changelog generation for BetterCmdTab from a version or tag through HEAD. Use when the user requests release notes with verified GitHub issue references."
}

Release changelog

Create end-user release notes from a base version through the latest commit. The GitHub Release body is the project's only changelog. Return Markdown unless the user names an output file.

1. Fix the range and format

Read compose_release_notes_interactively in scripts/build_release.sh. Its section names, heading levels, and order are canonical.

Use the requested base ref. Resolve a bare stable version first; only try its v-prefixed tag when reading a historical release without a bare ref. If no base was given, use git describe --tags --abbrev=0 HEAD and state that choice. The target is HEAD unless the user supplied another commit. Resolve both endpoints with git rev-parse and verify the range with git merge-base --is-ancestor.

Complete when: the exact BASE..TARGET range is valid and the canonical output structure is known from the current repository files.

2. Build an evidence ledger

Inspect every commit with git log --reverse --format=fuller "$BASE..$TARGET" and every net changed file with git diff --name-status "$BASE..$TARGET". Read patches whenever a subject does not prove the user-visible outcome. Classify every commit as either:

  • one observable user change, possibly grouped with related commits; or
  • excluded because it is only chore, refactor, build, test, ci, or documentation.

Collect issue numbers from commit messages and associated pull requests. Query pull requests with gh pr view ... --json body,closingIssuesReferences and confirm candidates with gh issue view. A printed number must identify a relevant issue, not merely the pull request containing the change. Append verified issues to the matching bullet as (#123, #456). Leave the suffix off when no issue is verified.

Complete when: every commit and changed file is accounted for, every included claim is supported by a diff, and every printed issue number is verified and relevant.

3. Write outcome-first notes

Start directly with the canonical Highlights heading. Put its one- or two-sentence summary on one physical line so extract_highlight_line can consume it.

Emit only non-empty canonical sections, in the script's order and at its exact heading depth. Each section item is one physical line in the form - User-visible outcome so extract_bullets_under_heading can consume it. Describe what users can now do, what changed for them, or what no longer breaks. Use product language rather than commit subjects, implementation symbols, or contributor workflow.

Use the Security section only for user-relevant security changes. Use Known issues only for confirmed unresolved behavior in the target. Combine duplicate outcomes and keep issue suffixes at the end of their bullets.

After a blank line, end with:

**Full changelog:** https://github.com/rokartur/BetterCmdTab/compare/<BASE>...<TARGET-REF>

Use the intended bare release tag as TARGET-REF when the user supplied it; strip a leading v from a new target tag. Otherwise use the resolved target commit SHA.

Complete when: the first line is the canonical Highlights heading, all headings exactly match build_release.sh, empty sections are absent, every bullet is user-facing, and the footer represents the inspected range.

Version History

  • 3df8c68 Current 2026-10-18 19:36

    增强证据链构建,要求查询PR详情并验证Issue关联;优化输出结构,明确Highlights标题格式及Security/Known issues使用规则。

  • 78c2e88 2026-07-19 10:02

Same Skill Collection

.agents/skills/add-preference/SKILL.md
.agents/skills/babysit-pr/SKILL.md
.agents/skills/localize-strings/SKILL.md
.agents/skills/marketing-screenshots/SKILL.md
.agents/skills/release/SKILL.md
.agents/skills/verify/SKILL.md

Metadata

Files
0
Version
3df8c68
Hash
c8e5159a
Indexed
2026-07-19 10:02

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-19 05:49
浙ICP备14020137号-1