Agent skill
release-version
发布 Daily Satori 新版本,生成更新日志并执行 git commit 和 git tag 命令
Install this agent skill to your Project
npx add-skill https://github.com/SatoriTours/Daily/tree/main/.opencode/skill/release-version
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.
handoff
Compact the current conversation into a handoff document for another agent to pick up.
git-guardrails-claude-code
Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute. Use when user wants to prevent destructive git operations, add git safety hooks, or block git push/reset in Claude Code.
migrate-to-shoehorn
Migrate test files from `as` type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace `as` in tests, or needs partial test data.
edit-article
Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.
setup-pre-commit
Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.
obsidian-vault
Search, create, and manage notes in the Obsidian vault with wikilinks and index notes. Use when user wants to find, create, or organize notes in Obsidian.
Didn't find tool you were looking for?