dot-ai-tag-release
Create a release tag based on accumulated changelog fragments. Run when ready to cut a release.
适合你,如果每次发布前需要手动整理变更并打标签
npx oh-my-skill add vfarcic/dot-ai-cli/dot-ai-tag-releasecurl -fsSL https://oh-my-skill.com/install.sh | bash -s -- vfarcic/dot-ai-cli/dot-ai-tag-releasenpx oh-my-skill verify vfarcic/dot-ai-cli/dot-ai-tag-release怎么用
商店整理自技能原文 · 版本 af67e07 · 表述以原文为准装上后,Claude 会帮你分析变更日志片段,提议下一个语义版本号,创建并推送 Git 标签,最后确认标签已生成。
当多个 PR 已合并并带有变更日志片段,且你准备发布新版本时,可以要求 Claude 执行此技能。
技能原文 SKILL.md
Create Release Tag
Create a semantic version tag based on accumulated changelog fragments.
When to Use
Run this skill when:
- Multiple PRs have been merged with changelog fragments
- You're ready to cut a release
- After the /prd-done workflow completes (not during it)
Workflow
Step 1: Analyze
Run the analysis script bundled with this skill:
bash .claude/skills/dot-ai-tag-release/analyze.sh
If the script fails (non-zero exit) or the output contains ERROR=true, show the MESSAGE to the user and stop.
If the output contains NO_FRAGMENTS=true, inform the user there's nothing to release and stop.
Step 2: Propose Version
Present the script output to the user:
- Current version (
CURRENT_VERSION) - Fragments found (the
FRAGMENTSlist with their types) - Proposed next version (
PROPOSED_VERSION) based on bump type (BUMP_TYPE) - Ask for confirmation or allow override
Step 3: Handle [skip ci]
If SKIP_CI=true, inform the user that tagging HEAD would prevent the release workflow from running. Create a preparation commit:
git commit --allow-empty -m "chore: prepare release [version]" git push origin HEAD
Step 4: Create and Push Tag
After confirmation:
git tag -a [version] -m "[Brief description summarizing the fragments]" git push origin [version]
Step 5: Confirm Success
Show the user:
- The tag created
- The tag URL on GitHub (if applicable)
- Note that CI/CD will generate release notes from the fragments
Guidelines
- Don't run during PR workflow: This is a separate release activity
- Review fragments first: Make sure all fragments are accurate before tagging
- Use semantic versioning: Follow semver strictly based on fragment types
- Brief tag message: Summarize the release in 1-2 sentences
- Never tag [skip ci] commits: Always create a preparation commit first