changelog
它能做什么
这个技能为项目写出改动摘要。适合希望无需手写就能得到发布说明的团队。
适用场景
- ✓当你准备新版本,需要一份改动清单的时候。
- ✓当你希望为团队准备内部更新日志,并为玩家准备另一份的时候。
- ✓当需要把冲刺工作和提交内容汇总到一处的时候。
技能链接
https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/changelog/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为这个版本写更新日志,包括一份团队版本和一份面向玩家的版本。”
每周 5 个新技能,1 分钟读完。
工作原理
它会从 git 读取最近的提交和标签,并检查每个提交,以区分游戏改动与框架或维护工作。然后它会写出内部版本和面向玩家的版本。
技术内容(原始 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).
Changelog
Recent History
Recent commits:
!git log --oneline -30 2>/dev/null || true
Recent tags (newest first):
!git tag --list --sort=-v:refname 2>/dev/null | head -5
Provenance check — before trusting the history above
The commits above may not belong to this game. This skill's history blocks are auto-resolved before the body runs, so the read has already happened — what this check governs is whether that output is usable, not whether it is fetched.
- Read the injected commit subjects above. If there are none — the log is empty or git is unavailable — skip this check: there is nothing to classify, and Phase 1's no-history branch is the right stop.
- Classify each one as Game (mechanics, content, balance, art, audio, UI, or a bug in those), Framework / maintenance (subjects naming skills, hooks, agents, the test plan, CI, or the framework's own docs), or Unclear — and treat Unclear as Framework.
- Decide from the counts:
- At least one Game commit → proceed using only those, and state how many of how many you used.
- Zero Game commits → stop, using the message below.
Filter per commit; a repo containing maintenance work is not a wrong repo. Every project on this framework accumulates commits touching hooks, CI and skills — the game repo is the framework repo, so stopping on them would fire on virtually every real project. The harm is those commits becoming release copy, and excluding them prevents that precisely.
This rule is kept identical to
/patch-notes' on purpose — the two read the same history for different audiences, and they must not disagree about whose history it is. Change both together.
The genuine wrong-history signal is different: Game commits naming a product that
design/ and the code root (src/, Assets/ or Source/) never mention. If you
see that, 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 a changelog from it — point me at the right history, or supply the change list directly."
Verdict: BLOCKED — stop here without generating a changelog.
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.
Do not treat the preamble's existence as evidence. Injected output means the command ran, never that its subject is your game.
Both blocks are resolved before this skill runs. Use them as the starting point for Phase 2 rather than re-running the same commands.
Phase 1: Parse Arguments
Read the argument for the target version or sprint number. If a version is given, use the corresponding git tag. If a sprint number is given, use the sprint date range.
Verify the repository is initialized: run git rev-parse --is-inside-work-tree to confirm git is available. If not a git repo, inform the user and abort gracefully.
If there is no history to read — not a git repository, or no commits yet:
"No git history found. A changelog is built from commits — commit the work first, or supply the change list directly."
Verdict: BLOCKED — stop here without generating a changelog.
Phase 2: Gather Change Data
Read the git log since the last tag or release:
git log --oneline [last-tag]..HEAD
If no tags exist, bound the range explicitly — git log --oneline -n 100. Do not
fall back to the full log: on an established repo that is thousands of lines for
a changelog covering one release, and the oldest of them are the least relevant.
If 100 commits does not reach far enough back, say so and ask for a st
常见问题
维护类提交会出现在玩家说明中吗?
不会。它们会被单独分类,框架和维护工作不会出现在面向玩家的版本中。
如果 git 历史为空怎么办?
技能会在此停止,因为没有可以汇总的内容。
它需要 git 吗?
需要。它会从 git 代码仓库中读取提交历史和标签。
详情
作者的原始描述
Auto-generate a changelog from git commits and sprint data. Internal and player-facing versions.
热度
- GitHub 星标
- 33k
- 排名
- #8444
- 许可证
- MIT
- 更新时间
- 2026/10/18
评论
- …