pr-and-cleanup - Automated PR Creation with Worktree Cleanup
Creates pull requests and removes worktrees after development completion
Tags
Updated: 2026-02-15Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Detect current worktree and branch
- Check for uncommitted changes
- Create pull request interactively
- Remove worktree directory
- Checkout to main branch
Inputs
- GitHub repository
- Worktree directory
- Git branch
- GitHub CLI credentials
- Committed changes
Outputs
- Pull request URL
- Removed worktree
- Main branch checkout status
Requirements
- Must execute inside worktree directory
- All changes must be committed
- GitHub CLI installed and authenticated
- Remote branch pushed or auto-push by gh
