Release a merged PR by tagging and creating a GitHub release. Use when asked to "release", "tag", or "create a release".
Installation
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
CRITICAL: ALWAYS use gh pr merge to merge into main, NEVER use local git merge.
Step 2: Checkout main and pull the merge commit
git checkout main
git pull origin main
Step 3: Verify we're on the merge commit
git log -1 --oneline
Step 4: Create and push the tag
git tag -a "v<VERSION>" -m "$(cat <<'EOF'
Release v<VERSION>
<Brief description of what's in this release>
🤖 Tagged with [Claude Code](https://claude.com/claude-code)
EOF
)"
git push origin v<VERSION>
Step 4: Create GitHub release
gh release create "v<VERSION>" \
--title "v<VERSION>" \
--notes "$(cat <<'EOF'
## What's New in v<VERSION>
<List key features/fixes in this release>
### Changes
See the [CHANGELOG](https://github.com/OWNER/REPO/blob/main/CHANGELOG.md) for detailed release notes.
## Installation
Download from the App Store or TestFlight.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
EOF
)"
Step 5: Rebase development around main (main is source of truth)
git checkout development
git rebase main
git push origin development --force-with-lease
This rebases development around main's history. Main is the source of truth - we replay development's commits on top of main's canonical history.
🔄 Development rebased around main (main is source of truth)
Important Rules
ALWAYS use gh pr merge to merge PRs - NEVER use local git merge to merge into main
ALWAYS ask user to confirm version number - Don't guess
ALWAYS use annotated tags (git tag -a) - Include metadata
ALWAYS rebase development around main after release - Main is the source of truth
Use --force-with-lease when rebasing development - Safe force push
NEVER use local git merge commands - All merges happen via GitHub PR mechanism
Main branch is the canonical source of truth - Development rebases around it, not the other way
Workflow Summary
1. Find open PR ready to merge
2. Verify PR has passing CI checks
3. Determine next version (last tag + 1)
4. Ask user to confirm version
5. Merge PR using gh pr merge (NEVER local git merge)
6. Checkout main and pull the merge commit
7. Tag the merge commit
8. Push the tag
9. Create GitHub release
10. Rebase development around main (main is source of truth)