claude-changelog
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseClaude Code Changelog — 版本更新追踪
Claude Code Changelog — Version Update Tracking
获取 Claude Code 昨天到当前的所有版本更新,输出结构化的 changelog 摘要报告。
Retrieve all version updates of Claude Code from yesterday to the current time, and output a structured changelog summary report.
When to Use
When to Use
当用户请求以下操作时触发:
- "claude changelog" / "CC 更新了什么" / "claude code 最新更新"
- "what's new in claude code" / "最新版本"
- "今天 claude code 发了什么版本"
Trigger this when the user requests the following operations:
- "claude changelog" / "what's new in CC" / "latest updates of claude code"
- "what's new in claude code" / "latest version"
- "what versions of claude code were released today"
Phase 1: 数据采集
Phase 1: Data Collection
1.1 获取最新 releases
1.1 Get Latest Releases
运行以下命令获取最近的 GitHub Releases(拉取足够多以覆盖昨天到今天的所有版本):
bash
gh api repos/anthropics/claude-code/releases --jq '.[0:30] | .[] | {tag_name, published_at, body}' 2>/dev/null如果 命令不可用,fallback 到 curl:
ghbash
curl -s "https://api.github.com/repos/anthropics/claude-code/releases?per_page=30"Run the following command to get the latest GitHub Releases (pull enough to cover all versions from yesterday to today):
bash
gh api repos/anthropics/claude-code/releases --jq '.[0:30] | .[] | {tag_name, published_at, body}' 2>/dev/nullIf the command is not available, fallback to curl:
ghbash
curl -s "https://api.github.com/repos/anthropics/claude-code/releases?per_page=30"1.2 确定时间范围
1.2 Determine Time Range
默认范围:昨天 CST 00:00 到当前时间。
用户可覆盖默认范围:
| 用户输入 | 筛选规则 |
|---|---|
| 默认(无指定) | 昨天 CST 00:00 ~ 当前时间 |
| 今天 / today | 今天 CST 00:00 ~ 当前时间 |
| 最近N天 | N天前 CST 00:00 ~ 当前时间 |
| 最新 / latest | 仅最新 1 个版本 |
| 全部 / all | 最近 30 个版本 |
先用 命令计算昨天 CST 00:00 对应的 UTC 时间戳,然后按 过滤 releases。
datepublished_atbash
undefinedDefault Range: Yesterday CST 00:00 to current time.
Users can override the default range:
| User Input | Filter Rule |
|---|---|
| Default (no specification) | Yesterday CST 00:00 ~ Current time |
| Today / today | Today CST 00:00 ~ Current time |
| Last N days | CST 00:00 N days ago ~ Current time |
| Latest / latest | Only the latest 1 version |
| All / all | Latest 30 versions |
First use the command to calculate the UTC timestamp corresponding to yesterday's CST 00:00, then filter releases by .
datepublished_atbash
undefined计算昨天 CST 00:00 的 UTC 时间(即昨天 UTC 16:00)
Calculate UTC time for yesterday's CST 00:00 (i.e., yesterday's UTC 16:00)
SINCE=$(TZ=Asia/Shanghai date -v-1d +"%Y-%m-%dT00:00:00+08:00" 2>/dev/null || TZ=Asia/Shanghai date -d "yesterday" +"%Y-%m-%dT00:00:00+08:00")
echo "筛选起点: $SINCE"
GitHub API 返回 UTC 时间,展示时转为 CST (UTC+8)。SINCE=$(TZ=Asia/Shanghai date -v-1d +"%Y-%m-%dT00:00:00+08:00" 2>/dev/null || TZ=Asia/Shanghai date -d "yesterday" +"%Y-%m-%dT00:00:00+08:00")
echo "Filter start point: $SINCE"
The GitHub API returns UTC time; convert it to CST (UTC+8) when displaying.Phase 2: 分析与分类
Phase 2: Analysis and Classification
对筛选后的版本进行分析。
Analyze the filtered versions.
2.1 变更分类
2.1 Change Classification
将每个 release body 中的条目分为以下类别:
| 类别 | 标记 | 说明 |
|---|---|---|
| NEW | 新功能 | 新增的用户可感知功能 |
| IMPROVE | 改进 | 对已有功能的增强 |
| FIX | 修复 | Bug 修复 |
| SECURITY | 安全 | 安全相关修复 |
| PERF | 性能 | 性能优化、内存优化 |
| PLATFORM | 平台 | 特定平台修复(Windows/macOS/Linux/VS Code) |
Classify entries in each release body into the following categories:
| Category | Tag | Description |
|---|---|---|
| NEW | New Features | New user-perceivable features |
| IMPROVE | Improvements | Enhancements to existing features |
| FIX | Bug Fixes | Bug fixes |
| SECURITY | Security | Security-related fixes |
| PERF | Performance | Performance optimizations, memory optimizations |
| PLATFORM | Platform | Platform-specific fixes (Windows/macOS/Linux/VS Code) |
2.2 重要性标注
2.2 Importance Labeling
对每个变更评估重要性:
- HIGH:新功能、breaking changes、安全修复
- MEDIUM:功能改进、常见 bug 修复
- LOW:平台特定修复、小优化
Assess the importance of each change:
- HIGH: New features, breaking changes, security fixes
- MEDIUM: Feature improvements, common bug fixes
- LOW: Platform-specific fixes, minor optimizations
Phase 3: 输出报告
Phase 3: Output Report
输出 markdown 格式的 changelog 摘要:
markdown
undefinedOutput a markdown-formatted changelog summary:
markdown
undefinedClaude Code Changelog Report
Claude Code Changelog Report
时间范围:{start_date} ~ {end_date} CST 版本数:{count} 个({earliest_version} → {latest_version})
Time Range: {start_date} ~ {end_date} CST Number of Versions: {count} ({earliest_version} → {latest_version})
速览
Quick Overview
值得关注的更新:
- {HIGH importance item 1}
- {HIGH importance item 2}
- ...
Notable Updates:
- {HIGH importance item 1}
- {HIGH importance item 2}
- ...
版本详情
Version Details
v{version} — {YYYY-MM-DD HH:MM} CST
v{version} — {YYYY-MM-DD HH:MM} CST
新功能
- {item}
改进
- {item}
修复
- {item}
New Features
- {item}
Improvements
- {item}
Bug Fixes
- {item}
v{version} — {YYYY-MM-DD HH:MM} CST
v{version} — {YYYY-MM-DD HH:MM} CST
...
...
统计
Statistics
| 类别 | 数量 |
|---|---|
| 新功能 | {n} |
| 改进 | {n} |
| 修复 | {n} |
| 性能 | {n} |
| 平台 | {n} |
**输出规则:**
- 时间统一用 CST (UTC+8) 展示
- 每个版本的变更条目保留原文,分类标签加在行首
- 版本按时间**从新到旧**排列
- 如果时间范围内无新版本,说明该时段无更新
- 将报告保存为 `claude-changelog-{date}.md` 到当前工作目录| Category | Count |
|---|---|
| New Features | {n} |
| Improvements | {n} |
| Bug Fixes | {n} |
| Performance | {n} |
| Platform | {n} |
**Output Rules:**
- Display time in CST (UTC+8) uniformly
- Keep the original text of change entries for each version, with category tags added at the beginning of the line
- Sort versions **from newest to oldest** by time
- If there are no new versions within the time range, indicate that there are no updates in this period
- Save the report as `claude-changelog-{date}.md` in the current working directoryEdge Cases
Edge Cases
- GitHub API 不可用:fallback 到 直接拉 CHANGELOG.md raw 文件:
curlcurl -s "https://raw.githubusercontent.com/anthropics/claude-code/main/CHANGELOG.md" | head -200 - 无网络:提示用户检查网络连接
- gh 未安装:自动 fallback 到 curl
- 时间范围内无版本:输出"该时段无新版本发布"并附最近一个版本的信息
- GitHub API unavailable: Fallback to pulling the raw CHANGELOG.md file directly with :
curlcurl -s "https://raw.githubusercontent.com/anthropics/claude-code/main/CHANGELOG.md" | head -200 - No network: Prompt the user to check network connection
- gh not installed: Automatically fallback to curl
- No versions in the time range: Output "No new versions released in this period" and attach information about the most recent version