git-changelog
生成 git commit 信息或 changelog。先通过 git 指令将变更写到 _diff.md,再读取 _diff.md 生成内容。Windows 下 git diff 会卡死,且 PowerShell 重定向会导致乱码,必须使用 [System.IO.File]::WriteAllText 方法。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
生成 git commit 信息或 changelog。先通过 git 指令将变更写到 _diff.md,再读取 _diff.md 生成内容。Windows 下 git diff 会卡死,且 PowerShell 重定向会导致乱码,必须使用 [System.IO.File]::WriteAllText 方法。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
通过对比当前分支与合适基准引用(PR 分支优先使用 PR base,否则使用用户指定基准或 `master`)、检查差异,并把变更行为整理成最小可行的游戏内检查清单,为这个 Don't Starve Together 模组生成手动测试计划,同时同步写入仓库根目录 `test.md`。当用户要求测试计划、QA 清单、验证步骤、回归清单,或询问如何在没有自动化测试的情况下手动测试 DST 模组改动时使用。
为这个 Don't Starve Together 模组规划、撰写或配套截图准备语雀对外文档时使用。通过对照用户提供的对外日志、git log/PR、现有语雀页面结构和源码行为,生成按语雀页面拆分的玩家可读正文、截图占位和最少 DST 控制台截图指令;适用于更新日志、食物、建筑、工具、鲜活世界等页面,默认直接在对话中输出可复制 Markdown,只有用户明确要求时才生成 docx 或尝试直接更新语雀。
Read Don't Starve Together base-game scripts, this mod's files, and animation resource references when implementing or verifying DST APIs and prefab behavior. Use when code depends on DST components, prefabs, widgets, stategraphs, AnimState bank/build/symbol names, or when Codex needs to inspect a game's item animation contents.
Generate commit messages or changelog text for this project. Use when the task is to inspect git changes, summarize diffs, or draft Conventional Commit messages on Windows/PowerShell.
Explain the structure of the dst_additional_item_package mod. Use when the task is to orient within this repository, find where features live, or recall naming conventions and core directories.
读取DST游戏基础API和模组文件。开发模组时调用,优先从游戏源码查找API参考,然后读取模组文件进行开发。
| name | git-changelog |
| description | 生成 git commit 信息或 changelog。先通过 git 指令将变更写到 _diff.md,再读取 _diff.md 生成内容。Windows 下 git diff 会卡死,且 PowerShell 重定向会导致乱码,必须使用 [System.IO.File]::WriteAllText 方法。 |
此 skill 用于生成 git commit 信息或 changelog。由于 Windows 下 git 不支持翻页,直接执行 git diff 会卡死,因此必须按照以下流程操作。
每次需要查看变更时,必须先执行以下命令将变更写入 _diff.md 文件。
注意:由于 Windows PowerShell 的编码问题,必须使用以下 PowerShell 命令来正确处理 UTF-8 编码:
查看工作区与暂存区的差异:
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8; $output = git diff; [System.IO.File]::WriteAllText((Resolve-Path _diff.md).Path, $output, [System.Text.Encoding]::UTF8)
或者查看已暂存的变更:
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8; $output = git diff --cached; [System.IO.File]::WriteAllText((Resolve-Path _diff.md).Path, $output, [System.Text.Encoding]::UTF8)
或者查看最近一次提交的变更:
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8; $output = git diff HEAD~1 HEAD; [System.IO.File]::WriteAllText((Resolve-Path _diff.md).Path, $output, [System.Text.Encoding]::UTF8)
重要:
git diff 查看输出git diff > _diff.md(会导致乱码)使用 Read 工具读取 _diff.md 文件:
Read _diff.md
根据 _diff.md 的内容,生成以下任一内容:
Git Commit Message:遵循 Conventional Commits 规范
<type>(<scope>): <subject>feat(api): add user authentication endpointChangelog:按版本或日期组织变更
当用户以下任一情况时调用此 skill:
git diff 查看输出_diff.md 应位于项目根目录[System.IO.File]::WriteAllText 方法并指定 UTF-8 编码,否则会出现乱码> 重定向操作符(如 git diff > _diff.md),这会导致编码问题_diff.md 文件,以便于后续查看或分析PowerShell 命令(推荐,避免乱码):
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8; $output = git diff; [System.IO.File]::WriteAllText((Resolve-Path _diff.md).Path, $output, [System.Text.Encoding]::UTF8):工作区与暂存区的差异[Console]::OutputEncoding = [System.Text.Encoding]::UTF8; $output = git diff --cached; [System.IO.File]::WriteAllText((Resolve-Path _diff.md).Path, $output, [System.Text.Encoding]::UTF8):暂存区与最后一次提交的差异[Console]::OutputEncoding = [System.Text.Encoding]::UTF8; $output = git diff HEAD; [System.IO.File]::WriteAllText((Resolve-Path _diff.md).Path, $output, [System.Text.Encoding]::UTF8):工作区与最后一次提交的差异[Console]::OutputEncoding = [System.Text.Encoding]::UTF8; $output = git diff HEAD~1 HEAD; [System.IO.File]::WriteAllText((Resolve-Path _diff.md).Path, $output, [System.Text.Encoding]::UTF8):查看最近一次提交的变更[Console]::OutputEncoding = [System.Text.Encoding]::UTF8; $output = git diff <branch1> <branch2>; [System.IO.File]::WriteAllText((Resolve-Path _diff.md).Path, $output, [System.Text.Encoding]::UTF8):比较两个分支的差异[Console]::OutputEncoding = [System.Text.Encoding]::UTF8; $output = git diff --stat; [System.IO.File]::WriteAllText((Resolve-Path _diff.md).Path, $output, [System.Text.Encoding]::UTF8):显示变更统计信息Git 原始命令(仅作参考):
git diff:工作区与暂存区的差异git diff --cached:暂存区与最后一次提交的差异git diff HEAD:工作区与最后一次提交的差异git diff HEAD~1 HEAD:查看最近一次提交的变更git diff <branch1> <branch2>:比较两个分支的差异git diff --stat:显示变更统计信息遵循 Conventional Commits 规范:
<type>(<scope>): <subject>
<body>
<footer>
类型说明:
feat: 新功能fix: 修复 bugdocs: 文档更新style: 代码格式(不影响功能)refactor: 重构test: 测试相关chore: 构建/工具链相关perf: 性能优化ci: CI/CD 相关build: 构建系统相关revert: 回退提交## [版本号] - YYYY-MM-DD
### 新增
- 描述新增的功能
### 修复
- 描述修复的问题
### 变更
- 描述重要的变更
### 移除
- 描述移除的功能