claude-changelog

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Claude 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
如果
gh
命令不可用,fallback 到 curl:
bash
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/null
If the
gh
command is not available, fallback to curl:
bash
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 个版本
先用
date
命令计算昨天 CST 00:00 对应的 UTC 时间戳,然后按
published_at
过滤 releases。
bash
undefined
Default Range: Yesterday CST 00:00 to current time.
Users can override the default range:
User InputFilter Rule
Default (no specification)Yesterday CST 00:00 ~ Current time
Today / todayToday CST 00:00 ~ Current time
Last N daysCST 00:00 N days ago ~ Current time
Latest / latestOnly the latest 1 version
All / allLatest 30 versions
First use the
date
command to calculate the UTC timestamp corresponding to yesterday's CST 00:00, then filter releases by
published_at
.
bash
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:
CategoryTagDescription
NEWNew FeaturesNew user-perceivable features
IMPROVEImprovementsEnhancements to existing features
FIXBug FixesBug fixes
SECURITYSecuritySecurity-related fixes
PERFPerformancePerformance optimizations, memory optimizations
PLATFORMPlatformPlatform-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
undefined
Output a markdown-formatted changelog summary:
markdown
undefined

Claude 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` 到当前工作目录
CategoryCount
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 directory

Edge Cases

Edge Cases

  • GitHub API 不可用:fallback 到
    curl
    直接拉 CHANGELOG.md raw 文件:
    curl -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
    curl
    :
    curl -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