patch-notes
它能做什么
这个技能把游戏最近的代码改动转化为玩家可以阅读的补丁说明。适合希望发布说明清晰、不含开发术语的游戏团队。
适用场景
- ✓当游戏更新已经准备好,玩家需要知道有哪些改动的时候。
- ✓当团队希望根据最近的 git 历史和更新日志编写补丁说明的时候。
- ✓当开发者的提交信息需要转化为通俗的玩家语言的时候。
技能链接
https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/patch-notes/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请根据 git 历史,为我们上次更新之后的改动编写对玩家友好的补丁说明。”
每周 5 个新技能,1 分钟读完。
工作原理
这个技能会读取最近的提交和更新日志,筛掉只属于内部项目工作的改动,然后用通俗的语言重写玩家可以看到的改动。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
!bash "${CLAUDE_SKILL_DIR}/../../hooks/yaml-helper.sh" resolve_config --keys automation
Automation mode: Resolve modes.automation (project.local.yaml →
project.yaml → default collaborative). Every AskUserQuestion call and
every file write follows .claude/docs/automation-modes.md
(collaborative asks always · guided major-only · autonomous logs and proceeds;
automation_always_ask categories always prompt).
Patch Notes
Provenance check — before reading any history
Confirm the history you are about to read belongs to THIS game. Run this before Phase 2 and stop if it fails.
- Sample the recent log:
git log --oneline -20. If it is empty or git is unavailable, skip this check — there is nothing to classify, and Phase 2's no-changelog-data branch is the right stop. - Classify every commit in the range, one at a time, into exactly one of:
- Game — changes the game the player plays: mechanics, content, balance, art, audio, UI, a bug in any of those.
- Framework / maintenance — changes CCGS itself or the project's tooling: subjects naming skills, hooks, agents, the test plan, CI, the framework's own docs. Excluded from player-facing notes, but not a reason to stop.
- Unclear — treat as framework. A commit you cannot confidently place is not one to write player copy from.
- Then decide from the counts:
- At least one Game commit → proceed, using only those. Say how many of how many you used, so the reader can see the filter ran.
- Zero Game commits → stop, using the message below, and give the count (0 of how many) so the reader can see the filter ran.
Filter per commit; do not stop on a repo that merely contains maintenance work. Every project built on this framework accumulates commits touching hooks, CI and skills — the game repo is the framework repo, so a repo-level stop fires on virtually every real project. The danger is not that such commits exist; it is that they get rendered as player-facing copy. Excluding them addresses that exactly, and a repo-level stop does not.
Corroborate before you proceed, cheaply: the Game commits should name systems
that appear in design/ and the code root (src/, Assets/ or Source/). If
they name a product those directories
never mention, that is the real wrong-history signal — stop.
If no commit in the range is this game's, say so and stop:
"The git history in this repo does not appear to belong to [game]: 0 of the [N] recent commits are Game commits. The recent commits describe [what they actually describe]. I cannot generate release notes from it — point me at the right history, or supply the change list directly."
Verdict: BLOCKED — stop here without generating notes.
Why this is a hard stop, not a warning. Framework-internal commits rendered as player copy read as real changes: a session-hook timeout becomes "Fixed an issue where progress from your last session could be lost on launch" in a game with no save system. That copy is fluent, plausible, and entirely false. A reader cannot tell the difference; only this check can.
Phase 1: Parse Arguments
version: the release version to generate notes for (e.g.,1.2.0)--style: output style —brief(bullet points),detailed(with context),full(with developer commentary). Default:detailed.
If no version is provided, ask the user before proceeding.
Phase 2: Gather Change Data
- Read the internal changelog at
production/releases/[version]/changelog.mdif it exists - Also check
docs/CHANGELOG.mdfor the relevant version entry - Run
git logbetween the previous release tag and current tag/HEAD as a fallback - Read sprint retrospectives in
production/sprints/for context - Read any balance change documents in
design/balance/ - Read bug fix records from QA if available
If no changelog data is available (neither production/releases/[version]/changelog.md
nor a docs/CHANGELOG.md entry for this version exists, and git log is empty or unavailable):
"No changelog data found for [version]. Run
/changelog [version]first to generate the internal changelog, then re-run/patch-notes [version]."
Verdict: BLOCKED — stop here without generating notes.
Phase 2b: Detect Tone Guide and Template
Tone guide detection — before drafting notes, check for writing style guidance:
- Check `.claude/docs
常见问题
内部工具的改动会出现在说明中吗?
不会。开发工具和框架的改动会从面向玩家的说明中去除。
如果历史为空怎么办?
技能会停止,并报告没有可供编写的更新日志数据。
它会检查历史是否属于这款游戏吗?
会。它会先检查提交记录,如果看起来不属于这款游戏,就会停止。
详情
作者的原始描述
Player-facing patch notes from git history and changelogs. Translates developer language into player communication.
热度
- GitHub 星标
- 33k
- 排名
- #8465
- 许可证
- MIT
- 更新时间
- 2026/10/18
评论
- …