Agent skill
release-version
发布 Daily Satori 新版本,生成更新日志并执行 git commit 和 git tag 命令
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/release-version-5a14ed33
Metadata
Additional technical details for this skill
- audience
- maintainers
- workflow
- github
SKILL.md
功能说明
为 Daily Satori 项目发布新版本,完整执行以下步骤:
- 获取版本号 - 从
pubspec.yaml读取当前版本 - 收集变更 - 获取上一版本 tag 到当前 HEAD 的提交记录
- 生成日志 - 创建
docs/versions/changelog_${version}.md - 提交代码 - 执行
git add .和git commit - 打版本标签 - 执行
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}
注意事项
- 更新日志使用中文,聚焦功能变化
- 按新增/优化/修复分类,不包含测试改进
- 打标签前确认版本号正确
- 推送前询问用户确认
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?