pr-and-cleanup - Automatically create PR and cleanup worktree after development
Creates a pull request and automatically cleans up worktree after development completion
Tags
Updated: 2026-02-15Capabilities
Typical Inputs
Typical Outputs
What this skill does
- detect current worktree directory
- check for uncommitted changes
- create pull request
- remove worktree directory
- checkout to main branch
Inputs
- worktree directory
- branch name
- PR title
- PR description
- remote branch
Outputs
- pull request link
- cleaned worktree
- status changes
Requirements
- execute within worktree directory
- all changes committed
- gh CLI installed and authenticated
- remote branch pushed
