Claude Code Plugins

Community-maintained marketplace

Feedback

release-version

@SatoriTours/Daily
3
0

发布 Daily Satori 新版本,生成更新日志并执行 git commit 和 git tag 命令

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

name release-version
description 发布 Daily Satori 新版本,生成更新日志并执行 git commit 和 git tag 命令
license MIT
compatibility opencode
metadata [object Object]

功能说明

为 Daily Satori 项目发布新版本,完整执行以下步骤:

  1. 获取版本号 - 从 pubspec.yaml 读取当前版本
  2. 收集变更 - 获取上一版本 tag 到当前 HEAD 的提交记录
  3. 生成日志 - 创建 docs/versions/changelog_${version}.md
  4. 提交代码 - 执行 git add .git commit
  5. 打版本标签 - 执行 git tag v${version}

使用场景

当需要发布新版本时使用,例如:

  • "帮我发布最新版本"

执行步骤

1. 获取版本号

current_version=$(grep "^version:" pubspec.yaml | sed 's/version: //' | tr -d ' ')

2. 获取上一版本 tag

previous_tag=$(git tag --sort=-v:refname | head -2 | tail -1)

3. 生成更新日志

根据提交记录整理,按以下格式分类:


- 新增 xx 功能
- 优化 xx 功能
- 修复 xx 问题

分类规则

  • 新增 - 新功能、新特性
  • 优化 - 性能改进、代码重构、用户体验提升
  • 修复 - Bug 修复、问题解决

保存到 docs/versions/changelog_${version}.md

4. 执行 Git 命令


# 提交所有变更
git add .
git commit -m "Release v${current_version}"

# 打标签
git tag v${current_version}

注意事项

  • 更新日志使用中文,聚焦功能变化
  • 按新增/优化/修复分类,不包含测试改进
  • 打标签前确认版本号正确
  • 推送前询问用户确认