写作与翻译

面向用户的软件版本更新说明

指定发布版本及变更范围,从 Git 提交、合并请求和代码变动中提炼功能与修复,写成用户易读的说明。

# 版本更新说明撰写助手

## 概述

根据 git 历史、拉取请求和代码变更,生成面向用户的精炼版本更新说明,自动分类并总结变更,以清晰易懂的格式呈现。

## 工作流程

### 1. 收集版本发布信息

收集版本更新说明的范围和来源:

**确定发布范围:**
- 即将发布哪个版本?(例如 v2.1.0)
- 版本范围是什么?(例如从 v2.0.0 到 v2.1.0)
- 应包含哪些提交/PR?
- 这是主版本、次版本还是补丁版本?

**快速入门命令:**
```bash
# Get commits since last tag
git log $(git describe --tags --abbrev=0)..HEAD --oneline

# Get commits between two tags
git log v2.0.0..v2.1.0 --oneline

# Get commits since specific date
git log --since="2024-01-01" --oneline

# List all tags
git tag -l

# Get merged PRs (if using GitHub)
gh pr list --state merged --limit 50
```

### 2. 提取变更信息

从可用来源收集详细信息:

#### 从 Git 提交中提取

```bash
# Get commit messages with details
git log v2.0.0..v2.1.0 --pretty=format:"%h - %s (%an)" --no-merges

# Get commits by author
git log v2.0.0..v2.1.0 --author="AuthorName" --oneline

# Get commit messages with full body
git log v2.0.0..v2.1.0 --format="%h %s%n%b%n"
```

**解析提交信息规范:**
- `feat:` 或 `feature:` → 新功能
- `fix:` 或 `bugfix:` → 错误修复
- `perf:` 或 `performance:` → 性能改进
- `docs:` 或 `doc:` → 文档
- `refactor:` → 代码质量/重构
- `test:` → 测试
- `chore:` → 内部事务/维护
- `BREAKING:` 或 `!:` → 破坏性变更

#### 从拉取请求中提取

如果使用 GitHub CLI:
```bash
# Get merged PRs
gh pr list --state merged --limit 100 --json number,title,body,labels,mergedAt

# Get PR details
gh pr view <PR-NUMBER>
```

**从 PR 中提取:**
- 标题(通常比提交信息更便于用户理解)
- 描述(可能包含面向用户的摘要)
- 标签(feature、bug、breaking-change 等)
- 关联的 issue

#### 从更新日志文件中提取

检查现有的更新日志条目:
```bash
# Look for changelog files
find . -name "CHANGELOG.md" -o -name "HISTORY.md" -o -name "RELEASES.md"

# Check for unreleased section
grep -A 20 "Unreleased" CHANGELOG.md
```

#### 从代码差异中提取

当提交信息缺少细节时,根据代码推断变更:
```bash
# See what files changed
git diff --stat v2.0.0..v2.1.0

# See what functions/classes were added
git diff v2.0.0..v2.1.0 --unified=0 | grep "^+def\|^+class"

# See API changes
git diff v2.0.0..v2.1.0 -- "*.py" | grep -E "^[+-]def |^[+-]class "
```

### 3. 对变更分类

将变更整理到标准类别中:

#### 类别:✨ 新功能

用户可见的新能力:
- 新的 API 端点
- 新的 UI 组件
- 新的配置选项
- 新增支持的平台
- 新的集成

**示例:**
- “新增深色模式支持”
- “为大型数据集引入批量处理功能”

#### 类别:🐛 错误修复

对现有功能的修正:
- 修复崩溃或错误
- 修正非预期行为
- 解决数据不一致问题
- 修复安全漏洞

#### 类别:🚀 改进

对现有功能的增强:
- 性能优化
- 改进错误提示
- 改进 UX/UI
- 提高可靠性

#### 类别:⚠️ 破坏性变更

需要用户采取行动的变更:
- API 签名变更
- 移除功能
- 更改默认行为
- 需要迁移

### 4. 筛选面向用户的变更

**包含:**
- 用户会注意到的变更
- 用户需要了解的变更
- 影响用户使用产品方式的变更
- 安全修复(对用户有影响)

**排除或尽量减少:**
- 内部重构
- 新增测试
- 构建配置变更
- 代码风格更新
- 开发工具变更

**将技术描述转换为便于用户理解的表述:**
```
❌ "Refactored AuthService to use dependency injection"
✅ "Improved authentication reliability"

❌ "Updated webpack config for tree shaking"
✅ "Reduced bundle size by 20%"

❌ "Fixed race condition in concurrent processing"
✅ "Improved stability when processing multiple items simultaneously"
```

### 5. 生成版本更新说明

创建格式化的 Markdown 输出:

## 模板结构

```markdown
# Release Notes - Version X.Y.Z

**Release Date:** YYYY-MM-DD

## Summary

[1-3 sentence overview of the release]

---

## ✨ New Features

- **[Feature Title]**: [User-friendly description]
- **[Feature Title]**: [Description with benefit]

## 🚀 Improvements

- **[Improvement Title]**: [How this makes things better]
- **[Improvement Title]**: [Description]

## 🐛 Bug Fixes

- Fixed [issue description]
- Resolved [problem users were experiencing]

## ⚠️ Breaking Changes

- **[Breaking Change Title]**: [What changed and what users need to do]
  - **Migration:** [Step-by-step guidance]
  - **Before:** `code example`
  - **After:** `code example`

---

## 📊 Statistics

- X features added
- Y bugs fixed
- Z improvements made

## 🙏 Contributors

Thank you to all contributors who made this release possible:
- @username1
- @username2
```

### 6. 撰写便于用户理解的描述

让每项变更都清晰易懂,并体现其价值:

**使用主动、突出用户收益的语言:**
```
❌ "Added pagination to API"
✅ "You can now request data in pages, making it easier to work with large datasets"

❌ "Implemented OAuth2 authentication"
✅ "Sign in with your Google, GitHub, or Microsoft account"

❌ "Optimized database queries"
✅ "Reports now load 3x faster"
```

**具体说明影响:**
```
❌ "Performance improvements"
✅ "Search results now appear in under 100ms, down from 2 seconds"

❌ "Better error handling"
✅ "Error messages now include specific suggestions for fixing the issue"
```

**为 API 变更提供代码示例:**
```markdown
### Breaking Change: Authentication Method Updated

**Before:**
```python
client = APIClient(session_token="abc123")
```

**修改后:**
```python
client = APIClient(api_key="sk-abc123")
```

**迁移:** 更新初始化代码,使用新的 `api_key` 参数。
```

### 7. Review and Polish

Before finalizing:

**Check completeness:**
- ✅ All significant changes included?
- ✅ Breaking changes clearly marked?
- ✅ User action items specified?
- ✅ Version number correct?

**Check clarity:**
- ✅ Descriptions are user-friendly, not technical?
- ✅ Benefits are clear?
- ✅ No internal jargon?
- ✅ Examples provided where helpful?

**Check organization:**
- ✅ Changes grouped logically?
- ✅ Most important changes listed first?
- ✅ Breaking changes prominently displayed?

## Example Output

```markdown
# Release Notes - Version 2.3.0

**Release Date:** February 15, 2026

## Summary

Version 2.3.0 brings enhanced search capabilities, performance improvements, and several bug fixes.

---

## ✨ New Features

- **Advanced Search Filters**: Filter search results by date, category, and status for more precise results
- **Keyboard Shortcuts**: Navigate the app faster with new keyboard shortcuts (press `?` to see all)
- **Export to Excel**: Export your data to Excel format in addition to CSV

## 🚀 Improvements

- **Faster Search**: Search results now appear instantly (improved from 2s to <100ms)
- **Better Mobile Experience**: Optimized interface for mobile devices
- **Smarter Autocomplete**: Autocomplete suggestions now learn from your previous searches

## 🐛 Bug Fixes

- Fixed issue where saving large files would occasionally fail
- Resolved problem with date picker not working in Safari
- Corrected timezone display for users in Asia-Pacific regions

---

## 📊 Statistics

- 3 new features
- 4 bugs fixed
- 3 improvements
- 47 commits
- 8 contributors

## 🙏 Contributors

Thank you to: @alice, @bob, @charlie, @diana, @eve, @frank, @grace, @henry
```

## 撰写有效版本更新说明的技巧

**聚焦用户价值:**
- 用户现在可以做什么?
- 解决了哪些问题?
- 哪些方面变得更好、更快或更简单?

**如实说明破坏性变更:**
- 醒目标出这些变更
- 提供清晰的迁移路径
- 解释进行变更的原因

**保持语言一致:**
- 使用现在时:“你现在可以……”,而非“你将能够……”
- 使用主动语态:“新增了功能”,而非“功能已被添加”
- 以用户为中心:“你可以”,而非“系统允许”

**将相关变更归组:**
- 不要单独列出每一次提交
- 合并相关的修复/功能
- 汇总多项小幅改进

**感谢贡献者:**
- 表彰社区贡献
- 感谢外部贡献者
- 增进好感与参与度

同类提示词

写作与翻译

按叙事节奏拆分短片制作计划

提供短片构想,可补充时长和风格偏好,把故事拆成带开场钩子的场次,明确景别、动作、服装和剪辑节奏。

# 视频策划 使用此技能将用户的短片创意转化为实用的逐场景制作方案。该方案应适用于拍摄、剪辑、AI 视频生成,或与摄影师/剪辑师沟通。 最终方案应使用用户偏好的本地语言撰写。如果用户使用中文,除非明确要求其他语言,否则用中文输出方案。技能说明保持英文,但交付内容的语言应适应用户。 ## 主要目标 制作一份完整的短视频方案,满足以下要求: - 协商或推断总时长。 - 将视频划分为多个场景,每个场景至少为 4 seconds,且不超过 15 seconds。 - 在可行时优先采用 4、9、12 或 15 seconds 的场景时长。 - 使用清晰可
写作与翻译

三十天多渠道营销内容日历

给品牌资料、渠道、月目标和制作资源,按漏斗排三十天主题、发布及行动号召,发布前评分。

# 全球内容日历 > 规划一份为期 30 天的多渠道内容日历,确定漏斗比例、内容支柱和来源类型组合,并在发布前进行 AI 评分。 --- ## 第 0 步——读取上下文文件 生成日历前,读取 `.agents/product-marketing-context-global.md`,了解: - 品牌声音与语气 - 当前运营的渠道及粉丝基础 - 地区(决定最佳发布时间和渠道组合) - 货币(决定涉及金额的行动号召如何表述) 如果文件缺失,请用户先运行 `product-marketing-context-global`。 --- ## 信息
可填 1 项
写作与翻译

单场景分镜图与视频生成脚本

提供要制作的场景,按镜头时长生成分镜图和视频脚本,有现成人物图时沿用其造型。

# 视频分镜 使用此 skill 为特定场景制作一套可直接用于制作的分镜方案: 1. 将分镜图保存到 `storyboard/scene-XX.png`。 2. 将视频生成提示词脚本保存到 `storyboard/scene-XX.md`。 用英文编写 skill 指令,但面向用户的 `.md` 脚本应使用用户偏好的本地语言,除非用户明确要求使用其他语言。 ## 图像生成要求 分镜图必须由图像生成模型生成。不要用代码、SVG、HTML/CSS、canvas、图表、占位画或确定性形状脚本制作分镜画面。这些方法只可用于非视觉元数据或文件操作,绝不能
需参考图
写作与翻译

可灵短视频剧情与图生视频脚本

按单场景或多角色剧情编写生成指令,覆盖动作、运镜和音频;图生视频需上传参考图并说明变化。

# kling-prompter Kling 3.0(可灵 3.0,快手)的三套主流写法:4 部分基础 / 5 层进阶 / 图生视频。 ## 何时不用此 skill - 复杂多镜头分镜叙事(>15s) → 用 [seedance-storyboard](../seedance-storyboard/) - 5/10/15 秒紧凑短片,对原生音频要求不高 → 用 [happyhorse-prompter](../happyhorse-prompter/) - 已有 Seedance 提示词需修问题 → 用 [seedance-debugger](..
需参考图中文原创
写作与翻译

明确交付物和负责人的工作坊

提供工作坊目标与参会情况,围绕一个成果设计议程,安排分组讨论、决策和会后负责人。

# 工作坊设计师 大多数工作坊都以同一种方式失败:讨论了很多,产生了无人记录的“共识”,然后又发出下一场工作坊的日历邀请。这个技能设计的会议以**确定的成果和明确的负责人**收尾,因为只有这样才值得占用参与者一周中的时间。 检验任何工作坊的标准:**这间会议室里会产出什么成果,谁负责下一步?** 如果答不上来,就不要举办工作坊。 --- ## 设计选择 - **只设一个结果,不要三个。** 有三个目标的工作坊一个也达不成。强制排序,确定一个决策或一项成果。 - **先发散,再收敛,绝不同时进行。** 头脑风暴和决策需要不同的思维模式。把两者混在
写作与翻译

视频拍摄与剪辑交付说明

提供口播稿和品牌资料,填写日期并附参考视频,明确前三秒、拍摄、剪辑、字幕和各渠道导出规格。

# 视频剪辑简报(全局) 一份好的视频简报,应让拍摄人员清楚如何布置现场,让剪辑人员知道如何剪辑,无须再打电话解释。开头 three seconds 必须能单独成片。 **与 `04-script-video-global` 的区别:**脚本是口播内容(说什么,按钩子—主体—CTA组织)。这份简报是制作指导(拍什么、怎么剪、用什么音乐、叠加什么内容、如何导出)。如果还没有脚本,先运行 `04-script-video-global`,再将其中的台词粘贴到下方分镜表的“Dialogue / VO”列。 ## 信息收集 阅读 `.agents/pro
可填 1 项
✓