pr-cleanup
PR Cleanup Skill
Overview
This skill provides safe, systematic cleanup of local branches after PR merge. It implements a Sequential Safety pattern: identify target, verify merge status, delete safely, confirm result. The workflow follows 5 sequential steps to prevent data loss and ensure reliable cleanup.
Instructions
Step 0: CHECK for Worktrees
Goal: Remove any git worktrees referencing the target branch before attempting deletion.
Worktree agents (dispatched with isolation: "worktree") create local branches that block both git branch -d and gh pr merge --delete-branch. Since worktree branches prevent deletion, check and clean up first:
# List worktrees referencing any branch
git worktree list
More from notque/claude-code-toolkit
generate-claudemd
Generate project-specific CLAUDE.md from repo analysis.
12fish-shell-config
Fish shell configuration and PATH management.
12pptx-generator
PPTX presentation generation with visual QA: slides, pitch decks.
12codebase-overview
Systematic codebase exploration and architecture mapping.
10image-to-video
FFmpeg-based video creation from image and audio.
9data-analysis
Decision-first data analysis with statistical rigor gates.
9