pr-and-cleanup - Automated PR Creation and Worktree Cleanup
Creates a pull request and automatically removes the worktree after development completion
Tags
Updated: 2026-02-15Capabilities
Typical Inputs
Typical Outputs
What this skill does
- detect worktree directory and branch
- check for uncommitted changes
- create pull request
- remove worktree
- checkout to main branch
Inputs
- worktree directory
- branch information
- repository
- commit changes
Outputs
- pull request
- worktree removal
- return to main branch
Requirements
- execute within worktree directory
- all changes must be committed
- gh CLI installed and authenticated
- remote branch pushed
