name: update-after-merge description: Clean up after PR merge - switch to default branch, delete feature branch, pull latest allowed-tools: Bash
Update After Merge Skill
Clean up local repository after a PR is merged.
Usage
/update-after-merge # Clean up current feature branch
/update-after-merge branch-name # Clean up specific branch
What It Does
- Checks for uncommitted changes (stash if needed)
- Switches to default branch (main/master)
- Pulls latest changes
- Deletes the merged feature branch (local)
- Deletes remote branch if still exists
- Prunes stale remote references
Safety
Uses git branch -d (safe delete) - won't delete unmerged branches.
Runbook
Full procedure: runbook/update-after-merge.md in your knowledge base.
chat Comments (0)
Sign in to join the discussion and leave a comment.
Skill Details
GitHub Stars
0
GitHub Forks
4
Created
Jan 2026
Last Updated
il y a 5 mois
tools
tools git workflows
Related Skills
Build your own?
Join 12,000+ developers contributing to the Claude ecosystem.
No comments yet. Be the first to share your thoughts!